单据复制修改

dev
anthonywj 2 years ago
parent 04f3232481
commit d41c2d1f77

@ -260,29 +260,27 @@ export default {
this.$message.warning("请选择单据类型!"); this.$message.warning("请选择单据类型!");
return; return;
} }
if ((this.curAction.corpType === 0 || this.curAction.corpType === 2 || (this.curAction.corpType === 1 && !this.curAction.genUnit)) && this.$isBlank(this.formData.fromCorp)) {
this.$message.error('当前往来信息不能为空');
return;
}
if (this.$isBlank(this.formData.invCode)) { if (this.$isBlank(this.formData.invCode)) {
this.$message.error("当前分库不能为空"); this.$message.error("当前分库不能为空");
return; return;
} }
if (this.curAction.corpType === 1 && this.$isBlank(this.formData.fromCorp)) {
if (this.curAction.corpType === 0 || this.curAction.corpType === 2 || (this.curAction.corpType === 1 && !this.curAction.genUnit && this.$isBlank(this.formData.fromCorp))) { this.$message.error('往来单位不能为空');
return;
}
if ((this.curAction.corpType === 2 && this.$isBlank(this.formData.fromCorp))) {
this.$message.error("往来单位不能为空"); this.$message.error("往来单位不能为空");
return; return;
} }
if ((this.curAction.corpType === 4 && this.$isBlank(this.formData.fromCorp))) {
if (this.curAction.corpType == 3 && this.$isBlank(this.formData.fromInvCode)) {
this.$message.error("往来单位不能为空"); this.$message.error("往来单位不能为空");
return; return;
} }
if (this.curAction.corpType == 3 && this.$isBlank(this.formData.fromInvCode)) {
if (this.curAction.corpType === 1 && this.$isBlank(this.formData.fromCorp)) { this.$message.error("往来单位不能为空");
this.$message.error('往来单位不能为空');
return; return;
} }
if (this.detailList.length == 0) { if (this.detailList.length == 0) {
this.$message.error("产品列表不能为空"); this.$message.error("产品列表不能为空");
return; return;

Loading…
Cancel
Save