| | |
| | | <view style="display: flex;justify-content: space-around;margin-top: 2%;"> |
| | | <!-- <button @click="reset" type="default" size="default" |
| | | style="width: 160rpx;border: 1rpx solid #007aff;color: #007aff;">éç½®</button> --> |
| | | <button @click="submit" type="primary" size="default" style="width: 200rpx;">确认å
¥åº</button> |
| | | <button @click="submit" type="primary" size="default" |
| | | style="width: 200rpx;">确认å
¥åº</button> |
| | | </view> |
| | | </uni-forms-item> |
| | | </uni-forms> |
| | |
| | | matInfos: [], |
| | | orderNo: "", |
| | | batchNo:"", |
| | | orderqty:"", |
| | | Inqty:"", |
| | | orderqty: 0, |
| | | Inqty: 0, |
| | | goods_no:"", |
| | | batch_num:"", |
| | | order_qty:"", |
| | |
| | | }) |
| | | return; |
| | | } |
| | | uni.showLoading({ |
| | | title: 'æäº¤ä¸...' |
| | | }); |
| | | this.$u.post('/api/CabinOrder/FeedbackIn', { |
| | | MainData: { |
| | | "LocationCode": this.barcode, |
| | |
| | | }, |
| | | DelKeys: this.sns |
| | | }).then(res => { |
| | | uni.hideLoading(); |
| | | this.Testcheck = false; |
| | | if (res.status) { |
| | | this.$refs.uToast.show({ |
| | | title: "å
¥åºæå", |
| | | type: "success" |
| | | }) |
| | | this.Inqty=res.message; |
| | | this.Inqty = parseInt(res.message); |
| | | this.order_Inqty="å·²å
¥åºæ°éï¼"+this.Inqty; |
| | | this.barcode=""; |
| | | this.materSn=""; |
| | | if (this.Inqty == this.orderqty) { |
| | | uni.setStorageSync('isLoaded', true); |
| | | this.handleInboundComplete(); |
| | | } |
| | | } else { |
| | | this.$refs.uToast.show({ |
| | | title: res.message, |
| | | type: "error" |
| | | }) |
| | | } |
| | | }).catch(err => { |
| | | uni.hideLoading(); |
| | | this.$refs.uToast.show({ |
| | | title: "ç½ç»é误ï¼è¯·éè¯", |
| | | type: "error" |
| | | }) |
| | | }) |
| | | }, |
| | | // æ°å¢æ¹æ³å¤çå
¥åºå®æé»è¾ |
| | | handleInboundComplete() { |
| | | // æ¾ç¤ºå®ææç¤º |
| | | // uni.showModal({ |
| | | // title: 'æç¤º', |
| | | // content: 'å
¥åºå·²å®æï¼æ¯å¦è¿åé¦é¡µï¼', |
| | | // success: (res) => { |
| | | // if (res.confirm) { |
| | | // // ç¨æ·ç¹å»ç¡®å® |
| | | // setTimeout(() => { |
| | | // // uni.redirectTo({ |
| | | // // url: '/pages/stash/inboundorder?warehouseId='+this.warehouseId // æ¿æ¢ä¸ºä½ çç®æ 页é¢è·¯å¾ |
| | | // // }); |
| | | // uni.navigateBack({ |
| | | // delta: 2 |
| | | // }); |
| | | // }, 500); |
| | | // } else { |
| | | // // ç¨æ·ç¹å»åæ¶ï¼å¯ä»¥åçå¨å½åé¡µé¢ |
| | | // // æè
æ§è¡å
¶ä»æä½ |
| | | // } |
| | | // } |
| | | // }); |
| | | |
| | | // æè
ç´æ¥è·³è½¬ï¼ä¸è¯¢é®ç¨æ·ï¼ |
| | | setTimeout(() => { |
| | | // æ¹å¼2ï¼è·³è½¬å°æå®é¡µé¢ |
| | | // uni.redirectTo({ |
| | | // url: '/pages/order/list' // æ¿æ¢ä¸ºä½ çç®æ 页é¢è·¯å¾ |
| | | // }); |
| | | // æ¹å¼3ï¼è·³è½¬å°é¦é¡µ |
| | | // uni.switchTab({ |
| | | // url: '/pages/index/index' |
| | | // }); |
| | | // æ¹å¼1ï¼ä½¿ç¨uni.navigateBackè¿åä¸ä¸é¡µ |
| | | uni.navigateBack({ |
| | | delta: 2 |
| | | }); |
| | | }, 600); |
| | | } |
| | | } |
| | | } |