|
@@ -211,16 +211,14 @@
|
|
|
</div>
|
|
|
|
|
|
<input type="hidden" id="id" name="id" th:value="${id}">
|
|
|
+ <input type="hidden" id="patientId" name="patientId" th:value="${patientId}">
|
|
|
<div class="customize-form-group">
|
|
|
<label>姓名:</label>
|
|
|
<input name="name" id="name" class="select-input" type="text" th:value="${name}" disabled="true"/>
|
|
|
<i class="fa" th:class="${realNameStatus == 1 ? 'fa fa-check' : 'fa fa-close'}" id="checkName" ></i>
|
|
|
<input name="realNameStatus" id="realNameStatus" class="status" type="text" th:value="${realNameStatus == 1 ? '已实名' : (realNameStatus == 0 ? '未实名' : '')}" readonly>
|
|
|
<label>性别:</label>
|
|
|
- <select name="gender" class="select-input" th:with="type=${@dict.getType('sys_user_sex')}" disabled="true" />
|
|
|
- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
|
|
|
- th:selected="${dict.dictValue} == ${gender}" ></option>
|
|
|
- </select>
|
|
|
+ <input name="gender" id="gender" type="text" class="select-input" th:value="${gender == 1 ? '女' : (gender == 0 ? '男' : '')}" readonly>
|
|
|
<span class="span_line" readonly></span>
|
|
|
<label>出生年月:</label>
|
|
|
<input name="dateBirth" id="dateBirth" placeholder="出生年月" class="select-input" type="text" th:value="${dateBirth}" disabled="true" />
|
|
@@ -231,10 +229,11 @@
|
|
|
|
|
|
<div class="ibox-content">
|
|
|
<div>
|
|
|
- <span>信息完整度:已完善---></span>
|
|
|
- <div class="stat-percent">90%</div>
|
|
|
+ <span>档案完善度:已完善---><div></div></span>
|
|
|
+ <div class="stat-percent" th:text="${completenessPercentage} + ' %'"></div>
|
|
|
<div class="progress progress-mini">
|
|
|
- <div style="width: 90%;" class="progress-bar"></div>
|
|
|
+ <!-- 使用 Thymeleaf 的 th:style 属性动态设置样式 -->
|
|
|
+ <div class="progress-bar" th:style="'width: ' + ${completenessPercentage} + '%;'"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -301,32 +300,32 @@
|
|
|
<div class="customize-form-group-container">
|
|
|
<div class="customize-form-group">
|
|
|
<label class="col-sm-1 control-label">肿瘤发病部位疾病:</label>
|
|
|
- <select id="category-select1" class="styled-input edit_inputs select2-multiple" disabled="true">
|
|
|
+ <select id="category-select1" class="styled-input edit_inputs select2-multiple" placeholder="肿瘤发病部位疾病" disabled="true">
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="customize-form-group">
|
|
|
<label class="col-sm-1 control-label">肿瘤治疗并发症与合并症:</label>
|
|
|
- <select id="category-select2" class="styled-input edit_inputs select2-multiple" disabled="true">
|
|
|
+ <select id="category-select2" class="styled-input edit_inputs select2-multiple" placeholder="肿瘤治疗并发症与合并症" disabled="true">
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="customize-form-group">
|
|
|
<label class="col-sm-1 control-label">风湿免疫疾病名称:</label>
|
|
|
- <select id="category-select3" class="styled-input edit_inputs select2-multiple" disabled="true">
|
|
|
+ <select id="category-select3" class="styled-input edit_inputs select2-multiple" placeholder="风湿免疫疾病名称" disabled="true">
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="customize-form-group">
|
|
|
<label class="col-sm-1 control-label">罕见病疾病:</label>
|
|
|
- <select id="category-select4" class="styled-input edit_inputs select2-multiple" disabled="true">
|
|
|
+ <select id="category-select4" class="styled-input edit_inputs select2-multiple" placeholder="罕见病疾病" disabled="true">
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="customize-form-group">
|
|
|
<label class="col-sm-1 control-label">感染类疾病:</label>
|
|
|
- <select id="category-select5" class="styled-input edit_inputs select2-multiple" disabled="true">
|
|
|
+ <select id="category-select5" class="styled-input edit_inputs select2-multiple" placeholder="感染类疾病" disabled="true">
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="customize-form-group">
|
|
|
<label class="col-sm-1 control-label">临时慢病:</label>
|
|
|
- <select id="category-select6" class="styled-input edit_inputs select2-multiple" disabled="true">
|
|
|
+ <select id="category-select6" class="styled-input edit_inputs select2-multiple" placeholder="临时慢病" disabled="true">
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -476,7 +475,7 @@
|
|
|
<div class="customize-form-group edit">
|
|
|
<label class="is-required">回访方式:</label>
|
|
|
<div class="input-groups" th:with="type=${@dict.getType('sys_select_dtp_ysfw_huifangfangshi')}">
|
|
|
- <input type="radio" class="form-check-radio" name="huifanffs" id="huifanffs" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${currentEconomicSituation}">
|
|
|
+ <input type="radio" class="form-check-radio" name="huifanffs" id="huifanffs" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${ReturnMethod}">
|
|
|
</div>
|
|
|
|
|
|
<span class="status"></span>
|
|
@@ -496,24 +495,24 @@
|
|
|
<div class="customize-form-group edit">
|
|
|
<label>面访记录:</label>
|
|
|
<div class="input-groups" style="width: 50%">
|
|
|
- <input name="mfjilu" id="mfjilu" placeholder="请输入面访记录" class="styled-input edit_inputs" type="text" th:value="${weight}">
|
|
|
+ <input name="mfjilu" id="mfjilu" placeholder="请输入面访记录" class="styled-input edit_inputs" type="text" th:value="${record}">
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="customize-form-group">
|
|
|
<label>回访对象:</label>
|
|
|
- <select name="bloodPressureStatus" class="select-input edit_inputs" th:with="type=${@dict.getType('sys_select_dtp_ysfw_huifangduixaing')}">
|
|
|
+ <select name="ReturnObject" class="select-input edit_inputs" th:with="type=${@dict.getType('sys_select_dtp_ysfw_huifangduixaing')}">
|
|
|
<option value="">请选择</option>
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"
|
|
|
- th:selected="${dict.dictLabel}==${bloodPressureStatus}"></option>
|
|
|
+ th:selected="${dict.dictLabel}==${ReturnObject}"></option>
|
|
|
</select>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
|
<div class="customize-form-group edit">
|
|
|
<label class="is-required">是否配合:</label>
|
|
|
<div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
|
|
|
- <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}" name="followUpFeedbackDoctor" >
|
|
|
+ <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${yystatus}" name="yystatus" >
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
@@ -522,7 +521,7 @@
|
|
|
<div class="customize-form-group edit" >
|
|
|
<label>用药状态:</label>
|
|
|
<div class="input-groups" style="width: 90%" th:with="type=${@dict.getType('sys_gxhpz_yyycx')}">
|
|
|
- <input type="radio" class="form-check-radio" name="ischixuyystatus" id="ischixuyystatus" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${currentEconomicSituation}" >
|
|
|
+ <input type="radio" class="form-check-radio" name="ischixuyystatus" id="ischixuyystatus" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${yystatus}" >
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
@@ -537,7 +536,7 @@
|
|
|
<div class="customize-form-group edit" >
|
|
|
<label>慈善援助用药:</label>
|
|
|
<div class="input-groups" th:with="type=${@dict.getType('sys_gxhpz_chishan_yzyy')}">
|
|
|
- <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}" name="followUpFeedbackDoctor" >
|
|
|
+ <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${chishanyy}" name="chishanyy" >
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
@@ -551,16 +550,16 @@
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
|
<div class="customize-form-group edit">
|
|
|
- <label>永久停药原因:</label>
|
|
|
+ <label class="is-required">永久停药原因:</label>
|
|
|
<div class="input-groups" style="width: 90%" th:with="type=${@dict.getType('sys_gxhpz_yong_jiu_ting_yao_yuanyin')}">
|
|
|
- <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}" name="followUpFeedbackDoctor" >
|
|
|
+ <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${stopyuanyin}" name="stopyuanyin" >
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
|
<div class="customize-form-group edit">
|
|
|
<label>直接永久停药:</label>
|
|
|
<div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
|
|
|
- <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}" name="followUpFeedbackDoctor" >
|
|
|
+ <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${stop}" name="stop" >
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
<span class="status"></span>
|
|
@@ -570,7 +569,7 @@
|
|
|
<div class="customize-form-group edit">
|
|
|
<label>其他渠道购药:</label>
|
|
|
<div class="input-groups" style="width: 90%" th:with="type=${@dict.getType('sys_gxhpz_othetqd_gy')}">
|
|
|
- <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}" name="followUpFeedbackDoctor" >
|
|
|
+ <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${othetqd}" name="othetqd" >
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
<span class="status"></span>
|
|
@@ -578,18 +577,18 @@
|
|
|
</div>
|
|
|
<div id="ycgyycjy" class="hidden">
|
|
|
<div class="customize-form-group edit">
|
|
|
- <label>延迟购药(医嘱建议):</label>
|
|
|
+ <label class="is-required">延迟购药(医嘱建议):</label>
|
|
|
<div class="input-groups" style="width: 90%" th:with="type=${@dict.getType('sys_gxhpz_yanchi_gy_ys_jy')}">
|
|
|
- <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}" name="followUpFeedbackDoctor" >
|
|
|
+ <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${ycyyysjy}" name="ycyyysjy" >
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div id="ycgyhzyybgf" class="hidden">
|
|
|
<div class="customize-form-group edit">
|
|
|
- <label>延迟购药(用药不规范):</label>
|
|
|
+ <label class="is-required">延迟购药(用药不规范):</label>
|
|
|
<div class="input-groups" style="width: 90%" th:with="type=${@dict.getType('sys_gxhpz_yanchi_gyhzyybgf')}">
|
|
|
- <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}" name="followUpFeedbackDoctor" >
|
|
|
+ <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${gyhzyybgf}" name="gyhzyybgf" >
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
@@ -597,9 +596,9 @@
|
|
|
</div>
|
|
|
<div id="tab-7" class="tab-pane active">
|
|
|
<div class="customize-form-group edit">
|
|
|
- <label >是否出现不良反应:</label>
|
|
|
+ <label class="is-required">是否出现不良反应:</label>
|
|
|
<div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
|
|
|
- <input type="radio" class="form-check-radio" th:each="dict : ${type}" name="blfyyesOrno" id="blfyyesOrno" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${currentEconomicSituation}">
|
|
|
+ <input type="radio" class="form-check-radio" th:each="dict : ${type}" name="blfyyesOrno" id="blfyyesOrno" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${blfyyesOrno}">
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
@@ -608,7 +607,7 @@
|
|
|
<div class="customize-form-group edit">
|
|
|
<label>不良反应时间:</label>
|
|
|
<div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
|
|
|
- <input name="nyfysj" placeholder="永久停药时间" class="time-input time-input2" type="text" th:value="${timeFirstDiagnosis}" required>
|
|
|
+ <input name="nyfysj" placeholder="不良反应时间" class="time-input time-input2" type="text" th:value="${timeFirstDiagnosis}" required>
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
@@ -620,7 +619,7 @@
|
|
|
<div class="customize-form-group edit">
|
|
|
<div style="/*display: flex;*/">
|
|
|
<label style="width: auto;">不良反应症状:</label>
|
|
|
- <button type="button" data-toggle="modal" class="btn btn-xs btn-primary" data-target="#myModal5">新增不良反应</button>
|
|
|
+ <button type="button" data-toggle="modal" class="btn btn-ms btn-primary" data-target="#myModal5">新增</button>
|
|
|
<table id="byfyTable" style="width: 340px;">
|
|
|
<thead>
|
|
|
<tr>
|
|
@@ -704,23 +703,32 @@
|
|
|
<th:block th:include="include :: layout-latest-js" />
|
|
|
<th:block th:include="include :: bootstrap-table-fixed-columns-js" />
|
|
|
<th:block th:include="include :: ztree-js" />
|
|
|
+
|
|
|
+<th:block th:include="include :: select2-css" />
|
|
|
+<th:block th:include="include :: bootstrap-select-css" />
|
|
|
+</body> <th:block th:include="include :: select2-js" />
|
|
|
+<th:block th:include="include :: bootstrap-select-js" />
|
|
|
</body>
|
|
|
</html>
|
|
|
|
|
|
-<script>
|
|
|
+<script th:inline="javascript">
|
|
|
var formSubmitted = true;
|
|
|
var prefix = ctx + "dtp/pmService";
|
|
|
var blfyindex=0;
|
|
|
+ //购药记录
|
|
|
+ var recordsData;
|
|
|
+ // 回显数据随访计划
|
|
|
+ var listPlan1;
|
|
|
+ var listPlan2;
|
|
|
+ // 回显数据随访任务
|
|
|
+ var listTask1;
|
|
|
+ var listTask2;
|
|
|
function submitHandler() {
|
|
|
var selectedValue = $('input[name="huifanffs"]:checked').val();
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
if (!selectedValue) {
|
|
|
alert('请选择回访方式!');
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
if (selectedValue === '微信' && !$('#adverseReactionImage')[0].files.length) {
|
|
|
alert('微信回访时,回访图片为必填项!');
|
|
|
return;
|
|
@@ -869,6 +877,141 @@
|
|
|
// initializeTableForTab(tableId);
|
|
|
});
|
|
|
|
|
|
+
|
|
|
+ // 初始化 Select2 插件
|
|
|
+ for (let i = 1; i <= 6; i++) {
|
|
|
+ $(`#category-select${i}`).select2({
|
|
|
+ placeholder: "",
|
|
|
+ allowClear: true
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ // 获取所有下拉选项的数据
|
|
|
+ $.ajax({
|
|
|
+ url: ctx + 'sp/sp/typeDate',
|
|
|
+ method: 'GET',
|
|
|
+ dataType: 'json',
|
|
|
+ success: function(data) {
|
|
|
+ var options1 = $('#category-select1');
|
|
|
+ var options2 = $('#category-select2');
|
|
|
+ var options3 = $('#category-select3');
|
|
|
+ var options4 = $('#category-select4');
|
|
|
+ var options5 = $('#category-select5');
|
|
|
+ var options6 = $('#category-select6');
|
|
|
+
|
|
|
+ // 清空已有选项(除了第一个默认选项)
|
|
|
+ options1.find('option').not(':first').remove();
|
|
|
+ options2.find('option').not(':first').remove();
|
|
|
+ options3.find('option').not(':first').remove();
|
|
|
+ options4.find('option').not(':first').remove();
|
|
|
+ options5.find('option').not(':first').remove();
|
|
|
+ options6.find('option').not(':first').remove();
|
|
|
+
|
|
|
+ // 添加默认选项
|
|
|
+ $('<option>', {
|
|
|
+ value: '',
|
|
|
+ text : '请选择疾病'
|
|
|
+ }).appendTo(options1);
|
|
|
+ $('<option>', {
|
|
|
+ value: '',
|
|
|
+ text : '请选择疾病'
|
|
|
+ }).appendTo(options2);
|
|
|
+ $('<option>', {
|
|
|
+ value: '',
|
|
|
+ text : '请选择疾病'
|
|
|
+ }).appendTo(options3);
|
|
|
+ $('<option>', {
|
|
|
+ value: '',
|
|
|
+ text : '请选择疾病'
|
|
|
+ }).appendTo(options4);
|
|
|
+ $('<option>', {
|
|
|
+ value: '',
|
|
|
+ text : '请选择疾病'
|
|
|
+ }).appendTo(options5);
|
|
|
+ $('<option>', {
|
|
|
+ value: '',
|
|
|
+ text : '请选择疾病'
|
|
|
+ }).appendTo(options6);
|
|
|
+ // 回显数据
|
|
|
+ var dl = /*[[${dl}]]*/ '';
|
|
|
+ // 直接使用 dl 数据预填充下拉列表
|
|
|
+ var dlParsed = JSON.parse(dl);
|
|
|
+ if (Array.isArray(dlParsed)) {
|
|
|
+ var dlIds = dlParsed.map(function (item) {
|
|
|
+ return item.id;
|
|
|
+ }); // 转换为 ID 数组
|
|
|
+ // 遍历返回的数据并添加选项
|
|
|
+ $.each(data.value, function(index, item) {
|
|
|
+ if(item.dict_key == 1){
|
|
|
+ $('<option>', {
|
|
|
+ value: item.id,
|
|
|
+ text : item.categoryName
|
|
|
+ }).appendTo(options1);
|
|
|
+ $(`#category-select1`).val(dlIds).trigger('change');
|
|
|
+ }
|
|
|
+ if(item.dict_key == 2){
|
|
|
+ $('<option>', {
|
|
|
+ value: item.id,
|
|
|
+ text : item.categoryName
|
|
|
+ }).appendTo(options2);
|
|
|
+ $(`#category-select2`).val(dlIds).trigger('change');
|
|
|
+ }
|
|
|
+ if(item.dict_key == 3){
|
|
|
+ $('<option>', {
|
|
|
+ value: item.id,
|
|
|
+ text : item.categoryName
|
|
|
+ }).appendTo(options3);
|
|
|
+ $(`#category-select3`).val(dlIds).trigger('change');
|
|
|
+
|
|
|
+ }
|
|
|
+ if(item.dict_key == 4){
|
|
|
+ $('<option>', {
|
|
|
+ value: item.id,
|
|
|
+ text : item.categoryName
|
|
|
+ }).appendTo(options4);
|
|
|
+ $(`#category-select4`).val(dlIds).trigger('change');
|
|
|
+ }
|
|
|
+ if(item.dict_key == 5){
|
|
|
+ $('<option>', {
|
|
|
+ value: item.id,
|
|
|
+ text : item.categoryName
|
|
|
+ }).appendTo(options5);
|
|
|
+ $(`#category-select5`).val(dlIds).trigger('change');
|
|
|
+ }
|
|
|
+ if(item.dict_key == 6){
|
|
|
+ $('<option>', {
|
|
|
+ value: item.id,
|
|
|
+ text : item.categoryName
|
|
|
+ }).appendTo(options6);
|
|
|
+ $(`#category-select6`).val(dlIds).trigger('change');
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ // 重新初始化 Select2 以反映新的选项
|
|
|
+ options1.trigger('change');
|
|
|
+ options2.trigger('change');
|
|
|
+ options3.trigger('change');
|
|
|
+ options4.trigger('change');
|
|
|
+ options5.trigger('change');
|
|
|
+ options6.trigger('change');
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ error: function(xhr, status, error) {
|
|
|
+ console.error("Failed to load disease categories:", error);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ //购药记录
|
|
|
+ recordsData = /*[[${recordsData}]]*/ '';
|
|
|
+ // 回显数据随访计划
|
|
|
+ listPlan1 = /*[[${Plan1}]]*/ '';
|
|
|
+ listPlan2 = /*[[${Plan2}]]*/ '';
|
|
|
+
|
|
|
+ // 回显数据随访计划
|
|
|
+ listTask1 = /*[[${listTask1}]]*/ '';
|
|
|
+ listTask2 = /*[[${listTask2}]]*/ '';
|
|
|
});
|
|
|
// 默认显示/隐藏逻辑
|
|
|
function updateVisibility() {
|
|
@@ -962,22 +1105,25 @@
|
|
|
};
|
|
|
console.log("tabId="+tabId.substring(4));
|
|
|
if(tabId==='tab-2'){
|
|
|
+ debugger
|
|
|
+ //购药记录
|
|
|
var data2=[];
|
|
|
+ data2=recordsData;
|
|
|
// 初始化表格 getDrugPurchaseList
|
|
|
- $.ajax({
|
|
|
- cache : true,
|
|
|
- type : "POST",
|
|
|
- url : ctx + "dtp/pmService/getDrugPurchaseList",
|
|
|
- data : data,
|
|
|
- async : false,
|
|
|
- error : function(request) {
|
|
|
- $.modal.alertError("系统错误");
|
|
|
- },
|
|
|
- success : function(data) {
|
|
|
- data2=data.rows;
|
|
|
- $.operate.successCallback(data);
|
|
|
- }
|
|
|
- });
|
|
|
+ // $.ajax({
|
|
|
+ // cache : true,
|
|
|
+ // type : "POST",
|
|
|
+ // url : ctx + "dtp/pmService/getDrugPurchaseList",
|
|
|
+ // data : data,
|
|
|
+ // async : false,
|
|
|
+ // error : function(request) {
|
|
|
+ // $.modal.alertError("系统错误");
|
|
|
+ // },
|
|
|
+ // success : function(data) {
|
|
|
+ // data2=data.rows;
|
|
|
+ // $.operate.successCallback(data);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
|
|
|
var options = {
|
|
|
data: data2,
|
|
@@ -1006,27 +1152,28 @@
|
|
|
}
|
|
|
if(tabId==='tab-3'){
|
|
|
var tableElement4 = $('#bootstrap-table-4');
|
|
|
+ // 回显数据随访计划
|
|
|
var data4=[];
|
|
|
var data5=[];
|
|
|
- // 初始化表格 getDrugPurchaseList
|
|
|
- $.ajax({
|
|
|
- cache : true,
|
|
|
- type : "POST",
|
|
|
- url : ctx + "dtp/pmService/getDrugPurchaseList",
|
|
|
- data : data,
|
|
|
- async : false,
|
|
|
- error : function(request) {
|
|
|
- $.modal.alertError("系统错误");
|
|
|
- },
|
|
|
- success : function(data) {
|
|
|
- data4=data.rows;
|
|
|
- data5=data.rows;
|
|
|
- $.operate.successCallback(data);
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
|
|
|
+ data4=listTask1;
|
|
|
+ data5=listTask2;
|
|
|
+ // 初始化表格 getDrugPurchaseList
|
|
|
+ // $.ajax({
|
|
|
+ // cache : true,
|
|
|
+ // type : "POST",
|
|
|
+ // url : ctx + "dtp/pmService/getDrugPurchaseList",
|
|
|
+ // data : data,
|
|
|
+ // async : false,
|
|
|
+ // error : function(request) {
|
|
|
+ // $.modal.alertError("系统错误");
|
|
|
+ // },
|
|
|
+ // success : function(data) {
|
|
|
+ // data4=data.rows;
|
|
|
+ // data5=data.rows;
|
|
|
+ // $.operate.successCallback(data);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
var options ={
|
|
|
// 配置表格的相关属性
|
|
|
// 例如数据源、列定义等
|
|
@@ -1044,12 +1191,12 @@
|
|
|
fixedRightNumber: 1,
|
|
|
columns : [
|
|
|
{ field: 'id', title: '序号' },
|
|
|
- { field: 'followUpPersonName', title: '任务名称' },
|
|
|
- { field: 'disease', title: '任务类型'},
|
|
|
- { field: 'filingDate', title: '预约时间' },
|
|
|
- { field: 'lastPurchaseDate', title: '完成时间' },
|
|
|
- { field: 'patientName', title: '任务跟进人' },
|
|
|
- { field: 'patientAssignmentStatus', title: '任务状态' },
|
|
|
+ { field: 'taskName', title: '任务名称' },
|
|
|
+ { field: 'taskTheme', title: '任务类型'},
|
|
|
+ { field: 'appointmentDate', title: '预约时间' },
|
|
|
+ { field: 'completionTime', title: '完成时间' },
|
|
|
+ { field: 'taskFollower', title: '任务跟进人' },
|
|
|
+ { field: 'taskStatus', title: '任务状态' },
|
|
|
{
|
|
|
title: '操作',
|
|
|
align: 'center',
|
|
@@ -1087,12 +1234,12 @@
|
|
|
fixedRightNumber: 1,
|
|
|
columns : [
|
|
|
{ field: 'id', title: '序号' },
|
|
|
- { field: 'followUpPersonName', title: '任务名称' },
|
|
|
- { field: 'disease', title: '任务类型'},
|
|
|
- { field: 'filingDate', title: '预约时间' },
|
|
|
- { field: 'lastPurchaseDate', title: '完成时间' },
|
|
|
- { field: 'patientName', title: '任务跟进人' },
|
|
|
- { field: 'patientAssignmentStatus', title: '任务状态' },
|
|
|
+ { field: 'taskName', title: '任务名称' },
|
|
|
+ { field: 'taskTheme', title: '任务类型'},
|
|
|
+ { field: 'appointmentDate', title: '预约时间' },
|
|
|
+ { field: 'completionTime', title: '完成时间' },
|
|
|
+ { field: 'taskFollower', title: '任务跟进人' },
|
|
|
+ { field: 'taskStatus', title: '任务状态' },
|
|
|
{
|
|
|
title: '操作',
|
|
|
align: 'center',
|