|  |  | 
 |  |  |                <view class="list-left-item"> | 
 |  |  |                   <view class="desc">箱码:</view> | 
 |  |  |                   <view class="left-item"> | 
 |  |  |                      <input type="text" v-model="item.containerCode" @input="checkContainerCode(item)"> | 
 |  |  |                      <!-- <input type="text" v-model="item.containerCode" @input="checkContainerCode(item)"> --> | 
 |  |  |                      <view class="left-item">{{item.containerCode}}</view> | 
 |  |  |                      <!-- <uni-tag :text="item.containerCode" type="primary"></uni-tag> --> | 
 |  |  |                   </view> | 
 |  |  |                </view> | 
 |  |  | 
 |  |  |             <view class="popup"> | 
 |  |  |                <!-- 标题 --> | 
 |  |  |                <view class="title">修改</view> | 
 |  |  |                <view class="popup-item"> | 
 |  |  |                <!-- <view class="popup-item"> | 
 |  |  |                   <view class="popup-item-left">编码:</view> | 
 |  |  |                   <view class="popup-item-right"> | 
 |  |  |                      <input type="text" v-model="matnr" disabled="true" | 
 |  |  |                         style="background-color: #f7f7f7;padding: 0;color: #d5d5d5;"> | 
 |  |  |                   </view> | 
 |  |  |                </view> | 
 |  |  |                <!-- <view class="popup-item"> | 
 |  |  |                   <view class="popup-item-left">批号:</view> | 
 |  |  |                   <view class="popup-item-right"><input type="text" v-model="batch"></view> | 
 |  |  |                </view> --> | 
 |  |  |                <view class="popup-item"> | 
 |  |  |                   <view class="popup-item-left">箱码:</view> | 
 |  |  |                   <view class="popup-item-right"><input type="text" v-model="containerCode"></view> | 
 |  |  |                </view> | 
 |  |  |                <!-- <view class="popup-item"> | 
 |  |  |                   <view class="popup-item-left">重量:</view> | 
 |  |  |                   <view class="popup-item-right"><input type="text" v-model="weight"></view> | 
 |  |  | 
 |  |  |             barcode: '', | 
 |  |  |             orderNo: '', | 
 |  |  |             pickCode: '', | 
 |  |  |             pickCodeFocus: '', | 
 |  |  |             pickCodeFocus: false, | 
 |  |  |             dataList: [], | 
 |  |  |             count: 0, | 
 |  |  |             rowNum: '', | 
 |  |  | 
 |  |  |             removeNum: 0, | 
 |  |  |             tempOrderInfo: {csocode: '',isoseq: ''}, | 
 |  |  |             hide: true, | 
 |  |  |             hidebg: 'kb-bgtr' | 
 |  |  |             hidebg: 'kb-bgtr', | 
 |  |  |             containerCode: '' | 
 |  |  |          } | 
 |  |  |       }, | 
 |  |  |       onLoad() { | 
 |  |  | 
 |  |  |          }, | 
 |  |  |          // 过滤 | 
 |  |  |          checkContainerCode(item) { | 
 |  |  |             item.containerCode = item.containerCode.split('_')[1] | 
 |  |  |             if (item.containerCode.split('_')[1]) { | 
 |  |  |                item.containerCode = item.containerCode.split('_')[1] | 
 |  |  |             }  | 
 |  |  |             // item.containerCode = item.containerCode.split('_')[1] | 
 |  |  |             // this.barcode = this.barcode.split('_')[1] | 
 |  |  |          }, | 
 |  |  |          messageToggle(type) { | 
 |  |  | 
 |  |  |          barcodeInput() { | 
 |  |  |             let _this = this  | 
 |  |  |             uni.request({ | 
 |  |  |                url: `${_this.baseUrl}`, | 
 |  |  |                url: `${_this.baseUrl}/mobile/wrkdetl/auth`, | 
 |  |  |                data: { barcode: _this.barcode }, | 
 |  |  |                method: 'POST', | 
 |  |  |                header: { 'token': uni.getStorageSync('token') }, | 
 |  |  |                success(res) { | 
 |  |  |                   res = res.data | 
 |  |  |                   console.log(res); | 
 |  |  |                   if (res.code === 200) { | 
 |  |  |                      _this.messageText = "请拣选" | 
 |  |  |                      _this.messageToggle('success') | 
 |  |  |                      _this.barcodeFocus = false; | 
 |  |  |                      setTimeout(() => { | 
 |  |  |                         _this.pickCodeFocus = true; | 
 |  |  | 
 |  |  |          // 修改批号 | 
 |  |  |          revise(item, i) { | 
 |  |  |             this.matnr = this.dataList[i].matnr | 
 |  |  |             this.containerCode = this.dataList[i].containerCode | 
 |  |  |             this.count = this.dataList[i].anfme | 
 |  |  |             this.batch = this.dataList[i].batch | 
 |  |  |             this.weight = this.dataList[i].weight | 
 |  |  | 
 |  |  |             this.$refs.alertDialog.close() | 
 |  |  |          }, | 
 |  |  |          reviseConfirm() { | 
 |  |  |             this.dataList[this.rowNum].containerCode = this.containerCode | 
 |  |  |             this.dataList[this.rowNum].anfme = this.count | 
 |  |  |             this.dataList[this.rowNum].batch = this.batch | 
 |  |  |             this.dataList[this.rowNum].weight = this.weight | 
 |  |  | 
 |  |  |             if (that.barcode === '') { | 
 |  |  |                this.messageText = "请扫描托盘条码" | 
 |  |  |                this.messageToggle('error') | 
 |  |  |                return; | 
 |  |  |                // return; | 
 |  |  |             } | 
 |  |  |             if (that.dataList.length === 0) { | 
 |  |  |                this.messageText = "请添加商品列表" | 
 |  |  | 
 |  |  |             } | 
 |  |  |             // console.log(that.dataList); | 
 |  |  |             // return | 
 |  |  |             console.log(that.dataList); | 
 |  |  |             uni.request({ | 
 |  |  |                url: that.baseUrl + '/mobile/comb/auth', | 
 |  |  |                url: that.baseUrl + '/mobile/modify/wrkdetl/auth', | 
 |  |  |                data: JSON.stringify({ | 
 |  |  |                   barcode: that.barcode, | 
 |  |  |                   combMats: that.dataList | 
 |  |  |                   barcode: "80009991", | 
 |  |  |                   params: that.dataList | 
 |  |  |                }), | 
 |  |  |                method: 'POST', | 
 |  |  |                header: { | 
 |  |  | 
 |  |  |    @import url('../../../static/css/wms.css/wms.css'); | 
 |  |  |  | 
 |  |  |    .list:first-child { | 
 |  |  |       margin-top: 320rpx; | 
 |  |  |       margin-top: 260rpx; | 
 |  |  |    } | 
 |  |  |    .code { | 
 |  |  |       width: 100%; |