4.28第一次修改

This commit is contained in:
FrancisHu 2024-04-28 09:42:51 +08:00
parent 8c7c7f40dd
commit dcf7a983db
1 changed files with 18 additions and 2 deletions

View File

@ -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: '是否确定审核通过?',