From dcf7a983db8642eab5bc0ae7b3373de32280910f Mon Sep 17 00:00:00 2001 From: FrancisHu <2756004617@qq.com> Date: Sun, 28 Apr 2024 09:42:51 +0800 Subject: [PATCH] =?UTF-8?q?4.28=E7=AC=AC=E4=B8=80=E6=AC=A1=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/newBuyDetail/newBuyDetail.vue | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/pages/newBuyDetail/newBuyDetail.vue b/pages/newBuyDetail/newBuyDetail.vue index 53e3eef..0e98e75 100644 --- a/pages/newBuyDetail/newBuyDetail.vue +++ b/pages/newBuyDetail/newBuyDetail.vue @@ -194,7 +194,23 @@ title: '未选中审核项!' }) } else { - that.totalGoods.forEach(item => { + const ifManage = that.totalGoods.every(item => item.manageType != 0) + console.log(ifManage); + if (ifManage) { + that.openPopup() + } else { + console.log(that.totalGoods); + const ifCoded = that.totalGoods.every(item => item.maCode != null) + if (ifCoded) { + that.openPopup() + } else { + uni.showToast({ + icon: 'none', + title: '选中项中存在未编码的机具,无法审核!' + }) + } + } + /* that.totalGoods.forEach(item => { console.log(item); if (item.manageType == 0) { if (item.maCode == null) { @@ -208,7 +224,7 @@ } else { that.openPopup() } - }) + }) */ /* uni.showModal({ title: '新购明细审核', content: '是否确定审核通过?',