From b8f89a2063b2f6c45eb88d645a933dbb10e12920 Mon Sep 17 00:00:00 2001 From: "97694732@qq.com" Date: Thu, 4 Jun 2026 16:37:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=89=8D=E6=A3=80=E6=9F=A5:I?= =?UTF-8?q?SBN=E5=92=8C=E6=97=A0ISBN=E5=BF=85=E9=A1=BB=E8=87=B3=E5=B0=91?= =?UTF-8?q?=E6=8B=8D=E4=B8=80=E5=BC=A0=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/upload/upload.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pages/upload/upload.vue b/pages/upload/upload.vue index 5b37121..d6bf1f1 100644 --- a/pages/upload/upload.vue +++ b/pages/upload/upload.vue @@ -1702,6 +1702,16 @@ export default { const locCode = warehouseData.locationCode || warehouseData.code || '' const locationText = warehouseName + (locCode ? ' - ' + locCode : '') + // 检查是否有图片 + if (this.currentTab === 'isbn' && this.photoList.length < 1) { + uni.showToast({ title: '请至少拍一张图片', icon: 'none' }) + return + } + if (this.currentTab === 'no-isbn' && this.noIsbnPhotoList.length < 1) { + uni.showToast({ title: '请至少拍一张图片', icon: 'none' }) + return + } + let contentLines if (this.currentTab === 'isbn') { if (!this.isbn) {