From b1d81d016019a2c59e445dd6752c9134e184c8c4 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 31 十二月 2024 14:16:31 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/propaganda/QuestionnaireTask.vue | 56 ++++++++++++++++++++++++++++++++++---------------------- 1 files changed, 34 insertions(+), 22 deletions(-) diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue index a6254b2..7683230 100644 --- a/src/views/patient/propaganda/QuestionnaireTask.vue +++ b/src/views/patient/propaganda/QuestionnaireTask.vue @@ -1252,8 +1252,7 @@ value: "5", label: "寰俊鍏紬鍙�", }, - { label: "寰俊灏忕▼搴�", value: 6 }, - + { label: "寰俊灏忕▼搴�", value: 6 }, ]; } else if (this.form.serviceType == 6) { this.checkboxlist = [ @@ -1362,6 +1361,7 @@ xh: 1, }, ]; + if (this.checkList[0]) { this.form.preachform = this.checkList.join(","); } else { @@ -1404,6 +1404,12 @@ this.form.leavehospitaldistrictcodes = store.getters.belongWards.map( (obj) => obj.districtCode ); + console.log(this.form.longTask); + console.log(this.form.preachform); + + if (this.form.longTask && this.form.preachform == 6) { + this.form.patCycle = 1; + } Editsingletask(this.form).then((res) => { if (res.code == 200) { if (this.form.taskid) { @@ -1425,11 +1431,12 @@ if (res.code == 200) { this.objyl = res.data; if (this.objyl.taskid == data.taskId) { - this.objyl.isoperation = 2; - }else{ - this.objyl.isoperation = 1; + this.objyl.isoperation = 2; + } else { + this.objyl.isoperation = 1; } this.objyl.taskid = data.taskId; + this.objyl.sendDay='5', TaskQuestioncomit(this.objyl).then((response) => { this.previewtf = false; this.form.libtemplateid = this.objyl.svyid; @@ -1540,7 +1547,11 @@ this.overallCase.forEach((item) => { this.allpids.push(item.patid); }); - if (this.patientqueryParams.allhosp == 1||(this.patientqueryParams.allhosp == 1&&this.patientqueryParams.cry == 1)) { + if ( + this.patientqueryParams.allhosp == 1 || + (this.patientqueryParams.allhosp == 1 && + this.patientqueryParams.cry == 1) + ) { this.tableLabelhz = [ // { label: "鍏ラ櫌鏃ユ湡", width: "170", prop: "starttime" }, { label: "鍑洪櫌鏃ユ湡", width: "150", prop: "endtime" }, @@ -1556,7 +1567,7 @@ ]; } else if (this.patientqueryParams.allhosp == 4) { this.tableLabelhz = [ - { label: "鍏ラ櫌鏃ユ湡", width: "150", prop: "starttime" }, + { label: "鍏ラ櫌鏃ユ湡", width: "150", prop: "starttime" }, { label: "鎮h��", width: "", prop: "name" }, { label: "韬唤璇�", width: "200", prop: "idcardno" }, { label: "鎬у埆", width: "", prop: "sex" }, @@ -1578,7 +1589,7 @@ this.patientqueryParams.cry = 1; } else if (this.patientqueryParams.allhosp == 4) { this.patientqueryParams.cry = 0; - this.patientqueryParams.allhosp = '1'; + this.patientqueryParams.allhosp = "1"; } // 鏉ユ簮鍒ゆ柇 @@ -1760,25 +1771,25 @@ this.$modal.msgError(res.code); } - if (this.newadd) { - this.neWaddfn(); - } + if (this.newadd) { + this.neWaddfn(); + } }); } }, // 渚濈収鏂板鏃跺鐞� - neWaddfn(){ - this.id=null; - this.form.taskName=''; + neWaddfn() { + this.id = null; + this.form.taskName = ""; this.form.taskid = null; - this.overallCase=[]; - this.form.patTaskRelevances=[]; - this.daytime=[]; //鏃ユ湡 - this.applydaytime=[]; //璁$畻鏃ユ湡 - this.time1=""; //涓婂崍鏃堕棿娈� - this.time2=""; //涓嬪崍鏃堕棿娈� - this.time3=""; //鏅氫笂鏃堕棿娈� - this.time4=""; //鏅氫笂鏃堕棿娈� + this.overallCase = []; + this.form.patTaskRelevances = []; + this.daytime = []; //鏃ユ湡 + this.applydaytime = []; //璁$畻鏃ユ湡 + this.time1 = ""; //涓婂崍鏃堕棿娈� + this.time2 = ""; //涓嬪崍鏃堕棿娈� + this.time3 = ""; //鏅氫笂鏃堕棿娈� + this.time4 = ""; //鏅氫笂鏃堕棿娈� }, // 鑾峰彇绉戝鍒楄〃 listDept() { @@ -1907,6 +1918,7 @@ this.objyl.isoperation = 1; console.log(this.objyl.id); + this.objyl.sendDay='5'; if (this.objyl.id) { deleteTaskQuestioncomit(this.objyl.id).then((res) => { -- Gitblit v1.9.3