From a9ca5dafb781919fe8a24cd586258e9144966271 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期三, 19 十一月 2025 11:07:38 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-VUEUI

---
 src/views/basic/production/gySource.vue |   38 +++++++++++++++++++++++++++-----------
 1 files changed, 27 insertions(+), 11 deletions(-)

diff --git a/src/views/basic/production/gySource.vue b/src/views/basic/production/gySource.vue
index 5d2cabe..81f4bca 100644
--- a/src/views/basic/production/gySource.vue
+++ b/src/views/basic/production/gySource.vue
@@ -1,5 +1,5 @@
 <template>
-  <div style="padding: 10px;">
+  <div style="padding: 10px; position: relative;">
     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="98px" class="searchBox">
       <el-row>
         <el-form-item label="鐢熶骇璧勬簮浠g爜" prop="HNumber" style="margin-left: 100px;">
@@ -168,8 +168,7 @@
         <RowSettings :colName="btResList" :HModName="HModName" @rowEditClose="rowSetClose" v-if="rowHideShow" />
       </el-dialog>
       <!-- 缂栬緫 -->
-      <el-dialog title="缂栬緫鐢熶骇璧勬枡" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox"
-        @close="close">
+      <el-dialog title="缂栬緫鐢熶骇璧勬枡" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
         <edit :OperationType=OperationType :linterid=this.rowForm.HItemID :HSouceBillType=this.rowForm.HSourceBillType
           :copyType="copyType" @editCloseGy="editGyClose" v-if="editShow" />
       </el-dialog>
@@ -268,7 +267,7 @@
       open: false,
       // 鏌ヨ鍙傛暟
       queryParams: {
-        HOrgID: null,
+        HOrgID: sessionStorage["OrganizationID"] - 0,
         HName: null,
         HNumber: null,
         Comparator1: '',
@@ -387,7 +386,6 @@
       if (this.pageSize == 0) {
         this.pageSize = 50
       }
-      this.queryParams.HOrgID = sessionStorage["OrganizationID"]-0
       this.sWhere += " and HUSEORGID = '" + this.queryParams.HOrgID + "'"
       //鐢熶骇璧勬枡鍒楄〃
       axios.get(this.baseURL + '/Gy_Source/list_byPage', {
@@ -603,6 +601,9 @@
       this.selectedRow = row; // 璁板綍褰撳墠閫変腑鐨勮
       this.lastSelectedRowIndex = this.tableData.indexOf(row);
       this.$refs.tableData.toggleRowSelection(row);
+      if (this.openPage) {
+        this.$emit('deptEmit', row, 5)
+      }
     },
     //閫変腑琛岄珮浜牱寮�
     rowStyle({ row, rowIndex }) {
@@ -613,16 +614,31 @@
     //鍙屽嚮琛�
     handleDblclick(row, column, cell, event) {
       this.OperationType = 3
-      this.handleEdit()
+      if (this.openPage) {
+        this.$emit('deptEmitDb', row, 5)
+      } else {
+        this.handleEdit();
+      }
     },
     // 澶氶�夋閫変腑鏁版嵁
     handleSelectionChange(selection) {
       // this.rowForm = {}
-      this.ids = selection.map(item => item.HItemID)
-      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]
+        }
       }
     },
     /** 鎼滅储鎸夐挳鎿嶄綔 */
@@ -762,7 +778,7 @@
     close() {
       this.tableShow = true
       this.openEdit = false
-       this.editShow= false
+      this.editShow = false
       this.getList()
     },
     //鎵撳紑鏂板缁勪欢寮圭獥

--
Gitblit v1.9.1