pages/pakin/pakin.vue
@@ -14,19 +14,25 @@
               <text style="text-align: right;color: #409EFF;" @click="findMat()">提取+</text>
               <uni-icons type="right" color="#c1c1c1"></uni-icons>
            </view>
         </view>
         </view>
         <uni-section title="商品列表" type="line" class="mat-list-title"></uni-section>
      </view>
      <view class="mat-list-title">
         <div>商品列表</div>
      <view class="list-view">
         <scroll-view>
            <view class="list" v-for="(item,i) in dataList" :key="i">
               <view class="list-left">
                  <view class="list-left-item">
                     <view class="desc">No:</view>
                     <view class="left-item">{{i + 1}}</view>
                  </view>
                  <view class="list-left-item">
                     <view class="desc">订单号:</view>
                     <view class="left-item">
                        <uni-tag :text="item.orderNo" type="normal"></uni-tag>
                     </view>
                  </view>
                  <view class="list-left-item">
                     <view class="desc">编码:</view>
                     <view class="desc">物料码:</view>
                     <view class="left-item">
                        <uni-tag :text="item.matnr" type="primary"></uni-tag>
                     </view>
@@ -215,7 +221,8 @@
            }
         },
      
         checkMat(mat) {
         checkMat(mat) {
            console.log(mat)
            var len = this.dataList.length
            var add = true ,sameItem = false
            for (var i = 0; i < len; i++) {
@@ -224,7 +231,8 @@
                     if (mat.batch == this.dataList[j].batch) {
                        sameItem = true
                     }
                  }
                  }
                  // 相同物料 不同批号  新加列表
                  if (mat.batch != this.dataList[i].batch) {
                     this.$forceUpdate() // 强制刷新
@@ -234,11 +242,17 @@
                        add = true
                     }
                     
                  } else {
                     // 相同物料相同批号 数量累加
                     this.dataList[i].mergeNum += mat.mergeNum
                     this.$forceUpdate() // 强制刷新
                     add = false
                  } else {
                     // 相同物料,相同批号,不同订单号
                     if (mat.orderNo != this.dataList[i].orderNo) {
                        this.$forceUpdate()
                        add = true
                     } else {
                        // 相同物料相同批号 数量累加
                        this.dataList[i].mergeNum += mat.mergeNum
                        this.$forceUpdate() // 强制刷新
                        add = false
                     }
                  }
               }
            }
@@ -389,17 +403,30 @@
</script>
<style>
   @import url('../../static/css/wms.css/wms.css');
   @import url('../../static/css/wms.css/wms.css');
   .uni-section {
      margin-top: 0rpx;
      .uni-section__content-title {
         font-size: 16px !important;
      }
   }
   .list {
      border-radius: unset;
      margin: auto;
      margin-top: 20rpx;
      padding: 10rpx;
   }
   .list-view {
      width: 100%;
      position: relative;
   }
   .list:first-child {
      margin-top: 20rpx;
      margin-top: 320rpx;
   }
   .code {
      width: 100%;
@@ -443,11 +470,8 @@
      line-height: 80rpx;
      width: 100%;
      background-color: white;
      position: fixed;
      margin-top: 200rpx;
      position: relative;
      font-weight: 500;
      z-index: 9;
      /* border-top: 1px solid #DCDFE6; */
      text-align: center;
      /* box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); */
   }
</style>