tangning 2 tahun lalu
induk
melakukan
4231b4c291
1 mengubah file dengan 38 tambahan dan 34 penghapusan
  1. 38 34
      src/views/equity/data.tsx

+ 38 - 34
src/views/equity/data.tsx

@@ -8,8 +8,8 @@ const { t } = useI18n();
 const localeStore = useLocaleStore();
 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'),
     dataIndex: 'userName',
@@ -31,17 +31,19 @@ export const columns: BasicColumn[] = [
     dataIndex: 'id',
     ellipsis: false,
     width: 180,
-  },{
+  },
+  {
     title: t('routes.equity.userName'),
     dataIndex: 'userName',
     ellipsis: false,
     width: 180,
-  },{
+  },
+  {
     title: t('routes.equity.Type'),
     dataIndex: 'incrementTypeId',
     width: 120,
     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> = {
   labelWidth: 100,
@@ -126,46 +128,48 @@ export const searchForm: Partial<FormProps> = {
         maxLength: 50,
         api: async function () {
           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,
         labelField: 'name',
         valueField: 'value',
         immediate: true,
-        },
+      },
     },
   ],
 };
 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[] = [
   {