From e3fb08d4cabff8654784c7ac6ed61f2a9e0cf28b Mon Sep 17 00:00:00 2001 From: WXL (wul) <wl_5969728@163.com> Date: 星期三, 17 九月 2025 18:14:40 +0800 Subject: [PATCH] 同步 --- src/views/followvisit/record/detailpage/index.vue | 123 ++++++++++++++++++++++------------------- 1 files changed, 66 insertions(+), 57 deletions(-) diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue index 426e933..dfc141d 100644 --- a/src/views/followvisit/record/detailpage/index.vue +++ b/src/views/followvisit/record/detailpage/index.vue @@ -317,7 +317,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 +548,7 @@ >淇濆瓨鍩虹淇℃伅</el-button > </div> - <div> + <!-- <div> <el-button type="primary" round @@ -556,7 +556,7 @@ @click="sendAgain()" >鍐嶆闅忚</el-button > - </div> + </div> --> </div> <el-row> <el-col :span="14" @@ -1307,49 +1307,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) => { // 濡傛灉鏈変换浣曚竴涓紓姝ユ搷浣滃け璐ワ紝浼氳繘鍏ヨ繖閲� @@ -1532,9 +1532,13 @@ subId: id, }).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 +1643,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 +1672,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