diff --git a/manifest.json b/manifest.json index 886fb66..22166ea 100644 --- a/manifest.json +++ b/manifest.json @@ -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, diff --git a/pages/inWarehouse/inWarehouse.vue b/pages/inWarehouse/inWarehouse.vue index 4dbc9db..72b0a1d 100644 --- a/pages/inWarehouse/inWarehouse.vue +++ b/pages/inWarehouse/inWarehouse.vue @@ -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: '提示',