Commit 6ed1837e authored by 我在何方's avatar 我在何方

bug修复

parent 95325a84
...@@ -554,15 +554,14 @@ export default { ...@@ -554,15 +554,14 @@ export default {
const params = {...this.form} const params = {...this.form}
if (this.list && this.list.length > 0) { if (this.list && this.list.length > 0) {
params.payableReqVOList = [...this.list] params.payableReqVOList = [...this.list]
}else{
this.$modal.msgError("请选择供应商未付款项");
return
} }
if(!params.supplierBankAccount){ if(!params.supplierBankAccount){
this.$modal.msgError("请选择供应商银行账号"); this.$modal.msgError("请选择供应商银行账号");
return return
} }
if (params.payableReqVOList.length === 0) {
this.$modal.msgError("请选择供应商未付款项");
return
}
if (this.id && this.id !== '0') { if (this.id && this.id !== '0') {
updatePayment(params).then(res => { updatePayment(params).then(res => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
...@@ -585,14 +584,24 @@ export default { ...@@ -585,14 +584,24 @@ export default {
const params = {...this.form} const params = {...this.form}
if (this.list && this.list.length > 0) { if (this.list && this.list.length > 0) {
params.payableReqVOList = [...this.list] params.payableReqVOList = [...this.list]
}else{
this.$modal.msgError("请选择供应商未付款项");
return
} }
if(!params.supplierBankAccount){ if(!params.supplierBankAccount){
this.$modal.msgError("请选择供应商银行账号"); this.$modal.msgError("请选择供应商银行账号");
return return
} }
if (params.payableReqVOList.length === 0) { if (this.id && this.id !== '0') {
this.$modal.msgError("请选择供应商未付款项"); updatePayment(params).then(res => {
return this.$modal.msgSuccess("修改成功");
this.$router.back();
})
} else {
createPayment(params).then(res => {
this.$modal.msgSuccess("新增成功");
this.$router.back();
})
} }
// console.log(params, '-----params---------') // console.log(params, '-----params---------')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment