入库优化

This commit is contained in:
2024-08-23 17:00:34 +08:00
parent 9f269ac667
commit cba5a24216
2 changed files with 14 additions and 14 deletions

View File

@@ -146,18 +146,18 @@ export default {
// 当前录入的箱号是否在同一批次录入过
// 曾经是否扫过
if (this.newMaterialList.length > 0) {
// for (let item of this.newMaterialList) {
// if (item.patchCode === data.patchCode) {
// uni.showModal({
// title: '提示',
// content: '此货物已录入过!',
// showCancel: false,
// confirmText: '确定'
// });
// this.loading = false;
// return;
// }
// }
for (let item of this.newMaterialList) {
if (item.patchCode === data.patchCode) {
uni.showModal({
title: '提示',
content: '此货物已录入过!',
showCancel: false,
confirmText: '确定'
});
this.loading = false;
return;
}
}
if (this.newMaterialList[this.newMaterialList.length - 1].workoderID !== data.workoderID) {
uni.showModal({
title: '提示',