From 19361e9eccefd69df20fa345a78a31f5c1ccbf4e Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期三, 14 一月 2026 09:27:54 +0800
Subject: [PATCH] modified:   .env.production

---
 src/views/basic/gyUnit/gyUnit.vue |   42 +++++++++++++++++++++++++++---------------
 1 files changed, 27 insertions(+), 15 deletions(-)

diff --git a/src/views/basic/gyUnit/gyUnit.vue b/src/views/basic/gyUnit/gyUnit.vue
index 44c763d..8bb80a0 100644
--- a/src/views/basic/gyUnit/gyUnit.vue
+++ b/src/views/basic/gyUnit/gyUnit.vue
@@ -447,16 +447,16 @@
       this.editGyClose(); // 缁勪欢鍐呯殑鏂规硶缁戝畾鍒皐indows
     };
     this.queryParams.HOrgID = sessionStorage["OrganizationID"];
+
+    this.riqiChange();
+    this.handleQuery();
   },
 
   beforeDestroy() {
     // 缁勪欢閿�姣佹椂娓呯悊鍏ㄥ眬鏂规硶锛岄伩鍏嶅唴瀛樻硠婕�
     delete window.editGyClose;
   },
-  created() {
-    this.riqiChange();
-    this.handleQuery();
-  },
+  created() {},
   methods: {
     onDateScanOptionChangerHandler(e) {
       this.queryParams.timeSpan = e;
@@ -858,7 +858,7 @@
     },
     //閫変腑琛岄珮浜牱寮�
     rowStyle({ row, rowIndex }) {
-      if (this.ids.includes(row.hmainid)) {
+      if (this.ids.includes(row.HItemID)) {
         return { background: "#ecf5ff" };
       }
     },
@@ -880,14 +880,25 @@
       }
       this.handleEdit(row, this.OperationType);
     },
-    // 澶氶�夋閫変腑鏁版嵁
+   // 澶氶�夋閫変腑鏁版嵁
     handleSelectionChange(selection) {
       // this.rowForm = {}
-      this.ids = selection.map((item) => item.hmainid);
-      this.single = selection.length != 1;
-      this.multiple = !selection.length;
-      if (!this.single) {
+      if (this.openPage) {
+        //鍒楄〃鍗曢��
+        if (selection.length > 1) {
+          const del_row = selection.shift();
+          this.$refs.tableData.toggleRowSelection(del_row, false); //璁剧疆杩欎竴琛屽彇娑堥�変腑
+        }
+        this.rowForm = {};
+        this.ids = selection.map((item) => item.HItemID);
         this.rowForm = selection[0];
+      } else {
+        this.ids = selection.map((item) => item.HItemID);
+        this.single = selection.length != 1;
+        this.multiple = !selection.length;
+        if (!this.single) {
+          this.rowForm = selection[0];
+        }
       }
     },
     //鎵撳紑渚ц竟鎼滅储寮圭獥
@@ -991,9 +1002,10 @@
       var sWhere = "";
       //this.openPage鍒ゆ柇鏄惁鏈夊�硷紝鏈変唬琛ㄥ叾瀹冮〉闈㈤�氳繃閫夋嫨鎸夐挳鎵撳紑
       if (this.openPage || window.parent != window.self) {
-        sWhere += " and 绂佺敤鏍囧織 != '1' and ISNULL(瀹℃牳浜�,'')  != ''";
+        sWhere += " and 绂佺敤鏍囪 = '' and ISNULL(瀹℃牳浜�,'')  != ''";
         return sWhere;
       }
+
       return sWhere;
     },
     //鏍规嵁鐢ㄦ埛鑾峰彇鐢ㄦ埛鍏宠仈缁勭粐鐨勮繃婊ゆ潯浠�
@@ -1084,7 +1096,8 @@
         .confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠")
         .then(() => {
           if (!this.rowForm.瀹℃牳浜�) {
-            const InterID = this.rowForm.hmainid || this.rowForm.HItemID || this.rowForm.HInterID;
+            const InterID =
+              this.rowForm.hmainid || this.rowForm.HItemID || this.rowForm.HInterID;
             axios
               .get(this.baseURL + "DeltetGy_Unit", {
                 params: {
@@ -1136,8 +1149,8 @@
           this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
         });
     },
-
-
+ 
+  
 
     // 鍙嶇鐢�/绂佺敤鏁版嵁
     set_De_Stop(num, form) {
@@ -1213,7 +1226,6 @@
       );
       return org ? org.Name : '';  // 鍙繑鍥炵粍缁囧悕绉�
     },
-
 
     // 鎻愪氦涓婁紶鏂囦欢
     submitFileForm() {

--
Gitblit v1.9.1