| | |
| | | <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> |
| | |
| | | matTotal: [], |
| | | matInfos: [], |
| | | orderNo: "", |
| | | batchNo:"", |
| | | orderqty:"", |
| | | Inqty:"", |
| | | goods_no:"", |
| | | batch_num:"", |
| | | order_qty:"", |
| | | order_Inqty:"", |
| | | batchNo: "", |
| | | materielCode:"", |
| | | orderqty: 0, |
| | | Inqty: 0, |
| | | goods_no: "", |
| | | batch_num: "", |
| | | order_qty: "", |
| | | order_Inqty: "", |
| | | label: "", |
| | | orderInfo: [], |
| | | focus: false, |
| | |
| | | this.focus = false; |
| | | this.addressFocus = false; |
| | | this.orderNo = res.orderNo; |
| | | this.Inqty=res.order_Inqty; |
| | | this.orderqty=res.order_qty; |
| | | this.batchNo=res.batchNo; |
| | | this.Inqty = res.order_Inqty; |
| | | this.orderqty = res.order_qty; |
| | | this.batchNo = res.batchNo; |
| | | this.materielCode=res.goods_no; |
| | | this.warehouseId = res.warehouseId; |
| | | this.label = "åæ®ç¼å·ï¼" + this.orderNo; |
| | | this.batch_num="æ¹æ¬¡å·ï¼"+res.batchNo; |
| | | this.order_qty="åæ®æ°éï¼"+res.order_qty; |
| | | this.order_Inqty="å·²å
¥åºæ°éï¼"+this.Inqty; |
| | | this.goods_no="ç©æç¼å·ï¼"+res.goods_no; |
| | | this.batch_num = "æ¹æ¬¡å·ï¼" + res.batchNo; |
| | | this.order_qty = "åæ®æ°éï¼" + res.order_qty; |
| | | this.order_Inqty = "å·²å
¥åºæ°éï¼" + this.Inqty; |
| | | this.goods_no = "ç©æç¼å·ï¼" + res.goods_no; |
| | | this.getData(); |
| | | }, |
| | | methods: { |
| | |
| | | matSn = matSn.replace(/,SC.*/, ''); |
| | | } |
| | | //æ¥è¯¢matSnæ¯å¦åå¨å符 |
| | | if(matSn.indexOf("POHA")>0){ |
| | | if (matSn.indexOf("POHA") > 0) { |
| | | this.$u.post('/api/MaterielInfo/CodeAnalysis?serNum=' + matSn, {}).then((res) => { |
| | | this.Testcheck = false; |
| | | if (res.status) { |
| | | this.sns.push(res.data.serialNumber); |
| | | |
| | | |
| | | this.matInfos.push(res.data); |
| | | if (res.message) { |
| | | this.$refs.uToast.show({ |
| | |
| | | pksnInput() { |
| | | this.$nextTick(() => { |
| | | if (this.pkmaterSn != "") { |
| | | |
| | | |
| | | var matSn = this.pkmaterSn; |
| | | |
| | | if(matSn.indexOf("POHA")>0){ |
| | | |
| | | if (matSn.indexOf("POHA") > 0) { |
| | | this.$u.post('/api/MaterielInfo/CodeAnalysis?serNum=' + matSn, {}).then((res) => { |
| | | if (res.status) { |
| | | this.pksns.push(res.data.serialNumber); |
| | |
| | | }) |
| | | return; |
| | | } |
| | | uni.showLoading({ |
| | | title: 'æäº¤ä¸...' |
| | | }); |
| | | this.$u.post('/api/CabinOrder/FeedbackIn', { |
| | | MainData: { |
| | | "LocationCode": this.barcode, |
| | | "warehouseCode": this.warehouseId, |
| | | "orderNo": this.orderNo, |
| | | "materielCode":this.materielCode, |
| | | "Inqty": this.materSn, |
| | | "batchNo": this.batchNo, |
| | | }, |
| | | 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.order_Inqty="å·²å
¥åºæ°éï¼"+this.Inqty; |
| | | this.barcode=""; |
| | | this.materSn=""; |
| | | this.Inqty = parseInt(res.message); |
| | | this.order_Inqty = "å·²å
¥åºæ°éï¼" + this.Inqty; |
| | | this.barcode = ""; |
| | | this.materSn = ""; |
| | | if (this.Inqty == this.orderqty) { |
| | | uni.setStorageSync('isIn', 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: 1 |
| | | }); |
| | | }, 600); |
| | | } |
| | | } |
| | | } |