#
zjj
3 天以前 fef3e6cff4cdd0adfc9aa7e420256fea89620ee9
#
1个文件已修改
53 ■■■■■ 已修改文件
pages/outbound/fastPicking.vue 53 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/outbound/fastPicking.vue
@@ -9,11 +9,11 @@
            </view>
        </form>
        <view class="cu-form-group" v-show="isClickItem">
        <!-- <view class="cu-form-group" v-show="isClickItem">
            <view class="title">QR码</view>
            <input placeholder="请扫描QR码" v-model="QRbarcode" ></input>
            
        </view>
        </view> -->
                
        <view class="cu-list det menu sm-border  padding">
@@ -76,7 +76,7 @@
        <view class="cu-bar btn-group foot" >
            <button class="cu-btn text-blue line-blue shadow" @click="clear">清空</button>
            <button class="cu-btn bg-blue shadow-blur" @click="next">提交</button>
            <button class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="complete">提交确认</button>
        </view>
        
@@ -109,6 +109,7 @@
                        backgroundColor: '#42b983',                        
                        borderColor: '#42b983'
                },
                repeatClick: false
            }
        },
        computed: {
@@ -170,6 +171,52 @@
            },
            async complete() {
                let that = this
                if(that.barcode === '' || that.barcode === null){
                    uni.showToast({
                        title: "容器号为空",
                        icon: "error",
                    })
                    return ;
                }
                if(that.list === [] || that.list.length === 0){
                    uni.showToast({
                        title: "拣货明细为空",
                        icon: "error",
                    })
                    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'
                    })
                }
            that.repeatClick = false
            },
            clearCode() {
                this.barcode = ''
            },