| | |
| | | <text>鿱忮ï¼</text> |
| | | <text>{{ orderDetails.requirementDoc }}</text> |
| | | </view> |
| | | <view class="order-details-column"> |
| | | <!-- <view class="order-details-column"> |
| | | <text>æ¨èå
è£
æ°ï¼</text> |
| | | <text>{{ orderDetails.bzsl }}</text> |
| | | </view> --> |
| | | <view class="order-details-column"> |
| | | <text>å·¥åç¶æï¼</text> |
| | | <text>{{ orderDetails.gdzt }}</text> |
| | | </view> |
| | | </view> |
| | | <view class="order-details-row"> |
| | |
| | | <view class="header-item" id="tm">æå°æ¡ç </view> |
| | | <view class="header-item" id="sl">æå°æ°é</view> |
| | | <view class="header-item" id="sj">æå°æ¶é´</view> |
| | | <view class="header-item" id="ry">æå°äºº</view> |
| | | <view class="header-item" id="ry">æ¥å·¥äºº</view> |
| | | </view> |
| | | |
| | | <!-- è¡¨æ ¼å
容 --> |
| | |
| | | orderQuantity: '', // è®¢åæ°é |
| | | producedQuantity: '', // å·²çäº§æ° |
| | | bzsl: '', // æ¨èå
è£
æ° |
| | | gdzt:'', |
| | | itemId: '', // ç©æID |
| | | itemNo: '', // ç©æç¼ç |
| | | itemname: '', // ç©æåç§° |
| | |
| | | itemBarcode: record.itemBarcode || 'æªç¥æ¡ç ', // ç¡®ä¿è§£æå段 |
| | | quantity: record.quantity || 'æªç¥æ°é', // æå°æ°éåæ®µ |
| | | printDate: record.printDate || 'æªç¥æ¶é´', // æå°æ¶é´ |
| | | printedBy: record.printedBy || 'æªç¥ç¨æ·' // æå°äºº |
| | | printedBy: record.printedBy || '' // æ¥å·¥äºº |
| | | })); |
| | | console.log('History records loaded:', this.historyList); |
| | | } else { |
| | |
| | | productionOrder: '', // ç产订å |
| | | orderQuantity: '', // è®¢åæ°é |
| | | bzsl: '', // æ¨èå
è£
æ° |
| | | gdzt:'', |
| | | producedQuantity: '', // å·²çäº§æ° |
| | | itemId: '', // ç©æID |
| | | itemNo: '', // ç©æç¼ç |
| | |
| | | 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, // ç©æç¼ç |
| | |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | // è°ç¨ 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) { |
| | |
| | | // 第åé¨åï¼æ°éä¸éæ±åæ®å· |
| | | command.setText(20, 340, "TSS24.BF2", 1, 1, "æ°é: "); |
| | | command.setText(120, 340, "TSS24.BF2", 1, 1, this.reportedQuantity); |
| | | command.setText(200, 340, "TSS24.BF2", 1, 1, "æå°äºº: "); |
| | | command.setText(200, 340, "TSS24.BF2", 1, 1, "æ¥å·¥äºº: "); |
| | | command.setText(290, 340, "TSS24.BF2", 1, 1, this.selectedPerson); |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | this.oldbgs = this.reportedQuantity; |
| | | this.bgr= |
| | | //仿°å·æ°å·¥åä¿¡æ¯ |
| | | loadOrderDetails(); |
| | | //仿°å·æ°åå²è®°å½ |
| | |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | this.selectedPerson = this.lastRequestData.printedBy; |
| | | // è¡¥æä¸ä¸å¼ è®°å½ |
| | | this.fetchHistoryRecords(this.orderNo); |
| | | if (!this.lastRequestData) { |
| | |
| | | }); |
| | | return; |
| | | } |
| | | //20250507 æ°å èµå¼å岿¡ç æ¥å·¥äºº |
| | | this.selectedPerson = this.lastRequestData.printedBy; |
| | | console.log("èæ¡ç ", this.oldbgs); |
| | | // éæ°æå°ä¸ä¸å¼ è®°å½ |
| | | // async reprintLast() { |