入库优化

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

@ -2,8 +2,8 @@
"name" : "干巷仓库APP",
"appid" : "__UNI__A67E78B",
"description" : "",
"versionName" : "2.2.7",
"versionCode" : 227,
"versionName" : "2.2.8",
"versionCode" : 228,
"transformPx" : false,
"app-plus" : {
"usingComponents" : true,

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: '提示',