From 385eae40221e5fc3bfe355cd0ec83d686497815f Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期三, 24 九月 2025 16:40:09 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/record/detailpage/index.vue | 125 ++++++++++++++++++++++-------------------
1 files changed, 68 insertions(+), 57 deletions(-)
diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index 426e933..c128a84 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -53,6 +53,7 @@
:data="logsheetlist"
:row-class-name="tableRowClassName"
style="width: 100%"
+ height="350"
@selection-change="handleSelectionChange"
>
<el-table-column
@@ -317,7 +318,7 @@
</el-radio-group>
</div>
<div
- v-if="item.showAppendInput||item.answerps"
+ v-if="item.showAppendInput || item.answerps"
class="append-input-container"
>
<el-input
@@ -548,7 +549,7 @@
>淇濆瓨鍩虹淇℃伅</el-button
>
</div>
- <div>
+ <!-- <div>
<el-button
type="primary"
round
@@ -556,7 +557,7 @@
@click="sendAgain()"
>鍐嶆闅忚</el-button
>
- </div>
+ </div> -->
</div>
<el-row>
<el-col :span="14"
@@ -1307,49 +1308,49 @@
});
this.Editsingletasksonyic(6);
- this.$modal
- .confirm(
- '浠诲姟淇濆瓨鎴愬姛鏄惁閽堝鎮h�咃細"' +
- this.logsheetlist[0].sendname +
- '"鍐嶆闅忚锛�',
- "纭",
- {
- confirmButtonText: "纭畾",
- cancelButtonText: "鍙栨秷",
- showCancelButton: true,
- dangerouslyUseHTMLString: true,
- confirmButtonClass: "custom-confirm-button", // 鑷畾涔夌‘璁ゆ寜閽殑绫诲悕
- cancelButtonClass: "custom-cancel-button", // 鑷畾涔夊彇娑堟寜閽殑绫诲悕
- }
- )
- .then(() => {
- document.querySelector("#app").scrollTo(0, 0);
- this.formtidy();
- this.dialogFormVisible = true;
- })
- .catch(() => {
- if (this.form.serviceType == 13) {
- if (this.visitCount != 1) {
- this.$router.push({
- path: "/logisticsservice/zbAgain",
- });
- } else {
- this.$router.push({
- path: "/logisticsservice/record",
- });
- }
- } else if (this.form.serviceType == 2) {
- if (this.visitCount != 1) {
- this.$router.push({
- path: "/logisticsservice/again",
- });
- } else {
- this.$router.push({
- path: "/followvisit/discharge",
- });
- }
- }
- });
+ // this.$modal
+ // .confirm(
+ // '浠诲姟淇濆瓨鎴愬姛鏄惁閽堝鎮h�咃細"' +
+ // this.logsheetlist[0].sendname +
+ // '"鍐嶆闅忚锛�',
+ // "纭",
+ // {
+ // confirmButtonText: "纭畾",
+ // cancelButtonText: "鍙栨秷",
+ // showCancelButton: true,
+ // dangerouslyUseHTMLString: true,
+ // confirmButtonClass: "custom-confirm-button", // 鑷畾涔夌‘璁ゆ寜閽殑绫诲悕
+ // cancelButtonClass: "custom-cancel-button", // 鑷畾涔夊彇娑堟寜閽殑绫诲悕
+ // }
+ // )
+ // .then(() => {
+ // document.querySelector("#app").scrollTo(0, 0);
+ // this.formtidy();
+ // this.dialogFormVisible = true;
+ // })
+ // .catch(() => {
+ // if (this.form.serviceType == 13) {
+ // if (this.visitCount != 1) {
+ // this.$router.push({
+ // path: "/logisticsservice/zbAgain",
+ // });
+ // } else {
+ // this.$router.push({
+ // path: "/logisticsservice/record",
+ // });
+ // }
+ // } else if (this.form.serviceType == 2) {
+ // if (this.visitCount != 1) {
+ // this.$router.push({
+ // path: "/logisticsservice/again",
+ // });
+ // } else {
+ // this.$router.push({
+ // path: "/followvisit/discharge",
+ // });
+ // }
+ // }
+ // });
})
.catch((error) => {
// 濡傛灉鏈変换浣曚竴涓紓姝ユ搷浣滃け璐ワ紝浼氳繘鍏ヨ繖閲�
@@ -1530,11 +1531,16 @@
getTaskservelist({
patid: this.patid,
subId: id,
+ pageSize:100,
}).then((res) => {
if (res.code == 200) {
+ console.log(11);
+
this.form = res.rows[0].serviceSubtaskList.find(
(item) => item.id == this.id
);
+ console.log(this.form);
+
console.log(this.form.serviceType, "serviceType");
this.logsheetlist = res.rows[0].serviceSubtaskList;
@@ -1639,17 +1645,17 @@
},
aahandleOptionChange(a, b, c) {
const result = c.find((item) => item.optioncontent == a);
- if (result.nextQuestion == 0) {
- this.tableDatatop = this.tableDatatop.reduce((acc, item, i) => {
- acc.push(i > b ? { ...item, astrict: 1 } : item);
- return acc;
- }, []);
- } else {
- this.tableDatatop = this.tableDatatop.reduce((acc, item, i) => {
- acc.push(i > b ? { ...item, astrict: 0 } : item);
- return acc;
- }, []);
- }
+ // if (result.nextQuestion == 0) {
+ // this.tableDatatop = this.tableDatatop.reduce((acc, item, i) => {
+ // acc.push(i > b ? { ...item, astrict: 1 } : item);
+ // return acc;
+ // }, []);
+ // } else {
+ // this.tableDatatop = this.tableDatatop.reduce((acc, item, i) => {
+ // acc.push(i > b ? { ...item, astrict: 0 } : item);
+ // return acc;
+ // }, []);
+ // }
if (this.Voicetype) {
var obj = this.tableDatatop[b].ivrTaskScriptTargetoptionList.find(
(item) => item.optioncontent == a
@@ -1668,6 +1674,11 @@
},
// 鍦╩ethods閮ㄥ垎锛屼慨鏀筯andleOptionChange鏂规硶:
handleOptionChange(selectedOption, questionIndex, options, a) {
+ // 鍒ゆ柇鏄惁璇煶
+ if (this.Voicetype) {
+ this.aahandleOptionChange(selectedOption, questionIndex, options);
+ return;
+ }
if (document.activeElement) {
document.activeElement.blur();
}
--
Gitblit v1.9.3