From ae117f01461f05a0bf249e6f63b636f4222ec8d7 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 23 十二月 2024 17:17:44 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/propaganda/particty.vue | 94 ++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 77 insertions(+), 17 deletions(-) diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue index a7618ae..85af048 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> @@ -396,7 +400,6 @@ <el-col :span="1.5"> <div v-if="form.longTask"> <el-tooltip - class="item" effect="dark" content="闀挎湡浠诲姟涓嶆敮鎸佹墜鍔ㄦ坊鍔犳偅鑰咃紒" @@ -815,8 +818,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 +928,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 +951,7 @@ Editprogress: 1, //缂栬緫杩涘害 drawermb: false, //閫夋嫨妯℃澘寮圭獥 previewtf: false, //棰勮 + previewtftype: 0, //棰勮鎯呭喌0鏂版ā鏉块瑙�1宸查�夋嫨妯℃澘淇敼 loading: false, // 閬僵灞� patientloading: false, // 閬僵灞� dialogVisiblepatient: false, //娣诲姞鎮h�呭脊妗� @@ -946,6 +959,7 @@ checkboxlist: [], tableLabel: [], questionList: [], + skip: false, usable: [ { value: "0", label: "鍙敤" }, { value: "1", label: "鍋滅敤" }, @@ -985,7 +999,7 @@ ], tableLabelwj: [ - { label: "鍒涘缓浜�", width: "", prop: "createBy" }, + { label: "鍒涘缓浜�", width: "", prop: "createBy" }, { label: "妯℃澘鏍囬", width: "", prop: "templateName" }, { label: "闅忚鎻忚堪", width: "", prop: "note" }, { label: "淇敼鏃ユ湡", width: "", prop: "updateTime" }, @@ -1230,7 +1244,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 +1261,6 @@ }, methods: { - // { - // 濮撳悕: { "${name}": "榫欏偛澶�" }, - // 鍦板潃: { "${dzz}": "榫欏" }, - // 鐢佃瘽: { "${dhh}": "鍏釜鍏�" }, - // } // 鍙橀噺杞崲瀵硅薄杞暟缁� convertFormat1ToFormat2(data) { let result = []; @@ -1524,7 +1541,7 @@ if (res.code == 200) { this.objyl = res.data; if (this.form.longTask) { - this.objyl.longTemp = 1; + this.objyl.longTemp = 5; } this.queryParamsdept.type = 2; this.queryParamsdept.tempid = row.id; @@ -1551,15 +1568,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 { } }); } @@ -1841,6 +1861,7 @@ neWaddfn() { this.id = null; this.form.taskName = ""; + this.form.sendState = null; this.form.taskid = null; this.overallCase = []; this.form.patTaskRelevances = []; @@ -1971,7 +1992,7 @@ 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.form.templateid) { deleteTaskparticty(this.form.templateid).then((res) => { @@ -1982,7 +2003,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 +2024,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 +2102,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