| | |
| | | <view><text style="width: 400rpx;">入库区域:{{item.matType$}}</text></view> |
| | | <view><text style="width: 400rpx;">批号:{{item.batch}}</text></view> |
| | | <view><text style="width: 400rpx;">客户信息:{{item.owner}}</text></view> |
| | | <view> |
| | | <text style="width: 400rpx;">备注:{{item.memo}}</text> |
| | | <text style="width: 400rpx;margin-left: 100rpx">数量:{{item.anfme}}</text> |
| | | </view> |
| | | <text style="width: 400rpx;margin-left: 100rpx;color: blue;" v-show="orderNo">已入/总数:{{item.qty}} / {{item.total}}</text> |
| | | <view><text style="width: 400rpx;">本次入库:{{item.enterCount}}</text></view> |
| | | <!-- <view> |
| | | <text style="width: 400rpx;">备注:{{item.memo}}</text> |
| | | <text style="width: 400rpx;margin-left: 100rpx;color: blue;">已入/总数:{{item.qty}} / {{item.anfme}}</text> |
| | | </view> --> |
| | | <!-- <view> |
| | | <text style="width: 400rpx;">数量:{{item.anfme}}</text> |
| | | </view> --> |
| | |
| | | ck1: false, |
| | | ck2: true, |
| | | frozen: 0, |
| | | owner: '' |
| | | owner: '', |
| | | enterCount: 0 |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200 ) { |
| | | for(let k in res.data) { |
| | | res.data[k]['total'] = res.data[k].anfme |
| | | res.data[k]['enterCount'] = res.data[k].anfme - res.data[k].qty |
| | | } |
| | | _this.matList = res.data |
| | | } |
| | | console.log(res); |
| | | } |
| | | }) |
| | | |
| | |
| | | var len = this.barcode.length |
| | | if (len != 8) { |
| | | uni.showToast({title: '托盘码有误请重试', icon: "none", position: 'top'}); |
| | | this.barcodeFocuss() |
| | | this.orderNoFocus = false; |
| | | setTimeout(()=>{ |
| | | this.barcode = ''; |
| | | this.orderNoFocus = true; |
| | | }, 100); |
| | | return; |
| | | } |
| | | this.focuss() |
| | |
| | | // 托盘码有误重置 |
| | | barcodeFocuss() { |
| | | let that = this; |
| | | that.barcodeFocus = false; |
| | | that.orderNoFocus = false; |
| | | setTimeout(()=>{ |
| | | that.barcode = ''; |
| | | that.barcodeFocus = true; |
| | | that.orderNoFocus = true; |
| | | }, 100); |
| | | }, |
| | | // 商品光标清空重置 |
| | |
| | | this.matList = [] |
| | | this.barcode = '' |
| | | this.matnr = '' |
| | | this.orderNo = '' |
| | | this.barcodeFocuss() |
| | | uni.vibrateShort(); |
| | | }, |
| | |
| | | that.matList[k].owner = that.owner[t].id |
| | | } |
| | | } |
| | | } |
| | | for (let k in that.matList) { |
| | | that.matList[k].anfme = that.matList[k].enterCount |
| | | } |
| | | uni.showLoading(); |
| | | uni.request({ |
| | |
| | | uni.vibrateShort(); |
| | | }, |
| | | revise(item,index) { |
| | | this.count = this.matList[index].anfme |
| | | this.count = this.matList[index].enterCount |
| | | this.batch = this.matList[index].batch |
| | | this.memo = this.matList[index].memo |
| | | this.cstmr = this.matList[index].cstmr |
| | |
| | | this.count = value |
| | | }, |
| | | confirm() { |
| | | this.matList[this.rowNum].anfme = this.count |
| | | this.matList[this.rowNum].enterCount = this.count |
| | | this.matList[this.rowNum].batch = this.batch |
| | | this.matList[this.rowNum].memo = this.memo |
| | | this.matList[this.rowNum].cstmr = this.cstmr |