From 7bd7dcae93299c40b3fde4b08e3dc5a51a8d603f Mon Sep 17 00:00:00 2001 From: WXL (wul) <wl_5969728@163.com> Date: 星期一, 20 十月 2025 19:30:42 +0800 Subject: [PATCH] 景宁电话接入 --- src/views/patient/propaganda/QuestionnaireTask.vue | 75 ++++++++++++++++++++++++++++++++++--- 1 files changed, 68 insertions(+), 7 deletions(-) diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue index 9f5f112..f9d9d08 100644 --- a/src/views/patient/propaganda/QuestionnaireTask.vue +++ b/src/views/patient/propaganda/QuestionnaireTask.vue @@ -69,7 +69,7 @@ placeholder="璇疯緭鍏ヤ换鍔℃弿杩�" /> </el-form-item> - <el-form-item label="鏈嶅姟褰㈠紡"> + <!-- <el-form-item label="鏈嶅姟褰㈠紡"> <el-radio-group v-model="checkList"> <el-radio v-for="(item, index) in checkboxlist" @@ -79,6 +79,16 @@ {{ item.label }}</el-radio > </el-radio-group> + </el-form-item> --> + <el-form-item label="鏈嶅姟褰㈠紡"> + <SortCheckbox + v-model="checkList" + :options="checkboxlist" + :initialselectedOrder="selectedOrder" + value-key="value" + label-key="label" + @change="checkSelectionChange" + /> </el-form-item> <el-form-item label="鎵ц鍛ㄦ湡" prop="longTask"> <el-radio-group v-model="form.longTask"> @@ -916,6 +926,8 @@ } from "@/api/AiCentre/index"; import OptionalForm from "@/components/OptionalForm"; //鐤剧梾娣诲姞缁勪欢 import SFtable from "@/components/SFtable"; //琛ㄦ牸缁勪欢 +import SortCheckbox from "@/components/SortCheckbox"; //琛ㄦ牸缁勪欢 + import { MessageBox } from "element-ui"; export default { @@ -1029,6 +1041,7 @@ pageSize: 10, }, checkList: "", + selectedOrder: [], deliverytopqueryParams: { pageNum: 1, // pageSize: 10, @@ -1195,7 +1208,7 @@ serviceType: null, }; }, - components: { SFtable, OptionalForm }, + components: { SFtable, OptionalForm, SortCheckbox }, created() { this.appraiselist = store.getters.appraiselist; @@ -1436,7 +1449,8 @@ this.leavehospitaldistrictcodes = []; } if (this.checkList) { - this.form.preachform = this.checkList; + this.form.preachform = this.checkList.join(","); + this.form.preachformList = this.selectedOrder; } else { this.$modal.msgError("璇烽�夋嫨鏈嶅姟绫诲瀷"); return; @@ -1449,7 +1463,8 @@ this.leavehospitaldistrictcodes[0] || this.diagglist[0] || this.operationcodes[0] || - this.form.longTask == 2 + this.form.longTask == 2 || + this.serviceType == 14 ) { } else { this.$modal.msgError("璇烽�夋嫨浠诲姟鍏宠仈鏉′欢"); @@ -1568,6 +1583,27 @@ } }); }, + checkSelectionChange(selectedValues, selectedOrder) { + this.selectedOrder = selectedValues; + console.log("褰撳墠閫変腑:", selectedValues); + console.log("閫変腑椤哄簭:", selectedOrder); + }, + // 鏈嶅姟褰㈠紡閫夊彇 + handleCheckedCitiesChange(row) { + console.log(row, "鏈嶅姟"); + this.foncheckList = this.checkboxlist.filter((obj) => + row.includes(obj.value) + ); + }, + // 鏈嶅姟褰㈠紡鍒犻櫎 + handleClosetag(tag) { + console.log(tag, "tag"); + console.log(this.foncheckList, "foncheckList"); + this.checkList = this.checkList.filter((item) => item != tag.value); + this.foncheckList = this.foncheckList.filter( + (obj) => obj.value !== tag.value + ); + }, getillness(id) { if (id) { getillness({ outid: id, type: 5 }).then((res) => { @@ -1678,6 +1714,20 @@ { label: "绉戝", width: "180", prop: "dept" }, { label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" }, ]; + } else if (this.patientqueryParams.allhosp == 2) { + this.tableLabelhz = [ + { label: "灏辫瘖鏃ユ湡", width: "150", prop: "admitdate" }, + { label: "鎮h��", width: "", prop: "name" }, + { label: "韬唤璇�", width: "200", prop: "idcardno" }, + { label: "鐢佃瘽鍙风爜", width: "180", prop: "telcode" }, + { 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; @@ -1733,6 +1783,13 @@ item.sfzh = item.idcardno; if (this.patientqueryParams.allhosp == 6) { item.patfrom = 1; + } + if (this.patientqueryParams.allhosp == 1) { + item.visittime = item.endtime; + } else if (this.patientqueryParams.allhosp == 4) { + item.visittime = item.starttime; + } else if (this.patientqueryParams.allhosp == 2) { + item.visittime = item.admitdate; } this.overallCase.push(item); this.form.patTaskRelevances.push(item); @@ -1904,8 +1961,8 @@ ? this.form.patTaskRelevances : []; this.overallCase = this.form.patTaskRelevances.concat(); - this.checkList = this.form.preachform; - + this.checkList = this.form.preachform.split(","); + this.selectedOrder = this.form.preachformList; this.overallCase.forEach((item) => { if (item.endtime) { item.endDay = this.daysBetween(item.endtime); @@ -2231,9 +2288,13 @@ this.objyl.isoperation = 1; this.objyl.svyTaskTemplateScriptVOS = this.objyl.svyTemplateLibScripts; + this.objyl.svyTaskTemplateScriptVOS.forEach((item) => { + item.svyTaskTemplateTargetoptions = + item.svyLibTemplateTargetoptions; + }); this.form.svyTaskTemplateVO = this.objyl; this.form.templatename = this.objyl.svyname; - this.$modal.msgSuccess("鏆傚瓨鎴愬姛淇濆瓨浠诲姟鍚庢ā鏉垮け鏁�"); + this.$modal.msgSuccess("鏆傚瓨鎴愬姛淇濆瓨浠诲姟鍚庢ā鏉跨敓鏁�"); this.drawermb = false; this.previewtf = false; }) -- Gitblit v1.9.3