#
whycq
2023-01-29 690a0b08ef4df6f15157eaf1294b500767e2ac24
pages/basics/piking.vue
@@ -40,6 +40,7 @@
            <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
               <view class="data-list-left">
                  <view class="matnr"><text style="width: 400rpx;">编码:{{item.matnr}}</text></view>
                  <view><text style="width: 400rpx;">规格:{{item.specs}}</text></view>
                  <view><text style="width: 400rpx;">品名:{{item.maktx}}</text></view>
                  <view><text style="width: 400rpx;">批号:{{item.batch}}</text></view>
                  <view>
@@ -61,8 +62,7 @@
            </view>
         </view>
      </scroll-view>
      <y-pop>
      </y-pop>
      <view>
         <!-- 修改数量 -->
         <uni-popup ref="revise" @change="change">
@@ -140,6 +140,15 @@
                     for(var i = 0; i < res.data.length;i++){
                        that.matList.push(res.data[i])
                     }
                  } else if (res.code == 403) {
                     uni.showToast({title: res.msg, icon: "none", position: 'top'})
                     setTimeout(() => {
                        uni.reLaunch({
                           url: '../login/login'
                        });
                     }, 1000);
                  } else {
                     uni.showToast({title: res.msg, icon: "none",position: 'top'})
                  }
               }
               
@@ -160,6 +169,8 @@
                  let res = result.data
                  if (res.code === 200) {
                     uni.showToast({title: res.msg, icon: "none", position: 'top'})
                     that.matList = []
                     that.barcode = ''
                  } else if (res.code == 403) {
                     uni.showToast({title: res.msg, icon: "none", position: 'top'})
                     setTimeout(() => {
@@ -311,7 +322,7 @@
         },
         resst() {
            this.matList = []
            this.staNo = ''
            this.barcode = ''
         },
         adjust() {
            let that = this
@@ -445,7 +456,7 @@
   }
   .data-list {
      border-bottom: 1px solid #d8d8d8;
      height: 180rpx;
      height: 230rpx;
      margin: 15rpx;
      border-radius: 20rpx;
   }
@@ -469,8 +480,8 @@
      display: inline-block;
      float: right;
      width: 200rpx;
      height: 180rpx;
      line-height: 180rpx;
      height: 230rpx;
      line-height: 230rpx;
   }
   .data-list-right label {
      display: inline-block;