From eef0168f78d81a6eb8856976c3e04cc1046c32df Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 16 一月 2025 10:38:29 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/propaganda/QuestionnaireTask.vue | 50 ++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 40 insertions(+), 10 deletions(-) diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue index 7683230..1576ef2 100644 --- a/src/views/patient/propaganda/QuestionnaireTask.vue +++ b/src/views/patient/propaganda/QuestionnaireTask.vue @@ -651,7 +651,7 @@ </el-select> </el-form-item ></el-col> </el-row> - <el-row> + <!-- <el-row> <el-col :span="20" ><el-form-item label="閫傜敤鐥呭尯" prop="region"> <el-select @@ -672,7 +672,7 @@ </el-option> </el-select> </el-form-item ></el-col> - </el-row> + </el-row> --> <div class="xinz-infs"> <el-form-item> @@ -872,7 +872,7 @@ import { messagelistpatient } from "@/api/patient/homepage"; import store from "@/store"; import { - getTaskpatient, + getTaskpatientQC, getlibrarylist, getFollowuplist, getQtemplatelist, @@ -998,6 +998,8 @@ pageNum: 1, // pageSize: 10, topica: 1, //0鍏ㄩ儴1绉戝2鐥呭尯 + leavehospitaldistrictcodes:[], + leaveldeptcodes:[], }, topicoptions: [{ children: [{ children: [] }] }], showSearch: true, // @@ -1070,7 +1072,7 @@ templatename: "", templateid: null, libtemplateid: null, - kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄禉涓尰澶т簩闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瑙傜湅杩欎唤瀹f暀璧勮銆�", + kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄櫙瀹佷汉姘戝尰闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瑙傜湅杩欎唤瀹f暀璧勮銆�", jsy: "璇锋偍娉ㄦ剰浼戞伅鍜岃惀鍏伙紝鐢熸椿涓婅鍔抽�哥粨鍚堬紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈瀹f暀鍐呭灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒", }, taskoptions: [ @@ -1163,6 +1165,12 @@ sendType: [ { required: true, message: "鍙戦�佽缃笉鑳戒负绌�", trigger: "blur" }, ], + deptcode: [ + { required: true, message: "閫傜敤绉戝涓嶈兘涓虹┖", trigger: "blur" }, + ], + // leavehospitaldistrictcode: [ + // { required: true, message: "閫傜敤鐥呭尯涓嶈兘涓虹┖", trigger: "blur" }, + // ], }, // 绉戝闄㈠尯鏌ヨ鍏ュ弬 queryParamsdept: { @@ -1249,6 +1257,10 @@ label: "绾歌川", }, { + value: "4", + label: "鐭俊", + }, + { value: "5", label: "寰俊鍏紬鍙�", }, @@ -1263,6 +1275,7 @@ { value: "4", label: "鐭俊", + }, { value: "5", @@ -1295,6 +1308,7 @@ { value: "4", label: "鐭俊", + }, { value: "5", @@ -1305,7 +1319,7 @@ label: "寰俊灏忕▼搴�", }, ]; - } else if (this.form.serviceType == 2 || this.form.serviceType == 3) { + } else if (this.form.serviceType == 2 || this.form.serviceType == 3|| this.form.serviceType == 5|| this.form.serviceType == 4) { this.checkboxlist = [ { value: "1", @@ -1318,6 +1332,7 @@ { value: "4", label: "鐭俊", + }, { value: "5", @@ -1436,7 +1451,9 @@ this.objyl.isoperation = 1; } this.objyl.taskid = data.taskId; - this.objyl.sendDay='5', + if (!this.objyl.sendDay) { + this.objyl.sendDay='5'; + } TaskQuestioncomit(this.objyl).then((response) => { this.previewtf = false; this.form.libtemplateid = this.objyl.svyid; @@ -1609,7 +1626,7 @@ this.patientqueryParams.leavehospitaldistrictcodes = store.getters.belongWards.map((obj) => obj.districtCode); } - getTaskpatient(this.patientqueryParams).then((response) => { + getTaskpatientQC(this.patientqueryParams).then((response) => { this.patientuserList = response.rows; this.patientuserList.forEach((item) => { if (item.endtime) { @@ -1679,7 +1696,11 @@ let indexa = this.overallCase.indexOf(row); let indexb = this.form.patTaskRelevances.indexOf(row); this.overallCase.splice(indexa, 1); - this.form.patTaskRelevances[indexb].isoperation = 3; + if (!this.form.taskid) { + this.form.patTaskRelevances.splice(indexa, 1); + } else { + this.form.patTaskRelevances[indexb].isoperation = 3; + } this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); }); }, @@ -1697,6 +1718,13 @@ store.getters.leavehospitaldistrictcodes; this.patientqueryParams.leaveldeptcodes = null; } + console.log(this.patientqueryParams.leavehospitaldistrictcodes); + console.log(this.patientqueryParams.leaveldeptcodes); + + if (!this.patientqueryParams.leavehospitaldistrictcodes||!this.patientqueryParams.leavehospitaldistrictcodes[0]) + this.patientqueryParams.leavehospitaldistrictcodes = null; + if (!this.patientqueryParams.leaveldeptcodes||!this.patientqueryParams.leaveldeptcodes[0]) + this.patientqueryParams.leaveldeptcodes = null; this.handleAddpatient(); }, resetQuery() {}, @@ -1730,7 +1758,7 @@ templatename: "", templateid: null, libtemplateid: null, - kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄禉涓尰澶т簩闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�", + kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄櫙瀹佷汉姘戝尰闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�", jsy: "璇锋偍娉ㄦ剰浼戞伅鍜岃惀鍏伙紝鐢熸椿涓婅鍔抽�哥粨鍚堬紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈鍥炶灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒", }; @@ -1918,7 +1946,9 @@ this.objyl.isoperation = 1; console.log(this.objyl.id); - this.objyl.sendDay='5'; + if (!this.objyl.sendDay) { + this.objyl.sendDay='5'; + } if (this.objyl.id) { deleteTaskQuestioncomit(this.objyl.id).then((res) => { -- Gitblit v1.9.3