修改单据bug

prod
郑明梁 2 years ago
parent b3ff5d4374
commit 444d12d594

@ -558,15 +558,17 @@ export default {
let selectData = this.multipleUdiSelection; let selectData = this.multipleUdiSelection;
let selected = null; let selected = null;
if (this.multipleUdiSelection.length == 0) { if (this.multipleUdiSelection.length == 0) {
this.$message.warning('请选入产品!');
if (this.relId != null) { if (this.relId != null) {
this.combineQuery.relId = this.relId; this.combineQuery.relId = this.relId;
this.combineQuery.keys.push(this.currentRow.uuid); this.combineQuery.keys.push(this.currentRow.uuid);
if (this.currentRow.check) { if (this.currentRow.check) {
selected = this.currentRow; selected = this.currentRow;
} }
} else } else{
this.$message.warning('请选入产品!');
return; return;
}
} else { } else {
selectData.forEach((obj) => { selectData.forEach((obj) => {

@ -39,7 +39,7 @@
auto-complete="off" auto-complete="off"
style="width: 90%" style="width: 90%"
clearable clearable
:disabled="corpOrderIdDisabled" :disabled="true"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -643,6 +643,24 @@ 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)){
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;
}
}
if (this.$isBlank(this.orderFormData.corpOrderId)) { if (this.$isBlank(this.orderFormData.corpOrderId)) {
let date = new Date(); let date = new Date();
this.orderFormData.corpOrderId = this.orderFormData.corpOrderId =

@ -459,6 +459,8 @@ export default {
this.invCodeList = response.data || []; this.invCodeList = response.data || [];
if (this.invCodeList != null && this.invCodeList.length == 1) { if (this.invCodeList != null && this.invCodeList.length == 1) {
this.formData.invCode = this.invCodeList[0].code; this.formData.invCode = this.invCodeList[0].code;
this.formData.deptCode = this.invCodeList[0].parentId;
} }
}) })
.catch(() => { .catch(() => {

Loading…
Cancel
Save