lijingjia 2 weeks ago
commit 0877cda412

@ -407,7 +407,8 @@ export const detailForm: FormSchema[] = [
} }
GetClientBankList(data).then((res) => { GetClientBankList(data).then((res) => {
res.data.forEach(item => { res.data.forEach(item => {
item.showName = item.bankName + ' ' + item.account item.bankAccountNo = item.bankAccountNo ? item.bankAccountNo :''
item.showName = item.bankName + ' ' + item.bankAccountNo
}) })
resolve(res) resolve(res)
}) })
@ -420,7 +421,7 @@ export const detailForm: FormSchema[] = [
onChange: (e, obj) => { onChange: (e, obj) => {
if (obj) { if (obj) {
formModel.customerBankId = obj.id formModel.customerBankId = obj.id
formModel.customerAccount = obj.account formModel.customerAccount = obj.bankAccountNo
} }
if (!obj && !e) { if (!obj && !e) {
formModel.customerBankId = '' formModel.customerBankId = ''
@ -495,8 +496,9 @@ export const detailForm: FormSchema[] = [
} }
getBankList(data).then(res => { getBankList(data).then(res => {
res.data.forEach(item=>{ res.data.forEach(item=>{
item.label = item.bankName + ' ' + item.account item.bankAccountNo = item.bankAccountNo ? item.bankAccountNo :''
item.value = item.bankName + ' ' + item.account item.label = item.bankName + ' ' + item.bankAccountNo
item.value = item.bankName + ' ' + item.bankAccountNo
}) })
bankList.value = res.data bankList.value = res.data
}) })

@ -402,7 +402,8 @@ export const detailForm: FormSchema[] = [
} }
GetClientBankList(data).then((res) => { GetClientBankList(data).then((res) => {
res.data.forEach(item => { res.data.forEach(item => {
item.showName = item.bankName + ' ' + item.account item.bankAccountNo = item.bankAccountNo ? item.bankAccountNo :''
item.showName = item.bankName + ' ' + item.bankAccountNo
}) })
resolve(res) resolve(res)
}) })
@ -415,7 +416,7 @@ export const detailForm: FormSchema[] = [
onChange: (e, obj) => { onChange: (e, obj) => {
if (obj) { if (obj) {
formModel.customerBankId = obj.id formModel.customerBankId = obj.id
formModel.customerAccount = obj.account formModel.customerAccount = obj.bankAccountNo
} }
if (!obj && !e) { if (!obj && !e) {
formModel.customerBankId = '' formModel.customerBankId = ''
@ -490,8 +491,9 @@ export const detailForm: FormSchema[] = [
} }
getBankList(data).then(res => { getBankList(data).then(res => {
res.data.forEach(item=>{ res.data.forEach(item=>{
item.label = item.bankName + ' ' + item.account item.bankAccountNo = item.bankAccountNo ? item.bankAccountNo :''
item.value = item.bankName + ' ' + item.account item.label = item.bankName + ' ' + item.bankAccountNo
item.value = item.bankName + ' ' + item.bankAccountNo
}) })
bankList.value = res.data bankList.value = res.data
}) })

@ -340,18 +340,7 @@
</div> </div>
<div class="right"> <div class="right">
<BasicForm @register="registerForm"> <BasicForm @register="registerForm">
<template #email="{ model, field }">
<a-input v-model:value="model.email" size="small"
style="width: 50%;margin-right: 20px"></a-input>
<a-switch checked-children="" un-checked-children="" size="small"
v-model:checked="model.emailFlag" />
</template>
<template #cellPhoneNO="{ model, field }">
<a-input v-model:value="model.cellPhoneNO" size="small"
style="width: 50%;margin-right: 20px"></a-input>
<a-switch checked-children="" un-checked-children="" size="small"
v-model:checked="model.cellPhoneNOFlag" />
</template>
</BasicForm> </BasicForm>
<BasicTable @register="registerTable"> <BasicTable @register="registerTable">
@ -547,11 +536,13 @@ const detailForm = [
{ {
field: 'cellPhoneNOFlag', field: 'cellPhoneNOFlag',
component: 'Input', component: 'Input',
defaultValue: true,
show: false, show: false,
colProps: { span: 24 }, colProps: { span: 24 },
}, },
{ {
field: 'emailFlag', field: 'emailFlag',
defaultValue: true,
show: false, show: false,
component: 'Input', component: 'Input',
colProps: { span: 24 }, colProps: { span: 24 },
@ -560,14 +551,12 @@ const detailForm = [
field: 'email', field: 'email',
label: '邮箱', label: '邮箱',
component: 'Input', component: 'Input',
slot: 'email',
colProps: { span: 24 }, colProps: { span: 24 },
}, },
{ {
field: 'cellPhoneNO', field: 'cellPhoneNO',
label: '手机', label: '手机',
component: 'Input', component: 'Input',
slot: 'cellPhoneNO',
colProps: { span: 24 }, colProps: { span: 24 },
}, },
{ {
@ -579,7 +568,7 @@ const detailForm = [
}, },
}, },
{ {
field: 'isSetRed', field: 'isSetRedName',
label: '是否冲红', label: '是否冲红',
component: 'Input', component: 'Input',
dynamicDisabled: true, dynamicDisabled: true,
@ -804,10 +793,10 @@ function getDetail() {
res.data.isLockedName = '否' res.data.isLockedName = '否'
} }
if (res.data.isSetRed) { if (res.data.isSetRed) {
res.data.isSetRed = '是' res.data.isSetRedName = '是'
res.data.invoiceType = '红票' res.data.invoiceType = '红票'
} else { } else {
res.data.isSetRed = '否' res.data.isSetRedName = '否'
res.data.invoiceType = '正票' res.data.invoiceType = '正票'
} }
if (res.data.invoiceNO) { if (res.data.invoiceNO) {
@ -817,14 +806,6 @@ function getDetail() {
} }
res.data.emailFlag = false res.data.emailFlag = false
res.data.cellPhoneNOFlag = false res.data.cellPhoneNOFlag = false
res.data.pushModeValues.forEach(item => {
if (item == 1) {
res.data.emailFlag = true
}
if (item == 2) {
res.data.cellPhoneNOFlag = true
}
})
res.data.applyAmount = numberThousandFormat(res.data.applyAmount, 2, false) res.data.applyAmount = numberThousandFormat(res.data.applyAmount, 2, false)
res.data.otherInvoiceAmount = numberThousandFormat(res.data.otherInvoiceAmount, 2, false) res.data.otherInvoiceAmount = numberThousandFormat(res.data.otherInvoiceAmount, 2, false)
res.data.invoiceAmount = numberThousandFormat(res.data.invoiceAmount, 2, false) res.data.invoiceAmount = numberThousandFormat(res.data.invoiceAmount, 2, false)

Loading…
Cancel
Save