| | |
| | | <view v-if="current === 0" class="headerstyle"> |
| | | <view class="itemstyle"> |
| | | <uni-forms label-width="180"> |
| | | <uni-forms-item :label="orderNolabel"> |
| | | </uni-forms-item> |
| | | <uni-forms-item :label="batchNolabel"> |
| | | </uni-forms-item> |
| | | <uni-forms-item :label="orderQuantitylabel"> |
| | | </uni-forms-item> |
| | | <uni-forms-item :label="receiptQuantitylabel"> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="æçæ¡ç :"> |
| | | <uni-easyinput type="text" placeholder="è¯·æ«ææçæ¡ç " ref='midInput' :focus="!focus" |
| | | v-model="barcode" @input="barcodeInput" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="è¢æ°:"> |
| | | <uni-easyinput type="int" placeholder="请è¾å
¥è¢æ°" ref='midInput' :focus="focus" v-model="qty" /> |
| | | </uni-forms-item> |
| | | <!-- <uni-forms-item> |
| | | <checkbox checked="check">æ¯å¦æ»¡ç</checkbox> |
| | |
| | | <button @click="submit" type="primary" size="default" style="margin-top: 2%;">ç»çå
¥åº</button> |
| | | </uni-forms-item> |
| | | <uni-forms-item> |
| | | <button @click="ReleaseCompleted" type="primary" size="default" style="margin-top: 2%;">æ¾è´§å®æ</button> |
| | | <button @click="ReleaseCompleted" type="primary" size="default" |
| | | style="margin-top: 2%;">æ¾è´§å®æ</button> |
| | | </uni-forms-item> |
| | | </uni-forms> |
| | | </view> |
| | |
| | | return { |
| | | items: ['ç»ç'], //, 'å
¥åº', 'åæ®ä¿¡æ¯', 'è§£ç' |
| | | current: 0, |
| | | orderNo: "", |
| | | batchNo: "", |
| | | orderNolabel: "", |
| | | receiptQuantity: 0, |
| | | orderQuantity: "", |
| | | orderQuantitylabel: "", |
| | | receiptQuantitylabel: "", |
| | | batchNolabel: "", |
| | | qty: 0, |
| | | orderInfo: [], |
| | | focus: false, |
| | | barcode: "", |
| | |
| | | }, |
| | | onShow() {}, |
| | | onLoad(res) { |
| | | this.orderNo = res.orderNo; |
| | | this.orderQuantity = res.orderQuantity; |
| | | this.orderQuantitylabel = "åæ®æ°éï¼" + this.orderQuantity; |
| | | this.receiptQuantity = res.receiptQuantity; |
| | | this.receiptQuantitylabel = "ç»çæ°éï¼" + this.receiptQuantity; |
| | | this.batchNo = res.batchNo; |
| | | this.orderNolabel = "æ¹å·ï¼" + this.orderNo; |
| | | this.batchNolabel = "æå·ï¼" + this.batchNo; |
| | | this.batchNolabel = "æ¹å·ï¼" + this.batchNo; |
| | | // this.getData(); |
| | | }, |
| | | methods: { |
| | |
| | | title: "æ¾è´§å®ææå", |
| | | type: "success" |
| | | }) |
| | | this.qty = ""; |
| | | } else { |
| | | this.$refs.uToast.show({ |
| | | title: res.message, |
| | |
| | | }) |
| | | return; |
| | | } |
| | | if (this.qty == 0) { |
| | | this.$refs.uToast.show({ |
| | | title: "请è¾å
¥è¢æ°", |
| | | type: 'error' |
| | | }) |
| | | return; |
| | | } |
| | | this.$u.post('/api/PDA/InMateriel', { |
| | | MainData: { |
| | | "palletCode": this.barcode, |
| | | "orderNo": this.orderNo, |
| | | "batchNo":this.batchNo |
| | | "qty": this.qty, |
| | | "batchNo": this.batchNo |
| | | }, |
| | | DelKeys: this.sns |
| | | }).then(res => { |
| | | this.Testcheck = false; |
| | | if (res.status) { |
| | | this.$refs.uToast.show({ |
| | | title: "ç»çæå", |
| | | type: "success" |
| | | }) |
| | | // this.$refs.uToast.show({ |
| | | // title: "ç»çæå", |
| | | // type: "success" |
| | | // }) |
| | | let sum = parseInt(this.receiptQuantity) + parseInt(this.qty); |
| | | this.receiptQuantity = sum; |
| | | this.focus = false; |
| | | this.barcode = ""; |
| | | this.qty = 0; |
| | | this.receiptQuantitylabel = "ç»çæ°éï¼" + this.receiptQuantity; |
| | | } else { |
| | | this.$refs.uToast.show({ |
| | | title: res.message, |