1.修改添加领用扫码校验逻辑

zhairh
x_z 3 years ago
parent 2674284890
commit 7e36ea6c43

@ -384,16 +384,7 @@ export default {
this.$message.error("请选择领用人!")
return;
}
userInfo().then((res) => {
if (res.code === 20000) {
if (!isBlank(res.data.locInvCode)) {
this.filterQuery.invWarehouseCode = res.data.locSubInvCode;
this.getAllWarehouse();
this.warehouseChange();
}
}
}).catch((error) => {
});
//
this.saveOrder();
this.filterQuery = {
@ -406,6 +397,18 @@ export default {
page: 1,
limit: 10
};
userInfo().then((res) => {
if (res.code === 20000) {
if (!isBlank(res.data.locInvCode)) {
this.filterQuery.invWarehouseCode = res.data.locSubInvCode;
this.getAllWarehouse();
this.warehouseChange();
this.queryInvProducts();
}
}
}).catch((error) => {
});
this.productList = [];
this.productTotal = 0;
this.selectInvProductVisible = true;
@ -450,6 +453,12 @@ export default {
this.$message.warning("请先选择养护仓库!");
return;
}
if (isBlank(this.formData.code)) {
this.$message.warning("请扫描或输入UDI码")
return;
}
if (isBlank(this.formData.orderId)) {
this.saveOrder(this.formData.code);
return;

Loading…
Cancel
Save