#
whycq
2023-11-02 f6c98ec61385b470cda75c672a50e8d9ac3d3525
pages/tzsk/pakin/checkOut.vue
@@ -25,7 +25,8 @@
               <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>
@@ -92,17 +93,17 @@
            <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>
@@ -190,7 +191,7 @@
            barcode: '',
            orderNo: '',
            pickCode: '',
            pickCodeFocus: '',
            pickCodeFocus: false,
            dataList: [],
            count: 0,
            rowNum: '',
@@ -207,7 +208,8 @@
            removeNum: 0,
            tempOrderInfo: {csocode: '',isoseq: ''},
            hide: true,
            hidebg: 'kb-bgtr'
            hidebg: 'kb-bgtr',
            containerCode: ''
         }
      },
      onLoad() {
@@ -250,13 +252,16 @@
         barcodeInput() {
            let _this = this 
            uni.request({
               url: `${_this.baseUrl}/mobile/locdetl/auth`,
               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;
@@ -318,6 +323,7 @@
         // 修改批号
         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
@@ -347,6 +353,7 @@
            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
@@ -376,7 +383,7 @@
            if (that.barcode === '') {
               this.messageText = "请扫描托盘条码"
               this.messageToggle('error')
               return;
               // return;
            }
            if (that.dataList.length === 0) {
               this.messageText = "请添加商品列表"
@@ -392,11 +399,12 @@
            }
            // 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: {
@@ -460,7 +468,7 @@
   @import url('../../../static/css/wms.css/wms.css');
   .list:first-child {
      margin-top: 320rpx;
      margin-top: 260rpx;
   }
   .code {
      width: 100%;