skyouc
2025-11-13 3a770819f22efdc0ecb0ba57de0ac64f08421c55
pages/check/TempCheck.vue
@@ -62,7 +62,7 @@
                        <view class="title text-blue"><text class="text-red text-xl vertical-middle"></text>实盘数:
                        </view>
                        <uni-number-box style="width: 70%;" :max="max" v-model="item.checkQty"
                           :step='1'></uni-number-box>
                           :step='0.01'></uni-number-box>
                     </view>
                  </view>
               </view>
@@ -137,7 +137,7 @@
                        <view class="title text-blue"><text class="text-red text-xl vertical-middle"></text>实盘数:
                        </view>
                        <uni-number-box style="width: 70%;" :max="max" v-model="item.checkQty"
                           :step='1'></uni-number-box>
                           :step='0.01'></uni-number-box>
                     </view>
                  </view>
               </view>
@@ -234,10 +234,11 @@
               })
               return;
            }
            this.list.push(...this.matnrList)
            this.matnrList = []
            this.isconfirm = !this.isconfirm
            this.confirmAddMatnr()
            this.matnrList = [];
         },
         remove(index) {
            this.matnrList.splice(index, 1);
         },
@@ -249,10 +250,15 @@
               matnrs: this.matnrList
            })
            if (code === 200) {
               that.search()
            } else {
               uni.showToast({
                  title: msg,
                  icon: "error",
                  position: 'top'
               })
            }
            this.isconfirm = !this.isconfirm
         },
         async addMatnr() {
            const {
@@ -345,14 +351,9 @@
               return;
            }
            this.repeatClick = true
            const {
               code,
               data,
               msg
            } = await request('/saveCheckDiff', {
               container: that.barcode,
               checkId: that.check.id,
               checkDiffItems: that.list
            const {code, data,   msg   } = await request('/temp/check/confirm', {
               barcode: that.barcode,
               items: that.list
            })
            if (code === 200) {
               uni.showToast({
@@ -363,7 +364,7 @@
            } else {
               uni.showToast({
                  title: msg,
                  icon: "none",
                  icon: "error",
               })
            }
            this.repeatClick = false