Browse Source

完善出纳付款列表

master
yunuo970428 3 months ago
parent
commit
2762541ebe
  1. 43
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/chunafukuan/chunafukuanguanli/cashier.vue

43
anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/chunafukuan/chunafukuanguanli/cashier.vue

@ -480,16 +480,12 @@ export default {
this.getList() this.getList()
}, },
changePayBankAccount(value) { changePayBankAccount(value) {
let bb = null const choose = this.payBankAccount_list.filter((item) => item.bankAccount === value)
this.payBankAccount_list.forEach((e) => { if (choose !== null && choose.length > 0) {
if (e.bankAccount === value) { this.formobj.payBank = choose[0].accountName
bb = { } else {
name: e.accountName, this.formobj.payBank = ''
value: e.bankAccount }
}
}
})
this.formobj.payBank = bb.name
}, },
handleSelectionChange(row) { handleSelectionChange(row) {
console.log('aaa', row) console.log('aaa', row)
@ -573,16 +569,27 @@ export default {
}, },
changerRceiveCompany(value) { changerRceiveCompany(value) {
const choose = this.receiveCompany_list.filter((item) => item.name === value) const choose = this.receiveCompany_list.filter((item) => item.name === value)
this.formobj.payCode = choose[0].payCode if (choose !== null && choose.length > 0) {
getBankList({ sid: choose[0].sid }).then((res) => { this.formobj.payCode = choose[0].payCode
if (res.success) { getBankList({ sid: choose[0].sid }).then((res) => {
this.receiveBankAccount_list = res.data if (res.success) {
} this.receiveBankAccount_list = res.data
}) }
})
} else {
this.formobj.payCode = ''
this.formobj.receiveBankAccount = ''
this.formobj.receiveBank = ''
this.receiveBankAccount_list = []
}
}, },
changeReceiveBankAccount(value) { changeReceiveBankAccount(value) {
const choose = this.receiveBankAccount_list.filter((item) => item.receiveBankAccount === value) const choose = this.receiveBankAccount_list.filter((item) => item.receiveBankAccount === value)
this.formobj.receiveBank = choose[0].receiveBank if (choose !== null && choose.length > 0) {
this.formobj.receiveBank = choose[0].receiveBank
} else {
this.formobj.receiveBank = ''
}
}, },
handleGetCheck(row) { handleGetCheck(row) {
this.dialogImgVisible = true this.dialogImgVisible = true
@ -649,7 +656,7 @@ export default {
this.formobj.receiveCompany = row.receiveCompany this.formobj.receiveCompany = row.receiveCompany
this.formobj.receiveBankAccount = row.receiveBankAccount this.formobj.receiveBankAccount = row.receiveBankAccount
this.formobj.receiveBank = row.receiveBank this.formobj.receiveBank = row.receiveBank
this.formobj.payCode = row.payCode this.changerRceiveCompany(this.formobj.receiveCompany)
this.formobj.payWayValue = row.payWayValue this.formobj.payWayValue = row.payWayValue
this.changePayWay(row.payWayValue) this.changePayWay(row.payWayValue)
const aa = [] const aa = []

Loading…
Cancel
Save