From d412b5bcb0b293f70c8a6ed82bce06e12e222db9 Mon Sep 17 00:00:00 2001 From: WXL (wul) <wl_5969728@163.com> Date: 星期二, 21 十月 2025 09:08:23 +0800 Subject: [PATCH] 问卷联调 --- src/views/followvisit/record/detailpage/index.vue | 74 +++++++++++++++++++++++------------- 1 files changed, 47 insertions(+), 27 deletions(-) diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue index c5945bb..9fd2622 100644 --- a/src/views/followvisit/record/detailpage/index.vue +++ b/src/views/followvisit/record/detailpage/index.vue @@ -302,7 +302,7 @@ handleOptionChange( $event, index, - item.svyLibTemplateTargetoptions, + item.svyTaskTemplateTargetoptions, item ) " @@ -310,7 +310,7 @@ <el-radio v-for="( items, indexs - ) in item.svyLibTemplateTargetoptions" + ) in item.svyTaskTemplateTargetoptions" :class="items.isabnormal ? 'red-star' : ''" :key="indexs" :label="items.optioncontent" @@ -360,7 +360,7 @@ @change="$forceUpdate()" v-for="( items, indexs - ) in item.svyLibTemplateTargetoptions" + ) in item.svyTaskTemplateTargetoptions" :key="indexs" :label="items.optioncontent" > @@ -1013,6 +1013,18 @@ <el-button type="primary" @click="setupsubtask">纭鍒涘缓鏈嶅姟</el-button> </div> </el-dialog> + <div class="main-content" v-if="orgname == '鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�'"> + <!-- <el-button @click="CaldialogVisible = true">鎵撳紑寮规</el-button> --> + + <!-- 寮规璋冪敤 --> + <el-dialog + title="鍛煎彨鍔熻兘妗�" + :visible.sync="CaldialogVisible" + width="60%" + > + <CallCenterLs ref="callCenterModal" :initial-phone="currentPhoneNumber" /> + </el-dialog> + </div> </div> </template> @@ -1038,10 +1050,12 @@ } from "@/api/patient/homepage"; import CallButton from "@/components/CallButton"; import MergeAndModify from "./MergeAndModify.vue"; +import CallCenterLs from "@/components/CallCenterLs"; export default { components: { CallButton, MergeAndModify, + CallCenterLs, }, directives: { numericOnly: { @@ -1125,6 +1139,7 @@ // 宸叉湁鏁版嵁... callStatus: "idle", // idle, calling, connected, ended, failed isEndingCall: false, + CaldialogVisible: false, currentCall: null, // 褰撳墠閫氳瘽瀵硅薄 input: "浠婂ぉ韬綋杩樹笉閿�", radio: "2", @@ -1541,7 +1556,7 @@ return; } } - var objs = item.svyLibTemplateTargetoptions.find( + var objs = item.svyTaskTemplateTargetoptions.find( (items) => items.optioncontent == item.scriptResult ); if (obj) { @@ -1673,8 +1688,13 @@ this.$message.error("璇疯緭鍏ユ纭殑鎵嬫満鍙风爜"); return; } - this.currentPhoneNumber = phone; + // 鍛煎彨鍒ゆ柇 + if (this.orgname == "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�") { + this.CaldialogVisible = true; + return + } + this.callType = type; this.callStatus = "calling"; @@ -1721,28 +1741,28 @@ }, 3000); }, yuyingetdetail() { - const dataToSubmit = JSON.parse(JSON.stringify(this.tableDatatop)); + const dataToSubmit = JSON.parse(JSON.stringify(this.tableDatatop)); - dataToSubmit.forEach((item, index) => { - // 瀵规嫹璐濈殑鏁版嵁杩涜鎿嶄綔锛屼笉褰卞搷鍘熷鐨� scriptResult 鏁扮粍 - item.scriptResult = item.scriptResult.join("&"); - item.templatequestionnum = index + 1; - item.subId = this.id; - item.taskid = this.taskid; - item.asrtext = item.matchedtext; - if (!item.id) { - item.isoperation = 1; - } - item.patid = this.patid; - item.templateid = item.templateID; - }); + dataToSubmit.forEach((item, index) => { + // 瀵规嫹璐濈殑鏁版嵁杩涜鎿嶄綔锛屼笉褰卞搷鍘熷鐨� scriptResult 鏁扮粍 + item.scriptResult = item.scriptResult.join("&"); + item.templatequestionnum = index + 1; + item.subId = this.id; + item.taskid = this.taskid; + item.asrtext = item.matchedtext; + if (!item.id) { + item.isoperation = 1; + } + item.patid = this.patid; + item.templateid = item.templateID; + }); - let obj = { - serviceSubtaskDetailList: dataToSubmit, // 鎻愪氦澶勭悊鍚庣殑鍓湰 - param1: this.taskid, - param2: this.patid, - subId: this.id, - }; + let obj = { + serviceSubtaskDetailList: dataToSubmit, // 鎻愪氦澶勭悊鍚庣殑鍓湰 + param1: this.taskid, + param2: this.patid, + subId: this.id, + }; addPersonVoices(obj).then((res) => { if (res.code == 200) { @@ -1991,7 +2011,7 @@ (item) => item.optioncontent == a ); } else { - var obj = this.tableDatatop[b].svyLibTemplateTargetoptions.find( + var obj = this.tableDatatop[b].svyTaskTemplateTargetoptions.find( (item) => item.optioncontent == a ); } @@ -2096,7 +2116,7 @@ }, overdata() { this.tableDatatop.forEach((item, index) => { - var obj = item.svyLibTemplateTargetoptions.find( + var obj = item.svyTaskTemplateTargetoptions.find( (items) => items.optioncontent == item.scriptResult ); if (obj) { -- Gitblit v1.9.3