From a0f48422ed179d2f82d5701a7528e77462f71483 Mon Sep 17 00:00:00 2001
From: kyy <3283105747@qq.com>
Date: 星期四, 16 十月 2025 13:36:04 +0800
Subject: [PATCH] 1、oqc新增获取检验项目

---
 pages/QC/OQC/ScanCode.vue |   23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/pages/QC/OQC/ScanCode.vue b/pages/QC/OQC/ScanCode.vue
index f7c77cf..05b1061 100644
--- a/pages/QC/OQC/ScanCode.vue
+++ b/pages/QC/OQC/ScanCode.vue
@@ -162,13 +162,15 @@
           ItemCode: this.formData.ItemBarcode
         }
       }).then(res => {
+		  
+		 if( res.status == 1 ){
+			 this.$showMessage(res.message);
+			 return;
+		 }
+		  
         let fr = res.data.tbBillList;
 
-        // 鏁版嵁瀹屾暣鎬ф牎楠�
-        if (!fr) {
-          this.$showMessage("鑾峰彇鏉$爜淇℃伅澶辫触锛岃閲嶈瘯");
-          return;
-        }
+        
 
         if (!fr.itemId || !fr.itemName || !fr.itemNo) {
           this.$showMessage("鏉$爜淇℃伅涓嶅畬鏁达紝璇锋鏌ユ潯鐮�");
@@ -216,7 +218,16 @@
         }
 
         this.formData = fr;
-        this.tableData.push(fr); // 灏嗘柊鏁版嵁娣诲姞鍒拌〃鏍�
+		let data = {
+			id : this.formData.id,
+			itemBarcode : this.formData.itemBarcode,
+			quantity : this.formData.quantity,
+			itemName : this.formData.itemName,
+			itemNo : this.formData.itemNo,
+			taskNo : this.formData.taskNo,
+			itemId :  this.formData.itemId
+		};
+        this.tableData.push(data); // 灏嗘柊鏁版嵁娣诲姞鍒拌〃鏍�
         this.quantity = this.tableData.reduce(function (accumulator, current) {
           return accumulator + current["quantity"];
         }, 0);

--
Gitblit v1.9.3