From c70f5e1d471ddf002ef0ebd5f4c6a5ed1c865d0d Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期三, 21 十月 2026 17:47:58 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/record/physical/index.vue |   32 ++++++++++++++++++++++----------
 1 files changed, 22 insertions(+), 10 deletions(-)

diff --git a/src/views/followvisit/record/physical/index.vue b/src/views/followvisit/record/physical/index.vue
index 7e370f1..ceb76e6 100644
--- a/src/views/followvisit/record/physical/index.vue
+++ b/src/views/followvisit/record/physical/index.vue
@@ -51,7 +51,8 @@
                   gettoken360(
                     scope.row.sfzh,
                     scope.row.drcode,
-                    scope.row.drname
+                    scope.row.drname,
+                    scope.row.patid,
                   )
                 "
                 ><span class="button-textsc">{{
@@ -363,7 +364,7 @@
           <el-input
             style="width: 400px"
             disabled
-            v-model="form.deptname"
+            v-model="form.leaveldeptname"
           ></el-input>
         </el-form-item>
         <el-form-item label="鐥呭尯">
@@ -496,6 +497,7 @@
   updatePersonVoices,
   addPersonVoices,
   query360PatInfo,
+  query360PatInfonh
 } from "@/api/AiCentre/index";
 import {
   messagelistpatient,
@@ -691,8 +693,18 @@
     // 鑾峰彇闂嵎鏁版嵁
 
     //鎮h��360璺宠浆
-    gettoken360(sfzh, drcode, drname) {
-      // this.$modal.msgWarning('360鍔熻兘鏆傛湭寮�閫�');
+    gettoken360(sfzh, drcode, drname, id) {
+      const orgname = localStorage.getItem("orgname");
+      if (orgname == "鍗楀崕澶у闄勫睘绗竴鍖婚櫌") {
+        query360PatInfonh(id).then((res) => {
+          if (res.data) {
+            window.open(res.data, "_blank");
+          } else {
+            this.$modal.msgWarning("360鏌ヨ鏃犵粨鏋�");
+          }
+        });
+        return
+      }
 
       this.postData.YeWuXX.BingRenXX.ZhengJianHM = sfzh;
 
@@ -1000,7 +1012,7 @@
     // 鍐嶆闅忚鏁版嵁鏇存浛
     formtidy() {
       this.form.visitType2 = this.form.visitType;
-      this.form.date2 = this.form.longSendTime;
+      this.form.date2 = this.form.visitTime;
       this.form.remark2 = this.form.remark;
     },
     // 鑾峰彇鎮h�呰褰�
@@ -1024,11 +1036,11 @@
           }
           this.logsheetlist = res.rows[0].serviceSubtaskList;
           this.templateid = this.logsheetlist[0].templateid;
-          const targetDate = new Date(this.form.longSendTime); // 鐩爣鏃ユ湡
+          const targetDate = new Date(this.form.visitTime); // 鐩爣鏃ユ湡
           const now = new Date(); // 褰撳墠鏃堕棿
           this.form.endtime = this.formatTime(this.form.endtime);
           if (now < targetDate && this.form.sendstate == 2) {
-            this.$confirm("褰撳墠鏈嶅姟鏈埌鍙戦�佹椂闂磋璋ㄦ厧淇敼", "鎻愮ず", {
+            this.$confirm("褰撳墠鏈嶅姟鏈埌闅忚鏃堕棿璇疯皑鎱庝慨鏀�", "鎻愮ず", {
               confirmButtonText: "纭畾",
               cancelButtonText: "鍙栨秷",
               type: "warning",
@@ -1169,7 +1181,7 @@
           this.form.remark =
             this.form.remark + "銆�" + this.getCurrentTime() + "銆�";
           let form = structuredClone(this.form);
-          form.longSendTime = this.formatTime(form.date1);
+          form.visitTime = this.formatTime(form.date1);
           form.finishtime = "";
           if (form.resource) {
             if (form.resource == 2) {
@@ -1177,8 +1189,8 @@
               form.visitDeptCode = localStorage.getItem("deptCode");
               form.visitDeptName = "闅忚涓績";
             } else {
-              form.visitDeptCode = form.deptcode;
-              form.visitDeptName = form.deptname;
+              form.visitDeptCode = form.leaveldeptcode;
+              form.visitDeptName = form.leaveldeptname;
             }
           } else {
             this.$modal.msgError("鏈�夋嫨闅忚鏂瑰紡");

--
Gitblit v1.9.3