Commit 4053aa0a authored by zhoutong's avatar zhoutong
parents f314092c 5e96b3b8
...@@ -676,10 +676,10 @@ export default { ...@@ -676,10 +676,10 @@ export default {
this.$modal.msgError(this.$t('请选择供应商未付款项')); this.$modal.msgError(this.$t('请选择供应商未付款项'));
return return
} }
if(!params.supplierBankAccount){ /*if(!params.supplierBankAccount){
this.$modal.msgError(this.$t('请选择供应商银行账号')); this.$modal.msgError(this.$t('请选择供应商银行账号'));
return 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.$t('申请成功')); this.$modal.msgSuccess(this.$t('申请成功'));
...@@ -727,7 +727,7 @@ export default { ...@@ -727,7 +727,7 @@ export default {
}, },
selectChangeBank(val){ selectChangeBank(val){
this.$forceUpdate() this.$forceUpdate()
var bank = this.bankData.find(item=>item.bankAccount==this.form.supplierBankAccount) let bank = this.bankData.find(item=>item.bankAccount==this.form.supplierBankAccount)
this.form.supplierBank = bank.bankName this.form.supplierBank = bank.bankName
this.form.supplierBankAccountName = bank.accountName this.form.supplierBankAccountName = bank.accountName
}, },
...@@ -737,9 +737,9 @@ export default { ...@@ -737,9 +737,9 @@ export default {
if(val){ if(val){
getSupplier(val).then((res)=>{ getSupplier(val).then((res)=>{
this.bankData = res.data.bankList this.bankData = res.data.bankList
var bank = this.bankData.find(item=>item.bankAccount==this.form.supplierBankAccount) let bank = this.bankData.find(item=>item.bankAccount==this.form.supplierBankAccount)
console.log(this.bankData) if(!bank) this.form.supplierBankAccount=''
if(this.bankData.length>0&&!bank) this.form.supplierBankAccount= this.bankData[0]['bankAccount'] if(!bank&&this.bankData.length>0) this.form.supplierBankAccount= this.bankData[0]['bankAccount']
}) })
} }
......
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