|
|
|
@ -11,7 +11,7 @@ export const columns: BasicColumn[] = [
|
|
|
|
|
{
|
|
|
|
|
title: '币别',
|
|
|
|
|
dataIndex: 'currencyCode',
|
|
|
|
|
width: 100
|
|
|
|
|
width: 100,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '开始日期',
|
|
|
|
@ -21,7 +21,7 @@ export const columns: BasicColumn[] = [
|
|
|
|
|
if (text) {
|
|
|
|
|
return text.split(' ')[0]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '结束日期',
|
|
|
|
@ -31,27 +31,27 @@ export const columns: BasicColumn[] = [
|
|
|
|
|
if (text) {
|
|
|
|
|
return text.split(' ')[0]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '应收汇率',
|
|
|
|
|
dataIndex: 'drValue',
|
|
|
|
|
width: 120
|
|
|
|
|
width: 120,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '应付汇率',
|
|
|
|
|
dataIndex: 'crValue',
|
|
|
|
|
width: 120
|
|
|
|
|
width: 120,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '海关汇率',
|
|
|
|
|
dataIndex: 'customValue',
|
|
|
|
|
width: 120
|
|
|
|
|
width: 120,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '本币位',
|
|
|
|
|
dataIndex: 'localCurrency',
|
|
|
|
|
width: 120
|
|
|
|
|
width: 120,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '录入时间',
|
|
|
|
@ -61,13 +61,13 @@ export const columns: BasicColumn[] = [
|
|
|
|
|
if (text) {
|
|
|
|
|
return text.split(' ')[0]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '备注',
|
|
|
|
|
dataIndex: 'note',
|
|
|
|
|
width: 150
|
|
|
|
|
}
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
|
|
@ -81,10 +81,10 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
|
api: GetFeeCurrencySelectList,
|
|
|
|
|
labelField: 'name',
|
|
|
|
|
valueField: 'codeName',
|
|
|
|
|
resultField: 'data'
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
export const formSchema: FormSchema[] = [
|
|
|
|
|
{
|
|
|
|
@ -92,7 +92,7 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
field: 'id',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
show: false
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'currencyCode',
|
|
|
|
@ -108,9 +108,9 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
onChange: (v) => {
|
|
|
|
|
formModel.currencyCode = v
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'startDate',
|
|
|
|
@ -124,8 +124,8 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
componentProps: {
|
|
|
|
|
showTime: false,
|
|
|
|
|
valueFormat: 'YYYY-MM-DD',
|
|
|
|
|
width: '100%'
|
|
|
|
|
}
|
|
|
|
|
width: '100%',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'endDate',
|
|
|
|
@ -141,8 +141,8 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
valueFormat: 'YYYY-MM-DD',
|
|
|
|
|
disabledDate: (current: dayjs.Dayjs) => {
|
|
|
|
|
return current && current < dayjs().add(-1, 'day').endOf('day')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'drValue',
|
|
|
|
@ -150,10 +150,16 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
component: 'InputNumber',
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
min: 0,
|
|
|
|
|
precision: 2
|
|
|
|
|
}
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
min: 0,
|
|
|
|
|
precision: 6,
|
|
|
|
|
onChange: (e) => {
|
|
|
|
|
formModel.crValue = e
|
|
|
|
|
formModel.customValue = e
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'crValue',
|
|
|
|
@ -163,8 +169,8 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
min: 0,
|
|
|
|
|
precision: 2
|
|
|
|
|
}
|
|
|
|
|
precision: 6,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'customValue',
|
|
|
|
@ -174,21 +180,21 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
min: 0,
|
|
|
|
|
precision: 2
|
|
|
|
|
}
|
|
|
|
|
precision: 6,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'localCurrency',
|
|
|
|
|
label: '本币位',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
colProps: { span: 12 }
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'note',
|
|
|
|
|
label: '备注',
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
colProps: { span: 12 }
|
|
|
|
|
}
|
|
|
|
|
colProps: { span: 12 },
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|