#
zhou zhou
3 天以前 086363406e7abae8b6debfa2381a998ce604c2c8
pages/pakin/pakin.vue
@@ -9,13 +9,13 @@
         <view class="item">
            <view class="code-decs">物料码:</view>
            <input type="text" placeholder=" 扫码 / 输入" v-model="matnr" :focus="matFocus" @input="findMat()">
            <view class="item-right">
            <!-- <view class="item-right">
               <button></button>
               <text style="text-align: right;color: #409EFF;" @click="selectMat()">提取+</text>
               <uni-icons type="right" color="#c1c1c1"></uni-icons>
            </view>
            </view> -->
         </view>
         <view class="item">
         <!-- <view class="item">
            <view class="code-decs">满托:</view>
            <radio-group @change="isFrozen">
               <label>
@@ -25,7 +25,7 @@
                  <radio :checked="ck2" style="margin-left: 50rpx;"/><text>否</text>
               </label>
            </radio-group>
         </view>
         </view> -->
      </view>
      <view class="mat-list-title">
         商品列表
@@ -45,7 +45,7 @@
               </view>
               <view class="list-left-item">
                  <view class="desc">品名:</view>
                  <view class="left-item">{{item.maktx}}</view>
                  <view class="left-item" style="word-break: break-all;">{{item.maktx}}</view>
               </view>
               <view class="list-left-item">
                  <view class="desc">规格:</view>
@@ -104,7 +104,8 @@
               <view class="popup-item">
                  <view class="popup-item-left">数量:</view>
                  <view class="popup-item-right" style="border: none;justify-content: center;">
                     <uni-number-box :value="count" :step='0.01' :max="9999999" color="#747474" @change="changeValue" />
                     <uni-number-box :value="count" :step='0.01' :max="9999999" color="#747474"
                        @change="changeValue" />
                  </view>
               </view>
               <view class="btn">
@@ -193,7 +194,7 @@
            // 不设置定时器 会出现扫入的字符串不全
            setTimeout(() => {
               var len = this.barcode.length
               if (len != 8) {
               if (len >= 9 && len <= 8) {
                  uni.showToast({
                     title: '托盘码有误请重试',
                     icon: "none",
@@ -225,6 +226,7 @@
         // 搜索物料
         findMat() {
            let that = this
            uni.request({
               url: that.baseUrl + '/mat/auth',
               data: {
@@ -244,7 +246,7 @@
                        // 通过eventChannel向被打开页面传送数据
                        success: function(res) {
                           res.eventChannel.emit('mat', {
                              data: result.data
                              data: [result.data]
                           })
                        },
                        // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
@@ -302,7 +304,8 @@
         },
         checkMat(mat) {
            var len = this.dataList.length
            var add = true ,sameItem = false
            var add = true,
               sameItem = false
            for (var i = 0; i < len; i++) {
               if (mat.matnr == this.dataList[i].matnr) {
                  for (var j = 0; j < len; j++) {
@@ -318,7 +321,7 @@
                     } else {
                        add = true
                     }
                  } else {
                     // 相同物料相同批号 数量累加
                     this.dataList[i].anfme += mat.anfme
@@ -346,7 +349,7 @@
         },
         // 列表移除按钮
         remove(item, i, type) {
            this.removeNum  = i
            this.removeNum = i
            this.msgType = type
            this.title = '警告'
            this.content = '是否移除当前商品!'
@@ -410,7 +413,6 @@
               url: that.baseUrl + '/mobile/comb/auth',
               data: JSON.stringify({
                  barcode: that.barcode,
                  isFull: that.isFull,
                  combMats: that.dataList
               }),
               method: 'POST',
@@ -481,7 +483,7 @@
   .item {
      display: flex;
      align-items: center;
      height: 70rpx;
      height: 100rpx;
      margin-left: 20rpx;
      border-bottom: 1px solid #DCDFE6;
   }
@@ -517,6 +519,10 @@
      z-index: 9;
      /* border-top: 1px solid #DCDFE6; */
      text-align: center;
      box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
      box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.5);
   }
</style>
   .list:first-child {
      margin-top: 250rpx;
   }
</style>