From 5605d5a703fd957bdf2379eaf1a2c9b00dc97fcb Mon Sep 17 00:00:00 2001 From: bb_pan Date: Wed, 3 Sep 2025 14:55:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=BA=93=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/picking/outbound/code-outbound.vue | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/pages/picking/outbound/code-outbound.vue b/src/pages/picking/outbound/code-outbound.vue index a3d439d..0b7df98 100644 --- a/src/pages/picking/outbound/code-outbound.vue +++ b/src/pages/picking/outbound/code-outbound.vue @@ -423,6 +423,13 @@ const onHandleOutbound = async () => { }) return } + if (maxNum.value == 0) { + uni.showToast({ + title: '待出库数量已为0!', + icon: 'none', + }) + return + } uni.showLoading() loading.value = true // 解构所需要的数据 @@ -576,6 +583,13 @@ const boxOut = async () => { } // 标准箱出库确认 const boxOutBound = async () => { + if (maxNum.value == 0) { + uni.showToast({ + title: '待出库数量已为0!', + icon: 'none', + }) + return + } // 解构所需要的数据 const { typeId, parentId, publishTask } = queryParams.value // 组装出库参数 @@ -617,6 +631,7 @@ const onCodeIdentify = () => { title: '待出库数量已为0!', icon: 'none', }) + return } else { uni.navigateTo({ url: `/pages/picking/outbound/codeOutScan?params=${JSON.stringify(queryParams.value)}`, @@ -633,6 +648,7 @@ const scanStart = () => { title: '待出库数量已为0!', icon: 'none', }) + return } else { // var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module") // mpaasScanModule.mpaasScan({ @@ -729,6 +745,13 @@ const getMaInfoScan = async () => { } // 二维码出库确认 const confirmCodeOutBound = async () => { + if (maxNum.value == 0) { + uni.showToast({ + title: '待出库数量已为0!', + icon: 'none', + }) + return + } // 解构所需要的数据 const { typeId, parentId, publishTask } = queryParams.value // 组装出库参数