From 080186b670ed6ee1c3149454a1abe44da0085d52 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 16 一月 2025 10:18:32 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/propaganda/QuestionnaireTask.vue | 31 +++++++++++++++++++++---------- 1 files changed, 21 insertions(+), 10 deletions(-) diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue index a5d2b0a..98f113b 100644 --- a/src/views/patient/propaganda/QuestionnaireTask.vue +++ b/src/views/patient/propaganda/QuestionnaireTask.vue @@ -75,7 +75,6 @@ v-for="(item, index) in checkboxlist" :key="index" :label="item.value" - :disabled="!item.disabled" > {{ item.label }}</el-checkbox > @@ -652,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 @@ -673,7 +672,7 @@ </el-option> </el-select> </el-form-item ></el-col> - </el-row> + </el-row> --> <div class="xinz-infs"> <el-form-item> @@ -873,7 +872,7 @@ import { messagelistpatient } from "@/api/patient/homepage"; import store from "@/store"; import { - getTaskpatient, + getTaskpatientQC, getlibrarylist, getFollowuplist, getQtemplatelist, @@ -999,6 +998,8 @@ pageNum: 1, // pageSize: 10, topica: 1, //0鍏ㄩ儴1绉戝2鐥呭尯 + leavehospitaldistrictcodes:[], + leaveldeptcodes:[], }, topicoptions: [{ children: [{ children: [] }] }], showSearch: true, // @@ -1167,9 +1168,9 @@ deptcode: [ { required: true, message: "閫傜敤绉戝涓嶈兘涓虹┖", trigger: "blur" }, ], - leavehospitaldistrictcode: [ - { required: true, message: "閫傜敤鐥呭尯涓嶈兘涓虹┖", trigger: "blur" }, - ], + // leavehospitaldistrictcode: [ + // { required: true, message: "閫傜敤鐥呭尯涓嶈兘涓虹┖", trigger: "blur" }, + // ], }, // 绉戝闄㈠尯鏌ヨ鍏ュ弬 queryParamsdept: { @@ -1258,7 +1259,6 @@ { value: "4", label: "鐭俊", - }, { value: "5", @@ -1626,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) { @@ -1696,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("鍒犻櫎鎴愬姛"); }); }, @@ -1714,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() {}, -- Gitblit v1.9.3