chen.lin
2 天以前 ddd267a16f2ec5c0be2beb4516163f210624abf0
确认后清空文本框
1个文件已修改
58 ■■■■ 已修改文件
pages/outbound/fastPicking.vue 58 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/outbound/fastPicking.vue
@@ -214,35 +214,37 @@
                    return ;
                }
                that.repeatClick = true
                const {
                    code,
                    data,
                    msg
                } = await request('/saveOutTaskSts/'+that.barcode,{}, 'get')
                if (code === 200) {
                    uni.showToast({
                        title: msg,
                        icon: "success"
                    })
                    // 确认后清空,支持再次扫描
                    that.clear()
                }else if(code == 401){
                    setTimeout(() => {
                        uni.removeStorageSync('token');
                        uni.reLaunch({
                            url: "/pages/login/login"
                        });
                    }, 1000);
                }else {
                    uni.showToast({
                        title: msg,
                        icon: "none",
                        position: 'top'
                    })
                try {
                    const {
                        code,
                        data,
                        msg
                    } = await request('/saveOutTaskSts/'+that.barcode,{}, 'get')
                    if (code === 200) {
                        uni.showToast({
                            title: msg,
                            icon: "success"
                        })
                        // 确认后清空,支持再次扫描
                        that.clear()
                    }else if(code == 401){
                        setTimeout(() => {
                            uni.removeStorageSync('token');
                            uni.reLaunch({
                                url: "/pages/login/login"
                            });
                        }, 1000);
                    }else {
                        uni.showToast({
                            title: msg,
                            icon: "none",
                            position: 'top'
                        })
                    }
                } finally {
                    that.repeatClick = false
                }
            that.repeatClick = false
            },
            clearCode() {
                this.isClearing = true;