#
whycq
2023-09-27 d524a557387c9b169f076f5a86e520516ebbf662
pages/basics/orderPakin.vue
@@ -89,10 +89,13 @@
                  <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> -->
@@ -190,7 +193,8 @@
            ck1: false,
            ck2: true,
            frozen: 0,
            owner: ''
            owner: '',
            enterCount: 0
         }
      },
      onShow() {
@@ -223,9 +227,12 @@
               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);
               }
            })
            
@@ -271,7 +278,11 @@
               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()
@@ -280,10 +291,10 @@
         // 托盘码有误重置
         barcodeFocuss() {
            let that = this;
            that.barcodeFocus = false;
            that.orderNoFocus = false;
            setTimeout(()=>{
               that.barcode = '';
               that.barcodeFocus = true;
               that.orderNoFocus = true;
            }, 100);
         },
         // 商品光标清空重置
@@ -301,6 +312,7 @@
            this.matList = []
            this.barcode = ''
            this.matnr = ''
            this.orderNo = ''
            this.barcodeFocuss()
            uni.vibrateShort();
         },
@@ -357,6 +369,9 @@
                     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({
@@ -526,7 +541,7 @@
            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
@@ -542,7 +557,7 @@
            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