From 7fb0a8f0ab16c149484bf043754cd10cfa94de2f Mon Sep 17 00:00:00 2001
From: wangyi <2946747746@qq.com>
Date: 星期一, 19 一月 2026 14:48:05 +0800
Subject: [PATCH] 增加了业务员,保管员和验收员的对应的显示

---
 src/views/basic/production/gySource.vue |   52 ++++++++++++++++++++++++++++++++++------------------
 1 files changed, 34 insertions(+), 18 deletions(-)

diff --git a/src/views/basic/production/gySource.vue b/src/views/basic/production/gySource.vue
index 5d2cabe..38f7b6b 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,10 +386,9 @@
       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', {
+      axios.get(this.$baseUrl + '/Gy_Source/list_byPage', {
         params: {
           "sWhere": this.sWhere,
           "user": sessionStorage["HUserName"],
@@ -462,7 +460,7 @@
     },
     DisPlay_HideColumn(HModName, user, option, dataOption) {
       this.totalNameList = []
-      axios.get(this.baseURL + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', {
+      axios.get(this.$baseUrl + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', {
         params: {
           "HModName": HModName,
           "user": user,
@@ -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]
+        }
       }
     },
     /** 鎼滅储鎸夐挳鎿嶄綔 */
@@ -719,7 +735,7 @@
     //鏍规嵁鐢ㄦ埛鑾峰彇鐢ㄦ埛鍏宠仈缁勭粐鐨勮繃婊ゆ潯浠�
     getOrgIDByUser() {
       var res = "";
-      axios.get(this.baseURL + '/Xt_User/getOrgIDListByUser', {
+      axios.get(this.$baseUrl + '/Xt_User/getOrgIDListByUser', {
         params: {
           HModName: this.HModName,
           user: sessionStorage["HUserName"],
@@ -762,7 +778,7 @@
     close() {
       this.tableShow = true
       this.openEdit = false
-       this.editShow= false
+      this.editShow = false
       this.getList()
     },
     //鎵撳紑鏂板缁勪欢寮圭獥
@@ -792,7 +808,7 @@
     handleDelete() {
       this.$modal.confirm('纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠').then(() => {
         if (!this.rowForm.瀹℃牳浜�) {
-          axios.get(this.baseURL + "DeltetGy_Source", {
+          axios.get(this.$baseUrl + "DeltetGy_Source", {
             params: { 'HItemID': this.rowForm.HItemID.toString(), 'user': sessionStorage["HUserName"] }
           }).then(response => {
             if (response.data.count == 1) {
@@ -813,7 +829,7 @@
     set_CheckBill(num, form) {
       var InterID = form.HItemID || form.HInterID
       //閫昏緫瀹℃牳鏂规硶
-      axios.get(this.baseURL + "/Gy_Source/AuditGy_Source", {
+      axios.get(this.$baseUrl + "/Gy_Source/AuditGy_Source", {
         params: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }
       }).then(response => {
         let result = response.data
@@ -832,7 +848,7 @@
     set_De_Stop(num, form) {
       var InterID = form.HItemID || form.HInterID
       //閫昏緫瀹℃牳鏂规硶
-      axios.get(this.baseURL + "/Gy_Source/StopGy_Source", {
+      axios.get(this.$baseUrl + "/Gy_Source/StopGy_Source", {
         params: { "HInterID": InterID, "IsStop": num, "CurUserName": sessionStorage["HUserName"] }
       }).then(response => {
         let result = response.data
@@ -896,7 +912,7 @@
       var sMainSub = sSubStr + '&鍜�' + sessionStorage["HUserName"];
       axios({
         method: 'post',
-        url: this.baseURL + "/Gy_Source/Gy_Source_btnSave",
+        url: this.$baseUrl + "/Gy_Source/Gy_Source_btnSave",
         data: {
           'sMainSub': sMainSub
         },

--
Gitblit v1.9.1