zhou zhou
23 小时以前 90973a0d28df32f953276212377642ebbd6bceab
#空托出
1个文件已修改
45 ■■■■■ 已修改文件
pages/emptyTray/outBound.vue 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/emptyTray/outBound.vue
@@ -33,6 +33,7 @@
            <button
                class="cu-btn bg-blue shadow-blur"
                @click="confirm"
                :disabled="isconfirm"
            >
                呼叫
            </button>
@@ -53,7 +54,8 @@
            list: [],
            range: [],
            curCode: '',
            palletTypeId: ''
            palletTypeId: '',
            isconfirm : false
        }
    },
    computed: {
@@ -145,24 +147,33 @@
                })
                return
            } else {
                const { code, data, msg } = await request('/orders/confirm', {
                    receipts: newArr,
                    palletTypeId: this.palletTypeId
                })
                if (code === 200) {
                    uni.showToast({
                        title: '呼叫空托盘中,请稍作等待'
                    })
                    this.list = []
                    this.barcode = ''
                this.isconfirm = true
                try{
                    const { code, data, msg } = await request(
                        '/callForEmptyContainers',
                        {
                            staNo: this.barcode,
                            type: this.palletTypeId
                        }
                    )
                    if (code === 200) {
                        uni.showToast({
                            title: '呼叫空托盘中,请稍作等待'
                        })
                        this.list = []
                        this.barcode = ''
                        this.isconfirm = false
                    } else {
                        uni.showToast({
                            title: msg,
                            icon: 'none',
                            position: 'top'
                        })
                    }
                }finally{
                    this.isconfirm = false
                } else {
                    uni.showToast({
                        title: msg,
                        icon: 'none',
                        position: 'top'
                    })
                }
            }
            // const {