#
zhou zhou
3 天以前 086363406e7abae8b6debfa2381a998ce604c2c8
pages/pakin/pakin.vue
@@ -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",
@@ -224,13 +225,12 @@
         },
         // 搜索物料
         findMat() {
            let that = this
            let m = that.matnr.split(";")
            let matnr1 = m[0].slice(3)
            let that = this
            uni.request({
               url: that.baseUrl + '/mat/auth',
               data: {
                  matnr: matnr1
                  matnr: that.matnr
               },
               header: {
                  'token': uni.getStorageSync('token')
@@ -246,7 +246,7 @@
                        // 通过eventChannel向被打开页面传送数据
                        success: function(res) {
                           res.eventChannel.emit('mat', {
                              data: result.data
                              data: [result.data]
                           })
                        },
                        // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
@@ -304,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++) {
@@ -320,7 +321,7 @@
                     } else {
                        add = true
                     }
                  } else {
                     // 相同物料相同批号 数量累加
                     this.dataList[i].anfme += mat.anfme
@@ -348,7 +349,7 @@
         },
         // 列表移除按钮
         remove(item, i, type) {
            this.removeNum  = i
            this.removeNum = i
            this.msgType = type
            this.title = '警告'
            this.content = '是否移除当前商品!'
@@ -411,7 +412,7 @@
            uni.request({
               url: that.baseUrl + '/mobile/comb/auth',
               data: JSON.stringify({
                  barcode: that.barcode,
                  barcode: that.barcode,
                  combMats: that.dataList
               }),
               method: 'POST',
@@ -520,7 +521,8 @@
      text-align: center;
      box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.5);
   }
   .list:first-child {
      margin-top: 250rpx;
   }
</style>
</style>