From cfdd9549f7331261512d00b293d9b7222d99fcdd Mon Sep 17 00:00:00 2001
From: 周宾 <2802492122@qq.com>
Date: 星期一, 29 十二月 2025 15:57:55 +0800
Subject: [PATCH] 天津双奇点-新增台账增加商品id字段

---
 src/views/inventoryManagement/receiptManagement/index.vue |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/src/views/inventoryManagement/receiptManagement/index.vue b/src/views/inventoryManagement/receiptManagement/index.vue
index 4d8d8cb..75dce3c 100644
--- a/src/views/inventoryManagement/receiptManagement/index.vue
+++ b/src/views/inventoryManagement/receiptManagement/index.vue
@@ -104,8 +104,8 @@
            <el-table-column fixed="right" label="鎿嶄綔" min-width="60" align="center">
              <template #default="scope">
                <el-button link type="primary" size="small" @click="openForm('edit', scope.row, 'purchase');">缂栬緫</el-button>
-                <el-button link type="success" size="small" @click="showQRCode(scope.row,1)">鐢熸垚鏉″舰鐮�</el-button>
-                <el-button link type="success" size="small" @click="showERCode(scope.row,1)">鐢熸垚浜岀淮鐮�</el-button>
+                <!-- <el-button link type="success" size="small" @click="showQRCode(scope.row,1)">鐢熸垚鏉″舰鐮�</el-button>
+                <el-button link type="success" size="small" @click="showERCode(scope.row,1)">鐢熸垚浜岀淮鐮�</el-button> -->
              </template>
            </el-table-column>
          </el-table>
@@ -169,8 +169,8 @@
             <el-table-column fixed="right" label="鎿嶄綔" width="100" align="center">
               <template #default="scope">
                 <el-button link type="primary" size="small" @click="openForm('edit', scope.row, 'manual');">缂栬緫</el-button>
-                <!-- <el-button link type="success" size="small" @click="showQRCode(scope.row,2)">鐢熸垚鏉″舰鐮�</el-button>
-                <el-button link type="success" size="small" @click="showERCode(scope.row,2)">鐢熸垚浜岀淮鐮�</el-button> -->
+                <el-button link type="success" size="small" @click="showQRCode(scope.row,2)">鐢熸垚鏉″舰鐮�</el-button>
+                <el-button link type="success" size="small" @click="showERCode(scope.row,2)">鐢熸垚浜岀淮鐮�</el-button>
               </template>
             </el-table-column>
           </el-table>
@@ -604,7 +604,6 @@
   }
 }
 const getDetail = (barcode)=>{
-  console.log('barcode',barcode)
   if(barcode.indexOf(",")==-1){
     proxy.$modal.msgWarning("璇锋壂鎻忔纭殑鏉″舰鐮�")
     return
@@ -624,7 +623,14 @@
     return
   }
   detailApi({id:barcodeId}).then((resp) => {
-    if(resp.code!=200||!resp.data)return
+    if(!resp.data){
+      proxy.$modal.msgError("鍟嗗搧涓嶅瓨鍦�")
+      return
+    }
+    if(resp.code!=200){
+      proxy.$modal.msgError(res.msg)
+      return
+    }
     barcodeDetail.value = resp.data
     barcodeDia.value = true
   }).catch(() => {

--
Gitblit v1.9.3