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

pull/209/head
xingyu4j 2025-09-04 18:19:49 +08:00
parent d7d445617f
commit 37fba1474e
144 changed files with 255 additions and 245 deletions

View File

@ -12,6 +12,7 @@ export namespace AiImageApi {
// AI 绘图 // AI 绘图
export interface Image { export interface Image {
id: number; // 编号 id: number; // 编号
userId: number;
platform: string; // 平台 platform: string; // 平台
model: string; // 模型 model: string; // 模型
prompt: string; // 提示词 prompt: string; // 提示词

View File

@ -1,5 +1,5 @@
import type { AiWriteTypeEnum } from '@vben/constants';
import type { PageParam, PageResult } from '@vben/request'; import type { PageParam, PageResult } from '@vben/request';
import type { AiWriteTypeEnum } from '@vben/utils';
import { useAppConfig } from '@vben/hooks'; import { useAppConfig } from '@vben/hooks';
import { fetchEventSource } from '@vben/request'; import { fetchEventSource } from '@vben/request';

View File

@ -6,8 +6,8 @@ import type { IOParameter, SimpleFlowNode } from '../../consts';
import { computed, onMounted, reactive, ref } from 'vue'; import { computed, onMounted, reactive, ref } from 'vue';
import { useVbenDrawer } from '@vben/common-ui'; import { useVbenDrawer } from '@vben/common-ui';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import { import {
Button, Button,

View File

@ -9,8 +9,8 @@ import type { CopyTaskFormType } from '../../helpers';
import { computed, onMounted, reactive, ref } from 'vue'; import { computed, onMounted, reactive, ref } from 'vue';
import { useVbenDrawer } from '@vben/common-ui'; import { useVbenDrawer } from '@vben/common-ui';
import { BpmModelFormType, BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { BpmModelFormType, BpmNodeTypeEnum } from '@vben/utils';
import { import {
Col, Col,

View File

@ -6,8 +6,8 @@ import type { SimpleFlowNode } from '../../consts';
import { reactive, ref } from 'vue'; import { reactive, ref } from 'vue';
import { useVbenDrawer } from '@vben/common-ui'; import { useVbenDrawer } from '@vben/common-ui';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import { import {
Col, Col,

View File

@ -5,8 +5,9 @@ import type { Ref } from 'vue';
import { computed, inject, reactive, ref } from 'vue'; import { computed, inject, reactive, ref } from 'vue';
import { BpmModelFormType } from '@vben/constants';
import { IconifyIcon, Plus, Trash2 } from '@vben/icons'; import { IconifyIcon, Plus, Trash2 } from '@vben/icons';
import { BpmModelFormType, cloneDeep } from '@vben/utils'; import { cloneDeep } from '@vben/utils';
import { import {
Card, Card,

View File

@ -6,8 +6,8 @@ import type { RouterSetting, SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue'; import { inject, ref } from 'vue';
import { useVbenDrawer } from '@vben/common-ui'; import { useVbenDrawer } from '@vben/common-ui';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import { import {
Button, Button,

View File

@ -9,8 +9,8 @@ import type { SystemUserApi } from '#/api/system/user';
import { inject, ref } from 'vue'; import { inject, ref } from 'vue';
import { useVbenDrawer } from '@vben/common-ui'; import { useVbenDrawer } from '@vben/common-ui';
import { BpmModelFormType, BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { BpmModelFormType, BpmNodeTypeEnum } from '@vben/utils';
import { import {
Col, Col,

View File

@ -11,8 +11,9 @@ import type {
import { computed, getCurrentInstance, onMounted, reactive, ref } from 'vue'; import { computed, getCurrentInstance, onMounted, reactive, ref } from 'vue';
import { useVbenDrawer } from '@vben/common-ui'; import { useVbenDrawer } from '@vben/common-ui';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum, cloneDeep } from '@vben/utils'; import { cloneDeep } from '@vben/utils';
import { import {
Button, Button,

View File

@ -9,13 +9,13 @@ import type { UserTaskFormType } from '../../helpers';
import { computed, nextTick, onMounted, reactive, ref } from 'vue'; import { computed, nextTick, onMounted, reactive, ref } from 'vue';
import { useVbenDrawer } from '@vben/common-ui'; import { useVbenDrawer } from '@vben/common-ui';
import { IconifyIcon } from '@vben/icons';
import { import {
BpmModelFormType, BpmModelFormType,
BpmNodeTypeEnum, BpmNodeTypeEnum,
cloneDeep,
ProcessVariableEnum, ProcessVariableEnum,
} from '@vben/utils'; } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { cloneDeep } from '@vben/utils';
import { import {
Button, Button,

View File

@ -3,8 +3,8 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue'; import { inject, ref } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import { Input } from 'ant-design-vue'; import { Input } from 'ant-design-vue';

View File

@ -3,8 +3,8 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue'; import { inject, ref } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import { Input } from 'ant-design-vue'; import { Input } from 'ant-design-vue';

View File

@ -3,8 +3,8 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue'; import { inject, ref } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import { Input } from 'ant-design-vue'; import { Input } from 'ant-design-vue';

View File

@ -3,12 +3,9 @@ import type { SimpleFlowNode } from '../../consts';
import { getCurrentInstance, inject, nextTick, ref, watch } from 'vue'; import { getCurrentInstance, inject, nextTick, ref, watch } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { import { cloneDeep, buildShortUUID as generateUUID } from '@vben/utils';
BpmNodeTypeEnum,
cloneDeep,
buildShortUUID as generateUUID,
} from '@vben/utils';
import { Button, Input } from 'ant-design-vue'; import { Button, Input } from 'ant-design-vue';

View File

@ -3,12 +3,9 @@ import type { SimpleFlowNode } from '../../consts';
import { getCurrentInstance, inject, nextTick, ref, watch } from 'vue'; import { getCurrentInstance, inject, nextTick, ref, watch } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { import { cloneDeep, buildShortUUID as generateUUID } from '@vben/utils';
BpmNodeTypeEnum,
cloneDeep,
buildShortUUID as generateUUID,
} from '@vben/utils';
import { Button, Input } from 'ant-design-vue'; import { Button, Input } from 'ant-design-vue';

View File

@ -3,12 +3,9 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue'; import { inject, ref } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { import { cloneDeep, buildShortUUID as generateUUID } from '@vben/utils';
BpmNodeTypeEnum,
cloneDeep,
buildShortUUID as generateUUID,
} from '@vben/utils';
import { message, Popover } from 'ant-design-vue'; import { message, Popover } from 'ant-design-vue';

View File

@ -3,8 +3,9 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, nextTick, ref, watch } from 'vue'; import { inject, nextTick, ref, watch } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum, buildShortUUID as generateUUID } from '@vben/utils'; import { buildShortUUID as generateUUID } from '@vben/utils';
import { Button, Input } from 'ant-design-vue'; import { Button, Input } from 'ant-design-vue';

View File

@ -3,8 +3,8 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue'; import { inject, ref } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import { Input } from 'ant-design-vue'; import { Input } from 'ant-design-vue';

View File

@ -7,8 +7,8 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue'; import { inject, ref } from 'vue';
import { useVbenModal } from '@vben/common-ui'; import { useVbenModal } from '@vben/common-ui';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import { Input } from 'ant-design-vue'; import { Input } from 'ant-design-vue';

View File

@ -3,8 +3,8 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue'; import { inject, ref } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import { Input } from 'ant-design-vue'; import { Input } from 'ant-design-vue';

View File

@ -6,8 +6,8 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue'; import { inject, ref } from 'vue';
import { useVbenModal } from '@vben/common-ui'; import { useVbenModal } from '@vben/common-ui';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import { Input } from 'ant-design-vue'; import { Input } from 'ant-design-vue';

View File

@ -1,7 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import type { SimpleFlowNode } from '../consts'; import type { SimpleFlowNode } from '../consts';
import { BpmNodeTypeEnum } from '@vben/utils'; import { BpmNodeTypeEnum } from '@vben/constants';
import { useWatchNode } from '../helpers'; import { useWatchNode } from '../helpers';
import ChildProcessNode from './nodes/child-process-node.vue'; import ChildProcessNode from './nodes/child-process-node.vue';

View File

@ -12,7 +12,8 @@ import type { SystemUserApi } from '#/api/system/user';
import { inject, onMounted, provide, ref, watch } from 'vue'; import { inject, onMounted, provide, ref, watch } from 'vue';
import { useVbenModal } from '@vben/common-ui'; import { useVbenModal } from '@vben/common-ui';
import { BpmModelFormType, BpmNodeTypeEnum, handleTree } from '@vben/utils'; import { BpmModelFormType, BpmNodeTypeEnum } from '@vben/constants';
import { handleTree } from '@vben/utils';
import { Button } from 'ant-design-vue'; import { Button } from 'ant-design-vue';

View File

@ -3,8 +3,9 @@ import type { SimpleFlowNode } from '../consts';
import { onMounted, provide, ref } from 'vue'; import { onMounted, provide, ref } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum, downloadFileFromBlob, isString } from '@vben/utils'; import { downloadFileFromBlob, isString } from '@vben/utils';
import { Button, ButtonGroup, Modal, Row } from 'ant-design-vue'; import { Button, ButtonGroup, Modal, Row } from 'ant-design-vue';

View File

@ -1,4 +1,4 @@
import { BpmNodeTypeEnum, BpmTaskStatusEnum } from '@vben/utils'; import { BpmNodeTypeEnum, BpmTaskStatusEnum } from '@vben/constants';
interface DictDataType { interface DictDataType {
label: string; label: string;

View File

@ -18,7 +18,7 @@ import {
BpmNodeTypeEnum, BpmNodeTypeEnum,
BpmTaskStatusEnum, BpmTaskStatusEnum,
ProcessVariableEnum, ProcessVariableEnum,
} from '@vben/utils'; } from '@vben/constants';
import { import {
ApproveMethodType, ApproveMethodType,

View File

@ -3,7 +3,7 @@
import type { DictItem } from '#/store'; import type { DictItem } from '#/store';
import { DICT_TYPE, isObject } from '@vben/utils'; import { isObject } from '@vben/utils';
import { useDictStore } from '#/store'; import { useDictStore } from '#/store';
@ -183,9 +183,10 @@ export const deleteDictCache = (dictType: string): void => {
export { export {
type ColorType, type ColorType,
DICT_TYPE,
type DictValueType, type DictValueType,
getDictLabel, getDictLabel,
getDictObj, getDictObj,
getDictOptions, getDictOptions,
}; };
export { DICT_TYPE } from '@vben/constants';

View File

@ -2,4 +2,4 @@ export * from './dict';
export * from './formCreate'; export * from './formCreate';
export * from './rangePickerProps'; export * from './rangePickerProps';
export * from './routerHelper'; export * from './routerHelper';
export { CommonStatusEnum } from '@vben/utils'; export { CommonStatusEnum } from '@vben/constants';

View File

@ -6,7 +6,8 @@ import { computed, onMounted, ref } from 'vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { confirm } from '@vben/common-ui'; import { confirm } from '@vben/common-ui';
import { getUrlValue, SystemUserSocialTypeEnum } from '@vben/utils'; import { SystemUserSocialTypeEnum } from '@vben/constants';
import { getUrlValue } from '@vben/utils';
import { Button, Card, Image, message } from 'ant-design-vue'; import { Button, Card, Image, message } from 'ant-design-vue';

View File

@ -1,6 +1,6 @@
import type { VbenFormSchema } from '#/adapter/form'; import type { VbenFormSchema } from '#/adapter/form';
import { AiModelTypeEnum } from '@vben/utils'; import { AiModelTypeEnum } from '@vben/constants';
import { getModelSimpleList } from '#/api/ai/model/model'; import { getModelSimpleList } from '#/api/ai/model/model';

View File

@ -6,8 +6,8 @@ import type { AiImageApi } from '#/api/ai/image';
import { onMounted, ref, toRefs, watch } from 'vue'; import { onMounted, ref, toRefs, watch } from 'vue';
import { confirm } from '@vben/common-ui'; import { confirm } from '@vben/common-ui';
import { AiImageStatusEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { AiImageStatusEnum } from '@vben/utils';
import { Button, Card, Image, message } from 'ant-design-vue'; import { Button, Card, Image, message } from 'ant-design-vue';

View File

@ -6,11 +6,11 @@ import { ref, toRefs, watch } from 'vue';
import { import {
AiPlatformEnum, AiPlatformEnum,
Dall3StyleList, Dall3StyleList,
formatDate,
StableDiffusionClipGuidancePresets, StableDiffusionClipGuidancePresets,
StableDiffusionSamplers, StableDiffusionSamplers,
StableDiffusionStylePresets, StableDiffusionStylePresets,
} from '@vben/utils'; } from '@vben/constants';
import { formatDate } from '@vben/utils';
import { Image } from 'ant-design-vue'; import { Image } from 'ant-design-vue';

View File

@ -5,7 +5,8 @@ import { onMounted, onUnmounted, reactive, ref } from 'vue';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { confirm, useVbenDrawer } from '@vben/common-ui'; import { confirm, useVbenDrawer } from '@vben/common-ui';
import { AiImageStatusEnum, downloadFileFromImageUrl } from '@vben/utils'; import { AiImageStatusEnum } from '@vben/constants';
import { downloadFileFromImageUrl } from '@vben/utils';
import { useDebounceFn } from '@vueuse/core'; import { useDebounceFn } from '@vueuse/core';
import { Button, Card, message, Pagination } from 'ant-design-vue'; import { Button, Card, message, Pagination } from 'ant-design-vue';

View File

@ -6,7 +6,11 @@ import type { AiModelModelApi } from '#/api/ai/model/model';
import { ref, watch } from 'vue'; import { ref, watch } from 'vue';
import { confirm } from '@vben/common-ui'; import { confirm } from '@vben/common-ui';
import { AiPlatformEnum, ImageHotWords, OtherPlatformEnum } from '@vben/utils'; import {
AiPlatformEnum,
ImageHotWords,
OtherPlatformEnum,
} from '@vben/constants';
import { Button, InputNumber, Select, Space, Textarea } from 'ant-design-vue'; import { Button, InputNumber, Select, Space, Textarea } from 'ant-design-vue';

View File

@ -1,6 +1,6 @@
<!-- dall3 --> <!-- dall3 -->
<script setup lang="ts"> <script setup lang="ts">
import type { ImageModel, ImageSize } from '@vben/utils'; import type { ImageModel, ImageSize } from '@vben/constants';
import type { AiImageApi } from '#/api/ai/image'; import type { AiImageApi } from '#/api/ai/image';
import type { AiModelModelApi } from '#/api/ai/model/model'; import type { AiModelModelApi } from '#/api/ai/model/model';
@ -14,7 +14,7 @@ import {
Dall3SizeList, Dall3SizeList,
Dall3StyleList, Dall3StyleList,
ImageHotWords, ImageHotWords,
} from '@vben/utils'; } from '@vben/constants';
import { Button, Image, message, Space, Textarea } from 'ant-design-vue'; import { Button, Image, message, Space, Textarea } from 'ant-design-vue';

View File

@ -1,6 +1,6 @@
<!-- dall3 --> <!-- dall3 -->
<script setup lang="ts"> <script setup lang="ts">
import type { ImageModel, ImageSize } from '@vben/utils'; import type { ImageModel, ImageSize } from '@vben/constants';
import type { AiImageApi } from '#/api/ai/image'; import type { AiImageApi } from '#/api/ai/image';
import type { AiModelModelApi } from '#/api/ai/model/model'; import type { AiModelModelApi } from '#/api/ai/model/model';
@ -15,7 +15,7 @@ import {
MidjourneySizeList, MidjourneySizeList,
MidjourneyVersions, MidjourneyVersions,
NijiVersionList, NijiVersionList,
} from '@vben/utils'; } from '@vben/constants';
import { import {
Button, Button,

View File

@ -12,7 +12,7 @@ import {
StableDiffusionClipGuidancePresets, StableDiffusionClipGuidancePresets,
StableDiffusionSamplers, StableDiffusionSamplers,
StableDiffusionStylePresets, StableDiffusionStylePresets,
} from '@vben/utils'; } from '@vben/constants';
import { import {
Button, Button,

View File

@ -5,7 +5,7 @@ import type { AiModelModelApi } from '#/api/ai/model/model';
import { nextTick, onMounted, ref } from 'vue'; import { nextTick, onMounted, ref } from 'vue';
import { Page } from '@vben/common-ui'; import { Page } from '@vben/common-ui';
import { AiModelTypeEnum, AiPlatformEnum } from '@vben/utils'; import { AiModelTypeEnum, AiPlatformEnum } from '@vben/constants';
import { Segmented } from 'ant-design-vue'; import { Segmented } from 'ant-design-vue';

View File

@ -6,7 +6,7 @@ import type { SystemUserApi } from '#/api/system/user';
import { onMounted, ref } from 'vue'; import { onMounted, ref } from 'vue';
import { confirm, DocAlert, Page } from '@vben/common-ui'; import { confirm, DocAlert, Page } from '@vben/common-ui';
import { AiImageStatusEnum } from '@vben/utils'; import { AiImageStatusEnum } from '@vben/constants';
import { Image, message, Switch } from 'ant-design-vue'; import { Image, message, Switch } from 'ant-design-vue';

View File

@ -1,11 +1,11 @@
import type { VbenFormSchema } from '#/adapter/form'; import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table'; import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import { AiModelTypeEnum } from '@vben/utils'; import { AiModelTypeEnum, CommonStatusEnum, DICT_TYPE } from '@vben/constants';
import { z } from '#/adapter/form'; import { z } from '#/adapter/form';
import { getModelSimpleList } from '#/api/ai/model/model'; import { getModelSimpleList } from '#/api/ai/model/model';
import { CommonStatusEnum, DICT_TYPE, getDictOptions } from '#/utils'; import { getDictOptions } from '#/utils';
/** 新增/修改的表单 */ /** 新增/修改的表单 */
export function useFormSchema(): VbenFormSchema[] { export function useFormSchema(): VbenFormSchema[] {
return [ return [

View File

@ -1,16 +1,11 @@
import type { VbenFormSchema } from '#/adapter/form'; import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table'; import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import { AiModelTypeEnum } from '@vben/utils'; import { AiModelTypeEnum, CommonStatusEnum, DICT_TYPE } from '@vben/constants';
import { z } from '#/adapter/form'; import { z } from '#/adapter/form';
import { getModelSimpleList } from '#/api/ai/model/model'; import { getModelSimpleList } from '#/api/ai/model/model';
import { import { getDictOptions, getRangePickerDefaultProps } from '#/utils';
CommonStatusEnum,
DICT_TYPE,
getDictOptions,
getRangePickerDefaultProps,
} from '#/utils';
/** 新增/修改的表单 */ /** 新增/修改的表单 */
export function useFormSchema(): VbenFormSchema[] { export function useFormSchema(): VbenFormSchema[] {
return [ return [

View File

@ -8,7 +8,7 @@ import { useRoute } from 'vue-router';
import { useAccess } from '@vben/access'; import { useAccess } from '@vben/access';
import { confirm, Page, useVbenModal } from '@vben/common-ui'; import { confirm, Page, useVbenModal } from '@vben/common-ui';
import { CommonStatusEnum } from '@vben/utils'; import { CommonStatusEnum } from '@vben/constants';
import { message, Switch } from 'ant-design-vue'; import { message, Switch } from 'ant-design-vue';

View File

@ -4,7 +4,7 @@ import type { AiMindmapApi } from '#/api/ai/mindmap';
import { nextTick, onMounted, ref } from 'vue'; import { nextTick, onMounted, ref } from 'vue';
import { alert, Page } from '@vben/common-ui'; import { alert, Page } from '@vben/common-ui';
import { MindMapContentExample } from '@vben/utils'; import { MindMapContentExample } from '@vben/constants';
import { generateMindMap } from '#/api/ai/mindmap'; import { generateMindMap } from '#/api/ai/mindmap';

View File

@ -1,7 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { reactive, ref } from 'vue'; import { reactive, ref } from 'vue';
import { MindMapContentExample } from '@vben/utils'; import { MindMapContentExample } from '@vben/constants';
import { Button, Textarea } from 'ant-design-vue'; import { Button, Textarea } from 'ant-design-vue';

View File

@ -1,7 +1,7 @@
import type { VbenFormSchema } from '#/adapter/form'; import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table'; import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import { AiModelTypeEnum } from '@vben/utils'; import { AiModelTypeEnum } from '@vben/constants';
import { z } from '#/adapter/form'; import { z } from '#/adapter/form';
import { getSimpleKnowledgeList } from '#/api/ai/knowledge/knowledge'; import { getSimpleKnowledgeList } from '#/api/ai/knowledge/knowledge';

View File

@ -1,7 +1,7 @@
import type { VbenFormSchema } from '#/adapter/form'; import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table'; import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import { AiModelTypeEnum } from '@vben/utils'; import { AiModelTypeEnum } from '@vben/constants';
import { z } from '#/adapter/form'; import { z } from '#/adapter/form';
import { getApiKeySimpleList } from '#/api/ai/model/apiKey'; import { getApiKeySimpleList } from '#/api/ai/model/apiKey';

View File

@ -6,7 +6,7 @@ import type { SystemUserApi } from '#/api/system/user';
import { onMounted, ref } from 'vue'; import { onMounted, ref } from 'vue';
import { confirm, DocAlert, Page } from '@vben/common-ui'; import { confirm, DocAlert, Page } from '@vben/common-ui';
import { AiMusicStatusEnum } from '@vben/utils'; import { AiMusicStatusEnum } from '@vben/constants';
import { Button, message, Switch } from 'ant-design-vue'; import { Button, message, Switch } from 'ant-design-vue';

View File

@ -3,9 +3,9 @@ import { onBeforeUnmount, onMounted, provide, ref } from 'vue';
import { useRoute, useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
import { confirm, Page } from '@vben/common-ui'; import { confirm, Page } from '@vben/common-ui';
import { AiModelTypeEnum, CommonStatusEnum } from '@vben/constants';
import { useTabs } from '@vben/hooks'; import { useTabs } from '@vben/hooks';
import { ArrowLeft } from '@vben/icons'; import { ArrowLeft } from '@vben/icons';
import { AiModelTypeEnum, CommonStatusEnum } from '@vben/utils';
import { Button, Card, message } from 'ant-design-vue'; import { Button, Card, message } from 'ant-design-vue';

View File

@ -4,7 +4,7 @@ import type { AiWriteApi } from '#/api/ai/write';
import { nextTick, ref } from 'vue'; import { nextTick, ref } from 'vue';
import { alert, Page } from '@vben/common-ui'; import { alert, Page } from '@vben/common-ui';
import { WriteExample } from '@vben/utils'; import { WriteExample } from '@vben/constants';
import { writeStream } from '#/api/ai/write'; import { writeStream } from '#/api/ai/write';

View File

@ -5,7 +5,7 @@ import { onMounted } from 'vue';
import { useRoute, useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
import { DocAlert, Page, useVbenModal } from '@vben/common-ui'; import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
import { BpmModelFormType } from '@vben/utils'; import { BpmModelFormType } from '@vben/constants';
import { Button, Tooltip } from 'ant-design-vue'; import { Button, Tooltip } from 'ant-design-vue';

View File

@ -9,14 +9,14 @@ import { onBeforeUnmount, onMounted, provide, ref, watch } from 'vue';
import { useRoute, useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
import { confirm, Page } from '@vben/common-ui'; import { confirm, Page } from '@vben/common-ui';
import { useTabs } from '@vben/hooks';
import { ArrowLeft } from '@vben/icons';
import { useUserStore } from '@vben/stores';
import { import {
BpmAutoApproveType, BpmAutoApproveType,
BpmModelFormType, BpmModelFormType,
BpmModelType, BpmModelType,
} from '@vben/utils'; } from '@vben/constants';
import { useTabs } from '@vben/hooks';
import { ArrowLeft } from '@vben/icons';
import { useUserStore } from '@vben/stores';
import { Button, Card, message } from 'ant-design-vue'; import { Button, Card, message } from 'ant-design-vue';

View File

@ -1,12 +1,12 @@
<script setup lang="ts"> <script setup lang="ts">
import { computed, provide, ref, watch } from 'vue'; import { computed, provide, ref, watch } from 'vue';
import { CircleHelp } from '@vben/icons';
import { import {
BpmAutoApproveType, BpmAutoApproveType,
BpmModelFormType, BpmModelFormType,
ProcessVariableEnum, ProcessVariableEnum,
} from '@vben/utils'; } from '@vben/constants';
import { CircleHelp } from '@vben/icons';
import { import {
Checkbox, Checkbox,

View File

@ -7,14 +7,10 @@ import { useRouter } from 'vue-router';
import { useAccess } from '@vben/access'; import { useAccess } from '@vben/access';
import { confirm, EllipsisText, useVbenModal } from '@vben/common-ui'; import { confirm, EllipsisText, useVbenModal } from '@vben/common-ui';
import { BpmModelFormType } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { useUserStore } from '@vben/stores'; import { useUserStore } from '@vben/stores';
import { import { cloneDeep, formatDateTime, isEqual } from '@vben/utils';
BpmModelFormType,
cloneDeep,
formatDateTime,
isEqual,
} from '@vben/utils';
import { useDebounceFn } from '@vueuse/core'; import { useDebounceFn } from '@vueuse/core';
import { useSortable } from '@vueuse/integrations/useSortable'; import { useSortable } from '@vueuse/integrations/useSortable';

View File

@ -5,8 +5,8 @@ import type { BpmProcessInstanceApi } from '#/api/bpm/processInstance';
import { computed, onMounted, ref, watch } from 'vue'; import { computed, onMounted, ref, watch } from 'vue';
import { confirm, Page, useVbenForm } from '@vben/common-ui'; import { confirm, Page, useVbenForm } from '@vben/common-ui';
import { BpmCandidateStrategyEnum, BpmNodeIdEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { BpmCandidateStrategyEnum, BpmNodeIdEnum } from '@vben/utils';
import { Button, Card, message, Space } from 'ant-design-vue'; import { Button, Card, message, Space } from 'ant-design-vue';
import dayjs from 'dayjs'; import dayjs from 'dayjs';

View File

@ -4,15 +4,15 @@ import type { BpmProcessInstanceApi } from '#/api/bpm/processInstance';
import { computed, nextTick, ref, watch } from 'vue'; import { computed, nextTick, ref, watch } from 'vue';
import { useTabs } from '@vben/hooks';
import { IconifyIcon } from '@vben/icons';
import { import {
BpmCandidateStrategyEnum, BpmCandidateStrategyEnum,
BpmFieldPermissionType, BpmFieldPermissionType,
BpmModelFormType, BpmModelFormType,
BpmModelType, BpmModelType,
BpmNodeIdEnum, BpmNodeIdEnum,
} from '@vben/utils'; } from '@vben/constants';
import { useTabs } from '@vben/hooks';
import { IconifyIcon } from '@vben/icons';
import formCreate from '@form-create/ant-design-vue'; import formCreate from '@form-create/ant-design-vue';
import { Button, Card, Col, message, Row, Space, Tabs } from 'ant-design-vue'; import { Button, Card, Col, message, Row, Space, Tabs } from 'ant-design-vue';

View File

@ -10,8 +10,8 @@ import {
BpmModelFormType, BpmModelFormType,
BpmModelType, BpmModelType,
BpmTaskStatusEnum, BpmTaskStatusEnum,
formatDateTime, } from '@vben/constants';
} from '@vben/utils'; import { formatDateTime } from '@vben/utils';
import { Avatar, Card, Col, message, Row, TabPane, Tabs } from 'ant-design-vue'; import { Avatar, Card, Col, message, Row, TabPane, Tabs } from 'ant-design-vue';

View File

@ -8,8 +8,6 @@ import { computed, nextTick, reactive, ref, watch } from 'vue';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { useVbenModal } from '@vben/common-ui'; import { useVbenModal } from '@vben/common-ui';
import { IconifyIcon } from '@vben/icons';
import { useUserStore } from '@vben/stores';
import { import {
BpmCandidateStrategyEnum, BpmCandidateStrategyEnum,
BpmModelFormType, BpmModelFormType,
@ -17,9 +15,11 @@ import {
BpmProcessInstanceStatus, BpmProcessInstanceStatus,
BpmTaskOperationButtonTypeEnum, BpmTaskOperationButtonTypeEnum,
BpmTaskStatusEnum, BpmTaskStatusEnum,
isEmpty,
OPERATION_BUTTON_NAME, OPERATION_BUTTON_NAME,
} from '@vben/utils'; } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { useUserStore } from '@vben/stores';
import { isEmpty } from '@vben/utils';
import FormCreate from '@form-create/ant-design-vue'; import FormCreate from '@form-create/ant-design-vue';
import { import {

View File

@ -3,7 +3,7 @@ import type { SimpleFlowNode } from '#/components/simple-process-design';
import { ref, watch } from 'vue'; import { ref, watch } from 'vue';
import { BpmNodeTypeEnum, BpmTaskStatusEnum } from '@vben/utils'; import { BpmNodeTypeEnum, BpmTaskStatusEnum } from '@vben/constants';
import { SimpleProcessViewer } from '#/components/simple-process-design'; import { SimpleProcessViewer } from '#/components/simple-process-design';

View File

@ -6,14 +6,13 @@ import { ref } from 'vue';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { useVbenModal } from '@vben/common-ui'; import { useVbenModal } from '@vben/common-ui';
import { IconifyIcon } from '@vben/icons';
import { import {
BpmCandidateStrategyEnum, BpmCandidateStrategyEnum,
BpmNodeTypeEnum, BpmNodeTypeEnum,
BpmTaskStatusEnum, BpmTaskStatusEnum,
formatDateTime, } from '@vben/constants';
isEmpty, import { IconifyIcon } from '@vben/icons';
} from '@vben/utils'; import { formatDateTime, isEmpty } from '@vben/utils';
import { Avatar, Button, Image, Timeline, Tooltip } from 'ant-design-vue'; import { Avatar, Button, Image, Timeline, Tooltip } from 'ant-design-vue';

View File

@ -5,7 +5,7 @@ import type { BpmTaskApi } from '#/api/bpm/task';
import { h } from 'vue'; import { h } from 'vue';
import { DocAlert, Page, prompt } from '@vben/common-ui'; import { DocAlert, Page, prompt } from '@vben/common-ui';
import { BpmProcessInstanceStatus, DICT_TYPE } from '@vben/utils'; import { BpmProcessInstanceStatus, DICT_TYPE } from '@vben/constants';
import { Button, message, Textarea } from 'ant-design-vue'; import { Button, message, Textarea } from 'ant-design-vue';

View File

@ -5,7 +5,7 @@ import type { BpmProcessInstanceApi } from '#/api/bpm/processInstance';
import { h } from 'vue'; import { h } from 'vue';
import { DocAlert, Page, prompt } from '@vben/common-ui'; import { DocAlert, Page, prompt } from '@vben/common-ui';
import { BpmProcessInstanceStatus } from '@vben/utils'; import { BpmProcessInstanceStatus } from '@vben/constants';
import { message, Textarea } from 'ant-design-vue'; import { message, Textarea } from 'ant-design-vue';

View File

@ -2,7 +2,8 @@ import type { DescriptionItemSchema } from '#/components/description';
import { h } from 'vue'; import { h } from 'vue';
import { DICT_TYPE, formatDateTime } from '@vben/utils'; import { DICT_TYPE } from '@vben/constants';
import { formatDateTime } from '@vben/utils';
import { DictTag } from '#/components/dict-tag'; import { DictTag } from '#/components/dict-tag';

View File

@ -3,7 +3,8 @@ import type { DescriptionItemSchema } from '#/components/description';
import { h } from 'vue'; import { h } from 'vue';
import { DICT_TYPE, formatDateTime } from '@vben/utils'; import { DICT_TYPE } from '@vben/constants';
import { formatDateTime } from '@vben/utils';
import { DictTag } from '#/components/dict-tag'; import { DictTag } from '#/components/dict-tag';

View File

@ -2,7 +2,8 @@ import type { VbenFormSchema } from '@vben/common-ui';
import type { VxeTableGridOptions } from '#/adapter/vxe-table'; import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import { DICT_TYPE, handleTree } from '@vben/utils'; import { DICT_TYPE } from '@vben/constants';
import { handleTree } from '@vben/utils';
import { LimitConfType } from '#/api/crm/customer/limitConfig'; import { LimitConfType } from '#/api/crm/customer/limitConfig';
import { getSimpleDeptList } from '#/api/system/dept'; import { getSimpleDeptList } from '#/api/system/dept';

View File

@ -2,7 +2,8 @@ import type { DescriptionItemSchema } from '#/components/description';
import { h } from 'vue'; import { h } from 'vue';
import { DICT_TYPE, formatDateTime } from '@vben/utils'; import { DICT_TYPE } from '@vben/constants';
import { formatDateTime } from '@vben/utils';
import { DictTag } from '#/components/dict-tag'; import { DictTag } from '#/components/dict-tag';

View File

@ -6,7 +6,7 @@ import { watch } from 'vue';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { useVbenModal } from '@vben/common-ui'; import { useVbenModal } from '@vben/common-ui';
import { DICT_TYPE } from '@vben/utils'; import { DICT_TYPE } from '@vben/constants';
import { Button, message } from 'ant-design-vue'; import { Button, message } from 'ant-design-vue';

View File

@ -3,7 +3,8 @@ import type { DescriptionItemSchema } from '#/components/description';
import { h } from 'vue'; import { h } from 'vue';
import { DICT_TYPE, erpPriceInputFormatter } from '@vben/utils'; import { DICT_TYPE } from '@vben/constants';
import { erpPriceInputFormatter } from '@vben/utils';
import { DictTag } from '#/components/dict-tag'; import { DictTag } from '#/components/dict-tag';

View File

@ -3,7 +3,8 @@ import type { DescriptionItemSchema } from '#/components/description';
import { h } from 'vue'; import { h } from 'vue';
import { DICT_TYPE, erpPriceInputFormatter, formatDateTime } from '@vben/utils'; import { DICT_TYPE } from '@vben/constants';
import { erpPriceInputFormatter, formatDateTime } from '@vben/utils';
import { DictTag } from '#/components/dict-tag'; import { DictTag } from '#/components/dict-tag';

View File

@ -3,7 +3,8 @@ import type { DescriptionItemSchema } from '#/components/description';
import { h } from 'vue'; import { h } from 'vue';
import { DICT_TYPE, erpPriceInputFormatter, formatDateTime } from '@vben/utils'; import { DICT_TYPE } from '@vben/constants';
import { erpPriceInputFormatter, formatDateTime } from '@vben/utils';
import { DictTag } from '#/components/dict-tag'; import { DictTag } from '#/components/dict-tag';

View File

@ -115,7 +115,7 @@ function handleUpdateStatus(
duration: 0, duration: 0,
key: 'action_process_msg', key: 'action_process_msg',
}); });
updatePurchaseOrderStatus(row.id, status) updatePurchaseOrderStatus(row.id!, status)
.then(() => { .then(() => {
message.success({ message.success({
content: `${status === 20 ? '审批' : '反审批'}成功`, content: `${status === 20 ? '审批' : '反审批'}成功`,

View File

@ -5,7 +5,8 @@ import type { DescriptionItemSchema } from '#/components/description';
import { h } from 'vue'; import { h } from 'vue';
import { JsonViewer } from '@vben/common-ui'; import { JsonViewer } from '@vben/common-ui';
import { formatDateTime, InfraApiErrorLogProcessStatusEnum } from '@vben/utils'; import { InfraApiErrorLogProcessStatusEnum } from '@vben/constants';
import { formatDateTime } from '@vben/utils';
import { Textarea } from 'ant-design-vue'; import { Textarea } from 'ant-design-vue';

View File

@ -3,10 +3,8 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { InfraApiErrorLogApi } from '#/api/infra/api-error-log'; import type { InfraApiErrorLogApi } from '#/api/infra/api-error-log';
import { confirm, DocAlert, Page, useVbenModal } from '@vben/common-ui'; import { confirm, DocAlert, Page, useVbenModal } from '@vben/common-ui';
import { import { InfraApiErrorLogProcessStatusEnum } from '@vben/constants';
downloadFileFromBlobPart, import { downloadFileFromBlobPart } from '@vben/utils';
InfraApiErrorLogProcessStatusEnum,
} from '@vben/utils';
import { message } from 'ant-design-vue'; import { message } from 'ant-design-vue';

View File

@ -3,7 +3,8 @@ import type { InfraCodegenApi } from '#/api/infra/codegen';
import { computed, ref, watch } from 'vue'; import { computed, ref, watch } from 'vue';
import { InfraCodegenTemplateTypeEnum, isEmpty } from '@vben/utils'; import { InfraCodegenTemplateTypeEnum } from '@vben/constants';
import { isEmpty } from '@vben/utils';
import { useVbenForm } from '#/adapter/form'; import { useVbenForm } from '#/adapter/form';
import { getCodegenTableList } from '#/api/infra/codegen'; import { getCodegenTableList } from '#/api/infra/codegen';

View File

@ -6,11 +6,8 @@ import { ref } from 'vue';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { confirm, DocAlert, Page, useVbenModal } from '@vben/common-ui'; import { confirm, DocAlert, Page, useVbenModal } from '@vben/common-ui';
import { import { InfraJobStatusEnum } from '@vben/constants';
downloadFileFromBlobPart, import { downloadFileFromBlobPart, isEmpty } from '@vben/utils';
InfraJobStatusEnum,
isEmpty,
} from '@vben/utils';
import { message } from 'ant-design-vue'; import { message } from 'ant-design-vue';

View File

@ -7,11 +7,11 @@ import { onMounted, ref } from 'vue';
import { useRoute, useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
import { confirm, DocAlert, Page } from '@vben/common-ui'; import { confirm, DocAlert, Page } from '@vben/common-ui';
import { ProductSpuStatusEnum } from '@vben/constants';
import { import {
downloadFileFromBlobPart, downloadFileFromBlobPart,
fenToYuan, fenToYuan,
handleTree, handleTree,
ProductSpuStatusEnum,
treeToString, treeToString,
} from '@vben/utils'; } from '@vben/utils';

View File

@ -2,10 +2,9 @@ import type { MallCouponTemplateApi } from '#/api/mall/promotion/coupon/couponTe
import { import {
CouponTemplateValidityTypeEnum, CouponTemplateValidityTypeEnum,
floatToFixed2,
formatDate,
PromotionDiscountTypeEnum, PromotionDiscountTypeEnum,
} from '@vben/utils'; } from '@vben/constants';
import { floatToFixed2, formatDate } from '@vben/utils';
// 格式化【优惠金额/折扣】 // 格式化【优惠金额/折扣】
export function discountFormat(row: MallCouponTemplateApi.CouponTemplate) { export function discountFormat(row: MallCouponTemplateApi.CouponTemplate) {

View File

@ -7,7 +7,8 @@ import type { MallBrokerageUserApi } from '#/api/mall/trade/brokerage/user';
import { ref } from 'vue'; import { ref } from 'vue';
import { useVbenModal } from '@vben/common-ui'; import { useVbenModal } from '@vben/common-ui';
import { BrokerageRecordBizTypeEnum, fenToYuan } from '@vben/utils'; import { BrokerageRecordBizTypeEnum } from '@vben/constants';
import { fenToYuan } from '@vben/utils';
import { useVbenVxeGrid } from '#/adapter/vxe-table'; import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { getBrokerageRecordPage } from '#/api/mall/trade/brokerage/record'; import { getBrokerageRecordPage } from '#/api/mall/trade/brokerage/record';

View File

@ -9,8 +9,8 @@ import {
BrokerageWithdrawStatusEnum, BrokerageWithdrawStatusEnum,
BrokerageWithdrawTypeEnum, BrokerageWithdrawTypeEnum,
DICT_TYPE, DICT_TYPE,
formatDateTime, } from '@vben/constants';
} from '@vben/utils'; import { formatDateTime } from '@vben/utils';
import { Input, message } from 'ant-design-vue'; import { Input, message } from 'ant-design-vue';

View File

@ -4,10 +4,10 @@ import type { MallDeliveryPickUpStoreApi } from '#/api/mall/trade/delivery/pickU
import { ref } from 'vue'; import { ref } from 'vue';
import { DeliveryTypeEnum } from '@vben/utils'; import { DeliveryTypeEnum, DICT_TYPE } from '@vben/constants';
import { getSimpleDeliveryPickUpStoreList } from '#/api/mall/trade/delivery/pickUpStore'; import { getSimpleDeliveryPickUpStoreList } from '#/api/mall/trade/delivery/pickUpStore';
import { DICT_TYPE, getRangePickerDefaultProps } from '#/utils'; import { getRangePickerDefaultProps } from '#/utils';
const pickUpStoreList = ref<MallDeliveryPickUpStoreApi.PickUpStore[]>([]); const pickUpStoreList = ref<MallDeliveryPickUpStoreApi.PickUpStore[]>([]);

View File

@ -5,7 +5,8 @@ import type { MallOrderApi } from '#/api/mall/trade/order';
import { h, onMounted, ref } from 'vue'; import { h, onMounted, ref } from 'vue';
import { Page, prompt } from '@vben/common-ui'; import { Page, prompt } from '@vben/common-ui';
import { DeliveryTypeEnum, fenToYuan, TradeOrderStatusEnum } from '@vben/utils'; import { DeliveryTypeEnum, TradeOrderStatusEnum } from '@vben/constants';
import { fenToYuan } from '@vben/utils';
import { Card, Input, message } from 'ant-design-vue'; import { Card, Input, message } from 'ant-design-vue';

View File

@ -4,7 +4,7 @@ import type { MallDeliveryPickUpStoreApi } from '#/api/mall/trade/delivery/pickU
import { ref } from 'vue'; import { ref } from 'vue';
import { DeliveryTypeEnum } from '@vben/utils'; import { DeliveryTypeEnum } from '@vben/constants';
import { getSimpleDeliveryExpressList } from '#/api/mall/trade/delivery/express'; import { getSimpleDeliveryExpressList } from '#/api/mall/trade/delivery/express';
import { getSimpleDeliveryPickUpStoreList } from '#/api/mall/trade/delivery/pickUpStore'; import { getSimpleDeliveryPickUpStoreList } from '#/api/mall/trade/delivery/pickUpStore';

View File

@ -9,9 +9,9 @@ import { DocAlert, Page, prompt, useVbenModal } from '@vben/common-ui';
import { import {
DeliveryTypeEnum, DeliveryTypeEnum,
DICT_TYPE, DICT_TYPE,
fenToYuan,
TradeOrderStatusEnum, TradeOrderStatusEnum,
} from '@vben/utils'; } from '@vben/constants';
import { fenToYuan } from '@vben/utils';
import { Image, List, Tag, Textarea } from 'ant-design-vue'; import { Image, List, Tag, Textarea } from 'ant-design-vue';

View File

@ -3,7 +3,7 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { PayAppApi } from '#/api/pay/app'; import type { PayAppApi } from '#/api/pay/app';
import { confirm, DocAlert, Page, useVbenModal } from '@vben/common-ui'; import { confirm, DocAlert, Page, useVbenModal } from '@vben/common-ui';
import { CommonStatusEnum, PayChannelEnum } from '@vben/utils'; import { CommonStatusEnum, PayChannelEnum } from '@vben/constants';
import { message } from 'ant-design-vue'; import { message } from 'ant-design-vue';

View File

@ -5,14 +5,13 @@ import { onMounted, ref } from 'vue';
import { useRoute, useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
import { Page, useVbenModal } from '@vben/common-ui'; import { Page, useVbenModal } from '@vben/common-ui';
import { useTabs } from '@vben/hooks';
import { import {
fenToYuan,
formatDate,
PayChannelEnum, PayChannelEnum,
PayDisplayModeEnum, PayDisplayModeEnum,
PayOrderStatusEnum, PayOrderStatusEnum,
} from '@vben/utils'; } from '@vben/constants';
import { useTabs } from '@vben/hooks';
import { fenToYuan, formatDate } from '@vben/utils';
import { import {
Button, Button,

View File

@ -6,8 +6,9 @@ import type { SystemMenuApi } from '#/api/system/menu';
import { h } from 'vue'; import { h } from 'vue';
import { SystemMenuTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { handleTree, isHttpUrl, SystemMenuTypeEnum } from '@vben/utils'; import { handleTree, isHttpUrl } from '@vben/utils';
import { z } from '#/adapter/form'; import { z } from '#/adapter/form';
import { getMenuList } from '#/api/system/menu'; import { getMenuList } from '#/api/system/menu';

View File

@ -5,8 +5,8 @@ import type { SystemMenuApi } from '#/api/system/menu';
import { ref } from 'vue'; import { ref } from 'vue';
import { DocAlert, Page, useVbenModal } from '@vben/common-ui'; import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
import { SystemMenuTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { SystemMenuTypeEnum } from '@vben/utils';
import { message } from 'ant-design-vue'; import { message } from 'ant-design-vue';

View File

@ -1,16 +1,11 @@
import type { VbenFormSchema } from '#/adapter/form'; import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table'; import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import { UserTypeEnum } from '@vben/utils'; import { CommonStatusEnum, UserTypeEnum } from '@vben/constants';
import { z } from '#/adapter/form'; import { z } from '#/adapter/form';
import { getSimpleUserList } from '#/api/system/user'; import { getSimpleUserList } from '#/api/system/user';
import { import { DICT_TYPE, getDictOptions, getRangePickerDefaultProps } from '#/utils';
CommonStatusEnum,
DICT_TYPE,
getDictOptions,
getRangePickerDefaultProps,
} from '#/utils';
/** 新增/修改的表单 */ /** 新增/修改的表单 */
export function useFormSchema(): VbenFormSchema[] { export function useFormSchema(): VbenFormSchema[] {
return [ return [

View File

@ -1,15 +1,10 @@
import type { VbenFormSchema } from '#/adapter/form'; import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table'; import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import { SystemDataScopeEnum } from '@vben/utils'; import { CommonStatusEnum, SystemDataScopeEnum } from '@vben/constants';
import { z } from '#/adapter/form'; import { z } from '#/adapter/form';
import { import { DICT_TYPE, getDictOptions, getRangePickerDefaultProps } from '#/utils';
CommonStatusEnum,
DICT_TYPE,
getDictOptions,
getRangePickerDefaultProps,
} from '#/utils';
/** 新增/修改的表单 */ /** 新增/修改的表单 */
export function useFormSchema(): VbenFormSchema[] { export function useFormSchema(): VbenFormSchema[] {

View File

@ -5,7 +5,8 @@ import type { SystemRoleApi } from '#/api/system/role';
import { ref } from 'vue'; import { ref } from 'vue';
import { useVbenModal, VbenTree } from '@vben/common-ui'; import { useVbenModal, VbenTree } from '@vben/common-ui';
import { handleTree, SystemDataScopeEnum } from '@vben/utils'; import { SystemDataScopeEnum } from '@vben/constants';
import { handleTree } from '@vben/utils';
import { Checkbox, message } from 'ant-design-vue'; import { Checkbox, message } from 'ant-design-vue';

View File

@ -7,7 +7,8 @@ import type { SystemRoleApi } from '#/api/system/role';
import { ref } from 'vue'; import { ref } from 'vue';
import { useVbenModal, VbenTree } from '@vben/common-ui'; import { useVbenModal, VbenTree } from '@vben/common-ui';
import { handleTree, SystemMenuTypeEnum } from '@vben/utils'; import { SystemMenuTypeEnum } from '@vben/constants';
import { handleTree } from '@vben/utils';
import { Checkbox, message } from 'ant-design-vue'; import { Checkbox, message } from 'ant-design-vue';

View File

@ -1,7 +1,7 @@
import type { VbenFormSchema } from '#/adapter/form'; import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table'; import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import { SystemUserSocialTypeEnum } from '@vben/utils'; import { SystemUserSocialTypeEnum } from '@vben/constants';
import { z } from '#/adapter/form'; import { z } from '#/adapter/form';
import { CommonStatusEnum, DICT_TYPE, getDictOptions } from '#/utils'; import { CommonStatusEnum, DICT_TYPE, getDictOptions } from '#/utils';

View File

@ -1,5 +1,5 @@
import type { AiWriteTypeEnum } from '@vben/constants';
import type { PageParam, PageResult } from '@vben/request'; import type { PageParam, PageResult } from '@vben/request';
import type { AiWriteTypeEnum } from '@vben/utils';
import { useAppConfig } from '@vben/hooks'; import { useAppConfig } from '@vben/hooks';
import { fetchEventSource } from '@vben/request'; import { fetchEventSource } from '@vben/request';

View File

@ -2,7 +2,7 @@
// TODO @ diy-editor // TODO @ diy-editor
import { computed } from 'vue'; import { computed } from 'vue';
import { PREDEFINE_COLORS } from '@vben/utils'; import { PREDEFINE_COLORS } from '@vben/constants';
// //
defineOptions({ name: 'ColorInput' }); defineOptions({ name: 'ColorInput' });

View File

@ -2,7 +2,8 @@ import type { MallCouponTemplateApi } from '#/api/mall/promotion/coupon/couponTe
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { floatToFixed2, PromotionDiscountTypeEnum } from '@vben/utils'; import { PromotionDiscountTypeEnum } from '@vben/constants';
import { floatToFixed2 } from '@vben/utils';
// 优惠描述 // 优惠描述
export const CouponDiscountDesc = defineComponent({ export const CouponDiscountDesc = defineComponent({

View File

@ -2,7 +2,8 @@ import type { MallCouponTemplateApi } from '#/api/mall/promotion/coupon/couponTe
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { floatToFixed2, PromotionDiscountTypeEnum } from '@vben/utils'; import { PromotionDiscountTypeEnum } from '@vben/constants';
import { floatToFixed2 } from '@vben/utils';
// 优惠值 // 优惠值
export const CouponDiscount = defineComponent({ export const CouponDiscount = defineComponent({

View File

@ -2,7 +2,8 @@ import type { MallCouponTemplateApi } from '#/api/mall/promotion/coupon/couponTe
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { CouponTemplateValidityTypeEnum, formatDate } from '@vben/utils'; import { CouponTemplateValidityTypeEnum } from '@vben/constants';
import { formatDate } from '@vben/utils';
// 有效期 // 有效期
export const CouponValidTerm = defineComponent({ export const CouponValidTerm = defineComponent({

View File

@ -5,12 +5,12 @@ import type { MallCouponTemplateApi } from '#/api/mall/promotion/coupon/couponTe
import { ref, watch } from 'vue'; import { ref, watch } from 'vue';
import { IconifyIcon } from '@vben/icons';
import { import {
CouponTemplateTakeTypeEnum, CouponTemplateTakeTypeEnum,
floatToFixed2,
PromotionDiscountTypeEnum, PromotionDiscountTypeEnum,
} from '@vben/utils'; } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { floatToFixed2 } from '@vben/utils';
import { useVModel } from '@vueuse/core'; import { useVModel } from '@vueuse/core';
import { import {

View File

@ -5,8 +5,8 @@ import type { MallCombinationActivityApi } from '#/api/mall/promotion/combinatio
import { onMounted, ref } from 'vue'; import { onMounted, ref } from 'vue';
import { CommonStatusEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { CommonStatusEnum } from '@vben/utils';
import { useVModel } from '@vueuse/core'; import { useVModel } from '@vueuse/core';
import { import {

View File

@ -5,8 +5,8 @@ import type { MallSeckillActivityApi } from '#/api/mall/promotion/seckill/seckil
import { onMounted, ref } from 'vue'; import { onMounted, ref } from 'vue';
import { CommonStatusEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons'; import { IconifyIcon } from '@vben/icons';
import { CommonStatusEnum } from '@vben/utils';
import { useVModel } from '@vueuse/core'; import { useVModel } from '@vueuse/core';
import { import {

View File

@ -1,5 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
import { PREDEFINE_COLORS } from '@vben/utils'; import { PREDEFINE_COLORS } from '@vben/constants';
// TODO @ diy-editor // TODO @ diy-editor
import { useVModels } from '@vueuse/core'; import { useVModels } from '@vueuse/core';

Some files were not shown because too many files have changed in this diff Show More