| | |
| | | <uni-easyinput type="text" placeholder="è¯·æ«æå¤ç®±æ ç¾" ref='midInput' :focus="focus" v-model="materSn" |
| | | @input="snInput" /> |
| | | </uni-forms-item> |
| | | <uni-list> |
| | | <!-- <uni-list-item direction="column" v-for="item in InBoundOrder" :key="item.matCode"> |
| | | <template v-slot:body> |
| | | <view class="uni-list-box"> |
| | | <view class="uni-content"> |
| | | <view class="uni-title-sub uni-ellipsis-2">订åå¯ä¸ç¼ç ï¼{{item.orderNo}}</view> |
| | | </view> |
| | | <view v-if="group.length" class="scan-result"> |
| | | <uni-card v-for="(item, index) in group" :key="item.orderNo"> |
| | | <view class="info-grid"> |
| | | <view class="info-row"> |
| | | <text class="label">订åç¼ç ï¼</text> |
| | | <text>{{ item.orderNo }}</text> |
| | | </view> |
| | | </template> |
| | | </uni-list-item> --> |
| | | <br> |
| | | <view class="info-row"> |
| | | <text class="label">ä»åºåç§°ï¼</text> |
| | | <text>{{ item.warehouseName }}</text> |
| | | </view><br> |
| | | <view class="info-row"> |
| | | <text class="label">ç©æç¼ç ï¼</text> |
| | | <text>{{ item.materialNo }}</text> |
| | | </view><br> |
| | | <uni-forms-item label="ç»çæ°é"> |
| | | <uni-easyinput v-model="item.quantity" type="number" /> |
| | | </uni-forms-item> |
| | | </view> |
| | | <uni-icons type="trash" class="delete-icon" @click="removeScanItem(item.orderNo)" /> |
| | | </uni-card> |
| | | </view> |
| | | |
| | | <!-- <uni-list> |
| | | <uni-list-item direction="column" v-for="(item,index) in InBoundOrder" :key="item.sn"> |
| | | <template v-slot:body> |
| | | <view class="uni-list-box"> |
| | |
| | | <view class="uni-content"> |
| | | <view class="uni-title-sub uni-ellipsis-2">订åå¯ä¸ç¼ç ï¼{{item.orderNo}}</view> |
| | | </view> |
| | | <view class="uni-content"> |
| | | <view class="uni-title-sub uni-ellipsis-2">ä»åºï¼{{item.warehouseName}}</view> |
| | | </view> |
| | | <view class="uni-content"> |
| | | <view class="uni-title-sub uni-ellipsis-2">ç©æç¼ç ï¼{{item.materialNo}}</view> |
| | | </view> |
| | | <uni-forms-item label="æ°é"> |
| | | <uni-easyinput type="text" :focus="barcodefocus" @input="quantity" |
| | | v-model="PalletCode2" placeholder="æ°é" ref='midInput' /> |
| | | </uni-forms-item> |
| | | </view> |
| | | </template> |
| | | </uni-list-item> |
| | | </uni-list> |
| | | </uni-list> --> |
| | | </uni-forms> |
| | | <button @click="GroupPlate" type="primary" size="default" style="margin-top: 2%;">ç»ç</button> |
| | | </view> |
| | |
| | | istrue: false, |
| | | barcodefocus: false, |
| | | range: [], |
| | | group: [], |
| | | AreaId: 0, |
| | | quantity: "", |
| | | SourceAddress: "", |
| | | TargetAddress: "", |
| | | PalletCode1: "", |
| | | PalletCode2: "", |
| | | PalletCode3: "", |
| | | materSn: "", |
| | | InBoundOrder: [], |
| | | OrderNos: [], |
| | | items: ['å
¥åº', 'ç»ç', 'è§£ç'], |
| | | current: 0 |
| | | } |
| | |
| | | "TargetAddress": this.TargetAddress, |
| | | "AreaId": this.AreaId, |
| | | } |
| | | console.log(param); |
| | | this.$u.post('/api/Task/RequestInboundTaskAsync', param).then(res => { |
| | | if (res.status) { |
| | | this.$refs.luToast.show({ |
| | |
| | | } |
| | | var param = { |
| | | "PalletCode": this.PalletCode2, |
| | | "OrderNos": this.OrderNos |
| | | "groups": this.group |
| | | } |
| | | this.$u.post('/api/StockInfo/AddGroupPlateAsync', param).then(res => { |
| | | this.$u.post('/api/BoxingInfo/AddGroupPlateAsync', param).then(res => { |
| | | if (res.status) { |
| | | this.$refs.luToast.show({ |
| | | title: res.message, |
| | | type: "success" |
| | | }) |
| | | this.PalletCode2 = ""; |
| | | this.InBoundOrder = []; |
| | | this.OrderNos = []; |
| | | this.group = []; |
| | | this.barcodefocus = false; |
| | | } else { |
| | | this.$refs.luToast.show({ |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | SolvePlate(){ |
| | | |
| | | SolvePlate() { |
| | | if (this.PalletCode3.length <= 0) { |
| | | this.$refs.luToast.show({ |
| | | title: "请è¾å
¥æçæ¡ç ", |
| | |
| | | var matObj = { |
| | | orderNo: this.materSn, |
| | | } |
| | | var temp = this.InBoundOrder.find(x => x.orderNo == matObj.orderNo); |
| | | var temp = this.group.find(x => x.orderNo == matObj.orderNo); |
| | | if (!temp) { |
| | | this.InBoundOrder.push(matObj); |
| | | this.OrderNos.push(this.materSn); |
| | | setTimeout(this.updateFocus, 200); |
| | | setTimeout(() => { |
| | | this.voiceSpeech('../../static/success.mp3'); |
| | | }, 100); |
| | | this.$u.post('/api/InboundOrder/GetInboundOrderInfo?orderNo=' + this.materSn, "").then( |
| | | res => { |
| | | if (res.status) { |
| | | this.group.push(res.data); |
| | | setTimeout(this.updateFocus, 200); |
| | | setTimeout(() => { |
| | | this.voiceSpeech('../../static/success.mp3'); |
| | | }, 100); |
| | | } else { |
| | | this.$refs.luToast.show({ |
| | | title: res.message, |
| | | type: "error" |
| | | }) |
| | | } |
| | | }) |
| | | |
| | | } else { |
| | | this.$refs.uToast.show({ |
| | | this.$refs.luToast.show({ |
| | | title: "æ«ç éå¤", |
| | | type: "error" |
| | | }) |
| | |
| | | |
| | | }) |
| | | }, |
| | | deleteList(res) { |
| | | this.InBoundOrder.map((item, index) => { |
| | | console.log(res, item); |
| | | if (item.orderNo == res) { |
| | | this.InBoundOrder.splice(index, 1); |
| | | } |
| | | }) |
| | | this.OrderNos.map((item, index) => { |
| | | if (item == res) { |
| | | this.OrderNos.splice(index, 1); |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | removeScanItem(orderNo) { |
| | | this.group = this.group.filter(item => item.orderNo !== orderNo); |
| | | } |
| | | } |
| | | } |
| | | </script> |