From a04643cd0707a00e265d0ea5aa4e77273a44b6c3 Mon Sep 17 00:00:00 2001
From: 周宾 <2802492122@qq.com>
Date: 星期一, 29 十二月 2025 11:03:12 +0800
Subject: [PATCH] 天津双奇点-首页 修改数据展示 回款与开票分析更正数据

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

diff --git a/src/views/inventoryManagement/receiptManagement/index.vue b/src/views/inventoryManagement/receiptManagement/index.vue
index bc10ca0..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>
@@ -588,7 +588,7 @@
 const scanBarcodeInput = ref('');
 const barcodeDetail = ref({})
 // 鎵爜鍑芥暟
-const scanBarcode = (e) => {
+function scanBarcode (e){
   if(!e||!e.target||!e.target.tagName){
     return;
   }
@@ -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(() => {
@@ -639,6 +645,7 @@
 
 onMounted(() => {
   // 娣诲姞鎵爜鏋洃鍚簨浠�
+  document.removeEventListener('keypress',scanBarcode)
   document.addEventListener('keypress', scanBarcode)
   getList()
 })

--
Gitblit v1.9.3