|
|
@ -251,7 +251,6 @@ import {filterSubByInv} from "@/api/basic/invSubWarehouse";
|
|
|
|
import {getSpaceCodeList} from "@/api/inventory/invSpace";
|
|
|
|
import {getSpaceCodeList} from "@/api/inventory/invSpace";
|
|
|
|
import {getPlacementDetailList, bindInvSpace, checkCodeSpace} from "@/api/inventory/InvProducts";
|
|
|
|
import {getPlacementDetailList, bindInvSpace, checkCodeSpace} from "@/api/inventory/InvProducts";
|
|
|
|
import {isBlank} from "@/utils/strUtil";
|
|
|
|
import {isBlank} from "@/utils/strUtil";
|
|
|
|
import {enterCodeWeb} from "@/api/inout/order";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
@ -432,7 +431,7 @@ export default {
|
|
|
|
invWarehouseCode: this.formData.invWarehouseCode,
|
|
|
|
invWarehouseCode: this.formData.invWarehouseCode,
|
|
|
|
invSpaceCode: this.formData.invSpaceCode
|
|
|
|
invSpaceCode: this.formData.invSpaceCode
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.checkCode(tQuery);
|
|
|
|
this.addCode(event);
|
|
|
|
this.$refs.inputRef.focus();
|
|
|
|
this.$refs.inputRef.focus();
|
|
|
|
this.$refs.inputRef.select();
|
|
|
|
this.$refs.inputRef.select();
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -443,17 +442,17 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.actionEnable = true;
|
|
|
|
this.actionEnable = true;
|
|
|
|
this.$refs.inputRef.select();
|
|
|
|
this.$refs.inputRef.select();
|
|
|
|
if (this.$isBlank(this.formData.invStorageCode)) {
|
|
|
|
if (isBlank(this.formData.invStorageCode)) {
|
|
|
|
this.$message.error('当前仓库不能为空');
|
|
|
|
this.$message.error('当前仓库不能为空');
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') {
|
|
|
|
if (isBlank(this.formData.invWarehouseCode)) {
|
|
|
|
this.$message.error('当前分库不能为空');
|
|
|
|
this.$message.error('当前分库不能为空');
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (this.$isBlank(this.formData.invSpaceCode)) {
|
|
|
|
if (isBlank(this.formData.invSpaceCode)) {
|
|
|
|
this.$message.error('当前货位不能为空');
|
|
|
|
this.$message.error('当前货位不能为空');
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -500,7 +499,8 @@ export default {
|
|
|
|
if (res.code === 20000) {
|
|
|
|
if (res.code === 20000) {
|
|
|
|
this.codeArray.push(this.formData.code);
|
|
|
|
this.codeArray.push(this.formData.code);
|
|
|
|
} else if (res.code === 8){
|
|
|
|
} else if (res.code === 8){
|
|
|
|
this.$message.error(res.data);
|
|
|
|
this.loading = false;
|
|
|
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
} else if (res.code === 7) {
|
|
|
|
} else if (res.code === 7) {
|
|
|
|
this.$confirm(res.data, '提示', {
|
|
|
|
this.$confirm(res.data, '提示', {
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
confirmButtonText: '确定',
|
|
|
@ -509,6 +509,7 @@ export default {
|
|
|
|
}).then(() => {
|
|
|
|
}).then(() => {
|
|
|
|
this.codeArray.push(this.formData.code);
|
|
|
|
this.codeArray.push(this.formData.code);
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
type: 'info',
|
|
|
|
type: 'info',
|
|
|
|
message: '已取消'
|
|
|
|
message: '已取消'
|
|
|
|