禅道bug修改,自助同步到UDI管理

fengcang
anthonyywj2 3 years ago
parent 8edb785fde
commit bfdf381789

@ -564,6 +564,10 @@ export default {
this.$message.error('当前仓库不能为空'); this.$message.error('当前仓库不能为空');
return; return;
} }
if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') {
this.$message.error('当前分库不能为空');
return;
}
let tQuery = Object.assign(JSON.parse(JSON.stringify(this.formData))); let tQuery = Object.assign(JSON.parse(JSON.stringify(this.formData)));
tQuery.orderId = this.idQuery.id; tQuery.orderId = this.idQuery.id;
tQuery.actDate = parseTime(this.formData.actDate, '{y}-{m}-{d} {h}:{i}:{s}'); tQuery.actDate = parseTime(this.formData.actDate, '{y}-{m}-{d} {h}:{i}:{s}');
@ -669,6 +673,12 @@ export default {
this.$message.error('当前仓库不能为空'); this.$message.error('当前仓库不能为空');
return; return;
} }
if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') {
this.$message.error('当前分库不能为空');
return;
}
if (this.$isBlank(this.formData.fromCorp)) { if (this.$isBlank(this.formData.fromCorp)) {
this.$message.error('当前往来单位不能为空'); this.$message.error('当前往来单位不能为空');
return; return;
@ -875,6 +885,9 @@ export default {
}, },
locCHange() { locCHange() {
if (this.$isNotBlank(this.formData.invWarehouseCode)) {
this.formData.invWarehouseCode = "";
}
this.findStorageMethod(); this.findStorageMethod();
this.findSubInvByInv(this.formData.locStorageCode); this.findSubInvByInv(this.formData.locStorageCode);
}, },
@ -934,7 +947,7 @@ export default {
findSubStorageMethod() { findSubStorageMethod() {
let cQuery = { let cQuery = {
pcode: this.formData.fromCorpId, pcode: this.formData.fromCorpId,
filter:2, filter: 2,
}; };
filterSubByInv(cQuery) filterSubByInv(cQuery)
.then((response) => { .then((response) => {

Loading…
Cancel
Save