|
@@ -215,9 +215,6 @@
|
|
|
<button class="btn btn-w-m btn-primary" onclick="editArchives()">完善档案</button>
|
|
|
<button type="button" class="btn btn-sm btn-danger pull-right" onclick="closeItem()">返回上一级</button>
|
|
|
</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"/>
|
|
@@ -349,28 +346,37 @@
|
|
|
<div id="tab-3" class="tab-pane">
|
|
|
<div class="task-follow-up">
|
|
|
<div class="follow-up-person">
|
|
|
- <label for="followUpPerson" style="padding-left: 50px;">随访跟进人:</label>
|
|
|
- <input type="text" id="followUpPerson" value="蒋娟" style="border: none; width: 40px; color: red;" />
|
|
|
- <input type="hidden" id="followUpPersonId" name="followUpPersonId"/>
|
|
|
- <a href="#" onclick="editGenJinRen()">修改<i class="glyphicon glyphicon-pencil"></i></a>
|
|
|
+<!-- <label style="padding-left: 10px;">随访跟进人:</label>-->
|
|
|
+ <code style="font-size: 1.5rem;width: 200px;padding-left: 15px;">
|
|
|
+ 随访跟进人:
|
|
|
+ </code>
|
|
|
+ <code style="font-size: 1.5rem;width: 200px;" th:text="${follow_up_person}">
|
|
|
+ </code>
|
|
|
+<!-- <code type="text" id="follow_up_person" style="border: none; width: 55px; color: red;" th:value="${follow_up_person}"/>-->
|
|
|
+ <input type="hidden" id="follow_up_person_id" name="follow_up_person_id"/>
|
|
|
+<!-- <a href="#" onclick="editGenJinRen()">修改<i class="glyphicon glyphicon-pencil"></i></a>-->
|
|
|
</div>
|
|
|
<div class="plan-buttons">
|
|
|
- <button class="btn btn-w-m btn-primary" onclick="showAllPlan()">查看全部计划</button>
|
|
|
+<!-- <button class="btn btn-w-m btn-primary" onclick="showAllPlan()">查看全部计划</button>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
<div class="ibox-content">
|
|
|
<div class="ibox-title2">
|
|
|
- <code style="font-size: 1.5rem;padding-right: 30px;">
|
|
|
- 甲磺酸仑伐替尼胶囊药名
|
|
|
- <a onclick="editGenJinRen()"><i class="glyphicon glyphicon-pencil"></i></a>
|
|
|
+ <code style="font-size: 1.5rem;width: 200px;" th:text="${productName}">
|
|
|
+
|
|
|
+
|
|
|
</code>
|
|
|
- <code style="font-size: 1.5rem; padding-right: 30px;">
|
|
|
- 20mg(1ml)/瓶
|
|
|
+ <code style="font-size: 1.5rem; width: 200px;" th:text="${specification}">
|
|
|
+
|
|
|
+ </code>
|
|
|
+ <code style="font-size: 1.5rem;color: #00B83F;padding-right: 30px;"><i class="glyphicon glyphicon-ice-lolly" th:text="${businessBelonging}"></i></code>
|
|
|
+ <code style="font-size: 1.5rem;color: #00B83F;padding-right: 30px;"
|
|
|
+ th:text="${status == '关闭'? '已关闭' : status}">
|
|
|
+ <!-- 默认文本将被 Thymeleaf 动态替换 -->
|
|
|
</code>
|
|
|
- <code style="font-size: 1.5rem;color: #00B83F;padding-right: 30px;"><i class="glyphicon glyphicon-ice-lolly">常规随访</i></code>
|
|
|
- <code style="font-size: 1.5rem;color: #00B83F;padding-right: 30px;">进行中</code>
|
|
|
- <a onclick="closePlane()" href="javascript:void(0)" class="right-aligned-link">关闭计划</a>
|
|
|
+ <!-- 根据 status 的值决定是否显示关闭计划按钮 -->
|
|
|
+ <a th:if="${status != '关闭'}" onclick="closePlan(1)" href="javascript:void(0)" class="right-aligned-link">关闭计划</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -378,11 +384,11 @@
|
|
|
<div class="ibox-content">
|
|
|
<div class="ibox-title2">
|
|
|
<span style="padding-left: 10px;font-size:15px;">创建人:</span>
|
|
|
- <span style="width: 120px;color: #2E2D3C;font-size:15px;padding-right: 40px;">系统订单</span>
|
|
|
- <span style="font-size:15px;">开始时间:</span> <span style="width: 120px;color: #2E2D3C;font-size:15px;padding-right: 40px;">2024-08-19</span>
|
|
|
- <span style="font-size:15px;">更新人:</span> <span style="width: 100px;color: #2E2D3C;font-size:15px;">宝智达</span>
|
|
|
- <span style="font-size:15px;">更新时间:</span> <span style="width: 100px;color: #2E2D3C;font-size:15px;">2024-08-19</span>
|
|
|
- <a href="javascript:void(0)" onclick="ViewOperationLog()" class="right-aligned-link">查看操作记录</a>
|
|
|
+ <span style="width: 120px;color: #2E2D3C;font-size:15px;padding-right: 40px;" th:text="${createdBy}"></span>
|
|
|
+ <span style="font-size:15px;">开始时间:</span> <span style="width: 220px;color: #2E2D3C;font-size:15px;padding-right: 70px;" th:text="${createdTime}"></span>
|
|
|
+ <span style="font-size:15px;">更新人:</span> <span style="width: 100px;color: #2E2D3C;font-size:15px;" th:text="${updatedBy}"></span>
|
|
|
+ <span style="font-size:15px;">更新时间:</span> <span style="width: 220px;color: #2E2D3C;font-size:15px;padding-right: 70px;" th:text="${updatedTime}"></span>
|
|
|
+<!-- <a href="javascript:void(0)" onclick="ViewOperationLog()" class="right-aligned-link">查看操作记录</a>-->
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
@@ -392,34 +398,37 @@
|
|
|
<table id="bootstrap-table-4"></table>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="row">
|
|
|
- <div class="ibox-content">
|
|
|
- <div class="ibox-title2">
|
|
|
- <code style="font-size: 1.5rem; padding-right: 30px;">
|
|
|
- 甲磺酸仑伐替尼胶囊药名
|
|
|
- <a onclick="editGenJinRen()"><i class="glyphicon glyphicon-pencil"></i> </a>
|
|
|
- </code>
|
|
|
- <code style="font-size: 1.5rem; padding-right: 30px;">
|
|
|
- 20mg(1ml)/瓶
|
|
|
- </code>
|
|
|
- <code style="font-size: 1.5rem; color:#ec971f;padding-right: 30px;"><i class="glyphicon glyphicon-ice-lolly-tasted">脱落召回</i></code>
|
|
|
- <code style="font-size: 1.5rem;color: #00B83F;padding-right: 30px;">进行中</code>
|
|
|
- <a onclick="closePlane()" href="javascript:void(0)" class="right-aligned-link">关闭计划</a>
|
|
|
- </div>
|
|
|
+ <div class="row">
|
|
|
+ <div class="ibox-content">
|
|
|
+ <div class="ibox-title2">
|
|
|
+ <code style="font-size: 1.5rem;width: 200px;" th:text="${productName2}">
|
|
|
+
|
|
|
+
|
|
|
+ </code>
|
|
|
+ <code style="font-size: 1.5rem; width: 200px;" th:text="${specification2}">
|
|
|
+ </code>
|
|
|
+ <code style="font-size: 1.5rem;color:#ec971f;padding-right: 30px;"><i class="glyphicon glyphicon-ice-lolly-tasted" th:text="${businessBelonging2}"></i></code>
|
|
|
+ <code style="font-size: 1.5rem;color: #00B83F;padding-right: 30px;"
|
|
|
+ th:text="${status2 == '关闭'? '已关闭' : status2}">
|
|
|
+ <!-- 默认文本将被 Thymeleaf 动态替换 -->
|
|
|
+ </code>
|
|
|
+ <a th:if="${status2 != '关闭'}" onclick="closePlan(2)" href="javascript:void(0)" class="right-aligned-link">关闭计划</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="row">
|
|
|
- <div class="ibox-content">
|
|
|
- <div class="ibox-title2">
|
|
|
- <span style="padding-left: 10px;font-size:15px;">创建人:</span>
|
|
|
- <span style="width: 120px;color: #2E2D3C;font-size:15px;padding-right: 40px;">系统订单</span>
|
|
|
- <span style="font-size:15px;">开始时间:</span> <span style="width: 120px;color: #2E2D3C;font-size:15px;padding-right: 40px;">2024-08-19</span>
|
|
|
- <span style="font-size:15px;">更新人:</span> <span style="width: 100px;color: #2E2D3C;font-size:15px;">宝智达</span>
|
|
|
- <span style="font-size:15px;">更新时间:</span> <span style="width: 100px;color: #2E2D3C;font-size:15px;">2024-08-19</span>
|
|
|
- <a href="javascript:void(0)" onclick="ViewOperationLog()" class="right-aligned-link">查看操作记录</a>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div class="row">
|
|
|
+ <div class="ibox-content">
|
|
|
+ <div class="ibox-title2">
|
|
|
+ <span style="padding-left: 10px;font-size:15px;">创建人:</span>
|
|
|
+ <span style="width: 120px;color: #2E2D3C;font-size:15px;padding-right: 40px;" th:text="${createdBy2}"></span>
|
|
|
+ <span style="font-size:15px;">开始时间:</span> <span style="width: 220px;color: #2E2D3C;font-size:15px;padding-right: 70px;" th:text="${createdTime2}"></span>
|
|
|
+ <span style="font-size:15px;">更新人:</span> <span style="width: 100px;color: #2E2D3C;font-size:15px;" th:text="${updatedBy2}"></span>
|
|
|
+ <span style="font-size:15px;">更新时间:</span> <span style="width: 220px;color: #2E2D3C;font-size:15px;padding-right: 70px;" th:text="${updatedTime2}"></span>
|
|
|
+ <!-- <a href="javascript:void(0)" onclick="ViewOperationLog()" class="right-aligned-link">查看操作记录</a>-->
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
+ </div>
|
|
|
<div class="row">
|
|
|
<div class="col-sm-12 select-table table-striped">
|
|
|
<table id="bootstrap-table-5"></table>
|
|
@@ -433,11 +442,23 @@
|
|
|
<div class="ibox-content">
|
|
|
<div class="ibox-title2">
|
|
|
<div class="task-info">
|
|
|
- <h4>本次任务 <code style="font-size: 1.5rem;">待执行</code></h4>
|
|
|
+<!-- pd1.put("bc_id",pageData.get("id"));//-->
|
|
|
+<!-- pd1.put("bc_appointmentDate",pageData.get("appointmentDate1"));//预约日期-->
|
|
|
+<!-- pd1.put("bc_businessBelonging",pageData.get("businessBelonging"));//businessBelonging-->
|
|
|
+<!-- pd1.put("bc_taskName",pageData.get("taskName"));//任务名称-->
|
|
|
+<!-- pd1.put("bc_taskTheme",pageData.get("taskTheme"));//任务主题-->
|
|
|
+<!-- pd1.put("bc_productName",pageData.get("productName"));//商品名-->
|
|
|
+<!-- pd1.put("bc_taskFollower",pageData.get("taskFollower"));//任务跟进人-->
|
|
|
+<!-- //pd1.put("bc_taskStatus",pageData.get("taskStatus"));//任务状态 0待执行,\r\n1已完成,\r\n2未完成,\r\n3已下发,\r\n4已取消 写到这李里-->
|
|
|
+ <h4>本次任务 <code style="font-size: 1.5rem;" th:text="${bc_taskStatus}"></code></h4>
|
|
|
</div>
|
|
|
<div class="task-details">
|
|
|
<span style="font-size:15px;">任务名称:
|
|
|
- <span style="font-size:15px;">随访</span>
|
|
|
+ <span style="font-size:15px;" th:text="${bc_taskName}"></span>
|
|
|
+
|
|
|
+ </span>
|
|
|
+ <span style="font-size:15px;">药品:
|
|
|
+ <span style="font-size:15px;" th:text="${bc_productName}"></span>
|
|
|
</span>
|
|
|
<!-- <span style="font-size:15px;">任务主题:-->
|
|
|
<!-- <span>-->
|
|
@@ -448,13 +469,13 @@
|
|
|
<!-- </span>-->
|
|
|
<!-- </span>-->
|
|
|
<span style="font-size:15px;">任务跟进人:
|
|
|
- <span style="color: #2E2D3C;font-size:15px;"><code style="font-size: 1.4rem;font-size:15px;">蒋娟</code>
|
|
|
- <a onclick="editGenJinRen()" style="font-size:15px;"> 修改 <i class="glyphicon glyphicon-pencil"></i></a>
|
|
|
+ <span style="color: #2E2D3C;font-size:15px;"><code style="font-size: 1.4rem;font-size:15px;" th:text="${bc_taskFollower}"></code>
|
|
|
+<!-- <a onclick="editGenJinRen()" style="font-size:15px;"> 修改 <i class="glyphicon glyphicon-pencil"></i></a>-->
|
|
|
</span>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="task-buttons">
|
|
|
- <button class="btn btn-w-m btn-primary" onclick="showDetailHistory()">查看历史随访</button>
|
|
|
+<!-- <button class="btn btn-w-m btn-primary" onclick="showDetailHistory()">查看历史随访</button>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -481,7 +502,11 @@
|
|
|
<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}==${ReturnMethod}">
|
|
|
+ <input type="hidden" id="id" name="id" th:value="${bc_id}">
|
|
|
+ <input type="hidden" id="planId_cg" name="planId_cg" th:value="${planId_cg}">
|
|
|
+ <input type="hidden" id="planId_tl" name="planId_tl" th:value="${planId_tl}">
|
|
|
+ <input type="hidden" id="patientId" name="patientId" th:value="${patientId}">
|
|
|
+ <input type="radio" class="form-check-radio" name="returnMethod" id="returnMethod" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${returnMethod}">
|
|
|
</div>
|
|
|
|
|
|
<span class="status"></span>
|
|
@@ -489,10 +514,10 @@
|
|
|
|
|
|
<div id="weixin" class="hidden">
|
|
|
<div class="customize-form-group edit">
|
|
|
- <label class="is-required" for="adverseReactionImage">回访图片:</label>
|
|
|
+ <label class="is-required" for="returnImgUrl">回访图片:</label>
|
|
|
<div class="custom-file-upload">
|
|
|
- <input type="file" id="adverseReactionImage" accept=".jpg,.jpeg,.png,.gif">
|
|
|
- <label for="adverseReactionImage"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#007bff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus-circle"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg></label>
|
|
|
+ <input type="file" id="returnImgUrl" accept=".jpg,.jpeg,.png,.gif">
|
|
|
+ <label for="returnImgUrl"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#007bff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus-circle"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg></label>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -501,14 +526,14 @@
|
|
|
<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="${record}">
|
|
|
+ <input name="InterviewRecord" id="InterviewRecord" placeholder="请输入面访记录" class="styled-input edit_inputs" type="text" th:value="${InterviewRecord}">
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="customize-form-group">
|
|
|
<label>回访对象:</label>
|
|
|
- <select name="ReturnObject" class="select-input edit_inputs" th:with="type=${@dict.getType('sys_select_dtp_ysfw_huifangduixaing')}">
|
|
|
+ <select name="returnObject" class="select-input edit_inputs" id="returnObject" 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}==${ReturnObject}"></option>
|
|
@@ -517,8 +542,8 @@
|
|
|
</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}==${yystatus}" name="yystatus" >
|
|
|
+ <div class="input-groups" th:with="type=${@dict.getType('sys_select_yes_no')}">
|
|
|
+ <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:checked="${dict.dictLabel}==${iscoordinate}" name="iscoordinate" id="iscoordinate">
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
@@ -527,14 +552,14 @@
|
|
|
<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}==${yystatus}" >
|
|
|
+ <input type="radio" class="form-check-radio" name="medicationStatus" id="medicationStatus" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${medicationStatus}" >
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
|
<div class="customize-form-group edit">
|
|
|
<label class="is-required">确诊后首次用药日期:</label>
|
|
|
<div class="input-groups select-time">
|
|
|
- <input name="timeFirstDiagnosis" placeholder="确诊后首次用药日期" class="time-input time-input2" type="text" th:value="${timeFirstDiagnosis}" required>
|
|
|
+ <input name="timeFirstDiagnosis" id="timeFirstDiagnosis" placeholder="确诊后首次用药日期" class="time-input time-input2" type="text" th:value="${timeFirstDiagnosis}" required>
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
@@ -542,7 +567,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}==${chishanyy}" name="chishanyy" >
|
|
|
+ <input type="radio" name="charitable" id="charitable" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${chishanyy}" >
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
@@ -551,21 +576,21 @@
|
|
|
<div class="customize-form-group edit">
|
|
|
<label>永久停药时间:</label>
|
|
|
<div class="input-groups">
|
|
|
- <input name="timeFirstDiagnosis" placeholder="永久停药时间" class="time-input time-input2" type="text" th:value="${timeFirstDiagnosis}" required>
|
|
|
+ <input name="permanentStopTime" id="permanentStopTime" placeholder="永久停药时间" class="time-input time-input2" type="text" th:value="${permanentStopTime}" required>
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
|
<div class="customize-form-group edit">
|
|
|
<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}==${stopyuanyin}" name="stopyuanyin" >
|
|
|
+ <input type="radio" id="perpetual_stopdrug_cause" name="perpetual_stopdrug_cause" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${perpetual_stopdrug_cause}" >
|
|
|
</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}==${stop}" name="stop" >
|
|
|
+ <input type="radio" id="stoped" name="stoped" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${stoped}" >
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
<span class="status"></span>
|
|
@@ -575,7 +600,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}==${othetqd}" name="othetqd" >
|
|
|
+ <input type="radio" id="other_channels" name="other_channels" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${other_channels}">
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
<span class="status"></span>
|
|
@@ -585,7 +610,7 @@
|
|
|
<div class="customize-form-group edit">
|
|
|
<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}==${ycyyysjy}" name="ycyyysjy" >
|
|
|
+ <input type="radio" id="delay_purchase_doctor" name="delay_purchase_doctor" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${delay_purchase_doctor}">
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
@@ -594,7 +619,7 @@
|
|
|
<div class="customize-form-group edit">
|
|
|
<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}==${gyhzyybgf}" name="gyhzyybgf" >
|
|
|
+ <input type="radio" id="delayed_purchase_drugs" name="delayed_purchase_drugs" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${delayed_purchase_drugs}">
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
@@ -604,7 +629,7 @@
|
|
|
<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}" name="blfyyesOrno" id="blfyyesOrno" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${blfyyesOrno}">
|
|
|
+ <input type="radio" class="form-check-radio" th:each="dict : ${type}" name="is_adverse_reaction" id="is_adverse_reaction" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" th:checked="${dict.dictLabel}==${is_adverse_reaction}">
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
@@ -613,7 +638,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="adverse_reaction_time" id="adverse_reaction_time" placeholder="不良反应时间" class="time-input time-input2" type="text" th:value="${adverse_reaction_time}" required>
|
|
|
</div>
|
|
|
<span class="status"></span>
|
|
|
</div>
|
|
@@ -720,6 +745,7 @@
|
|
|
<script th:inline="javascript">
|
|
|
var formSubmitted = true;
|
|
|
var prefix = ctx + "dtp/pmService";
|
|
|
+ var prefix_task = ctx + "task/followTask";
|
|
|
var blfyindex=0;
|
|
|
//购药记录
|
|
|
var recordsData;
|
|
@@ -730,46 +756,76 @@
|
|
|
var listTask1;
|
|
|
var listTask2;
|
|
|
function submitHandler() {
|
|
|
- var selectedValue = $('input[name="huifanffs"]:checked').val();
|
|
|
+ var selectedValue = $('input[name="returnMethod"]:checked').val();
|
|
|
if (!selectedValue) {
|
|
|
- alert('请选择回访方式!');
|
|
|
+ $.modal.alert('请选择回访方式!');
|
|
|
return;
|
|
|
}
|
|
|
- if (selectedValue === '微信' && !$('#adverseReactionImage')[0].files.length) {
|
|
|
- alert('微信回访时,回访图片为必填项!');
|
|
|
+ if (selectedValue === '微信' && !$('#returnImgUrl')[0].files.length) {
|
|
|
+ $.modal.alert('微信回访时,回访图片为必填项!');
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
- if (selectedValue === '面访' && !$('#mfjilu').val()) {
|
|
|
- alert('面访时,面访记录为必填项!');
|
|
|
+ if (selectedValue === '面访' && !$('#InterviewRecord').val()) {
|
|
|
+ $.modal.alert('面访时,面访记录为必填项!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var iscoordinate = $('input[name="iscoordinate"]:checked').val();//是否配合
|
|
|
+ if (!iscoordinate) {
|
|
|
+ $.modal.alert('请选择是否配合!');
|
|
|
return;
|
|
|
}
|
|
|
- if ($.validate.form()) {
|
|
|
- var data = $("#form-followUp-edit").serializeArray();
|
|
|
- $.operate.saveTab(prefix + "/followUpEdit", data);
|
|
|
+ var returnObject = $("#form-followUp-edit3").serializeArray().find(item => item.name === 'returnObject');
|
|
|
+ if (returnObject.value === '') {
|
|
|
+ $.modal.alertWarning("请选择回访对象");
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
- const byfyTableBody = document.getElementById('byfyTableBody');
|
|
|
- const rows2 = byfyTableBody.getElementsByTagName('tr');
|
|
|
+ var data = $("#form-followUp-edit3").serializeArray();
|
|
|
+ var patientId = $("#patientId").val();
|
|
|
+ var id = $("#id").val();
|
|
|
+ console.log("id=",id);
|
|
|
+ var planId = $("#planId_cg").val();
|
|
|
|
|
|
+ // data.push({name:"patientId",value:patientId});
|
|
|
+ // data.push({name:"id",value:id});
|
|
|
+ // data.push({name:"planId",value:planId});
|
|
|
|
|
|
- if (rows2.length > 0) {
|
|
|
- const rowsbyfys = [];//用药情况table
|
|
|
- $('#byfyTableBody tr').each(function () {
|
|
|
- const row = {
|
|
|
- id: $("#id").val(),
|
|
|
- byfyData: $(this).find('td:eq(1)').text(),
|
|
|
- };
|
|
|
- rowsbyfys.push(row);
|
|
|
- });
|
|
|
- data.push({name:"rowsbyfys",value:JSON.stringify(rowsbyfys)})
|
|
|
+ var is_adverse_reaction = $('input[name="is_adverse_reaction"]:checked').val();
|
|
|
+ if (!is_adverse_reaction) {
|
|
|
+ $.modal.alert('请选择不良反应!');
|
|
|
+ return;
|
|
|
}
|
|
|
+ if (is_adverse_reaction === '是') {
|
|
|
+ var adverse_reaction_time = $("#form-followUp-edit3").serializeArray().find(item => item.name === 'adverse_reaction_time');
|
|
|
+ if (adverse_reaction_time.value === '') {
|
|
|
+ $.modal.alertWarning("请选择不良反应时间");
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
+ const blfyTableBody = document.getElementById('blfyTableBody');
|
|
|
+ const rows2 = blfyTableBody.getElementsByTagName('tr');
|
|
|
+ if (rows2.length > 0) {
|
|
|
+ const rowsbyfys = [];//不良反应table
|
|
|
+ $('#blfyTableBody tr').each(function () {
|
|
|
+ const row = {
|
|
|
+ id: $("#id").val(),
|
|
|
+ byfyData: $(this).find('td:eq(1)').text(),
|
|
|
+ };
|
|
|
+ rowsbyfys.push(row);
|
|
|
+ });
|
|
|
+ data.push({name:"adverse_reaction_rows",value:JSON.stringify(rowsbyfys)})
|
|
|
+ }
|
|
|
+ // else{
|
|
|
+ // $.modal.alertWarning("请选择不良反应症状");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ }
|
|
|
|
|
|
+ $.operate.saveTab(prefix_task + "/followTaskEdit", data);
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
- }
|
|
|
function deleteRow(button) {
|
|
|
const row = button.parentNode.parentNode;
|
|
|
row.remove();
|
|
@@ -815,11 +871,11 @@
|
|
|
updateVisibility();
|
|
|
|
|
|
// 监听回访方式的选择变化
|
|
|
- $('input[name="huifanffs"]').on('change', updateVisibility);
|
|
|
+ $('input[name="returnMethod"]').on('change', updateVisibility);
|
|
|
// 监听用药状态的选择变化
|
|
|
- $('input[name="ischixuyystatus"]').on('change', updateVisibility);
|
|
|
+ $('input[name="medicationStatus"]').on('change', updateVisibility);
|
|
|
// 监听不良反应的选择变化
|
|
|
- $('input[name="blfyyesOrno"]').on('change', updateVisibility);
|
|
|
+ $('input[name="is_adverse_reaction"]').on('change', updateVisibility);
|
|
|
|
|
|
// 监听点击事件,激活指定的选项卡
|
|
|
$('#myUlTabs li a').click(function(e) {
|
|
@@ -961,7 +1017,7 @@
|
|
|
var weixinDiv = $('#weixin');
|
|
|
var mianfangDiv = $('#mianfang');
|
|
|
|
|
|
- var selectedValue = $('input[name="huifanffs"]:checked').val();
|
|
|
+ var selectedValue = $('input[name="returnMethod"]:checked').val();
|
|
|
if (selectedValue === '微信') {
|
|
|
weixinDiv.removeClass('hidden');
|
|
|
mianfangDiv.addClass('hidden');
|
|
@@ -973,46 +1029,46 @@
|
|
|
mianfangDiv.removeClass('hidden');
|
|
|
}
|
|
|
|
|
|
- var ischixuyystatus = $('input[name="ischixuyystatus"]:checked').val();
|
|
|
+ var medicationStatus = $('input[name="medicationStatus"]:checked').val();
|
|
|
var csyzyy = $('#csyzyy');//慈善援助用药
|
|
|
var yjty = $('#yjty');//永久停药
|
|
|
var qtgyqgy = $('#qtgyqgy');//其他渠道购药
|
|
|
var ycgyycjy = $('#ycgyycjy');//延迟购药(医嘱建议)
|
|
|
var ycgyhzyybgf = $('#ycgyhzyybgf');//延迟购药(患者用药不规范
|
|
|
debugger
|
|
|
- if (ischixuyystatus === '持续购药') {
|
|
|
+ if (medicationStatus === '持续购药') {
|
|
|
csyzyy.addClass('hidden');
|
|
|
yjty.addClass('hidden');
|
|
|
qtgyqgy.addClass('hidden');
|
|
|
ycgyycjy.addClass('hidden');
|
|
|
ycgyhzyybgf.addClass('hidden');
|
|
|
- } else if (ischixuyystatus === '领取慈善赠药') {
|
|
|
+ } else if (medicationStatus === '领取慈善赠药') {
|
|
|
csyzyy.removeClass('hidden');
|
|
|
yjty.addClass('hidden');
|
|
|
qtgyqgy.addClass('hidden');
|
|
|
ycgyycjy.addClass('hidden');
|
|
|
ycgyhzyybgf.addClass('hidden');
|
|
|
- } else if (ischixuyystatus === '永久停药') {
|
|
|
+ } else if (medicationStatus === '永久停药') {
|
|
|
yjty.removeClass('hidden');
|
|
|
csyzyy.addClass('hidden');
|
|
|
qtgyqgy.addClass('hidden');
|
|
|
ycgyycjy.addClass('hidden');
|
|
|
ycgyhzyybgf.addClass('hidden');
|
|
|
- }else if (ischixuyystatus === '其他渠道购药') {
|
|
|
+ }else if (medicationStatus === '其他渠道购药') {
|
|
|
qtgyqgy.removeClass('hidden');
|
|
|
yjty.addClass('hidden');
|
|
|
csyzyy.addClass('hidden');
|
|
|
ycgyycjy.addClass('hidden');
|
|
|
ycgyhzyybgf.addClass('hidden');
|
|
|
}
|
|
|
- else if (ischixuyystatus === '延迟用药(医嘱建议)') {
|
|
|
+ else if (medicationStatus === '延迟用药(医嘱建议)') {
|
|
|
ycgyycjy.removeClass('hidden');
|
|
|
qtgyqgy.addClass('hidden');
|
|
|
yjty.addClass('hidden');
|
|
|
csyzyy.addClass('hidden');
|
|
|
ycgyhzyybgf.addClass('hidden');
|
|
|
}
|
|
|
- else if (ischixuyystatus === '延迟购药 (患者用药不规范)') {
|
|
|
+ else if (medicationStatus === '延迟购药 (患者用药不规范)') {
|
|
|
ycgyhzyybgf.removeClass('hidden');
|
|
|
qtgyqgy.addClass('hidden');
|
|
|
yjty.addClass('hidden');
|
|
@@ -1022,11 +1078,11 @@
|
|
|
|
|
|
//是否出现不良反应
|
|
|
var bulfydiv = $('#bulfydiv');
|
|
|
- var blfyyesOrno = $('input[name="blfyyesOrno"]:checked').val();
|
|
|
- if (blfyyesOrno === '是') {
|
|
|
+ var is_adverse_reaction = $('input[name="is_adverse_reaction"]:checked').val();
|
|
|
+ if (is_adverse_reaction === '是') {
|
|
|
bulfydiv.removeClass('hidden');
|
|
|
}
|
|
|
- if (blfyyesOrno === '否') {
|
|
|
+ if (is_adverse_reaction === '否') {
|
|
|
bulfydiv.addClass('hidden');
|
|
|
}
|
|
|
}
|
|
@@ -1145,12 +1201,17 @@
|
|
|
align: 'center',
|
|
|
width: '180px',
|
|
|
formatter: function(value, row, index) {
|
|
|
- if (row.id) {
|
|
|
+ if (row.id && !['已取消', '已完成'].includes(row.taskStatus)) {
|
|
|
+ var actions = [];
|
|
|
+ actions.push('<a class="btn-xs" href="javascript:void(0)" onclick="edit(\'' + row.id + '\')">查看</a> ');
|
|
|
+ actions.push('<a class="btn-xs" href="javascript:void(0)" onclick="closeTask(\'' + row.id + '\')">关闭任务</a> ');
|
|
|
+ return actions.join('');
|
|
|
+ }
|
|
|
+ if (row.id && ['已取消', '已完成'].includes(row.taskStatus)) {
|
|
|
var actions = [];
|
|
|
actions.push('<a class="btn-xs" href="javascript:void(0)" onclick="edit(\'' + row.id + '\')">查看</a> ');
|
|
|
- actions.push('<a class="btn-xs" href="javascript:void(0)" onclick="edit(\'' + row.id + '\')">关闭任务</a> ');
|
|
|
return actions.join('');
|
|
|
- } else {
|
|
|
+ }else {
|
|
|
return "";
|
|
|
}
|
|
|
}
|
|
@@ -1188,12 +1249,17 @@
|
|
|
align: 'center',
|
|
|
width: '180px',
|
|
|
formatter: function(value, row, index) {
|
|
|
- if (row.id) {
|
|
|
+ if (row.id && !['已取消', '已完成'].includes(row.taskStatus)) {
|
|
|
+ var actions = [];
|
|
|
+ actions.push('<a class="btn-xs" href="javascript:void(0)" onclick="edit(\'' + row.id + '\')">查看</a> ');
|
|
|
+ actions.push('<a class="btn-xs" href="javascript:void(0)" onclick="closeTask(\'' + row.id + '\')">关闭任务</a> ');
|
|
|
+ return actions.join('');
|
|
|
+ }
|
|
|
+ if (row.id && ['已取消', '已完成'].includes(row.taskStatus)) {
|
|
|
var actions = [];
|
|
|
actions.push('<a class="btn-xs" href="javascript:void(0)" onclick="edit(\'' + row.id + '\')">查看</a> ');
|
|
|
- actions.push('<a class="btn-xs" href="javascript:void(0)" onclick="edit(\'' + row.id + '\')">关闭任务</a> ');
|
|
|
return actions.join('');
|
|
|
- } else {
|
|
|
+ }else {
|
|
|
return "";
|
|
|
}
|
|
|
}
|
|
@@ -1210,4 +1276,60 @@
|
|
|
var prefix = ctx + "dtp/pmService/archivesEdit/{id}";
|
|
|
$.modal.openTab("修改档案", prefix.replace("{id}", id));
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ // 关闭计划
|
|
|
+ function closePlan(planFlag){
|
|
|
+ $.modal.confirm("确认要关闭计划吗?,关闭计划后将停止该计划下的所有任务", function() {
|
|
|
+ $.modal.alert("确认");
|
|
|
+ });
|
|
|
+
|
|
|
+ var formData = new FormData();
|
|
|
+ if(planFlag==1){
|
|
|
+ var taskId = $("#id").val();
|
|
|
+ var id = $("#planId_cg").val();
|
|
|
+ }
|
|
|
+ if(planFlag==2){
|
|
|
+ var taskId = $("#id").val();
|
|
|
+ var id = $("#planId_tl").val();
|
|
|
+ }
|
|
|
+
|
|
|
+ formData.append('taskId', taskId);
|
|
|
+ formData.append('id', id);
|
|
|
+ $.ajax({
|
|
|
+ url: prefix_task + "/closePlan",
|
|
|
+ data: formData,
|
|
|
+ type: "post",
|
|
|
+ processData: false,
|
|
|
+ contentType: false,
|
|
|
+ success: function(result) {
|
|
|
+ $.modal.success("关闭计划成功",result);
|
|
|
+ },
|
|
|
+ error: function(xhr, status, error) {
|
|
|
+ $.modal.alertError("关闭计划失败");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ // 关闭任务
|
|
|
+ function closeTask(id){
|
|
|
+ $.modal.confirm("确认要关闭任务吗?,关闭任务后将停止该任务的随访操作", function() {
|
|
|
+ $.modal.alert("确认");
|
|
|
+ });
|
|
|
+ var formData = new FormData();
|
|
|
+ formData.append('id', id);
|
|
|
+ $.ajax({
|
|
|
+ url: prefix_task + "/closeTask",
|
|
|
+ data: formData,
|
|
|
+ type: "post",
|
|
|
+ processData: false,
|
|
|
+ contentType: false,
|
|
|
+ success: function(result) {
|
|
|
+ $.modal.success("关闭任务成功",result);
|
|
|
+ },
|
|
|
+ error: function(xhr, status, error) {
|
|
|
+ $.modal.alertError("关闭任务失败");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
</script>
|