fix: lint
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
import type { VbenFormSchema } from '#/adapter/form';
|
||||
import type { Ref } from 'vue';
|
||||
|
||||
import type { VbenFormSchema } from '#/adapter/form';
|
||||
import type { CrmBusinessApi } from '#/api/crm/business';
|
||||
import type { DescriptionItemSchema } from '#/components/description';
|
||||
|
||||
import { erpPriceInputFormatter, formatDateTime } from '@vben/utils';
|
||||
|
||||
import { DEFAULT_STATUSES, getBusinessStatusSimpleList } from '#/api/crm/business/status';
|
||||
import {
|
||||
DEFAULT_STATUSES,
|
||||
getBusinessStatusSimpleList,
|
||||
} from '#/api/crm/business/status';
|
||||
|
||||
/** 详情页的字段 */
|
||||
export function useDetailSchema(): DescriptionItemSchema[] {
|
||||
|
||||
@@ -70,4 +70,3 @@ export function useDetailBaseSchema(): DescriptionItemSchema[] {
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -31,8 +31,7 @@ export function useDetailSchema(): DescriptionItemSchema[] {
|
||||
{
|
||||
field: 'receivable',
|
||||
label: '实际回款金额',
|
||||
content: (data) =>
|
||||
erpPriceInputFormatter(data?.receivable?.price ?? 0),
|
||||
content: (data) => erpPriceInputFormatter(data?.receivable?.price ?? 0),
|
||||
},
|
||||
];
|
||||
}
|
||||
@@ -78,8 +77,7 @@ export function useDetailBaseSchema(): DescriptionItemSchema[] {
|
||||
{
|
||||
field: 'receivable',
|
||||
label: '实际回款金额',
|
||||
content: (data) =>
|
||||
erpPriceInputFormatter(data?.receivable?.price ?? 0),
|
||||
content: (data) => erpPriceInputFormatter(data?.receivable?.price ?? 0),
|
||||
},
|
||||
{
|
||||
field: 'receivableRemain',
|
||||
@@ -92,8 +90,7 @@ export function useDetailBaseSchema(): DescriptionItemSchema[] {
|
||||
{
|
||||
field: 'receivable.returnTime',
|
||||
label: '实际回款日期',
|
||||
content: (data) =>
|
||||
formatDateTime(data?.receivable?.returnTime) as string,
|
||||
content: (data) => formatDateTime(data?.receivable?.returnTime) as string,
|
||||
},
|
||||
{
|
||||
field: 'remark',
|
||||
|
||||
@@ -38,8 +38,12 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
ajax: {
|
||||
query: async (_, formValues) => {
|
||||
const res = await getDatas(activeTabName.value, formValues);
|
||||
await renderLeftEcharts(getChartOptions(activeTabName.value, res).left);
|
||||
await renderRightEcharts(getChartOptions(activeTabName.value, res).right);
|
||||
await renderLeftEcharts(
|
||||
getChartOptions(activeTabName.value, res).left,
|
||||
);
|
||||
await renderRightEcharts(
|
||||
getChartOptions(activeTabName.value, res).right,
|
||||
);
|
||||
return res;
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user