From e353f0e17dc46203512dd272c5b559b094e40761 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 25 七月 2025 15:02:36 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/record/detailpage/index.vue | 88 +++++++++++++++++---------------------------
1 files changed, 34 insertions(+), 54 deletions(-)
diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index 7b4f9d1..609d2d1 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -18,7 +18,6 @@
>鏌ョ湅鎮h�呮湰娆℃湇鍔′俊鎭�</el-button
>
</div>
-
</div>
<!-- <el-button type="success">闅忚鍚庣煭淇�</el-button> -->
</div>
@@ -222,7 +221,7 @@
>涓績闅忚</el-button
>
<el-button type="primary" round @click="sendAgain()"
- >鍐嶆闅忚</el-button
+ >鐭俊鍥炲</el-button
>
</div>
</el-form-item>
@@ -448,15 +447,8 @@
</el-tab-pane>
</el-tabs>
</div>
- <el-dialog title="鎮h�呭啀娆¢殢璁�" :visible.sync="dialogFormVisible">
+ <el-dialog title="鐭俊鍙戦��" :visible.sync="dialogFormVisible">
<el-form ref="form" :model="form" label-width="80px">
- <el-form-item label="浠诲姟鍚嶇О">
- <el-input
- style="width: 400px"
- disabled
- v-model="form.taskName"
- ></el-input>
- </el-form-item>
<el-form-item label="鎮h�呭悕绉�">
<el-input
style="width: 400px"
@@ -466,6 +458,13 @@
</el-form-item>
<el-form-item label="骞撮緞">
<el-input style="width: 400px" disabled v-model="form.age"></el-input>
+ </el-form-item>
+ <el-form-item label="鐢佃瘽">
+ <el-input
+ style="width: 400px"
+ disabled
+ v-model="userform.telcode"
+ ></el-input>
</el-form-item>
<el-form-item label="绉戝">
<el-input
@@ -481,31 +480,13 @@
v-model="form.leavehospitaldistrictname"
></el-input>
</el-form-item>
-
- <el-form-item label="闅忚鏂瑰紡">
- <el-radio-group v-model="form.resource">
- <el-radio label="1">鏈梾鍖洪殢璁�</el-radio>
- <el-radio label="2">闅忚涓績闅忚</el-radio>
- </el-radio-group>
- </el-form-item>
- <!-- <el-form-item label="鍗冲埢鍙戦��">
- <el-switch v-model="zcform.delivery"></el-switch>
- </el-form-item> -->
- <el-form-item label="闅忚鏃堕棿">
- <el-date-picker
- type="date"
- placeholder="閫夋嫨鏃ユ湡"
- v-model="form.date1"
- style="width: 100%"
- ></el-date-picker>
- </el-form-item>
- <el-form-item label="闅忚璁板綍">
- <el-input type="textarea" v-model="form.remark"></el-input>
+ <el-form-item label="鐭俊鍐呭">
+ <el-input type="textarea" v-model="form.content"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false">鍙� 娑�</el-button>
- <el-button type="primary" @click="setupsubtask">纭鍒涘缓鏈嶅姟</el-button>
+ <el-button type="primary" @click="setupsubtask">纭鍙戦��</el-button>
</div>
</el-dialog>
</div>
@@ -521,7 +502,7 @@
Editsingletaskson,
serviceSubtaskDetailedit,
serviceSubtaskDetailadd,
- updatePersonVoices,
+ sendMsg,
addPersonVoices,
} from "@/api/AiCentre/index";
import { messagelistpatient } from "@/api/patient/homepage";
@@ -577,7 +558,7 @@
isFinish: false,
}).then((res) => {
if (res.code === 200) {
- this.tableDatatop = res.data.scriptResult.script;
+ this.tableDatatop = res.data.scriptResult;
this.tableDatatop.forEach((item) => {
console.log(item.scriptResultId, "scriptResultId");
@@ -597,7 +578,7 @@
// 鑾峰彇鍩虹淇℃伅
getuserinfo() {
const queryParams = {
- pid: Number(this.id),
+ patid: Number(this.patid),
allhosp: "0",
pageNum: 1,
};
@@ -682,6 +663,7 @@
subId: this.id,
taskid: this.taskid,
scriptid: item.id,
+ templatequestionnum: item.scriptno,
questiontext: item.scriptContent,
};
if (item.scriptType == 2 && item.scriptResult[0]) {
@@ -713,10 +695,13 @@
this.tableDatatop.forEach((item, index) => {
console.log(item.scriptResult, "scriptResult");
item.scriptResult = item.scriptResult.join("&");
- item.templatequestionnum = index + 1;
+ // item.templatequestionnum = index + 1;
item.subId = this.id;
item.taskid = this.taskid;
item.asrtext = item.matchedtext;
+ item.templatequestionnum = item.scriptno;
+ item.targetid = item.targetid;
+ item.scriptid = item.id;
if (!item.id) {
item.isoperation = 1;
}
@@ -756,7 +741,7 @@
this.templateid = this.logsheetlist[0].templateid;
console.log(this.form.serviceType, "serviceType");
}
-
+ this.getuserinfo();
if (this.Voicetype) {
this.getPersonVoices();
} else {
@@ -782,7 +767,7 @@
}
});
},
- Editsingletasksonyic(excep) {
+ Editsingletasksonyic(sendstate) {
let objson = {};
getTaskservelist({
patid: this.patid,
@@ -790,7 +775,8 @@
}).then((res) => {
if (res.code == 200) {
objson = res.rows[0].serviceSubtaskList[0];
- objson.excep = excep;
+ objson.remark = this.form.remark;
+ if (sendstate) objson.sendstate = sendstate;
Editsingletaskson(objson).then((res) => {
if (res.code) {
this.$modal.msgSuccess("鏈嶅姟淇敼鎴愬姛");
@@ -814,7 +800,7 @@
this.patid = row.patid;
this.Voicetype = row.type;
this.serviceType = row.serviceType;
- this.getTaskservelist(this.id);
+ this.getTaskservelist(this.id);
})
.catch(() => {});
},
@@ -854,23 +840,14 @@
}
});
},
- // 鍒涘缓鍐嶆闅忚鏈嶅姟
+ // 鍙戦�侀殢璁垮悗鐭俊
setupsubtask() {
- console.log(this.form);
- let form = structuredClone(this.form);
- form.longSendTime = this.formatTime(form.date1);
- if (form.resource) {
- if (form.resource == 2) {
- form.serviceType = 10;
- }
- } else {
- this.$modal.msgError("鏈�夋嫨闅忚鏂瑰紡");
- }
- form.id = null;
- form.sendstate = 2;
- addserviceSubtask(form).then((res) => {
+ sendMsg({
+ phoneNumber: this.userform.telcode,
+ content: this.form.content,
+ }).then((res) => {
if (res.code == 200) {
- this.$modal.msgSuccess("鍒涘缓鎴愬姛");
+ this.$modal.msgSuccess("鍙戦�佹垚鍔�");
} else {
this.$modal.msgError("鍒涘缓澶辫触");
}
@@ -1049,6 +1026,9 @@
top: 0;
}
}
+::v-deep.el-input.is-disabled .el-input__inner {
+ color: #02a7f0;
+}
::v-deep.offside-value .el-radio__label {
color: #fff;
}
--
Gitblit v1.9.3