From f0ad8cfc90895157f120581eeeb4bd1557164bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E5=BA=86=E6=BA=90?= Date: Tue, 15 Apr 2025 14:36:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20[SBBJ-906]=20pda-=E7=82=B9=E6=A3=80?= =?UTF-8?q?=E9=A1=B9=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87=E5=BF=85=E4=BC=A0?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/spotCheckOrder/detailAndEdit.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/pages/spotCheckOrder/detailAndEdit.vue b/src/pages/spotCheckOrder/detailAndEdit.vue index f5ef2da..0558b0b 100644 --- a/src/pages/spotCheckOrder/detailAndEdit.vue +++ b/src/pages/spotCheckOrder/detailAndEdit.vue @@ -117,6 +117,7 @@ + * @@ -230,6 +231,13 @@ function submit() { proxy.$modal.showToast('请选择班次') return } + console.log('subList.value', subList.value) + for (let valueElement of subList.value) { + if (!valueElement.fileInfoList || valueElement.fileInfoList.length == 0) { + proxy.$modal.showToast('点检项内容:设备部位名称为'+valueElement.equipmentPosition+' 未上传图片') + return; + } + } const submitData = { id: data.value.id, @@ -375,6 +383,7 @@ function chooseImage(dataItem) { sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 success: (res) => { + console.log("上传图片",dataItem); const filePath = res.tempFilePaths[0] proxy.$modal.loading() const fileInfo = ref({