From 1cb1fbf80c955986385377b5f84e8915d1e655d6 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 15 一月 2025 15:04:00 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/propaganda/particty.vue | 176 +++++++++++++++++++++++++++++++++++++++++----------------- 1 files changed, 125 insertions(+), 51 deletions(-) diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue index a7618ae..6fbf96d 100644 --- a/src/views/patient/propaganda/particty.vue +++ b/src/views/patient/propaganda/particty.vue @@ -218,7 +218,7 @@ class="ruleFormaa" v-for="item in belongDepts" :key="item.deptCode" - :label="item.deptName" + :label="item.label" :value="item.deptCode" > </el-option> @@ -297,6 +297,10 @@ placeholder="璇风偣鍑诲彸渚ч�夋嫨" /> <el-button + v-if=" + (form.templateid && form.sendState == 1) || + !form.templateid + " style="margin-left: 10px" type="primary" icon="el-icon-edit" @@ -308,7 +312,7 @@ v-if="form.templatename" type="success" icon="el-icon-search" - @click="previewfnmb" + @click="previewfnmb()" circle ></el-button> </el-form-item> @@ -394,36 +398,15 @@ </el-col> <el-col :span="1.5"> - <div v-if="form.longTask"> - <el-tooltip - - class="item" - effect="dark" - content="闀挎湡浠诲姟涓嶆敮鎸佹墜鍔ㄦ坊鍔犳偅鑰咃紒" - placement="top-start" - > - <el-button - type="primary" - plain - disabled - icon="el-icon-plus" - size="medium" - @click="handleQuery" - >鏂板</el-button - > - </el-tooltip> - </div> - <div v-else> - <el-button - type="primary" - plain - icon="el-icon-plus" - size="medium" - :disabled="!patientqueryParams.allhosp" - @click="handleQuery" - >鏂板</el-button - > - </div> + <el-button + type="primary" + plain + icon="el-icon-plus" + size="medium" + :disabled="!patientqueryParams.allhosp" + @click="handleQuery" + >鏂板</el-button + > </el-col> <!-- <el-col :span="1.5"> @@ -674,7 +657,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 @@ -683,7 +666,7 @@ size="medium" multiple filterable - placeholder="璇烽�夋嫨绉戝" + placeholder="璇烽�夋嫨鐥呭尯" > <el-option class="ruleFormaa" @@ -695,7 +678,7 @@ </el-option> </el-select> </el-form-item ></el-col> - </el-row> + </el-row> --> <div class="xinz-infs"> <el-form-item> @@ -815,8 +798,18 @@ <span slot="footer" class="dialog-footer"> <!-- <el-button @click="previewGo">淇濆瓨妯℃澘璇︽儏淇敼</el-button> --> - <el-button type="primary" @click="Departmenttreatment" - >淇濆瓨浣跨敤</el-button + <el-button + v-if="(form.templateid && form.sendState == 1) || !form.templateid" + type="primary" + @click="Departmenttreatment" + >{{ form.templateid ? "鏇挎崲浣跨敤" : "閫夋嫨浣跨敤" }}</el-button + > + <el-button + :type="previewtftype ? 'success' : 'warning'" + @click="Modifytemplate" + >{{ + previewtftype ? "鍓嶅線淇敼宸查�夋嫨妯℃澘" : "鏂板淇濆瓨骞跺墠寰�淇敼" + }}</el-button > </span> </el-dialog> @@ -915,11 +908,10 @@ } from "@/api/AiCentre/index"; import { deptTreeSelect } from "@/api/system/user"; - import SFtable from "@/components/SFtable"; //琛ㄦ牸缁勪欢 export default { - name: "ServiceDetails", + name: "Particty", data() { return { title: "瀹f暀鍐呭鍒楄〃", @@ -939,6 +931,7 @@ Editprogress: 1, //缂栬緫杩涘害 drawermb: false, //閫夋嫨妯℃澘寮圭獥 previewtf: false, //棰勮 + previewtftype: 0, //棰勮鎯呭喌0鏂版ā鏉块瑙�1宸查�夋嫨妯℃澘淇敼 loading: false, // 閬僵灞� patientloading: false, // 閬僵灞� dialogVisiblepatient: false, //娣诲姞鎮h�呭脊妗� @@ -946,6 +939,7 @@ checkboxlist: [], tableLabel: [], questionList: [], + skip: false, usable: [ { value: "0", label: "鍙敤" }, { value: "1", label: "鍋滅敤" }, @@ -985,7 +979,7 @@ ], tableLabelwj: [ - { label: "鍒涘缓浜�", width: "", prop: "createBy" }, + { label: "鍒涘缓浜�", width: "", prop: "createBy" }, { label: "妯℃澘鏍囬", width: "", prop: "templateName" }, { label: "闅忚鎻忚堪", width: "", prop: "note" }, { label: "淇敼鏃ユ湡", width: "", prop: "updateTime" }, @@ -1035,6 +1029,8 @@ pageNum: 1, // pageSize: 10, topica: 1, //0鍏ㄩ儴1绉戝2鐥呭尯 + leaveldeptcodes: [], + leavehospitaldistrictcodes: [], }, topicoptions: [{ children: [{ children: [] }] }], showSearch: true, // @@ -1180,7 +1176,6 @@ ], // 绉戝/鐥呭尯 belongWards: [], - belongWards: [], deptlist: [], hosplist: [], tempDetpRelevanceslist: [], //绉戝鏁版嵁 @@ -1200,12 +1195,19 @@ sendType: [ { required: true, message: "鍙戦�佽缃笉鑳戒负绌�", trigger: "blur" }, ], + deptcode: [ + { required: true, message: "閫傜敤绉戝涓嶈兘涓虹┖", trigger: "blur" }, + ], + // leavehospitaldistrictcode: [ + // { required: true, message: "閫傜敤鐥呭尯涓嶈兘涓虹┖", trigger: "blur" }, + // ], }, // 绉戝闄㈠尯鏌ヨ鍏ュ弬 queryParamsdept: { tempid: "", type: 2, }, + belongDepts: [], quote: false, serviceType: null, }; @@ -1230,7 +1232,15 @@ this.getFollowupclassify(); }, activated() { + console.log(this.id, "CS", this.$route.query.id); if (this.id != this.$route.query.id) { + this.id = this.$route.query.id; + this.newadd = this.$route.query.newadd; + this.form.type = this.$route.query.type; + this.form.typename = this.$route.query.typename; + this.serviceType = Number(this.$route.query.serviceType); + this.form.serviceType = Number(this.$route.query.serviceType); + this.Acquisitiontype(); this.Getdetails(); this.getDeptTree(); @@ -1239,11 +1249,6 @@ }, methods: { - // { - // 濮撳悕: { "${name}": "榫欏偛澶�" }, - // 鍦板潃: { "${dzz}": "榫欏" }, - // 鐢佃瘽: { "${dhh}": "鍏釜鍏�" }, - // } // 鍙橀噺杞崲瀵硅薄杞暟缁� convertFormat1ToFormat2(data) { let result = []; @@ -1315,6 +1320,11 @@ label: "绾歌川", }, { + value: "4", + label: "鐭俊", + + }, + { value: "5", label: "寰俊鍏紬鍙�", }, @@ -1328,6 +1338,7 @@ { value: "4", label: "鐭俊", + }, { value: "5", @@ -1360,6 +1371,7 @@ { value: "4", label: "鐭俊", + }, { value: "5", @@ -1383,6 +1395,7 @@ { value: "4", label: "鐭俊", + }, { value: "5", @@ -1500,6 +1513,11 @@ this.objyl = res.data; this.objyl.isoperation = 2; this.objyl.taskid = data.taskId; + if (!this.objyl.sendDa) { + this.objyl.sendDay = "5"; + } + console.log(this.objyl.sendDay, "this.objyl.sendDay"); + Taskparticty(this.objyl).then((response) => { this.previewtf = false; this.form.libtemplateid = this.objyl.id; @@ -1524,7 +1542,7 @@ if (res.code == 200) { this.objyl = res.data; if (this.form.longTask) { - this.objyl.longTemp = 1; + this.objyl.sendDay = 5; } this.queryParamsdept.type = 2; this.queryParamsdept.tempid = row.id; @@ -1551,15 +1569,18 @@ this.objyl.suitway = this.objyl.suitway.split(","); this.queryParamsdept.tempid = this.form.templateid; this.queryParamsdept.type = 21; + // 鐤剧梾 this.getillness(this.form.libtemplateid); // 鎵ц鑾峰彇璇ヤ换鍔℃ā鏉縤d this.listDept(); - this.previewtf = true; getvFollowup({ id: this.form.libtemplateid }).then((res) => { if (res.code == 200) { + this.previewtf = true; + this.previewtftype = 1; this.questionList = res.data.ivrLibaTemplateScriptVOList; this.objyl.ivrLibaTemplateScriptVOList = res.data.ivrLibaTemplateScriptVOList; + } else { } }); } @@ -1736,10 +1757,16 @@ this.$modal .confirm('鏄惁纭鍒犻櫎鎮h��"' + row.name + '"鐨勬湇鍔¢」锛�') .then(() => { + console.log(); + 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("鍒犻櫎鎴愬姛"); }); }, @@ -1757,6 +1784,10 @@ store.getters.leavehospitaldistrictcodes; this.patientqueryParams.leaveldeptcodes = null; } + 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() {}, @@ -1841,6 +1872,7 @@ neWaddfn() { this.id = null; this.form.taskName = ""; + this.form.sendState = null; this.form.taskid = null; this.overallCase = []; this.form.patTaskRelevances = []; @@ -1971,7 +2003,10 @@ this.objyl.ivrLibaTemplateScriptVOList; this.objyl.isoperation = 1; if (this.form.id) { - this.objyl.taskid=this.form.id + this.objyl.taskid = this.form.id; + } + if (!this.objyl.sendDay) { + this.objyl.sendDay = "5"; } if (this.form.templateid) { deleteTaskparticty(this.form.templateid).then((res) => { @@ -1982,7 +2017,16 @@ this.form.templateid = response.data; this.putbelongDepts(response.data); this.form.templatename = this.objyl.templateName; - this.$modal.msgSuccess("閫夋嫨妯℃澘鎴愬姛"); + this.$modal.msgSuccess("鏇挎崲妯℃澘鎴愬姛"); + this.drawermb = false; //閫夋嫨妯℃澘寮圭獥 + this.previewtf = false; //棰勮 + if (this.skip) { + // 璺宠浆鍓嶅線淇敼 + this.$router.push({ + path: "/knowledge/taskub/", + query: { id: response.data }, + }); + } }); } }); @@ -1994,6 +2038,15 @@ this.putbelongDepts(response.data); this.form.templatename = this.objyl.templateName; this.$modal.msgSuccess("閫夋嫨妯℃澘鎴愬姛"); + this.drawermb = false; //閫夋嫨妯℃澘寮圭獥 + this.previewtf = false; //棰勮 + if (this.skip) { + // 璺宠浆鍓嶅線淇敼 + this.$router.push({ + path: "/knowledge/taskub/", + query: { id: response.data }, + }); + } }); } }, @@ -2063,6 +2116,27 @@ this.previewFn(); }, 1000); }, + // 鍓嶅線淇敼 + Modifytemplate() { + if (this.form.templateid && this.previewtftype) { + this.$modal.confirm("鏄惁鍓嶅線淇敼浠诲姟妯℃澘璇︾粏鍐呭锛�").then(() => { + this.drawermb = false; //閫夋嫨妯℃澘寮圭獥 + this.previewtf = false; //棰勮 + this.$router.push({ + path: "/knowledge/taskub/", + query: { id: this.form.templateid }, + }); + }); + } else { + this.$modal + .confirm("褰撳墠涓哄熀纭�棰勮鏄惁鍒涘缓浠诲姟妯℃澘骞跺墠寰�淇敼璇︽儏锛�") + .then(() => { + // 璧板彇鍏堢粦瀹氬悗淇敼鎿嶄綔 + this.Departmenttreatment(); + this.skip = true; + }); + } + }, }, }; </script> -- Gitblit v1.9.3