From 80a72af5ffd14dda088a3b81d30084f41708bd1c Mon Sep 17 00:00:00 2001 From: WXL (wul) <wl_5969728@163.com> Date: 星期三, 17 九月 2025 10:17:40 +0800 Subject: [PATCH] 任务派发患者模式更新 --- src/views/followvisit/tasklist/index.vue | 122 +++------------------------------------- 1 files changed, 9 insertions(+), 113 deletions(-) diff --git a/src/views/followvisit/tasklist/index.vue b/src/views/followvisit/tasklist/index.vue index a3f2c46..0709ab4 100644 --- a/src/views/followvisit/tasklist/index.vue +++ b/src/views/followvisit/tasklist/index.vue @@ -255,7 +255,7 @@ <el-button size="medium" type="text" - @click="handleAddpatient(scope.row)" + @click="handleAddpatient(scope.row.taskid, scope.row.type)" ><span class="button-hz" ><i class="el-icon-circle-plus-outline"></i>鏂板鎮h��</span ></el-button @@ -381,9 +381,7 @@ <Patient-Selection ref="Patient" :dialogVisiblepatient="dialogVisiblepatient" - :overallCase="Patientlist" - :tableLabel="tableLabelhz" - @addoption="dialogVisiblepatient = false" + @addoption="addoption" @kkoption="dialogVisiblepatient = true" /> </div> @@ -400,12 +398,7 @@ } from "@/api/system/user"; import { getTasklist, - getTaskInfo, - Editsingletask, delTaskInfo, - Questionnairetasklist, - Questionnairetaskget, - Questionnairetasksponsor, TaskTemplateSendExecution, } from "@/api/AiCentre/index"; import store from "@/store"; @@ -417,7 +410,7 @@ export default { name: "Tasklist", dicts: ["sys_normal_disable", "sys_user_sex", "task_status"], - components: { Treeselect }, + components: { Treeselect, PatientSelection }, data() { return { // 閬僵灞� @@ -1057,110 +1050,13 @@ const item = data.find((item) => item.value === value); return item ? item.label : null; }, - //鎮h�呮坊鍔犵浉鍏� - handleAddpatient(row) { - this.allpids = []; - this.overallCase.forEach((item) => { - this.allpids.push(item.patid); - }); - if (this.patientqueryParams.allhosp == 4) { - this.tableLabelhz = [ - // { label: "鍏ラ櫌鏃ユ湡", width: "170", prop: "starttime" }, - { label: "鍑洪櫌鏃ユ湡", width: "150", prop: "endtime" }, - { label: "鎮h��", width: "", prop: "name" }, - { label: "鎮h�呰瘖鏂�", width: "", prop: "leavediagname" }, - { label: "韬唤璇�", width: "200", prop: "idcardno" }, - { label: "鎬у埆", width: "", prop: "sex" }, - { label: "骞撮緞", width: "", prop: "age" }, - { label: "鍑洪櫌澶╂暟", width: "", prop: "endDay" }, - { label: "璐d换鎶ゅ+", width: "", prop: "nurseName" }, - { label: "鍖荤敓", width: "", prop: "drname" }, - { label: "绉戝", width: "180", prop: "dept" }, - { label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" }, - ]; - } else if (this.patientqueryParams.allhosp == 1) { - this.tableLabelhz = [ - { label: "鍏ラ櫌鏃ユ湡", width: "150", prop: "starttime" }, - { label: "鎮h��", width: "", prop: "name" }, - { label: "鎮h�呰瘖鏂�", width: "", prop: "leavediagname" }, - { label: "韬唤璇�", width: "200", prop: "idcardno" }, - { label: "鎬у埆", width: "", prop: "sex" }, - { label: "骞撮緞", width: "", prop: "age" }, - { label: "鍑洪櫌澶╂暟", width: "", prop: "endDay" }, - { label: "璐d换鎶ゅ+", width: "", prop: "nurseName" }, - { label: "鍖荤敓", width: "", prop: "drname" }, - { label: "绉戝", width: "180", prop: "dept" }, - { label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" }, - ]; - } - if (this.allpids[0]) { - this.patientqueryParams.pids = this.allpids; - } else { - this.patientqueryParams.pids = null; - } - // 鏉ユ簮鍒ゆ柇 - - if (this.patientqueryParams.allhosp == 4) { - this.patientqueryParams.hospitaldistrictcodes = []; - this.patientqueryParams.deptcodes = []; - } else if (this.patientqueryParams.allhosp == 1) { - this.patientqueryParams.deptcodes = - this.patientqueryParams.leaveldeptcodes; - this.patientqueryParams.hospitaldistrictcodes = - this.patientqueryParams.leavehospitaldistrictcodes; - this.patientqueryParams.leavehospitaldistrictcodes = []; - this.patientqueryParams.leaveldeptcodes = []; - } - getTaskpatientQC(this.patientqueryParams).then((response) => { - this.patientuserList = response.rows; - this.patientuserList.forEach((item) => { - if (item.endtime) { - item.endDay = this.daysBetween(item.endtime); - } - }); - this.patienttotal = response.total; - this.loading = false; - this.Restorecheck(); - }); - this.dialogVisiblepatient = true; + handleAddpatient(taskid) { + this.$refs.Patient.handleAddpatient(taskid); + this.dialogVisiblepatient = true; // 鎵嬪姩鎺у埗寮圭獥鏄剧ず }, - // 鏌ヨ - handleQuery() { - // 鑾峰彇澶栭儴鎮h�� - - if (this.patientqueryParams.allhosp == 6) { - this.Externallist(); - console.log(); - - return; - } - if (this.patientqueryParams.searchscope == 1) { - this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map( - (obj) => obj.deptCode - ); - this.patientqueryParams.leavehospitaldistrictcodes = []; - } else if (this.patientqueryParams.searchscope == 2) { - this.patientqueryParams.leavehospitaldistrictcodes = - store.getters.belongWards.map((obj) => obj.districtCode); - this.patientqueryParams.leaveldeptcodes = []; - } else { - this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map( - (obj) => obj.deptCode - ); - this.patientqueryParams.leavehospitaldistrictcodes = - store.getters.belongWards.map((obj) => obj.districtCode); - } - 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(); + addoption() { + this.dialogVisiblepatient = false; // 鎵嬪姩鎺у埗寮圭獥鏄剧ず + this.handleQuery(); }, }, }; -- Gitblit v1.9.3