From 6e7f546cc37ed57e7e2eda4fdfc32fa2b3e0160c Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 20 十月 2026 17:41:10 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/record/detailpage/index.vue | 78 ++++++++++++++++++++++++++++++++++++--
1 files changed, 73 insertions(+), 5 deletions(-)
diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index af3f348..d52a2b9 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -408,9 +408,20 @@
type="primary"
round
@click="smsSubTask"
- v-if="orgname != '鐪佺珛鍚屽痉缈犺嫅闄㈠尯'"
+ v-if="
+ orgname != '鐪佺珛鍚屽痉缈犺嫅闄㈠尯' &&
+ orgname != '涓芥按甯備腑鍖婚櫌'
+ "
>
闂嵎鐭俊鎺ㄩ��
+ </el-button>
+ <el-button
+ type="primary"
+ round
+ @click="weChatSubTask"
+ v-if="orgname == '涓芥按甯備腑鍖婚櫌'"
+ >
+ 闂嵎寰俊鎺ㄩ��
</el-button>
</span>
</div>
@@ -1169,9 +1180,9 @@
title="鎮h�呭啀娆¢殢璁�"
v-dialogDrags
:visible.sync="dialogFormVisible"
- width="700px"
+ width="900px"
>
- <el-form ref="zcform" :rules="zcrules" :model="form" label-width="80px">
+ <el-form ref="zcform" :rules="zcrules" :model="form" label-width="120px">
<!-- 鍩虹鏈嶅姟淇℃伅 - 榛樿鎶樺彔 -->
<el-collapse v-model="activeNames" @change="handleCollapseChange">
<el-collapse-item title="鍩虹鏈嶅姟淇℃伅" name="basic">
@@ -1271,6 +1282,13 @@
<!-- 涓嬫闅忚淇℃伅 - 榛樿灞曞紑 -->
<el-collapse-item title="涓嬫闅忚" name="next">
+ <el-form-item label="鍐嶆闅忚浠诲姟">
+ <el-input
+ disabled
+ v-model="nextTaskName"
+ placeholder="鍐嶆闅忚浠诲姟"
+ ></el-input>
+ </el-form-item>
<el-row>
<el-col :span="12">
<el-form-item label="闅忚鏂瑰紡" prop="visitType">
@@ -1317,6 +1335,12 @@
</el-form-item>
<el-form-item label="闅忚璁板綍" :required="form.resource == '2'">
<el-input type="textarea" v-model="form.remark"></el-input>
+ </el-form-item>
+ <el-form-item label="鍖荤敓澶勭悊鎰忚" prop="doctorOpinion">
+ <el-input
+ type="textarea"
+ v-model="form.doctorOpinion"
+ ></el-input>
</el-form-item>
</el-collapse-item>
</el-collapse>
@@ -1365,8 +1389,10 @@
query360PatInfonh,
sendMsg,
smsSubTask,
+ weChatSubTask,
getconfigKey,
} from "@/api/AiCentre/index";
+import { getIvrtask } from "@/api/smartor/ivrtask";
import {
messagelistpatient,
alterpatient,
@@ -1516,6 +1542,7 @@
input: "浠婂ぉ韬綋杩樹笉閿�",
radio: "2",
taskname: "",
+ nextTaskName: "",
activeName: "wj",
voice: "",
templateid: "",
@@ -1611,6 +1638,9 @@
},
trigger: "change",
},
+ ],
+ doctorOpinion: [
+ { required: true, message: "璇疯緭鍏ュ尰鐢熷鐞嗘剰瑙�", trigger: "blur" },
],
},
userrules: {
@@ -2329,6 +2359,22 @@
console.log(err);
});
},
+ weChatSubTask() {
+ this.$modal
+ .confirm("鏄惁鍚戞偅鑰呴�氳繃寰俊鎺ㄩ�侀棶鍗峰唴瀹癸紵")
+ .then(() => {
+ weChatSubTask(this.id).then((res) => {
+ if (String(res.code) === "200") {
+ this.$modal.msgSuccess(res.msg || "鍙戦�佹垚鍔�");
+ } else {
+ this.$modal.msgError(res.message || res.msg || "鍙戦�佸け璐�");
+ }
+ });
+ })
+ .catch((err) => {
+ console.log(err);
+ });
+ },
handleConfirmReplace() {
// 閬嶅巻鎵�鏈夐鐩紙tableDatatop锛�
this.tableDatatop.forEach((item) => {
@@ -2589,6 +2635,7 @@
console.log(this.form.templatename, "templatename");
this.form.remark = this.form.remark || "";
+ this.form.doctorOpinion = this.form.doctorOpinion || "";
this.logsheetlist = res.rows[0].serviceSubtaskList;
this.templateid = this.form.templateid;
this.selectedTag = this.form.excep;
@@ -2778,8 +2825,29 @@
return tag ? tag.description : "";
},
+ // 鑾峰彇鍐嶆闅忚浠诲姟淇℃伅锛堜笅娆¢殢璁块儴鍒嗗睍绀猴級
+ fetchNextTaskInfo() {
+ const taskid = this.form.taskid || this.taskid;
+ if (!taskid) {
+ this.nextTaskName = "";
+ return;
+ }
+ getIvrtask(taskid).then((r) => {
+ const task = r.data || {};
+ const nextid = task.nexttaskid;
+ if (nextid) {
+ getIvrtask(nextid).then((r2) => {
+ this.nextTaskName =
+ (r2.data && r2.data.taskName) || task.nexttaskname || "";
+ });
+ } else {
+ this.nextTaskName = task.nexttaskname || "";
+ }
+ });
+ },
// 璋冭捣鍐嶆鍙戦��
sendAgain() {
+ this.fetchNextTaskInfo();
getTaskservelist({
patid: this.patid,
visitCount: 2,
@@ -3720,14 +3788,14 @@
margin-top: 20px;
}
-.el-input.is-disabled .el-input__inner {
+::v-deep .el-input.is-disabled .el-input__inner {
background-color: #fff;
border-color: #dcdfe6;
color: #080808 !important;
cursor: not-allowed;
}
-.el-textarea.is-disabled .el-textarea__inner {
+::v-deep .el-textarea.is-disabled .el-textarea__inner {
background-color: #fff;
border-color: #dcdfe6;
color: #080808 !important;
--
Gitblit v1.9.3