From 8c79267eb478e2986c5293d3fb48f1c3da18c544 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期五, 17 一月 2025 15:55:32 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/propaganda/QuestionnaireTask.vue | 100 ++++++++++++++++++++++++++++++++++++------------- 1 files changed, 73 insertions(+), 27 deletions(-) diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue index ed13b14..f8220ea 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 > @@ -414,13 +413,13 @@ :controlxz="false" :typeinfo="2" /> - <pagination + <!-- <pagination v-show="total > 0" :total="total" :page.sync="topqueryParams.pageNum" :limit.sync="topqueryParams.pageSize" @pagination="getList" - /> + /> --> </el-row> </div> </div> @@ -495,16 +494,15 @@ @handleSelectionChange="handleSelectionChange" :currentList="patientuserList" :tableLabel="tableLabelhz" + :heights="600" :serialnumber="false" :center="false" :typeinfo="3" /> </el-row> <pagination - v-show="patienttotal > 0" + v-show="patienttotal > 0&&this.patientqueryParams.allhosp != 6" :total="patienttotal" - :page.sync="patientqueryParams.pageNum" - :limit.sync="patientqueryParams.pageSize" @pagination="handleAddpatient" /> </div> @@ -873,9 +871,9 @@ import { messagelistpatient } from "@/api/patient/homepage"; import store from "@/store"; import { - getTaskpatient, + getTaskpatientQC, getlibrarylist, - getFollowuplist, + Externallist, getQtemplatelist, getQtemplateobj, TaskQuestioncomit, @@ -999,8 +997,8 @@ pageNum: 1, // pageSize: 10, topica: 1, //0鍏ㄩ儴1绉戝2鐥呭尯 - leavehospitaldistrictcodes:[], - leaveldeptcodes:[], + leavehospitaldistrictcodes: [], + leaveldeptcodes: [], }, topicoptions: [{ children: [{ children: [] }] }], showSearch: true, // @@ -1073,7 +1071,7 @@ templatename: "", templateid: null, libtemplateid: null, - kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄棤閿″効绔ュ尰闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瑙傜湅杩欎唤瀹f暀璧勮銆�", + kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄禉涓尰澶т簩闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瑙傜湅杩欎唤瀹f暀璧勮銆�", jsy: "璇锋偍娉ㄦ剰浼戞伅鍜岃惀鍏伙紝鐢熸椿涓婅鍔抽�哥粨鍚堬紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈瀹f暀鍐呭灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒", }, taskoptions: [ @@ -1092,6 +1090,10 @@ { value: "3", label: "浣撴鐥呬汉", + }, + { + value: "6", + label: "闄㈠鎮h��", }, ], source: [ @@ -1136,7 +1138,11 @@ }, { value: 7, - label: "鎮h�呮姤鍛�", + label: "鎮h�呮棩甯告姤鍛�", + }, + { + value: 9, + label: "鎮h�呭紓甯告姤鍛�", }, { @@ -1260,7 +1266,6 @@ { value: "4", label: "鐭俊", - disabled:true, }, { value: "5", @@ -1277,7 +1282,6 @@ { value: "4", label: "鐭俊", - disabled:true, }, { value: "5", @@ -1293,7 +1297,7 @@ label: "鏅鸿兘鏈哄櫒浜�", }, ]; - } else if (this.form.serviceType == 7) { + } else if (this.form.serviceType == 7 || this.form.serviceType == 9) { this.checkboxlist = [ { value: "1", @@ -1310,7 +1314,6 @@ { value: "4", label: "鐭俊", - disabled:true, }, { value: "5", @@ -1321,7 +1324,12 @@ label: "寰俊灏忕▼搴�", }, ]; - } else if (this.form.serviceType == 2 || this.form.serviceType == 3|| this.form.serviceType == 5|| this.form.serviceType == 4) { + } else if ( + this.form.serviceType == 2 || + this.form.serviceType == 3 || + this.form.serviceType == 5 || + this.form.serviceType == 4 + ) { this.checkboxlist = [ { value: "1", @@ -1334,7 +1342,6 @@ { value: "4", label: "鐭俊", - disabled:true, }, { value: "5", @@ -1427,6 +1434,8 @@ if (this.form.longTask && this.form.preachform == 6) { this.form.patCycle = 1; } + // + this.form.labelinfo = 1; Editsingletask(this.form).then((res) => { if (res.code == 200) { if (this.form.taskid) { @@ -1454,8 +1463,8 @@ } this.objyl.taskid = data.taskId; if (!this.objyl.sendDay) { - this.objyl.sendDay='5'; - } + this.objyl.sendDay = "5"; + } TaskQuestioncomit(this.objyl).then((response) => { this.previewtf = false; this.form.libtemplateid = this.objyl.svyid; @@ -1628,7 +1637,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) { @@ -1708,6 +1717,15 @@ }, getList() {}, handleQuery() { + // 鑾峰彇澶栭儴鎮h�� + console.log(this.patientqueryParams.allhosp, "aaalll"); + + if (this.patientqueryParams.allhosp == 6) { + this.Externallist(); + console.log(); + + return; + } if (this.patientqueryParams.topica == 0) { this.patientqueryParams.leavehospitaldistrictcodes = store.getters.leavehospitaldistrictcodes; @@ -1720,15 +1738,43 @@ 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]) + if ( + !this.patientqueryParams.leavehospitaldistrictcodes || + !this.patientqueryParams.leavehospitaldistrictcodes[0] + ) this.patientqueryParams.leavehospitaldistrictcodes = null; - if (!this.patientqueryParams.leaveldeptcodes||!this.patientqueryParams.leaveldeptcodes[0]) + if ( + !this.patientqueryParams.leaveldeptcodes || + !this.patientqueryParams.leaveldeptcodes[0] + ) this.patientqueryParams.leaveldeptcodes = null; this.handleAddpatient(); }, + // 鑾峰彇澶栭儴鎮h�呭鍏ュ垪琛� + Externallist() { + this.tableLabelhz = [ + { label: "鎮h��", width: "", prop: "name" }, + { label: "韬唤璇�", width: "200", prop: "idcardno" }, + { label: "鎬у埆", width: "", prop: "sex" }, + { label: "骞撮緞", width: "", prop: "age" }, + { label: "鍑洪櫌澶╂暟", width: "", prop: "endDay" }, + ]; + this.patientqueryParams.pageSize = 1000; + + Externallist(this.patientqueryParams).then((response) => { + this.patientuserList = response.rows; + this.patientuserList.forEach((item) => { + if (item.endtime) { + item.endDay = this.daysBetween(item.endtime); + } + }); + this.dialogVisiblepatient = true; + this.patienttotal = response.total; + this.loading = false; + }); + }, + resetQuery() {}, handleQuerymb() { getQtemplatelist(this.topqueryParams).then((response) => { @@ -1760,7 +1806,7 @@ templatename: "", templateid: null, libtemplateid: null, - kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄棤閿″効绔ュ尰闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�", + kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄禉涓尰澶т簩闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�", jsy: "璇锋偍娉ㄦ剰浼戞伅鍜岃惀鍏伙紝鐢熸椿涓婅鍔抽�哥粨鍚堬紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈鍥炶灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒", }; @@ -1949,7 +1995,7 @@ this.objyl.isoperation = 1; console.log(this.objyl.id); if (!this.objyl.sendDay) { - this.objyl.sendDay='5'; + this.objyl.sendDay = "5"; } if (this.objyl.id) { -- Gitblit v1.9.3