入库-出库检查接口调整

This commit is contained in:
赵正易
2024-03-27 17:20:31 +08:00
parent 0cd58461b9
commit 4265112a42
3 changed files with 48 additions and 14 deletions

View File

@@ -57,6 +57,8 @@ export default {
},
data() {
return {
// 入库模式true严格追溯 false不严格不追溯
isStrict:true,
loading: false,
// 双击判定
touchNum: 0,
@@ -129,12 +131,29 @@ export default {
this.warehouseInfo = data?.warehoseInfo;
this.newMaterialList = [];
} else if (type === 2) {
// 此时扫描的是箱号
// 当前录入的箱号是否在同一批次录入过
// 曾经是否扫过
if (this.newMaterialList.length > 0) {
for (let item of this.newMaterialList) {
if (item.patchCode === data.patchCode) {
uni.showModal({
title: '提示',
content: '此货物已录入过',
showCancel: false,
confirmText: '确定'
});
return;
}
}
}
const checkData = {
production_packcode: data.originalCode,
location:this.warehouseInfo.location,
isStrict:true,
location: this.warehouseInfo.location,
//严格模式
isStrict: this.isStrict
};
WarehoseApi.checkWarehousing(checkData).then(res=>{
WarehoseApi.checkWarehousing(checkData).then((res) => {
if (res.code === 200 && res.data) {
this.newMaterialList.push(data);
} else {
@@ -145,7 +164,7 @@ export default {
confirmText: '确定'
});
}
})
});
// const checkData = {
// originalCode: data.originalCode
// };
@@ -175,8 +194,8 @@ export default {
// }
// }
// }
});
// });
}
},