| | |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | // è°ç¨ 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) { |