From 21d9c7cc04e565a7be485880202bd1a569cd7a38 Mon Sep 17 00:00:00 2001 From: PQZ Date: Wed, 13 Nov 2024 09:49:17 +0800 Subject: [PATCH] 1 --- pages-home/service/todoDetail.vue | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pages-home/service/todoDetail.vue b/pages-home/service/todoDetail.vue index b9e135a..5179b2a 100644 --- a/pages-home/service/todoDetail.vue +++ b/pages-home/service/todoDetail.vue @@ -107,16 +107,18 @@ export default { }, confirmOpe(type){ let forSign = true - this.repairList.map(item=>{ - if (item.wares.price == null || item.wares.price == ''){ - uni.showToast({ - title: '售价不能为空!', - icon: 'none' - }) - forSign = false - return; - } - }) + if (type == 'yes') { + this.repairList.map(item=>{ + if (item.wares.price == null || item.wares.price == ''){ + uni.showToast({ + title: '售价不能为空!', + icon: 'none' + }) + forSign = false + return; + } + }) + } if (!forSign) { return; }