yhj
2025-05-20 f7a0010a694b8d795410f9ea8622db5827bb713a
ÏÄÃÉ×¢Ëܱ¨¹¤/pages/scbg/scbg.vue
@@ -1050,6 +1050,61 @@
                  });
               }
            });
         // è°ƒç”¨ API èŽ·å–å·¥å•è¯¦æƒ…
         uni.request({
            url: `http://192.168.0.107:44380/api/orderDetails?orderNo=${encodeURIComponent(this.orderNo)}`, // ä½¿ç”¨å­˜å‚¨çš„orderNo
            method: 'GET',
            header: {
               'Content-Type': 'application/json'
            },
            success: (res) => {
               console.log('gongdanxinx', res.data);
               if (res.statusCode === 200) {
                  this.orderDetails = {
                     requirementDoc: res.data.requirementDoc, // éœ€æ±‚单据
                     productionOrder: res.data.productionOrder, // ç”Ÿäº§è®¢å•
                     orderQuantity: res.data.orderQuantity, // è®¢å•数量
                     bzsl: res.data.bzsl, // æŽ¨èåŒ…装数
                     gdzt: res.data.gdzt, // å·¥å•状态
                     producedQuantity: res.data.producedQuantity, // å·²ç”Ÿäº§æ•°
                     itemId: res.data.itemId, // ç‰©æ–™ID
                     itemNo: res.data.itemNO, // ç‰©æ–™ç¼–码
                     itemname: res.data.itemname, // ç‰©æ–™åç§°
                     itemmodel: res.data.itemmodel, // è§„格型号
                  };
                  // æ ¹æ® sj å’Œ xj çš„值来设置首检和巡检状态
                  // æ ¹æ® sj å’Œ xj çš„值来设置首检和巡检状态
                  if (res.data.sj === 1) {
                     this.checkFirstPass = true; // é¦–检合格
                  } else if (res.data.sj === 2) {
                     this.checkFirstPass = false; // é¦–检不合格
                  } else {
                     this.checkFirstPass = null; // é¦–检未做
                  }
                  if (res.data.xj === 1) {
                     this.checkXJ = true; // å·¡æ£€åˆæ ¼
                  } else if (res.data.xj === 2) {
                     this.checkXJ = false; // å·¡æ£€ä¸åˆæ ¼
                  } else {
                     this.checkXJ = null; // å·¡æ£€æœªåš
                  }
                  console.log('Order details loaded:', this.orderDetails);
               } else {
                  console.error('Failed to fetch order details:', res);
               }
            },
            fail: (err) => {
               console.error('Error fetching order details:', err);
            }
         });
         },
         mapStatus(status) {
            if (status === 3) {