skyouc
2025-05-04 668e5ccf4d4f162800c67d94e6bbb9d4a2fd5cfb
重复点击上报问题修复
2个文件已修改
32 ■■■■■ 已修改文件
pages/rece/other.vue 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/rece/standard.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/rece/other.vue
@@ -90,7 +90,8 @@
                            <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" :step='1'></uni-number-box>
                                <uni-number-box style="width: 70%;" v-model="item.receiptQty"
                                    :step='1'></uni-number-box>
                            </view>
                        </view>
                        <view class="content" v-else>
@@ -159,8 +160,8 @@
        </view>
        <view class="cu-bar btn-group foot" v-show="isconfirm">
            <button class="cu-btn text-blue line-blue shadow" @click="prev">上一步</button>
            <button class="cu-btn bg-blue shadow-blur" @click="confirm(false)">收货</button>
            <button class="cu-btn text-blue line-blue shadow" @click="prev">上一步</button>
            <button class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="confirm(false)">收货</button>
        </view>
    </view>
@@ -184,6 +185,7 @@
                whAreaId: '',
                list: [],
                range: [],
                repeatClick: false,
                isconfirm: false
            }
        },
@@ -235,7 +237,7 @@
                this.list = []
                this.barcode = ''
            },
            next() {
            next(event) {
                if (this.list.length) {
                    this.isconfirm = true
                } else {
@@ -248,8 +250,8 @@
            prev() {
                this.isconfirm = false
            },
            selChange(val) {
                console.log('-------->')
            selChange(val) {
                console.log('-------->')
                console.log(val)
                uni.setStorageSync('whAreaId', val)
            },
@@ -285,7 +287,7 @@
                        };
                    }).filter(el => el.receiptQty !== 0);
                    this.repeatClick = true
                    const {
                        code,
                        data,
@@ -301,13 +303,15 @@
                        })
                        this.list = []
                        this.barcode = ''
                        this.isconfirm = false
                        this.isconfirm = false
                        this.repeatClick = false
                        isCom && this.complete(data.id)
                    } else {
                        uni.showToast({
                            title: msg,
                            icon: "none",
                        })
                        this.repeatClick = false
                    }
                }
            },
pages/rece/standard.vue
@@ -156,7 +156,7 @@
        <view class="cu-bar btn-group foot" v-show="isconfirm">
            <button class="cu-btn text-blue line-blue shadow" @click="prev">上一步</button>
            <button class="cu-btn bg-blue shadow-blur" @click="confirm">提交收货</button>
            <button class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="confirm">提交收货</button>
        </view>
    </view>
@@ -179,7 +179,8 @@
                whAreaId: '',
                list: [],
                range: [],
                isconfirm: false
                isconfirm: false,
                repeatClick: false
            }
        },
        computed: {
@@ -263,7 +264,8 @@
                        icon: "none",
                        title: '请选择收货区'
                    })
                } else {
                } else {
                    this.repeatClick = true
                    const {
                        code,
                        data,
@@ -285,8 +287,8 @@
                            icon: "none",
                            position: 'top'
                        })
                    }
                    }
                    this.repeatClick = false
                }
            },
            async getRece() {