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/gyCurrency/gyCurrency.vue |   45 ++++++++++++++++++++++++++++-----------------
 1 files changed, 28 insertions(+), 17 deletions(-)

diff --git a/src/views/basic/gyCurrency/gyCurrency.vue b/src/views/basic/gyCurrency/gyCurrency.vue
index 84d8f57..69f30aa 100644
--- a/src/views/basic/gyCurrency/gyCurrency.vue
+++ b/src/views/basic/gyCurrency/gyCurrency.vue
@@ -808,7 +808,7 @@
     defaintOperationByCompanyName() {
       var result = false;
       axios
-        .get(this.baseURL + "/Xt_getInfo/getCompanyName")
+        .get(this.$baseUrl + "/Xt_getInfo/getCompanyName")
         .then((res) => {
           var data1 = res.data;
           if (data1.count == 1) {
@@ -905,7 +905,7 @@
       }
     
       try {
-        let res = await axios.get(this.baseURL + "/Gy_Currency/list1", {
+        let res = await axios.get(this.$baseUrl + "/Gy_Currency/list1", {
           params: {
             sWhere: this.sWhere,
             user: sessionStorage["HUserName"],
@@ -1009,7 +1009,7 @@
     DisPlay_HideColumn(HModName, user, option, dataOption) {
       this.totalNameList = [];
       axios
-        .get(this.baseURL + "/Xt_grdAlignment_WMES/grdAlignmentWMESList", {
+        .get(this.$baseUrl + "/Xt_grdAlignment_WMES/grdAlignmentWMESList", {
           params: {
             HModName: HModName,
             user: user,
@@ -1164,7 +1164,7 @@
     },
     //閫変腑琛岄珮浜牱寮�
     rowStyle({ row, rowIndex }) {
-      if (this.ids.includes(row.hmainid)) {
+      if (this.ids.includes(row.HItemID)) {
         return { background: "#ecf5ff" };
       }
     },
@@ -1186,11 +1186,22 @@
     // 澶氶�夋閫変腑鏁版嵁
     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];
+        }
       }
     },
     //鎵撳紑渚ц竟鎼滅储寮圭獥
@@ -1303,7 +1314,7 @@
     getOrgIDByUser() {
       var res = "";
       axios
-        .get(this.baseURL + "/Xt_User/getOrgIDListByUser", {
+        .get(this.$baseUrl + "/Xt_User/getOrgIDListByUser", {
           params: {
             HModName: this.HModName,
             user: sessionStorage["HUserName"],
@@ -1388,7 +1399,7 @@
         .then(() => {
           if (!this.rowForm.瀹℃牳浜�) {
             axios
-              .get(this.baseURL + "DeltetGy_Currency", {
+              .get(this.$baseUrl + "DeltetGy_Currency", {
                 params: {
                   HInterID: this.rowForm.hmainid.toString(),
                   user: sessionStorage["HUserName"],
@@ -1416,7 +1427,7 @@
       var InterID = form.HItemID || form.HInterID || form.hmainid;
       //閫昏緫瀹℃牳鏂规硶
       axios
-        .get(this.baseURL + "Gy_Currency/AuditGy_Currency", {
+        .get(this.$baseUrl + "Gy_Currency/AuditGy_Currency", {
           params: {
             HInterID: InterID,
             IsAudit: num,
@@ -1442,7 +1453,7 @@
       try {
         let res = await axios
         .get(
-          this.baseURL + "/Gy_Currency/StopGy_Currency",
+          this.$baseUrl + "/Gy_Currency/StopGy_Currency",
           {
             params: {
               HInterID: HInterID,
@@ -1468,7 +1479,7 @@
     //   let HInterID = form.HItemID || form.HInterID || form.hmainid;
     //   try {
     //     let res = await axios.get(
-    //       `${this.baseURL}/Cg_POInStockBill/CloseCg_POInStockBill`,
+    //       `${this.$baseUrl}/Cg_POInStockBill/CloseCg_POInStockBill`,
     //       {
     //         params: {
     //           HInterID: HInterID,
@@ -1495,7 +1506,7 @@
     //   let HEntryID = form.HEntryID || form.hsubid;
     //   try {
     //     let res = await axios.get(
-    //       `${this.baseURL}/Cg_POInStockBill/CloseRowCg_POInStockBill`,
+    //       `${this.$baseUrl}/Cg_POInStockBill/CloseRowCg_POInStockBill`,
     //       {
     //         params: {
     //           HInterID: HInterID,
@@ -1522,7 +1533,7 @@
     //   let HInterID = form.HItemID || form.HInterID || form.hmainid;
     //   try {
     //     let res = await axios.get(
-    //       `${this.baseURL}/Cg_POInStockBill/DropCg_POInStockBill`,
+    //       `${this.$baseUrl}/Cg_POInStockBill/DropCg_POInStockBill`,
     //       {
     //         params: {
     //           HInterID: HInterID,
@@ -1548,7 +1559,7 @@
       var InterID = form.HItemID || form.HInterID;
       //閫昏緫瀹℃牳鏂规硶
       axios
-        .get(this.baseURL + "/Gy_Employee/StopGy_Employee", {
+        .get(this.$baseUrl + "/Gy_Employee/StopGy_Employee", {
           params: {
             HInterID: InterID,
             IsStop: num,
@@ -1622,7 +1633,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