|
|
@ -1183,6 +1183,30 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
submit(val) {
|
|
|
|
submit(val) {
|
|
|
|
|
|
|
|
if(this.$isBlank(this.orderFormData.action)){
|
|
|
|
|
|
|
|
this.$message.warning("单据类型不能为空!");
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.curAction.corpType === 0 || this.curAction.corpType === 2 || (this.curAction.corpType === 1 && !this.curAction.genUnit)) {
|
|
|
|
|
|
|
|
if (this.$isBlank(this.orderFormData.fromCorp)) {
|
|
|
|
|
|
|
|
this.$message.warning("请选择往来单位!");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.curAction.corpType == 3) {
|
|
|
|
|
|
|
|
if (this.$isBlank(this.orderFormData.fromInvCode)) {
|
|
|
|
|
|
|
|
this.$message.warning("请选择往来单位!");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.curAction.corpType === 1 && this.curAction.genUnit) {
|
|
|
|
|
|
|
|
if (this.$isBlank(this.orderFormData.fromCorp)) {
|
|
|
|
|
|
|
|
this.$message.warning("请选择往来单位!");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let tQuery = Object.assign(
|
|
|
|
let tQuery = Object.assign(
|
|
|
|
JSON.parse(JSON.stringify(this.orderFormData))
|
|
|
|
JSON.parse(JSON.stringify(this.orderFormData))
|
|
|
|
);
|
|
|
|
);
|
|
|
|