|
@@ -8,8 +8,8 @@ const { t } = useI18n();
|
|
const localeStore = useLocaleStore();
|
|
const localeStore = useLocaleStore();
|
|
const isEn = computed(() => localeStore.getLocale === 'en');
|
|
const isEn = computed(() => localeStore.getLocale === 'en');
|
|
|
|
|
|
-import { dincrementList } from '/@/api/equity'
|
|
|
|
- export const columnsDown: BasicColumn[] = [
|
|
|
|
|
|
+import { dincrementList } from '/@/api/equity';
|
|
|
|
+export const columnsDown: BasicColumn[] = [
|
|
{
|
|
{
|
|
title: t('routes.equity.count'),
|
|
title: t('routes.equity.count'),
|
|
dataIndex: 'userName',
|
|
dataIndex: 'userName',
|
|
@@ -31,17 +31,19 @@ export const columns: BasicColumn[] = [
|
|
dataIndex: 'id',
|
|
dataIndex: 'id',
|
|
ellipsis: false,
|
|
ellipsis: false,
|
|
width: 180,
|
|
width: 180,
|
|
- },{
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
title: t('routes.equity.userName'),
|
|
title: t('routes.equity.userName'),
|
|
dataIndex: 'userName',
|
|
dataIndex: 'userName',
|
|
ellipsis: false,
|
|
ellipsis: false,
|
|
width: 180,
|
|
width: 180,
|
|
- },{
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
title: t('routes.equity.Type'),
|
|
title: t('routes.equity.Type'),
|
|
dataIndex: 'incrementTypeId',
|
|
dataIndex: 'incrementTypeId',
|
|
width: 120,
|
|
width: 120,
|
|
customRender: ({ record }) => {
|
|
customRender: ({ record }) => {
|
|
- return t(`routes.equity.equityType.${record.incrementTypeId}`);
|
|
|
|
|
|
+ return t(`routes.equity.equityType.${record.incrementTypeId}`);
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -85,7 +87,7 @@ export const columns: BasicColumn[] = [
|
|
})
|
|
})
|
|
);
|
|
);
|
|
},
|
|
},
|
|
- }
|
|
|
|
|
|
+ },
|
|
];
|
|
];
|
|
export const searchForm: Partial<FormProps> = {
|
|
export const searchForm: Partial<FormProps> = {
|
|
labelWidth: 100,
|
|
labelWidth: 100,
|
|
@@ -126,46 +128,48 @@ export const searchForm: Partial<FormProps> = {
|
|
maxLength: 50,
|
|
maxLength: 50,
|
|
api: async function () {
|
|
api: async function () {
|
|
const list = await dincrementList();
|
|
const list = await dincrementList();
|
|
- return list.map(ele => {
|
|
|
|
- return {name:t(`routes.finance.equityType.${ele.validTimeType}`),value:ele.id}
|
|
|
|
|
|
+ return list.map((ele) => {
|
|
|
|
+ return { name: t(`routes.finance.equityType.${ele.validTimeType}`), value: ele.id };
|
|
});
|
|
});
|
|
},
|
|
},
|
|
numberToString: true,
|
|
numberToString: true,
|
|
labelField: 'name',
|
|
labelField: 'name',
|
|
valueField: 'value',
|
|
valueField: 'value',
|
|
immediate: true,
|
|
immediate: true,
|
|
- },
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
],
|
|
],
|
|
};
|
|
};
|
|
export const DownSchemas: Partial<FormProps> = {
|
|
export const DownSchemas: Partial<FormProps> = {
|
|
- labelWidth: isEn.value?125:100,
|
|
|
|
- schemas: [{
|
|
|
|
- field: 'userName',
|
|
|
|
- label: t('routes.equity.userName'),
|
|
|
|
- component: 'Input',
|
|
|
|
- componentProps: {
|
|
|
|
- maxLength: 100,
|
|
|
|
- },
|
|
|
|
- colProps: {
|
|
|
|
- xl: 6,
|
|
|
|
- xxl: 6,
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- field: 'timeList',
|
|
|
|
- label: t('routes.equity.timeList'),
|
|
|
|
- component: 'RangePicker',
|
|
|
|
- componentProps: {
|
|
|
|
- maxLength: 100,
|
|
|
|
- valueFormat: 'YYYY-MM-DD',
|
|
|
|
- format: 'YYYY-MM-DD',
|
|
|
|
|
|
+ labelWidth: isEn.value ? 125 : 100,
|
|
|
|
+ schemas: [
|
|
|
|
+ {
|
|
|
|
+ field: 'userName',
|
|
|
|
+ label: t('routes.equity.userName'),
|
|
|
|
+ component: 'Input',
|
|
|
|
+ componentProps: {
|
|
|
|
+ maxLength: 100,
|
|
|
|
+ },
|
|
|
|
+ colProps: {
|
|
|
|
+ xl: 6,
|
|
|
|
+ xxl: 6,
|
|
|
|
+ },
|
|
},
|
|
},
|
|
- colProps: {
|
|
|
|
- xl: 7,
|
|
|
|
- xxl: 7,
|
|
|
|
|
|
+ {
|
|
|
|
+ field: 'timeList',
|
|
|
|
+ label: t('routes.equity.timeList'),
|
|
|
|
+ component: 'RangePicker',
|
|
|
|
+ componentProps: {
|
|
|
|
+ maxLength: 100,
|
|
|
|
+ valueFormat: 'YYYY-MM-DD',
|
|
|
|
+ format: 'YYYY-MM-DD',
|
|
|
|
+ },
|
|
|
|
+ colProps: {
|
|
|
|
+ xl: 7,
|
|
|
|
+ xxl: 7,
|
|
|
|
+ },
|
|
},
|
|
},
|
|
- },]
|
|
|
|
|
|
+ ],
|
|
};
|
|
};
|
|
export const InvoiceSchemas: FormSchema[] = [
|
|
export const InvoiceSchemas: FormSchema[] = [
|
|
{
|
|
{
|