From d3c60e18b95b50751f8088fa2d23cd8ff7f173bc Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期三, 01 七月 2026 11:05:17 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/record/detailpage/index.vue | 100 +++++++++++++++++++++++++++++++++----------------
1 files changed, 67 insertions(+), 33 deletions(-)
diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index 6bc4606..9d0f20f 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -362,7 +362,14 @@
><i class="el-icon-notebook-1"></i> 闂嵎闅忚缁撴灉</span
>
<div class="CONTENT">
- <div class="title">{{ taskname ? taskname : "闂嵎" }}</div>
+ <div class="title">
+ {{ taskname ? taskname : "闂嵎" }}
+ <span style="margin-left: 50px">
+ <el-button type="primary" round @click="smsSubTask">
+ 闂嵎鐭俊鎺ㄩ��
+ </el-button>
+ </span>
+ </div>
<div class="preview-left" v-if="!Voicetype">
<div
@@ -1253,6 +1260,7 @@
updateTemplate,
query360PatInfonh,
sendMsg,
+ smsSubTask,
getconfigKey,
} from "@/api/AiCentre/index";
import {
@@ -2143,6 +2151,25 @@
handleTemplateClear() {
console.log("娓呴櫎浜嗘ā鏉块�夋嫨");
},
+ smsSubTask() {
+ this.$modal
+ .confirm("鏄惁鍚戞偅鑰呴�氳繃鐭俊鎺ㄩ�佹枃浠跺唴瀹癸紵")
+ .then(() => {
+ console.log(11, this.id);
+
+ smsSubTask(this.id).then((res) => {
+ console.log(11);
+
+ if (res.code) {
+ this.$modal.msgSuccess("鏂囦欢宸查�氳繃鐭俊鎺ㄩ�佺粰鎮h��");
+ } else {
+ }
+ });
+ })
+ .catch((err) => {
+ console.log(err);
+ });
+ },
handleConfirmReplace() {
// 閬嶅巻鎵�鏈夐鐩紙tableDatatop锛�
this.tableDatatop.forEach((item) => {
@@ -2390,8 +2417,15 @@
},
// 璋冭捣鐭俊鍙戦�佸璇濇
sendAgainmsg() {
- this.smsDialogVisible = true;
- // 鍙互鍦ㄨ繖閲屽垵濮嬪寲 smsContent锛屼緥濡� this.smsContent = '';
+ // this.smsDialogVisible = true;
+ this.$store.dispatch("sms/openSmsDialog", {
+ name: this.form.sendname,
+ age: this.form.age,
+ phone: this.userform.telcode,
+ deptName: this.form.deptname,
+ wardName: this.form.leavehospitaldistrictname,
+ smsTemplate: `灏婃暚鐨�${this.form.sendname}锛屾偍濂斤紒`,
+ });
},
// 鍙戦�佺煭淇$殑鏂规硶
@@ -2468,7 +2502,7 @@
});
},
alterpatient(sendstate) {
- this.Editsingletasksonyic(this.serviceStates)
+ this.Editsingletasksonyic(this.serviceStates);
// alterpatient(this.userform).then((res) => {
// if (res.code == 200) {
// this.$modal.msgSuccess("鍩虹淇℃伅淇濆瓨鎴愬姛");
@@ -2867,38 +2901,38 @@
// console.log(11);
// },
beforeRouteLeave(to, from, next) {
- const callButton = this.$refs.callButton;
+ const callButton = this.$refs.callButton;
- // 濡傛灉瀛樺湪鍛煎彨缁勪欢涓旀鍦ㄩ�氳瘽涓�
- if (callButton && callButton.isCalling) {
- this.$confirm('褰撳墠姝e湪閫氳瘽涓紝纭畾瑕佺寮�姝ら〉闈㈠悧锛�', '鎻愮ず', {
- confirmButtonText: '鎸傛柇骞剁寮�',
- cancelButtonText: '缁х画閫氳瘽',
- type: 'warning'
- })
- .then(() => {
- // 鐢ㄦ埛纭绂诲紑锛屼富鍔ㄦ寕鏂苟娓呯悊
- callButton.cleanupResources();
- if (this.$refs.CallCenterLs) {
- this.$refs.CallCenterLs.handleSeatLogout();
- }
- next();
+ // 濡傛灉瀛樺湪鍛煎彨缁勪欢涓旀鍦ㄩ�氳瘽涓�
+ if (callButton && callButton.isCalling) {
+ this.$confirm("褰撳墠姝e湪閫氳瘽涓紝纭畾瑕佺寮�姝ら〉闈㈠悧锛�", "鎻愮ず", {
+ confirmButtonText: "鎸傛柇骞剁寮�",
+ cancelButtonText: "缁х画閫氳瘽",
+ type: "warning",
})
- .catch(() => {
- // 鐢ㄦ埛鍙栨秷锛岄樆姝㈣矾鐢辫烦杞�
- next(false);
- });
- } else {
- // 鏈�氳瘽鎴栧懠鍙粍浠朵笉瀛樺湪锛屾甯告竻鐞�
- if (callButton) {
- callButton.cleanupResources();
+ .then(() => {
+ // 鐢ㄦ埛纭绂诲紑锛屼富鍔ㄦ寕鏂苟娓呯悊
+ callButton.cleanupResources();
+ if (this.$refs.CallCenterLs) {
+ this.$refs.CallCenterLs.handleSeatLogout();
+ }
+ next();
+ })
+ .catch(() => {
+ // 鐢ㄦ埛鍙栨秷锛岄樆姝㈣矾鐢辫烦杞�
+ next(false);
+ });
+ } else {
+ // 鏈�氳瘽鎴栧懠鍙粍浠朵笉瀛樺湪锛屾甯告竻鐞�
+ if (callButton) {
+ callButton.cleanupResources();
+ }
+ if (this.$refs.CallCenterLs) {
+ this.$refs.CallCenterLs.handleSeatLogout();
+ }
+ next();
}
- if (this.$refs.CallCenterLs) {
- this.$refs.CallCenterLs.handleSeatLogout();
- }
- next();
- }
-}
+ },
// beforeRouteUpdate() {
// console.log(33);
// },
--
Gitblit v1.9.3