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/warehouse/barcodeMaster/Gy_BarCodeBillList.vue |   56 +++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 51 insertions(+), 5 deletions(-)

diff --git a/src/views/warehouse/barcodeMaster/Gy_BarCodeBillList.vue b/src/views/warehouse/barcodeMaster/Gy_BarCodeBillList.vue
index 9ded270..d8caad1 100644
--- a/src/views/warehouse/barcodeMaster/Gy_BarCodeBillList.vue
+++ b/src/views/warehouse/barcodeMaster/Gy_BarCodeBillList.vue
@@ -114,8 +114,16 @@
       </el-collapse>
     </el-form>
     <el-row :gutter="10" class="mb8" style="margin-top: 10px;">
+      <!-- <el-col :span="1.5">
+        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDrop">鍒犻櫎
+        </el-button>
+      </el-col> -->
       <el-col :span="1.5">
-        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete">鍒犻櫎
+        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete(0)">浣滃簾
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete(1)">鍙嶄綔搴�
         </el-button>
       </el-col>
       <el-col :span="1.5">
@@ -340,7 +348,7 @@
     
     //#region 鍔犺浇缁勭粐涓嬫媺鍒楄〃鏁版嵁
     fetchData() {
-      axios.get(this.baseURL + "/Web/GetOrganizations", {
+      axios.get(this.$baseUrl + "/Web/GetOrganizations", {
       }).then(response => {
         if (response.data.count == 1) {
           this.organizationList = response.data.data;//缁勭粐鍒楄〃
@@ -466,6 +474,12 @@
       if (this.queryParams.HOrgID) {
         this.sWhere += " and HStockOrgID = ''" + this.queryParams.HOrgID + "''";
       }
+
+      //濡傛灉鏄嚜鍔ㄧ櫥褰曪紝鍒欏彧鑳芥煡鐪嬩緵搴斿晢鑷繁鐨勬潯鐮併��
+      if (sessionStorage["HAutoLogin"] == "1") {
+        this.sWhere += " and 渚涘簲鍟� = ''" + sessionStorage["HUserName"] + "''";
+      }
+
       this.getList()
     },
     //#endregion
@@ -480,7 +494,7 @@
       this.loading = true
       
       // 鍒楄〃鏌ヨ
-      axios.get(this.baseURL + '/Gy_BarCodeBillList/page', {
+      axios.get(this.$baseUrl + '/Gy_BarCodeBillList/page', {
         params: {
           "sWhere": this.sWhere,
           "user": sessionStorage["HUserName"],
@@ -560,7 +574,39 @@
     //#endregion
 
     //#region 鍒犻櫎
-    handleDelete() {
+    handleDrop() {
+    },
+    //#endregion
+
+    //#region 浣滃簾
+    handleDelete(num) {
+      if (this.checkDataList.length != 1) {
+        this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹�");
+      } else {
+        // this.rowSel = [];
+        // for (var i = 0; i < this.checkDataList.length; i++) {
+        //   this.rowSel.push(this.checkDataList[i].HItemID.toString());
+        // }
+
+        var HInterID = this.checkDataList[0].HItemID;
+        // 鍒楄〃鏌ヨ
+        axios.get(this.$baseUrl + '/Gy_BarCodeBillList/DeleteGy_BarCodeBillList', {
+          params: {
+            "HInterID": HInterID,
+            "IsAudit": num,
+            "CurUserName": sessionStorage["HUserName"],
+          },
+        }).then(response => {
+          let data1 = response.data
+          if (data1.count == 1) {
+            this.handleQuery();
+          }else{
+            this.$modal.msgError(data1.Message);
+          }
+        }).catch(error => {
+          this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+        });
+      }
     },
     //#endregion
 
@@ -577,7 +623,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,

--
Gitblit v1.9.1