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