From f7929a7f35003aa89195e41b712491620dcd6486 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 17 Dec 2024 20:58:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E6=B8=85=E5=8D=95=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cart/index.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/views/cart/index.vue b/src/views/cart/index.vue index 156247a..763318e 100644 --- a/src/views/cart/index.vue +++ b/src/views/cart/index.vue @@ -615,11 +615,23 @@ const handleViewWord = async (index: any) => { const { companyName, companyId } = cardList.value[index].companyPersonPhoneKey let cost = 0 let detailsList: any = [] + + const isSelect = cardList.value[index].devInfoVoList.some((e: any) => e.isChecked == true) + + if (!isSelect) { + ElMessage({ + showClose: false, + message: '请勾选装备...', + type: 'error', + }) + return + } + cardList.value[index].devInfoVoList.map((e: any) => { if (e.isChecked) { detailsList.push({ - rentBeginTime: e.rentBeginTime + ' ' + '00:00:00', - rentEndTime: e.rentEndTime + ' ' + '23:59:59', + rentBeginTime: e.rentBeginTime, + rentEndTime: e.rentEndTime, manageType: e.manageType, days: e.days, num: e.num,