|
|
@ -262,39 +262,43 @@ const bankForm = [
|
|
|
|
if (obj) {
|
|
|
|
if (obj) {
|
|
|
|
obj.invoiceAddress = obj.invoiceAddress ? obj.invoiceAddress : ''
|
|
|
|
obj.invoiceAddress = obj.invoiceAddress ? obj.invoiceAddress : ''
|
|
|
|
obj.invoiceTel = obj.invoiceTel ? obj.invoiceTel : ''
|
|
|
|
obj.invoiceTel = obj.invoiceTel ? obj.invoiceTel : ''
|
|
|
|
|
|
|
|
obj.invoiceTaxNo = obj.invoiceTaxNo ? obj.invoiceTaxNo : ''
|
|
|
|
setFieldsValue({
|
|
|
|
setFieldsValue({
|
|
|
|
taxID: obj.invoiceTaxNo,
|
|
|
|
taxID: obj.invoiceTaxNo,
|
|
|
|
customerAddTel: obj.invoiceAddress + ' ' + obj.invoiceTel
|
|
|
|
customerAddTel: obj.invoiceAddress + ' ' + obj.invoiceTel
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
obj.bankName = obj.bankName ? obj.bankName : ''
|
|
|
|
|
|
|
|
obj.bankAccountNo = obj.bankAccountNo ? obj.bankAccountNo : ''
|
|
|
|
|
|
|
|
console.log(obj)
|
|
|
|
if (obj.currency == 'RMB') {
|
|
|
|
if (obj.currency == 'RMB') {
|
|
|
|
setFieldsValue({
|
|
|
|
setFieldsValue({
|
|
|
|
customerBankId: obj.id,
|
|
|
|
customerBankId: obj.id,
|
|
|
|
customerBankName: obj.name,
|
|
|
|
customerBankName: obj.bankName + obj.bankAccountNo,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
setFieldsValue({
|
|
|
|
setFieldsValue({
|
|
|
|
usdCustomerBankId: '',
|
|
|
|
usdCustomerBankId: '-',
|
|
|
|
usdCustomerBankName: '',
|
|
|
|
usdCustomerBankName: '-',
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (obj.currency == 'USD') {
|
|
|
|
if (obj.currency == 'USD') {
|
|
|
|
setFieldsValue({
|
|
|
|
setFieldsValue({
|
|
|
|
usdCustomerBankId: obj.id,
|
|
|
|
usdCustomerBankId: obj.id,
|
|
|
|
usdCustomerBankName: obj.name,
|
|
|
|
usdCustomerBankName: obj.bankName + obj.bankAccountNo,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
setFieldsValue({
|
|
|
|
setFieldsValue({
|
|
|
|
customerBankId: '',
|
|
|
|
customerBankId: '-',
|
|
|
|
customerBankName: '',
|
|
|
|
customerBankName: '-',
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!obj && !e) {
|
|
|
|
if (!obj && !e) {
|
|
|
|
setFieldsValue({
|
|
|
|
setFieldsValue({
|
|
|
|
customerBankId: '',
|
|
|
|
customerBankId: '-',
|
|
|
|
customerBankName: '',
|
|
|
|
customerBankName: '-',
|
|
|
|
usdCustomerBankId: '',
|
|
|
|
usdCustomerBankId: '-',
|
|
|
|
usdCustomerBankName: '',
|
|
|
|
usdCustomerBankName: '-',
|
|
|
|
taxID: '',
|
|
|
|
taxID: '-',
|
|
|
|
customerAddTel: '',
|
|
|
|
customerAddTel: '-',
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -335,21 +339,21 @@ const bankForm = [
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
if (obj) {
|
|
|
|
if (obj) {
|
|
|
|
formModel.customerBankId = obj.id
|
|
|
|
|
|
|
|
obj.invoiceAddress = obj.invoiceAddress ? obj.invoiceAddress : ''
|
|
|
|
obj.invoiceAddress = obj.invoiceAddress ? obj.invoiceAddress : ''
|
|
|
|
obj.invoiceTel = obj.invoiceTel ? obj.invoiceTel : ''
|
|
|
|
obj.invoiceTel = obj.invoiceTel ? obj.invoiceTel : ''
|
|
|
|
setFieldsValue({
|
|
|
|
obj.invoiceHeader = obj.invoiceHeader ? obj.invoiceHeader : '-'
|
|
|
|
invoiceHeader: obj.invoiceHeader,
|
|
|
|
formModel.customerBankId = obj.id
|
|
|
|
taxID: obj.invoiceTaxNo,
|
|
|
|
formModel.invoiceHeader = obj.invoiceHeader
|
|
|
|
customerAddTel: obj.invoiceAddress + ' ' + obj.invoiceTel
|
|
|
|
formModel.invoiceTel = obj.invoiceTel ? obj.invoiceTel : ''
|
|
|
|
})
|
|
|
|
formModel.taxID = obj.invoiceTaxNo ? obj.invoiceTaxNo : ''
|
|
|
|
|
|
|
|
formModel.customerAddTel = obj.invoiceAddress + ' ' + obj.invoiceTel
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!obj && !e) {
|
|
|
|
if (!obj && !e) {
|
|
|
|
formModel.customerBankId = ''
|
|
|
|
formModel.customerBankId = '-'
|
|
|
|
setFieldsValue({
|
|
|
|
setFieldsValue({
|
|
|
|
invoiceHeader: '',
|
|
|
|
invoiceHeader: '-',
|
|
|
|
taxID: '',
|
|
|
|
taxID: '-',
|
|
|
|
customerAddTel: ''
|
|
|
|
customerAddTel: '-'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -385,8 +389,8 @@ const bankForm = [
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
if (obj) {
|
|
|
|
if (obj) {
|
|
|
|
formModel.usdCustomerBankId = obj.id
|
|
|
|
formModel.usdCustomerBankId = obj.id
|
|
|
|
obj.invoiceAddress = obj.invoiceAddress ? obj.invoiceAddress : ''
|
|
|
|
obj.invoiceAddress = obj.invoiceAddress ? obj.invoiceAddress : '-'
|
|
|
|
obj.invoiceTel = obj.invoiceTel ? obj.invoiceTel : ''
|
|
|
|
obj.invoiceTel = obj.invoiceTel ? obj.invoiceTel : '-'
|
|
|
|
setFieldsValue({
|
|
|
|
setFieldsValue({
|
|
|
|
invoiceHeader: obj.invoiceHeader,
|
|
|
|
invoiceHeader: obj.invoiceHeader,
|
|
|
|
taxID: obj.invoiceTaxNo,
|
|
|
|
taxID: obj.invoiceTaxNo,
|
|
|
@ -394,11 +398,11 @@ const bankForm = [
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!obj && !e) {
|
|
|
|
if (!obj && !e) {
|
|
|
|
formModel.usdCustomerBankId = ''
|
|
|
|
formModel.usdCustomerBankId = '-'
|
|
|
|
setFieldsValue({
|
|
|
|
setFieldsValue({
|
|
|
|
invoiceHeader: '',
|
|
|
|
invoiceHeader: '-',
|
|
|
|
taxID: '',
|
|
|
|
taxID: '-',
|
|
|
|
customerAddTel: ''
|
|
|
|
customerAddTel: '-'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -406,95 +410,7 @@ const bankForm = [
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
const EditBankForm = [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'invoiceHeader',
|
|
|
|
|
|
|
|
label: '发票抬头',
|
|
|
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
|
|
|
componentProps: (e) => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
onEdit: () => {
|
|
|
|
|
|
|
|
const { formActionType } = e
|
|
|
|
|
|
|
|
formActionType ? formActionType.linkageForm(e) : null
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'taxID',
|
|
|
|
|
|
|
|
label: '纳税人识别号',
|
|
|
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
|
|
|
componentProps: (e) => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
onEdit: () => {
|
|
|
|
|
|
|
|
const { formActionType } = e
|
|
|
|
|
|
|
|
formActionType ? formActionType.linkageForm(e) : null
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'customerAddTel',
|
|
|
|
|
|
|
|
label: '地址电话',
|
|
|
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
|
|
|
componentProps: (e) => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
onEdit: () => {
|
|
|
|
|
|
|
|
const { formActionType } = e
|
|
|
|
|
|
|
|
formActionType ? formActionType.linkageForm(e) : null
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'customerBankId',
|
|
|
|
|
|
|
|
label: '',
|
|
|
|
|
|
|
|
component: 'Input',
|
|
|
|
|
|
|
|
show: false,
|
|
|
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'customerBankName',
|
|
|
|
|
|
|
|
label: 'RMB开户行/账号',
|
|
|
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
|
|
|
componentProps: (e) => {
|
|
|
|
|
|
|
|
const { formModel } = e
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
onEdit: () => {
|
|
|
|
|
|
|
|
const { formActionType } = e
|
|
|
|
|
|
|
|
formActionType ? formActionType.linkageForm(e) : null
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'usdCustomerBankId',
|
|
|
|
|
|
|
|
label: '',
|
|
|
|
|
|
|
|
component: 'Input',
|
|
|
|
|
|
|
|
show: false,
|
|
|
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'usdCustomerBankName',
|
|
|
|
|
|
|
|
label: 'USD开户行及账号',
|
|
|
|
|
|
|
|
colProps: { span: 24 },
|
|
|
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
|
|
|
componentProps: (e) => {
|
|
|
|
|
|
|
|
const { formModel } = e
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
onEdit: () => {
|
|
|
|
|
|
|
|
const { formActionType } = e
|
|
|
|
|
|
|
|
formActionType ? formActionType.linkageForm(e) : null
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
const markFormS = [
|
|
|
|
const markFormS = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'note',
|
|
|
|
field: 'note',
|
|
|
@ -784,6 +700,7 @@ const [registerForm, { resetFields, setFieldsValue, validate, updateSchema, getF
|
|
|
|
labelWidth: 100,
|
|
|
|
labelWidth: 100,
|
|
|
|
schemas: bankForm,
|
|
|
|
schemas: bankForm,
|
|
|
|
showActionButtonGroup: false,
|
|
|
|
showActionButtonGroup: false,
|
|
|
|
|
|
|
|
readonly: true,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
const [markForm, { resetFields: markresetFields, setFieldsValue: marksetFieldsValue, getFieldsValue: getFieldsValueM }] = useForm({
|
|
|
|
const [markForm, { resetFields: markresetFields, setFieldsValue: marksetFieldsValue, getFieldsValue: getFieldsValueM }] = useForm({
|
|
|
|
labelWidth: 100,
|
|
|
|
labelWidth: 100,
|
|
|
@ -937,15 +854,15 @@ function init() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
feeTableRef.value.open()
|
|
|
|
feeTableRef.value.open()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bankForm.forEach((item) => {
|
|
|
|
// bankForm.forEach((item) => {
|
|
|
|
if (item.show !== false && item.component !== 'Divider') {
|
|
|
|
// if (item.show !== false && item.component !== 'Divider') {
|
|
|
|
EditBankForm.forEach((item2) => {
|
|
|
|
// EditBankForm.forEach((item2) => {
|
|
|
|
if (item.field == item2.field) {
|
|
|
|
// if (item.field == item2.field) {
|
|
|
|
updateSchema(item2)
|
|
|
|
// updateSchema(item2)
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
})
|
|
|
|
// })
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
})
|
|
|
|
// })
|
|
|
|
bottomForm.forEach((item) => {
|
|
|
|
bottomForm.forEach((item) => {
|
|
|
|
if (item.show !== false && item.component !== 'Divider') {
|
|
|
|
if (item.show !== false && item.component !== 'Divider') {
|
|
|
|
bottomFormEdit.forEach((item2) => {
|
|
|
|
bottomFormEdit.forEach((item2) => {
|
|
|
@ -1031,6 +948,7 @@ const bankListUsd = ref([])
|
|
|
|
const bankListAll = ref([])
|
|
|
|
const bankListAll = ref([])
|
|
|
|
function getBankInfo(customerId) {
|
|
|
|
function getBankInfo(customerId) {
|
|
|
|
bankList.value = []
|
|
|
|
bankList.value = []
|
|
|
|
|
|
|
|
bankListAll.value = []
|
|
|
|
bankListUsd.value = []
|
|
|
|
bankListUsd.value = []
|
|
|
|
const queryStr = [
|
|
|
|
const queryStr = [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1056,8 +974,10 @@ function getBankInfo(customerId) {
|
|
|
|
if (item.currency == 'USD') {
|
|
|
|
if (item.currency == 'USD') {
|
|
|
|
bankListUsd.value.push(item)
|
|
|
|
bankListUsd.value.push(item)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (item.invoiceHeader) {
|
|
|
|
|
|
|
|
bankListAll.value.push(item)
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
bankListAll.value = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1092,6 +1012,7 @@ function changeCust(id, name) {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
bankList.value = []
|
|
|
|
bankList.value = []
|
|
|
|
bankListUsd.value = []
|
|
|
|
bankListUsd.value = []
|
|
|
|
|
|
|
|
bankListAll.value = []
|
|
|
|
GetClientBankList(data).then((res) => {
|
|
|
|
GetClientBankList(data).then((res) => {
|
|
|
|
res.data.reverse();
|
|
|
|
res.data.reverse();
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
res.data.forEach((item) => {
|
|
|
@ -1115,8 +1036,10 @@ function changeCust(id, name) {
|
|
|
|
usdCustomerBankName: item.name,
|
|
|
|
usdCustomerBankName: item.name,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (item.invoiceHeader) {
|
|
|
|
|
|
|
|
bankListAll.value.push(item)
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
bankListAll.value = res.data
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
resolve(true);
|
|
|
|
resolve(true);
|
|
|
|
}, 300)
|
|
|
|
}, 300)
|
|
|
|