From 517d1ae8b37b25228a771556cdf46b422b8b5bf5 Mon Sep 17 00:00:00 2001
From: admin <15939171744@163.com>
Date: 星期日, 04 八月 2024 15:50:41 +0800
Subject: [PATCH] 人工站进站查询工单逻辑修改

---
 jcdm-ui/src/views/main/kb/stationTerminal/index.vue |   24 +++++++++++++-----------
 1 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue
index 6f7a94a..3cc648a 100644
--- a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue
+++ b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue
@@ -312,7 +312,7 @@
 import {
   bindYzSfcFlag,
   checkCarCode, checkYzSfcCode,
-  findBytrolleyYardGetOne,
+  findBytrolleyYardGetOne, getProductionOrdeOneBySfcCode,
   listProductionOrde, mozuReceivingWorkOrders,
   receivingWorkOrders,
   trolleyYardBinDing
@@ -613,17 +613,19 @@
     },
     /** 鏌ヨ宸ュ崟鍒楄〃 */
     async getList() {
-      await listProductionOrde(this.queryParams).then(response => {
-        let rowsData = response.rows[0];
-        console.log(rowsData)
-        this.workpieceInformation.workOrderNo = rowsData.workOrderNo;
-        this.workpieceInformation.productCode = rowsData.productCode;
-        this.workpieceInformation.materialCode = rowsData.materialCode;
-        this.workpieceInformation.planQty = rowsData.planQty;
-        this.headContent.cardCode = rowsData.trolleyYard;
+      await getProductionOrdeOneBySfcCode(this.queryParams).then(response => {
+        if(response.code === 200){
+          const rowsData = response.data
+          this.workpieceInformation.workOrderNo = rowsData.workOrderNo;
+          this.workpieceInformation.productCode = rowsData.productCode;
+          this.workpieceInformation.materialCode = rowsData.materialCode;
+          this.workpieceInformation.planQty = rowsData.planQty;
+          this.headContent.cardCode = rowsData.trolleyYard;
+
+          this.getListFormulaChild()
+          this.workpieceInformation.inboundTime = this.getCurrentTime()
+        }
       });
-      this.getListFormulaChild()
-      this.workpieceInformation.inboundTime = this.getCurrentTime()
     },
 
     initializedData(){

--
Gitblit v1.9.3