refactor: 将枚举和常量从utils移动到constants

This commit is contained in:
xingyu4j
2025-09-04 18:19:49 +08:00
parent d7d445617f
commit 37fba1474e
144 changed files with 255 additions and 245 deletions

View File

@@ -3,7 +3,8 @@ import type { MemberUserApi } from '#/api/member/user';
import { h } from 'vue';
import { DICT_TYPE, formatDate } from '@vben/utils';
import { DICT_TYPE } from '@vben/constants';
import { formatDate } from '@vben/utils';
import { ElAvatar, ElCard, ElCol, ElRow } from 'element-plus';

View File

@@ -6,8 +6,9 @@ import type { MallOrderApi } from '#/api/mall/trade/order/index';
import { ref } from 'vue';
import { useRouter } from 'vue-router';
import { DeliveryTypeEnum } from '@vben/constants';
import { $t } from '@vben/locales';
import { DeliveryTypeEnum, fenToYuan } from '@vben/utils';
import { fenToYuan } from '@vben/utils';
import { ElImage, ElTag } from 'element-plus';
@@ -179,7 +180,7 @@ const [Grid] = useVbenVxeGrid({
<Grid table-title="订单列表">
<template #expand_content="{ row }">
<div class="order-items">
<div v-for="item in row.items" :key="item.id" class="order-item">
<div v-for="(item, index) in row.items" :key="index" class="order-item">
<div class="order-item-image">
<ElImage :src="item.picUrl" :width="40" :height="40" />
</div>