| | |
| | | <radio :checked="ck2" style="margin-left: 50rpx;"/><text>否</text> |
| | | </label> |
| | | </radio-group> |
| | | <!-- <radio :value="yes" style="margin-left: 100rpx;">是</radio> |
| | | <radio :value="no" style="margin-left: 50rpx;">否</radio> --> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="square-1"> |
| | | <view class="square-title" style="display: flex;align-items: center;"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text" style="flex: 1;"><text>商品类型</text></view> |
| | | <view style=""> |
| | | <uni-combox style="width: 150px;margin-right: 10px;" :candidates="matTypes" placeholder="请选择商品类型" |
| | | v-model="matType"></uni-combox> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="square-2"> |
| | | <view class="square-title"> |
| | |
| | | <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;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">数量:{{item.anfme}}</text> |
| | | </view> |
| | | <text style="width: 400rpx;margin-left: 100rpx;color: blue;">已入/总数:{{item.qty}} / {{item.anfme}}</text> |
| | | </view> --> |
| | | <!-- <view> |
| | | <text style="width: 400rpx;">数量:{{item.anfme}}</text> |
| | | </view> --> |
| | |
| | | check:false, |
| | | checkText:'全选', |
| | | checkedData:[], |
| | | matType: '', |
| | | matTypes: ['单品物料','高频混合物料','低频混合物料'], |
| | | matTypeId: 0, |
| | | batch:'', |
| | | memo: '', |
| | | cstmr: '', |
| | | ck1: false, |
| | | ck2: true, |
| | | frozen: 0, |
| | | owner: '' |
| | | owner: '', |
| | | enterCount: 0 |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | header: { 'token':uni.getStorageSync('token') }, |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res); |
| | | 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.matType = '' |
| | | this.matTypeId = 0 |
| | | this.barcodeFocuss() |
| | | uni.vibrateShort(); |
| | | }, |
| | |
| | | } |
| | | } |
| | | } |
| | | for (let k in that.matList) { |
| | | that.matList[k].anfme = that.matList[k].enterCount |
| | | } |
| | | this.getMatTypeIn(this.matType) |
| | | uni.showLoading(); |
| | | uni.request({ |
| | | url: that.commonUrl + '/mobile/comb/auth', |
| | |
| | | frozen: that.frozen, |
| | | barcode: that.barcode, |
| | | orderNo: that.orderNo, |
| | | matTypeIn: that.matTypeId, |
| | | combMats: that.matList |
| | | }), |
| | | method: 'POST', |
| | |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | getMatTypeIn(type) { |
| | | switch (type) { |
| | | case '单品物料': |
| | | this.matTypeId = 1 |
| | | break; |
| | | case '高频混合物料': |
| | | this.matTypeId = 2 |
| | | break; |
| | | case '低频混合物料': |
| | | this.matTypeId = 3 |
| | | break; |
| | | default: |
| | | this.matType = 0 |
| | | } |
| | | }, |
| | | selectMat() { |
| | | let that = this |
| | |
| | | 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 |