From 877cf2120309d30c08f922191bca1ec5242add82 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 21 四月 2026 15:49:02 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/record/detailpage/index.vue | 22 +++++++++++++---------
1 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index d8ae58d..00cba0e 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -561,7 +561,7 @@
<el-button
type="primary"
plain
- @click="Editsingletasksonyic('')"
+ @click="alterpatient('')"
>
淇濆瓨鍩虹淇℃伅
</el-button>
@@ -1806,10 +1806,7 @@
// 澶勭悊 scriptResult锛岀洿鎺ヤ慨鏀瑰師濮嬫暟鎹�
if (item.scriptType == 2 && item.scriptResult) {
// 澶勭悊鏁扮粍绫诲瀷鐨� scriptResult
- if (
- Array.isArray(item.scriptResult) &&
- item.scriptResult.length > 0
- ) {
+ if (Array.isArray(item.scriptResult)) {
item.originalScriptResult = item.scriptResult; // 淇濆瓨鍘熷鏁扮粍锛堝彲閫夛級
item.scriptResult = item.scriptResult.join("&"); // 杞崲涓哄瓧绗︿覆
}
@@ -2023,11 +2020,10 @@
}
item.patid = this.patid;
item.templateid = item.templateID;
- if (item.nextScriptno == null) {
+ if (item.nextScriptno == null) {
item.nextScriptno = index == dataToSubmit.length - 1 ? 0 : index + 2;
}
});
- console.log("c", 3);
let obj = {
ivrTaskTemplateScriptVOList: dataToSubmit, // 鎻愪氦澶勭悊鍚庣殑鍓湰
@@ -2036,9 +2032,8 @@
param6: this.id,
type: 1,
};
- console.log("c", 4);
+
const orgName = localStorage.getItem("orgname");
- console.log(orgName, "orgName");
if (this.form.isVisitAgain != 1 || orgName == "涓芥按甯備腑鍖婚櫌") {
this.Torouter();
@@ -2205,6 +2200,15 @@
}
});
},
+ alterpatient(sendstate) {
+ alterpatient(this.userform).then((res) => {
+ if (res.code == 200) {
+ this.$modal.msgSuccess("鍩虹淇℃伅淇濆瓨鎴愬姛");
+ } else {
+ this.$modal.msgError("鍩虹淇℃伅淇敼澶辫触");
+ }
+ });
+ },
// 寮傚父鍒楁覆鏌�
tableRowClassName({ row, rowIndex }) {
if (row.id == this.id) {
--
Gitblit v1.9.3