fix: lint

This commit is contained in:
xingyu4j
2025-10-20 10:49:08 +08:00
parent 30c7727361
commit 496a808b86
23 changed files with 86 additions and 45 deletions

View File

@@ -2,7 +2,7 @@ import type { PageParam, PageResult } from '@vben/request';
import { requestClient } from '#/api/request'; import { requestClient } from '#/api/request';
namespace ErpFinanceReceiptApi { export namespace ErpFinanceReceiptApi {
/** 收款单项 */ /** 收款单项 */
export interface FinanceReceiptItem { export interface FinanceReceiptItem {
id?: number; id?: number;

View File

@@ -740,7 +740,10 @@
"name": "FailedJobRetryTimeCycle", "name": "FailedJobRetryTimeCycle",
"superClass": ["Element"], "superClass": ["Element"],
"meta": { "meta": {
"allowedIn": ["activiti:AsyncCapable", "bpmn:MultiInstanceLoopCharacteristics"] "allowedIn": [
"activiti:AsyncCapable",
"bpmn:MultiInstanceLoopCharacteristics"
]
}, },
"properties": [ "properties": [
{ {

View File

@@ -727,7 +727,10 @@
"name": "FailedJobRetryTimeCycle", "name": "FailedJobRetryTimeCycle",
"superClass": ["Element"], "superClass": ["Element"],
"meta": { "meta": {
"allowedIn": ["camunda:AsyncCapable", "bpmn:MultiInstanceLoopCharacteristics"] "allowedIn": [
"camunda:AsyncCapable",
"bpmn:MultiInstanceLoopCharacteristics"
]
}, },
"properties": [ "properties": [
{ {

View File

@@ -910,7 +910,10 @@
"name": "FailedJobRetryTimeCycle", "name": "FailedJobRetryTimeCycle",
"superClass": ["Element"], "superClass": ["Element"],
"meta": { "meta": {
"allowedIn": ["flowable:AsyncCapable", "bpmn:MultiInstanceLoopCharacteristics"] "allowedIn": [
"flowable:AsyncCapable",
"bpmn:MultiInstanceLoopCharacteristics"
]
}, },
"properties": [ "properties": [
{ {

View File

@@ -18,7 +18,8 @@ const routes: RouteRecordRaw[] = [
title: '产品详情', title: '产品详情',
activePath: '/iot/device/product', activePath: '/iot/device/product',
}, },
component: () => import('#/views/iot/product/product/modules/detail/index.vue'), component: () =>
import('#/views/iot/product/product/modules/detail/index.vue'),
}, },
{ {
path: 'device/detail/:id', path: 'device/detail/:id',
@@ -27,11 +28,11 @@ const routes: RouteRecordRaw[] = [
title: '设备详情', title: '设备详情',
activePath: '/iot/device/device', activePath: '/iot/device/device',
}, },
component: () => import('#/views/iot/device/device/modules/detail/index.vue'), component: () =>
import('#/views/iot/device/device/modules/detail/index.vue'),
}, },
], ],
}, },
]; ];
export default routes; export default routes;

View File

@@ -1,11 +1,15 @@
import type { VbenFormSchema } from '#/adapter/form';
import type { Ref } from 'vue'; import type { Ref } from 'vue';
import type { VbenFormSchema } from '#/adapter/form';
import type { CrmBusinessApi } from '#/api/crm/business'; import type { CrmBusinessApi } from '#/api/crm/business';
import type { DescriptionItemSchema } from '#/components/description'; import type { DescriptionItemSchema } from '#/components/description';
import { erpPriceInputFormatter, formatDateTime } from '@vben/utils'; 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[] { export function useDetailSchema(): DescriptionItemSchema[] {

View File

@@ -70,4 +70,3 @@ export function useDetailBaseSchema(): DescriptionItemSchema[] {
}, },
]; ];
} }

View File

@@ -31,8 +31,7 @@ export function useDetailSchema(): DescriptionItemSchema[] {
{ {
field: 'receivable', field: 'receivable',
label: '实际回款金额', label: '实际回款金额',
content: (data) => content: (data) => erpPriceInputFormatter(data?.receivable?.price ?? 0),
erpPriceInputFormatter(data?.receivable?.price ?? 0),
}, },
]; ];
} }
@@ -78,8 +77,7 @@ export function useDetailBaseSchema(): DescriptionItemSchema[] {
{ {
field: 'receivable', field: 'receivable',
label: '实际回款金额', label: '实际回款金额',
content: (data) => content: (data) => erpPriceInputFormatter(data?.receivable?.price ?? 0),
erpPriceInputFormatter(data?.receivable?.price ?? 0),
}, },
{ {
field: 'receivableRemain', field: 'receivableRemain',
@@ -92,8 +90,7 @@ export function useDetailBaseSchema(): DescriptionItemSchema[] {
{ {
field: 'receivable.returnTime', field: 'receivable.returnTime',
label: '实际回款日期', label: '实际回款日期',
content: (data) => content: (data) => formatDateTime(data?.receivable?.returnTime) as string,
formatDateTime(data?.receivable?.returnTime) as string,
}, },
{ {
field: 'remark', field: 'remark',

View File

@@ -38,8 +38,12 @@ const [Grid, gridApi] = useVbenVxeGrid({
ajax: { ajax: {
query: async (_, formValues) => { query: async (_, formValues) => {
const res = await getDatas(activeTabName.value, formValues); const res = await getDatas(activeTabName.value, formValues);
await renderLeftEcharts(getChartOptions(activeTabName.value, res).left); await renderLeftEcharts(
await renderRightEcharts(getChartOptions(activeTabName.value, res).right); getChartOptions(activeTabName.value, res).left,
);
await renderRightEcharts(
getChartOptions(activeTabName.value, res).right,
);
return res; return res;
}, },
}, },

View File

@@ -26,17 +26,18 @@ const formData = ref<
} }
>({ >({
id: undefined, id: undefined,
no: undefined, no: '',
customerId: undefined, customerId: 0,
accountId: undefined, accountId: 0,
financeUserId: undefined, financeUserId: 0,
receiptTime: undefined, receiptTime: new Date(),
remark: undefined, remark: '',
fileUrl: undefined, fileUrl: undefined,
totalPrice: 0, totalPrice: 0,
discountPrice: 0, discountPrice: 0,
receiptPrice: 0, receiptPrice: 0,
items: [], items: [],
status: 0,
}); });
const formType = ref(''); // 表单类型:'create' | 'edit' | 'detail' const formType = ref(''); // 表单类型:'create' | 'edit' | 'detail'
@@ -141,7 +142,21 @@ const [Modal, modalApi] = useVbenModal({
}, },
async onOpenChange(isOpen: boolean) { async onOpenChange(isOpen: boolean) {
if (!isOpen) { if (!isOpen) {
formData.value = undefined; formData.value = {
id: undefined,
no: '',
customerId: 0,
accountId: 0,
financeUserId: 0,
receiptTime: new Date(),
remark: '',
totalPrice: 0,
discountPrice: 0,
receiptPrice: 0,
status: 0,
items: [],
bizNo: '',
};
return; return;
} }
// 加载数据 // 加载数据

View File

@@ -167,7 +167,9 @@ async function submit(channelCode: string) {
// 打开轮询任务 // 打开轮询任务
createQueryInterval(); createQueryInterval();
} finally {} } finally {
//
}
} }
/** 构建提交支付的额外参数 */ /** 构建提交支付的额外参数 */

View File

@@ -37,7 +37,9 @@ function handleEdit(row: WalletRechargePackageApi.WalletRechargePackage) {
} }
/** 删除套餐 */ /** 删除套餐 */
async function handleDelete(row: WalletRechargePackageApi.WalletRechargePackage) { async function handleDelete(
row: WalletRechargePackageApi.WalletRechargePackage,
) {
const hideLoading = message.loading({ const hideLoading = message.loading({
content: $t('ui.actionMessage.deleting', [row.name]), content: $t('ui.actionMessage.deleting', [row.name]),
duration: 0, duration: 0,

View File

@@ -99,7 +99,11 @@ onMounted(() => {
<Grid> <Grid>
<template #top> <template #top>
<ElTabs v-model="statusTab" class="-mt-11" @tab-change="handleChangeStatus"> <ElTabs
v-model="statusTab"
class="-mt-11"
@tab-change="handleChangeStatus"
>
<ElTabs.TabPane <ElTabs.TabPane
v-for="tab in statusTabs" v-for="tab in statusTabs"
:key="tab.value" :key="tab.value"

View File

@@ -167,7 +167,9 @@ async function submit(channelCode: string) {
// 打开轮询任务 // 打开轮询任务
createQueryInterval(); createQueryInterval();
} finally {} } finally {
//
}
} }
/** 构建提交支付的额外参数 */ /** 构建提交支付的额外参数 */

View File

@@ -37,7 +37,9 @@ function handleEdit(row: WalletRechargePackageApi.WalletRechargePackage) {
} }
/** 删除套餐 */ /** 删除套餐 */
async function handleDelete(row: WalletRechargePackageApi.WalletRechargePackage) { async function handleDelete(
row: WalletRechargePackageApi.WalletRechargePackage,
) {
const loadingInstance = ElLoading.service({ const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]), text: $t('ui.actionMessage.deleting', [row.name]),
}); });

View File

@@ -30,13 +30,13 @@ defineProps<SummaryCardProps>();
</div> </div>
<div class="flex flex-col gap-1"> <div class="flex flex-col gap-1">
<div class="flex items-center gap-1"> <div class="flex items-center gap-1">
<span class="text-sm text-muted-foreground">{{ title }}</span> <span class="text-muted-foreground text-sm">{{ title }}</span>
<TooltipProvider v-if="tooltip"> <TooltipProvider v-if="tooltip">
<Tooltip> <Tooltip>
<TooltipTrigger> <TooltipTrigger>
<VbenIcon <VbenIcon
icon="lucide:circle-alert" icon="lucide:circle-alert"
class="size-3 text-muted-foreground" class="text-muted-foreground size-3"
/> />
</TooltipTrigger> </TooltipTrigger>
<TooltipContent> <TooltipContent>