From 756ea27038e08bb17787072bdde0f0dd04ffdd37 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期三, 04 二月 2026 10:36:39 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/record/detailpage/index.vue |   38 ++++++++++++++++++++++++--------------
 1 files changed, 24 insertions(+), 14 deletions(-)

diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index af7df91..933b61d 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -1017,14 +1017,14 @@
             </el-form-item>
           </el-col>
         </el-row>
-        <el-form-item label="闅忚鏂瑰紡" prop="resource">
+        <el-form-item label="闅忚绫诲瀷" prop="resource">
           <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-form-item label="闅忚璁板綍" :required="form.resource == '2'">
           <el-input type="textarea" v-model="form.remark"></el-input>
         </el-form-item>
       </el-form>
@@ -1527,16 +1527,16 @@
       }).then((res) => {
         if (res.code === 200) {
           // 閽堝鍐嶆闅忚鏈嶅姟杩涜鍒犻櫎缁撴灉璧嬪��
-          if (this.again && res.data.upScriptResult) {
-            res.data.upScriptResult.forEach((itemA) => {
-              const itemB = res.data.scriptResult.find(
-                (item) => item.scriptContent === itemA.scriptContent
-              );
-              if (itemB) {
-                itemB.scriptResult = itemA.scriptResult;
-              }
-            });
-          }
+          // if (this.again && res.data.upScriptResult) {
+          //   res.data.upScriptResult.forEach((itemA) => {
+          //     const itemB = res.data.scriptResult.find(
+          //       (item) => item.scriptContent === itemA.scriptContent
+          //     );
+          //     if (itemB) {
+          //       itemB.scriptResult = itemA.scriptResult;
+          //     }
+          //   });
+          // }
           this.tableDatatop = res.data.scriptResult;
 
           this.tableDatatop.forEach((item) => {
@@ -1761,7 +1761,10 @@
             }
           });
           this.Editsingletasksonyic(6);
-          if (this.form.isVisitAgain != 1) {
+          const orgName = localStorage.getItem("orgname");
+          console.log(orgName, "orgName");
+
+          if (this.form.isVisitAgain != 1 || orgName == "涓芥按甯備腑鍖婚櫌") {
             this.Torouter();
             return;
           }
@@ -1946,7 +1949,10 @@
         param2: this.patid,
         subId: this.id,
       };
-      if (this.form.isVisitAgain != 1) {
+      const orgName = localStorage.getItem("orgname");
+      console.log(orgName, "orgName");
+
+      if (this.form.isVisitAgain != 1 || orgName == "涓芥按甯備腑鍖婚櫌") {
         this.Torouter();
         return;
       }
@@ -2378,6 +2384,10 @@
             this.$message.error("闅忚鏃堕棿涓嶈兘灏忎簬褰撳墠鏃堕棿");
             return false;
           }
+          if (this.form.resource == "2" && !this.form.remark) {
+            this.$message.error("褰撳墠閫夋嫨涓洪殢璁夸腑蹇冮殢璁块渶杈撳叆闅忚璁板綍");
+            return false;
+          }
           this.form.remark =
             this.form.remark + "銆�" + this.getCurrentTime() + "銆�";
           let form = structuredClone(this.form);

--
Gitblit v1.9.3