skyouc
2025-05-05 14fb952f65fba369cb7f52a802c0b21fa8e6e3e8
pages/rece/other.vue
@@ -90,7 +90,7 @@
                     <view class="cu-form-group padding-lr-0">
                        <view class="title text-blue"><text
                              class="text-red text-xl vertical-middle">*</text>收货数量:</view>
                        <uni-number-box style="width: 70%;" v-model="item.receiptQty"
                        <uni-number-box style="width: 70%;" :max="max" v-model="item.receiptQty"
                           :step='1'></uni-number-box>
                     </view>
                  </view>
@@ -186,7 +186,8 @@
            list: [],
            range: [],
            repeatClick: false,
            isconfirm: false
            isconfirm: false,
            max: 99999999
         }
      },
      computed: {
@@ -237,7 +238,7 @@
            this.list = []
            this.barcode = ''
         },
         next(event) {
         next() {
            if (this.list.length) {
               this.isconfirm = true
            } else {
@@ -255,7 +256,8 @@
            console.log(val)
            uni.setStorageSync('whAreaId', val)
         },
         async complete(id) {
         async complete(id) {
            this.repeatClick = true
            const {
               code,
               data,
@@ -271,7 +273,8 @@
                  title: msg,
                  icon: "none",
               })
            }
            }
            this.repeatClick = false
         },
         async confirm(isCom) {
            if (this.whAreaId === '') {
@@ -287,7 +290,7 @@
                  };
               }).filter(el => el.receiptQty !== 0);
               this.repeatClick = true
               const {
                  code,
                  data,
@@ -303,15 +306,13 @@
                  })
                  this.list = []
                  this.barcode = ''
                  this.isconfirm = false
                  this.repeatClick = false
                  this.isconfirm = false
                  isCom && this.complete(data.id)
               } else {
                  uni.showToast({
                     title: msg,
                     icon: "none",
                  })
                  this.repeatClick = false
               }
            }
         },