lijingjia 3 weeks ago
commit 9a1875fd60

@ -160,7 +160,7 @@
<a-select v-model:value="tempNameId" style="width: 80%">
<a-select-option :value="item.id" v-for="(item, index) in tempList" :key="index">{{
item.name
}}</a-select-option>
}}</a-select-option>
</a-select>
</a-modal>
</a-spin>
@ -260,6 +260,8 @@ const bankForm = [
},
onChange: (e, obj) => {
if (obj) {
obj.invoiceAddress = obj.invoiceAddress ? obj.invoiceAddress : ''
obj.invoiceTel = obj.invoiceTel ? obj.invoiceTel : ''
setFieldsValue({
taxID: obj.invoiceTaxNo,
customerAddTel: obj.invoiceAddress + ' ' + obj.invoiceTel
@ -270,7 +272,7 @@ const bankForm = [
customerBankName: obj.name,
})
setFieldsValue({
usdCustomerBankId:'',
usdCustomerBankId: '',
usdCustomerBankName: '',
})
}
@ -280,7 +282,7 @@ const bankForm = [
usdCustomerBankName: obj.name,
})
setFieldsValue({
customerBankId:'',
customerBankId: '',
customerBankName: '',
})
}
@ -289,7 +291,7 @@ const bankForm = [
setFieldsValue({
customerBankId: '',
customerBankName: '',
usdCustomerBankId:'',
usdCustomerBankId: '',
usdCustomerBankName: '',
taxID: '',
customerAddTel: '',
@ -333,6 +335,8 @@ const bankForm = [
onChange: (e, obj) => {
if (obj) {
formModel.customerBankId = obj.id
obj.invoiceAddress = obj.invoiceAddress ? obj.invoiceAddress : ''
obj.invoiceTel = obj.invoiceTel ? obj.invoiceTel : ''
setFieldsValue({
invoiceHeader: obj.invoiceHeader,
taxID: obj.invoiceTaxNo,
@ -373,6 +377,8 @@ const bankForm = [
onChange: (e, obj) => {
if (obj) {
formModel.usdCustomerBankId = obj.id
obj.invoiceAddress = obj.invoiceAddress ? obj.invoiceAddress : ''
obj.invoiceTel = obj.invoiceTel ? obj.invoiceTel : ''
setFieldsValue({
invoiceHeader: obj.invoiceHeader,
taxID: obj.invoiceTaxNo,
@ -567,7 +573,7 @@ const bottomForm = [
bankListUsd.value = []
GetClientBankList(data).then((res) => {
res.data.forEach((item) => {
item.name = item.bankName + ' ' + item.account
item.name = item.bankName + ' ' + item.bankAccountNo
if (item.currency == 'RMB') {
bankList.value.push(item)
}
@ -1035,7 +1041,7 @@ function getBankInfo(customerId) {
}
GetClientBankList(data).then((res) => {
res.data.forEach((item) => {
item.name = item.bankName + ' ' + item.account
item.name = item.bankName + ' ' + item.bankAccountNo
if (item.currency == 'RMB') {
bankList.value.push(item)
}
@ -1081,21 +1087,25 @@ function changeCust(id, name) {
GetClientBankList(data).then((res) => {
res.data.reverse();
res.data.forEach((item) => {
item.name = item.bankName + ' ' + item.account
item.name = item.bankName + ' ' + item.bankAccountNo
if (item.currency == 'RMB') {
item.invoiceAddress = item.invoiceAddress ? item.invoiceAddress :''
item.invoiceTel = item.invoiceTel ? item.invoiceTel :''
item.invoiceAddress = item.invoiceAddress ? item.invoiceAddress : ''
item.invoiceTel = item.invoiceTel ? item.invoiceTel : ''
setFieldsValue({
customerBankId: item.id,
customerBankName: item.name,
invoiceHeader: item.invoiceHeader,
taxID: item.invoiceTaxNo,
customerAddTel: item.invoiceAddress + ' ' + item.invoiceTel
customerAddTel: item.invoiceAddress + ' ' + item.invoiceTel
})
bankList.value.push(item)
}
if (item.currency == 'USD') {
bankListUsd.value.push(item)
setFieldsValue({
usdCustomerBankId: item.id,
usdCustomerBankName: item.name,
})
}
})
bankListAll.value = res.data

Loading…
Cancel
Save