```text
refactor: 迁移模块 constants 到共享常量包 - 新增 MES/WMS 共享业务常量导出 - 将 Mall 客服、IoT 缺失常量合并到 @vben/constants - 替换各模块本地 constants 引用 - 删除模块内重复 constants 文件 ```pull/350/head
parent
71cec9ac6a
commit
c9a32ba780
|
|
@ -4,6 +4,7 @@ import type { MallKefuConversationApi } from '#/api/mall/promotion/kefu/conversa
|
|||
import { onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
||||
|
||||
import { Page } from '@vben/common-ui';
|
||||
import { WebSocketMessageTypeConstants } from '@vben/constants';
|
||||
import { useAccessStore } from '@vben/stores';
|
||||
|
||||
import { useWebSocket } from '@vueuse/core';
|
||||
|
|
@ -14,7 +15,6 @@ import { useMallKefuStore } from '#/store/mall/kefu';
|
|||
import ConversationList from './modules/conversation-list.vue';
|
||||
import MemberInfo from './modules/member/member-info.vue';
|
||||
import MessageList from './modules/message-list.vue';
|
||||
import { WebSocketMessageTypeConstants } from './modules/tools/constants';
|
||||
|
||||
const accessStore = useAccessStore();
|
||||
const kefuStore = useMallKefuStore(); // 客服缓存
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import type { MallKefuConversationApi } from '#/api/mall/promotion/kefu/conversa
|
|||
import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
||||
|
||||
import { confirm } from '@vben/common-ui';
|
||||
import { KeFuMessageContentTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { formatPast, jsonParse } from '@vben/utils';
|
||||
|
||||
|
|
@ -15,7 +16,6 @@ import {
|
|||
} from '#/api/mall/promotion/kefu/conversation';
|
||||
import { useMallKefuStore } from '#/store/mall/kefu';
|
||||
|
||||
import { KeFuMessageContentTypeEnum } from './tools/constants';
|
||||
import { useEmoji } from './tools/emoji';
|
||||
|
||||
/** 打开右侧的消息列表 */
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import type { Emoji } from './tools/emoji';
|
|||
import type { MallKefuConversationApi } from '#/api/mall/promotion/kefu/conversation';
|
||||
import type { MallKefuMessageApi } from '#/api/mall/promotion/kefu/message';
|
||||
|
||||
import { computed, reactive, ref, toRefs, unref, watch } from 'vue';
|
||||
import { computed, KeFuMessageContentTypeEnum, reactive, ref, toRefs, unref, watch } from 'vue';
|
||||
|
||||
import { UserTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
|
|
@ -25,7 +25,6 @@ import { useMallKefuStore } from '#/store/mall/kefu';
|
|||
import MessageItem from './message/message-item.vue';
|
||||
import OrderItem from './message/order-item.vue';
|
||||
import ProductItem from './message/product-item.vue';
|
||||
import { KeFuMessageContentTypeEnum } from './tools/constants';
|
||||
import { useEmoji } from './tools/emoji';
|
||||
import EmojiSelectPopover from './tools/emoji-select-popover.vue';
|
||||
import PictureSelectUpload from './tools/picture-select-upload.vue';
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
/** 客服消息类型枚举类 */
|
||||
export const KeFuMessageContentTypeEnum = {
|
||||
TEXT: 1, // 文本消息
|
||||
IMAGE: 2, // 图片消息
|
||||
VOICE: 3, // 语音消息
|
||||
VIDEO: 4, // 视频消息
|
||||
SYSTEM: 5, // 系统消息
|
||||
// ========== 商城特殊消息 ==========
|
||||
PRODUCT: 10, // 商品消息
|
||||
ORDER: 11, // 订单消息"
|
||||
};
|
||||
|
||||
/** Promotion 的 WebSocket 消息类型枚举类 */
|
||||
export const WebSocketMessageTypeConstants = {
|
||||
KEFU_MESSAGE_TYPE: 'kefu_message_type', // 客服消息类型
|
||||
KEFU_MESSAGE_ADMIN_READ: 'kefu_message_read_status_change', // 客服消息管理员已读
|
||||
};
|
||||
|
|
@ -3,12 +3,12 @@ import type { MesCalCalendarApi } from '#/api/mes/cal/calendar';
|
|||
|
||||
import { computed } from 'vue';
|
||||
|
||||
import { MesCalShiftTypeEnum } from '@vben/constants';
|
||||
|
||||
import { Tag } from 'ant-design-vue';
|
||||
import dayjs from 'dayjs';
|
||||
import { SolarDay } from 'tyme4ts';
|
||||
|
||||
import { MesCalShiftTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
const props = defineProps<{
|
||||
calendarDayMap: Map<string, MesCalCalendarApi.CalendarDay>; // 排班数据
|
||||
day: string; // 日期,格式 yyyy-MM-dd
|
||||
|
|
|
|||
|
|
@ -4,11 +4,12 @@ import type { MesCalCalendarApi } from '#/api/mes/cal/calendar';
|
|||
|
||||
import { ref, watch } from 'vue';
|
||||
|
||||
import { HolidayType } from '@vben/constants';
|
||||
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
import { getCalendarList } from '#/api/mes/cal/calendar';
|
||||
import { getHolidayList } from '#/api/mes/cal/holiday';
|
||||
import { HolidayType } from '#/views/mes/utils/constants';
|
||||
|
||||
/**
|
||||
* 排班日历通用 composable
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
import type { VbenFormSchema } from '#/adapter/form';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, HolidayType } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { z } from '#/adapter/form';
|
||||
import { HolidayType } from '#/views/mes/utils/constants';
|
||||
|
||||
/** 假期设置表单 */
|
||||
export function useHolidayFormSchema(): VbenFormSchema[] {
|
||||
|
|
|
|||
|
|
@ -5,13 +5,13 @@ import { onMounted, ref, watch } from 'vue';
|
|||
|
||||
import { useAccess } from '@vben/access';
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { HolidayType } from '@vben/constants';
|
||||
|
||||
import { Button, Calendar, message, Tag } from 'ant-design-vue';
|
||||
import dayjs from 'dayjs';
|
||||
import { SolarDay } from 'tyme4ts';
|
||||
|
||||
import { getHolidayList } from '#/api/mes/cal/holiday';
|
||||
import { HolidayType } from '#/views/mes/utils/constants';
|
||||
|
||||
import HolidayForm from './modules/form.vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@
|
|||
import type { MesCalHolidayApi } from '#/api/mes/cal/holiday';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { HolidayType } from '@vben/constants';
|
||||
|
||||
import { message } from 'ant-design-vue';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
import { useVbenForm } from '#/adapter/form';
|
||||
import { getHolidayByDay, saveHoliday } from '#/api/mes/cal/holiday';
|
||||
import { HolidayType } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useHolidayFormSchema } from '../data';
|
||||
|
||||
|
|
|
|||
|
|
@ -4,19 +4,13 @@ import type { MesCalPlanApi } from '#/api/mes/cal/plan';
|
|||
|
||||
import { h } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode, MesCalPlanStatusEnum, MesCalShiftMethodEnum, MesCalShiftTypeEnum } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
||||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { getRangePickerDefaultProps } from '#/utils';
|
||||
import {
|
||||
MesAutoCodeRuleCode,
|
||||
MesCalPlanStatusEnum,
|
||||
MesCalShiftMethodEnum,
|
||||
MesCalShiftTypeEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesCalPlanApi } from '#/api/mes/cal/plan';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { MesCalPlanStatusEnum } from '@vben/constants';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
|
@ -10,7 +11,6 @@ import { Button, message } from 'ant-design-vue';
|
|||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { deletePlan, exportPlan, getPlanPage } from '#/api/mes/cal/plan';
|
||||
import { $t } from '#/locales';
|
||||
import { MesCalPlanStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import Form from './modules/form.vue';
|
||||
|
|
|
|||
|
|
@ -6,13 +6,13 @@ import type { MesCalPlanApi } from '#/api/mes/cal/plan';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { MesCalPlanStatusEnum } from '@vben/constants';
|
||||
|
||||
import { Button, message, Popconfirm, Tabs } from 'ant-design-vue';
|
||||
|
||||
import { useVbenForm } from '#/adapter/form';
|
||||
import { confirmPlan, createPlan, getPlan, updatePlan } from '#/api/mes/cal/plan';
|
||||
import { $t } from '#/locales';
|
||||
import { MesCalPlanStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
import ShiftList from './shift-list.vue';
|
||||
|
|
|
|||
|
|
@ -4,14 +4,13 @@ import type { MesCalTeamApi } from '#/api/mes/cal/team';
|
|||
|
||||
import { h } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
||||
import { z } from '#/adapter/form';
|
||||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { MesAutoCodeRuleCode } from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import type { MesDvCheckPlanApi } from '#/api/mes/dv/checkplan';
|
|||
|
||||
import { h } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode, MesDvCheckPlanStatusEnum, MesDvSubjectTypeEnum } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
|
@ -12,11 +12,6 @@ import { Button } from 'ant-design-vue';
|
|||
import { z } from '#/adapter/form';
|
||||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { getRangePickerDefaultProps } from '#/utils';
|
||||
import {
|
||||
MesAutoCodeRuleCode,
|
||||
MesDvCheckPlanStatusEnum,
|
||||
MesDvSubjectTypeEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import type { MesDvCheckPlanApi } from '#/api/mes/dv/checkplan';
|
|||
import type { ActionItem } from '#/components/table-action/typing';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { MesDvCheckPlanStatusEnum } from '@vben/constants';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
|
@ -17,7 +18,6 @@ import {
|
|||
getCheckPlanPage,
|
||||
} from '#/api/mes/dv/checkplan';
|
||||
import { $t } from '#/locales';
|
||||
import { MesDvCheckPlanStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import Form from './modules/form.vue';
|
||||
|
|
|
|||
|
|
@ -6,13 +6,13 @@ import type { MesDvCheckPlanApi } from '#/api/mes/dv/checkplan';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { MesDvCheckPlanStatusEnum } from '@vben/constants';
|
||||
|
||||
import { message, Tabs } from 'ant-design-vue';
|
||||
|
||||
import { useVbenForm } from '#/adapter/form';
|
||||
import { createCheckPlan, getCheckPlan, updateCheckPlan } from '#/api/mes/dv/checkplan';
|
||||
import { $t } from '#/locales';
|
||||
import { MesDvCheckPlanStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
import MachineryList from './machinery-list.vue';
|
||||
|
|
|
|||
|
|
@ -4,18 +4,13 @@ import type { MesDvCheckRecordApi } from '#/api/mes/dv/checkrecord';
|
|||
|
||||
import { markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesDvCheckPlanStatusEnum, MesDvCheckRecordStatusEnum, MesDvSubjectTypeEnum } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { getSimpleUserList } from '#/api/system/user';
|
||||
import { getRangePickerDefaultProps } from '#/utils';
|
||||
import { DvCheckPlanSelect } from '#/views/mes/dv/checkplan/components';
|
||||
import { DvMachinerySelect } from '#/views/mes/dv/machinery/components';
|
||||
import {
|
||||
MesDvCheckPlanStatusEnum,
|
||||
MesDvCheckRecordStatusEnum,
|
||||
MesDvSubjectTypeEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesDvCheckRecordApi } from '#/api/mes/dv/checkrecord';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { MesDvCheckRecordStatusEnum } from '@vben/constants';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
|
@ -10,7 +11,6 @@ import { Button, message } from 'ant-design-vue';
|
|||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { deleteCheckRecord, exportCheckRecord, getCheckRecordPage } from '#/api/mes/dv/checkrecord';
|
||||
import { $t } from '#/locales';
|
||||
import { MesDvCheckRecordStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import Form from './modules/form.vue';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import type { MesDvCheckRecordApi } from '#/api/mes/dv/checkrecord';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { MesDvCheckRecordStatusEnum } from '@vben/constants';
|
||||
|
||||
import { Button, message, Popconfirm } from 'ant-design-vue';
|
||||
|
||||
|
|
@ -17,7 +18,6 @@ import {
|
|||
updateCheckRecord,
|
||||
} from '#/api/mes/dv/checkrecord';
|
||||
import { $t } from '#/locales';
|
||||
import { MesDvCheckRecordStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
import LineList from './line-list.vue';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
import type { MesDvCheckRecordLineApi } from '#/api/mes/dv/checkrecord/line';
|
||||
|
||||
import { computed, ref, watch } from 'vue';
|
||||
import { computed, MesDvCheckResultEnum, MesDvSubjectTypeEnum, ref, watch } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
|
@ -20,7 +20,6 @@ import {
|
|||
} from '#/api/mes/dv/checkrecord/line';
|
||||
import { $t } from '#/locales';
|
||||
import { DvSubjectSelect } from '#/views/mes/dv/subject/components';
|
||||
import { MesDvCheckResultEnum, MesDvSubjectTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
const props = defineProps<{ disabled?: boolean; recordId: number }>();
|
||||
const formOpen = ref(false);
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import type { MesDvMachineryApi } from '#/api/mes/dv/machinery';
|
|||
|
||||
import { h, markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode, MesDvMachineryStatusEnum } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
|
@ -12,7 +12,6 @@ import { Button } from 'ant-design-vue';
|
|||
import { z } from '#/adapter/form';
|
||||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { MdWorkshopSelect } from '#/views/mes/md/workstation/components';
|
||||
import { MesAutoCodeRuleCode, MesDvMachineryStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { DvMachineryTypeSelect } from './type/components';
|
||||
|
||||
|
|
|
|||
|
|
@ -6,13 +6,13 @@ import type { MesDvMachineryApi } from '#/api/mes/dv/machinery';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { BarcodeBizTypeEnum } from '@vben/constants';
|
||||
|
||||
import { Button, message, Tabs } from 'ant-design-vue';
|
||||
|
||||
import { useVbenForm } from '#/adapter/form';
|
||||
import { createMachinery, getMachinery, updateMachinery } from '#/api/mes/dv/machinery';
|
||||
import { $t } from '#/locales';
|
||||
import { BarcodeBizTypeEnum } from '#/views/mes/utils/constants';
|
||||
import { BarcodeDetail } from '#/views/mes/wm/barcode/components';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import type { VbenFormApi, VbenFormSchema } from '#/adapter/form';
|
|||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
import type { MesDvMachineryTypeApi } from '#/api/mes/dv/machinery/type';
|
||||
|
||||
import { h } from 'vue';
|
||||
import { DICT_TYPE, h } from 'vue';
|
||||
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@vben/constants';
|
||||
import { CommonStatusEnum, MesAutoCodeRuleCode } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
import { handleTree } from '@vben/utils';
|
||||
|
||||
|
|
@ -13,7 +13,6 @@ import { Button } from 'ant-design-vue';
|
|||
import { z } from '#/adapter/form';
|
||||
import { getMachineryTypeList } from '#/api/mes/dv/machinery/type';
|
||||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { MesAutoCodeRuleCode } from '#/views/mes/utils/constants';
|
||||
|
||||
/** 新增/修改设备类型的表单 */
|
||||
export function useFormSchema(formApi?: VbenFormApi): VbenFormSchema[] {
|
||||
|
|
|
|||
|
|
@ -4,18 +4,13 @@ import type { MesDvMaintenRecordApi } from '#/api/mes/dv/maintenrecord';
|
|||
|
||||
import { markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesDvCheckPlanStatusEnum, MesDvMaintenRecordStatusEnum, MesDvSubjectTypeEnum } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { getSimpleUserList } from '#/api/system/user';
|
||||
import { getRangePickerDefaultProps } from '#/utils';
|
||||
import { DvCheckPlanSelect } from '#/views/mes/dv/checkplan/components';
|
||||
import { DvMachinerySelect } from '#/views/mes/dv/machinery/components';
|
||||
import {
|
||||
MesDvCheckPlanStatusEnum,
|
||||
MesDvMaintenRecordStatusEnum,
|
||||
MesDvSubjectTypeEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesDvMaintenRecordApi } from '#/api/mes/dv/maintenrecord';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { MesDvMaintenRecordStatusEnum } from '@vben/constants';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
|
@ -14,7 +15,6 @@ import {
|
|||
getMaintenRecordPage,
|
||||
} from '#/api/mes/dv/maintenrecord';
|
||||
import { $t } from '#/locales';
|
||||
import { MesDvMaintenRecordStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import Form from './modules/form.vue';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import type { MesDvMaintenRecordApi } from '#/api/mes/dv/maintenrecord';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { MesDvMaintenRecordStatusEnum } from '@vben/constants';
|
||||
import { useUserStore } from '@vben/stores';
|
||||
|
||||
import { Button, message, Popconfirm } from 'ant-design-vue';
|
||||
|
|
@ -18,7 +19,6 @@ import {
|
|||
updateMaintenRecord,
|
||||
} from '#/api/mes/dv/maintenrecord';
|
||||
import { $t } from '#/locales';
|
||||
import { MesDvMaintenRecordStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
import LineList from './line-list.vue';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
import type { MesDvMaintenRecordLineApi } from '#/api/mes/dv/maintenrecord/line';
|
||||
|
||||
import { computed, ref, watch } from 'vue';
|
||||
import { computed, MesDvMaintenStatusEnum, MesDvSubjectTypeEnum, ref, watch } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
|
@ -20,7 +20,6 @@ import {
|
|||
} from '#/api/mes/dv/maintenrecord/line';
|
||||
import { $t } from '#/locales';
|
||||
import { DvSubjectSelect } from '#/views/mes/dv/subject/components';
|
||||
import { MesDvMaintenStatusEnum, MesDvSubjectTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
const props = defineProps<{ disabled?: boolean; recordId: number }>();
|
||||
const formOpen = ref(false);
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import type { MesDvRepairApi } from '#/api/mes/dv/repair';
|
|||
|
||||
import { h, markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode, MesDvRepairStatusEnum } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
|
@ -13,7 +13,6 @@ import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
|||
import { getSimpleUserList } from '#/api/system/user';
|
||||
import { getRangePickerDefaultProps } from '#/utils';
|
||||
import { DvMachinerySelect } from '#/views/mes/dv/machinery/components';
|
||||
import { MesAutoCodeRuleCode, MesDvRepairStatusEnum } from '#/views/mes/utils/constants';
|
||||
/** 表单类型 */
|
||||
export type FormType = 'confirm' | 'create' | 'detail' | 'finish' | 'update';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesDvRepairApi } from '#/api/mes/dv/repair';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { MesDvRepairStatusEnum } from '@vben/constants';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
|
@ -10,7 +11,6 @@ import { Button, message } from 'ant-design-vue';
|
|||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { deleteRepair, exportRepair, getRepairPage } from '#/api/mes/dv/repair';
|
||||
import { $t } from '#/locales';
|
||||
import { MesDvRepairStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import Form from './modules/form.vue';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import type { MesDvRepairApi } from '#/api/mes/dv/repair';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { MesDvRepairResultEnum, MesDvRepairStatusEnum } from '@vben/constants';
|
||||
|
||||
import { Button, message, Popconfirm } from 'ant-design-vue';
|
||||
|
||||
|
|
@ -19,7 +20,6 @@ import {
|
|||
updateRepair,
|
||||
} from '#/api/mes/dv/repair';
|
||||
import { $t } from '#/locales';
|
||||
import { MesDvRepairResultEnum, MesDvRepairStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
import LineList from './line-list.vue';
|
||||
|
|
|
|||
|
|
@ -2,16 +2,15 @@ import type { VbenFormApi, VbenFormSchema } from '#/adapter/form';
|
|||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
import type { MesDvSubjectApi } from '#/api/mes/dv/subject';
|
||||
|
||||
import { h } from 'vue';
|
||||
import { DICT_TYPE, h } from 'vue';
|
||||
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@vben/constants';
|
||||
import { CommonStatusEnum, MesAutoCodeRuleCode, MesDvSubjectTypeEnum } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
||||
import { z } from '#/adapter/form';
|
||||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { MesAutoCodeRuleCode, MesDvSubjectTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { MesHomeApi } from '#/api/mes/home';
|
||||
|
||||
import { MesProWorkOrderStatusEnum } from '#/views/mes/utils/constants';
|
||||
import { MesProWorkOrderStatusEnum } from '@vben/constants';
|
||||
|
||||
/** 首页汇总统计默认值 */
|
||||
export const defaultSummary: MesHomeApi.Summary = {
|
||||
|
|
|
|||
|
|
@ -3,11 +3,10 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesMdAutoCodePartApi } from '#/api/mes/md/autocode/part';
|
||||
import type { MesMdAutoCodeRuleApi } from '#/api/mes/md/autocode/rule';
|
||||
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@vben/constants';
|
||||
import { CommonStatusEnum, DICT_TYPE, MesAutoCodePartTypeEnum } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { z } from '#/adapter/form';
|
||||
import { MesAutoCodePartTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
/** 新增/修改编码规则的表单 */
|
||||
export function useFormSchema(): VbenFormSchema[] {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import type { MesMdAutoCodePartApi } from '#/api/mes/md/autocode/part';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { MesAutoCodePartTypeEnum } from '@vben/constants';
|
||||
|
||||
import { message } from 'ant-design-vue';
|
||||
|
||||
|
|
@ -14,7 +15,6 @@ import {
|
|||
updateAutoCodePart,
|
||||
} from '#/api/mes/md/autocode/part';
|
||||
import { $t } from '#/locales';
|
||||
import { MesAutoCodePartTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { usePartFormSchema } from '../data';
|
||||
|
||||
|
|
|
|||
|
|
@ -2,16 +2,15 @@ import type { VbenFormApi, VbenFormSchema } from '#/adapter/form';
|
|||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
import type { MesMdClientApi } from '#/api/mes/md/client';
|
||||
|
||||
import { h } from 'vue';
|
||||
import { DICT_TYPE, h } from 'vue';
|
||||
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@vben/constants';
|
||||
import { CommonStatusEnum, MesAutoCodeRuleCode } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
||||
import { z } from '#/adapter/form';
|
||||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { MesAutoCodeRuleCode } from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesMdItemApi } from '#/api/mes/md/item';
|
||||
import type { MesMdProductBomApi } from '#/api/mes/md/item/productBom';
|
||||
|
||||
import { h, markRaw } from 'vue';
|
||||
import { DICT_TYPE, h, markRaw } from 'vue';
|
||||
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@vben/constants';
|
||||
import { CommonStatusEnum, MesAutoCodeRuleCode } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
|
@ -14,7 +14,6 @@ import { z } from '#/adapter/form';
|
|||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { MdItemTypeSelect } from '#/views/mes/md/item/type/components';
|
||||
import { MdUnitMeasureSelect } from '#/views/mes/md/unitmeasure/components';
|
||||
import { MesAutoCodeRuleCode } from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -6,13 +6,13 @@ import type { MesMdItemApi } from '#/api/mes/md/item';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { BarcodeBizTypeEnum } from '@vben/constants';
|
||||
|
||||
import { Button, Empty, message, Tabs } from 'ant-design-vue';
|
||||
|
||||
import { useVbenForm } from '#/adapter/form';
|
||||
import { createItem, getItem, updateItem } from '#/api/mes/md/item';
|
||||
import { $t } from '#/locales';
|
||||
import { BarcodeBizTypeEnum } from '#/views/mes/utils/constants';
|
||||
import { BarcodeDetail } from '#/views/mes/wm/barcode/components';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
|
|
|
|||
|
|
@ -5,13 +5,14 @@ import type { MesMdItemBatchConfigApi } from '#/api/mes/md/item/batchConfig';
|
|||
|
||||
import { computed, ref, watch } from 'vue';
|
||||
|
||||
import { MesItemOrProductEnum } from '@vben/constants';
|
||||
|
||||
import { Button, Checkbox, message, Spin } from 'ant-design-vue';
|
||||
|
||||
import {
|
||||
getBatchConfigByItemId,
|
||||
saveBatchConfig,
|
||||
} from '#/api/mes/md/item/batchConfig';
|
||||
import { MesItemOrProductEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import type { VbenFormApi, VbenFormSchema } from '#/adapter/form';
|
|||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
import type { MesMdItemTypeApi } from '#/api/mes/md/item/type';
|
||||
|
||||
import { h } from 'vue';
|
||||
import { DICT_TYPE, h } from 'vue';
|
||||
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@vben/constants';
|
||||
import { CommonStatusEnum, MesAutoCodeRuleCode, MesItemOrProductEnum } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
import { handleTree } from '@vben/utils';
|
||||
|
||||
|
|
@ -13,10 +13,6 @@ import { Button } from 'ant-design-vue';
|
|||
import { z } from '#/adapter/form';
|
||||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { getItemTypeList } from '#/api/mes/md/item/type';
|
||||
import {
|
||||
MesAutoCodeRuleCode,
|
||||
MesItemOrProductEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
|
||||
/** 新增/修改物料分类的表单 */
|
||||
export function useFormSchema(formApi?: VbenFormApi): VbenFormSchema[] {
|
||||
|
|
|
|||
|
|
@ -2,16 +2,15 @@ import type { VbenFormApi, VbenFormSchema } from '#/adapter/form';
|
|||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
import type { MesMdVendorApi } from '#/api/mes/md/vendor';
|
||||
|
||||
import { h } from 'vue';
|
||||
import { DICT_TYPE, h } from 'vue';
|
||||
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@vben/constants';
|
||||
import { CommonStatusEnum, MesAutoCodeRuleCode } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
||||
import { z } from '#/adapter/form';
|
||||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { MesAutoCodeRuleCode } from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import type { VbenFormApi, VbenFormSchema } from '#/adapter/form';
|
|||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
import type { MesMdWorkstationApi } from '#/api/mes/md/workstation';
|
||||
|
||||
import { h, markRaw } from 'vue';
|
||||
import { DICT_TYPE, h, markRaw } from 'vue';
|
||||
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@vben/constants';
|
||||
import { CommonStatusEnum, MesAutoCodeRuleCode } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
|
@ -15,7 +15,6 @@ import { getWarehouseSimpleList } from '#/api/mes/wm/warehouse';
|
|||
import { getWarehouseAreaSimpleList } from '#/api/mes/wm/warehouse/area';
|
||||
import { getWarehouseLocationSimpleList } from '#/api/mes/wm/warehouse/location';
|
||||
import { ProProcessSelect } from '#/views/mes/pro/process/components';
|
||||
import { MesAutoCodeRuleCode } from '#/views/mes/utils/constants';
|
||||
|
||||
import { MdWorkshopSelect } from './components';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import type { MesMdWorkstationApi } from '#/api/mes/md/workstation';
|
|||
import { ref } from 'vue';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { BarcodeBizTypeEnum } from '@vben/constants';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
|
@ -16,7 +17,6 @@ import {
|
|||
getWorkstationPage,
|
||||
} from '#/api/mes/md/workstation';
|
||||
import { $t } from '#/locales';
|
||||
import { BarcodeBizTypeEnum } from '#/views/mes/utils/constants';
|
||||
import { BarcodeDetail } from '#/views/mes/wm/barcode/components';
|
||||
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import type { MesMdWorkstationApi } from '#/api/mes/md/workstation';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { BarcodeBizTypeEnum } from '@vben/constants';
|
||||
|
||||
import { Button, message, Tabs } from 'ant-design-vue';
|
||||
|
||||
|
|
@ -16,7 +17,6 @@ import {
|
|||
updateWorkstation,
|
||||
} from '#/api/mes/md/workstation';
|
||||
import { $t } from '#/locales';
|
||||
import { BarcodeBizTypeEnum } from '#/views/mes/utils/constants';
|
||||
import { BarcodeDetail } from '#/views/mes/wm/barcode/components';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import type { VbenFormApi, VbenFormSchema } from '#/adapter/form';
|
|||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
import type { MesMdWorkshopApi } from '#/api/mes/md/workstation/workshop';
|
||||
|
||||
import { h } from 'vue';
|
||||
import { DICT_TYPE, h } from 'vue';
|
||||
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@vben/constants';
|
||||
import { CommonStatusEnum, MesAutoCodeRuleCode } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
|
@ -12,7 +12,6 @@ import { Button } from 'ant-design-vue';
|
|||
import { z } from '#/adapter/form';
|
||||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { getSimpleUserList } from '#/api/system/user';
|
||||
import { MesAutoCodeRuleCode } from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import type { MesMdWorkshopApi } from '#/api/mes/md/workstation/workshop';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { BarcodeBizTypeEnum } from '@vben/constants';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
||||
|
|
@ -16,7 +17,6 @@ import {
|
|||
updateWorkshop,
|
||||
} from '#/api/mes/md/workstation/workshop';
|
||||
import { $t } from '#/locales';
|
||||
import { BarcodeBizTypeEnum } from '#/views/mes/utils/constants';
|
||||
import { BarcodeDetail } from '#/views/mes/wm/barcode/components';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import type { MesProAndonRecordApi } from '#/api/mes/pro/andon/record';
|
|||
|
||||
import { markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesProWorkOrderStatusEnum } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { getSimpleUserList } from '#/api/system/user';
|
||||
|
|
@ -13,7 +13,6 @@ import { getRangePickerDefaultProps } from '#/utils';
|
|||
import { MdWorkstationSelect } from '#/views/mes/md/workstation/components';
|
||||
import { ProProcessSelect } from '#/views/mes/pro/process/components';
|
||||
import { ProWorkOrderSelect } from '#/views/mes/pro/workorder/components';
|
||||
import { MesProWorkOrderStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { AndonConfigSelect } from '../config/components';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import type { MesProAndonRecordApi } from '#/api/mes/pro/andon/record';
|
|||
import { ref } from 'vue';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { MesProAndonStatusEnum } from '@vben/constants';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
import { message } from 'ant-design-vue';
|
||||
|
|
@ -16,7 +17,6 @@ import {
|
|||
getAndonRecordPage,
|
||||
} from '#/api/mes/pro/andon/record';
|
||||
import { $t } from '#/locales';
|
||||
import { MesProAndonStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import ConfigList from '../config/modules/list.vue';
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import type { MesProAndonRecordApi } from '#/api/mes/pro/andon/record';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { MesProAndonStatusEnum } from '@vben/constants';
|
||||
import { useUserStore } from '@vben/stores';
|
||||
|
||||
import { Button, message, Popconfirm } from 'ant-design-vue';
|
||||
|
|
@ -17,7 +18,6 @@ import {
|
|||
updateAndonRecord,
|
||||
} from '#/api/mes/pro/andon/record';
|
||||
import { $t } from '#/locales';
|
||||
import { MesProAndonStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import type { MesProCardProcessApi } from '#/api/mes/pro/card/process';
|
|||
|
||||
import { h, markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode, MesProWorkOrderStatusEnum } from '@vben/constants';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
||||
|
|
@ -14,10 +14,6 @@ import { MdItemSelect } from '#/views/mes/md/item/components';
|
|||
import { MdWorkstationSelect } from '#/views/mes/md/workstation/components';
|
||||
import { ProProcessSelect } from '#/views/mes/pro/process/components';
|
||||
import { ProWorkOrderSelect } from '#/views/mes/pro/workorder/components';
|
||||
import {
|
||||
MesAutoCodeRuleCode,
|
||||
MesProWorkOrderStatusEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
import { UserSelect } from '#/views/system/user/components';
|
||||
|
||||
/** 表单类型 */
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesProCardApi } from '#/api/mes/pro/card';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { MesProCardStatusEnum } from '@vben/constants';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
|
@ -15,7 +16,6 @@ import {
|
|||
getCardPage,
|
||||
} from '#/api/mes/pro/card';
|
||||
import { $t } from '#/locales';
|
||||
import { MesProCardStatusEnum } from '#/views/mes/utils/constants';
|
||||
import { PrinterLabel } from '#/views/mes/wm/barcode/components';
|
||||
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,10 @@ import type { MesProCardApi } from '#/api/mes/pro/card';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import {
|
||||
BarcodeBizTypeEnum,
|
||||
MesProCardStatusEnum,
|
||||
} from '@vben/constants';
|
||||
|
||||
import { Button, Divider, message, Popconfirm } from 'ant-design-vue';
|
||||
|
||||
|
|
@ -18,10 +22,6 @@ import {
|
|||
updateCard,
|
||||
} from '#/api/mes/pro/card';
|
||||
import { $t } from '#/locales';
|
||||
import {
|
||||
BarcodeBizTypeEnum,
|
||||
MesProCardStatusEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
import { BarcodeDetail } from '#/views/mes/wm/barcode/components';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import type { MesProTaskApi } from '#/api/mes/pro/task';
|
|||
|
||||
import { h, markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode, MesProTaskStatusEnum, MesProWorkOrderStatusEnum } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
|
@ -18,11 +18,6 @@ import { MdItemSelect } from '#/views/mes/md/item/components';
|
|||
import { MdWorkstationSelect } from '#/views/mes/md/workstation/components';
|
||||
import { ProTaskSelect } from '#/views/mes/pro/task/components';
|
||||
import { ProWorkOrderSelect } from '#/views/mes/pro/workorder/components';
|
||||
import {
|
||||
MesAutoCodeRuleCode,
|
||||
MesProTaskStatusEnum,
|
||||
MesProWorkOrderStatusEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
|
||||
/** 生产报工表单类型 */
|
||||
export type FormType = 'approve' | 'create' | 'detail' | 'submit' | 'update';
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesProFeedbackApi } from '#/api/mes/pro/feedback';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { MesProFeedbackStatusEnum } from '@vben/constants';
|
||||
import { useUserStore } from '@vben/stores';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
|
|
@ -15,7 +16,6 @@ import {
|
|||
getFeedbackPage,
|
||||
} from '#/api/mes/pro/feedback';
|
||||
import { $t } from '#/locales';
|
||||
import { MesProFeedbackStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import Form from './modules/form.vue';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,10 @@ import type { MesProFeedbackApi } from '#/api/mes/pro/feedback';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import {
|
||||
MesAutoCodeRuleCode,
|
||||
MesProFeedbackStatusEnum,
|
||||
} from '@vben/constants';
|
||||
import { useUserStore } from '@vben/stores';
|
||||
|
||||
import { Button, message, Popconfirm, Tabs } from 'ant-design-vue';
|
||||
|
|
@ -22,10 +26,6 @@ import {
|
|||
} from '#/api/mes/pro/feedback';
|
||||
import { getRouteProcessByRouteAndProcess } from '#/api/mes/pro/route/process';
|
||||
import { $t } from '#/locales';
|
||||
import {
|
||||
MesAutoCodeRuleCode,
|
||||
MesProFeedbackStatusEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
import ItemConsumeList from './item-consume-list.vue';
|
||||
|
|
|
|||
|
|
@ -3,16 +3,15 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesProProcessApi } from '#/api/mes/pro/process';
|
||||
import type { MesProProcessContentApi } from '#/api/mes/pro/process/content';
|
||||
|
||||
import { h } from 'vue';
|
||||
import { DICT_TYPE, h } from 'vue';
|
||||
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@vben/constants';
|
||||
import { CommonStatusEnum, MesAutoCodeRuleCode } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
||||
import { z } from '#/adapter/form';
|
||||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { MesAutoCodeRuleCode } from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ import type { MesProRouteProcessApi } from '#/api/mes/pro/route/process';
|
|||
import type { MesProRouteProductApi } from '#/api/mes/pro/route/product';
|
||||
import type { MesProRouteProductBomApi } from '#/api/mes/pro/route/productbom';
|
||||
|
||||
import { h } from 'vue';
|
||||
import { DICT_TYPE, h } from 'vue';
|
||||
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@vben/constants';
|
||||
import { CommonStatusEnum, MesAutoCodeRuleCode } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
|
@ -18,7 +18,6 @@ import {
|
|||
MdItemSelect,
|
||||
MdProductBomSelect,
|
||||
} from '#/views/mes/md/item/components';
|
||||
import { MesAutoCodeRuleCode } from '#/views/mes/utils/constants';
|
||||
|
||||
import { RouteColorPicker } from './components';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<script lang="ts" setup>
|
||||
import { onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
||||
|
||||
import { gantt } from 'dhtmlx-gantt';
|
||||
import { BarcodeBizTypeEnum } from '@vben/constants';
|
||||
|
||||
import { BarcodeBizTypeEnum } from '#/views/mes/utils/constants';
|
||||
import { gantt } from 'dhtmlx-gantt';
|
||||
|
||||
import 'dhtmlx-gantt/codebase/dhtmlxgantt.css';
|
||||
|
||||
|
|
|
|||
|
|
@ -6,16 +6,16 @@ import { onMounted, ref } from 'vue';
|
|||
import { useRouter } from 'vue-router';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import {
|
||||
MesProWorkOrderStatusEnum,
|
||||
MesProWorkOrderTypeEnum,
|
||||
} from '@vben/constants';
|
||||
|
||||
import { Button, Card } from 'ant-design-vue';
|
||||
|
||||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { getGanttTaskList } from '#/api/mes/pro/task';
|
||||
import { getWorkOrderPage } from '#/api/mes/pro/workorder';
|
||||
import {
|
||||
MesProWorkOrderStatusEnum,
|
||||
MesProWorkOrderTypeEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
|
||||
import GanttChart from './components/gantt-chart.vue';
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import type { MesProWorkOrderBomApi } from '#/api/mes/pro/workorder/bom';
|
|||
|
||||
import { h, markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode, MesProWorkOrderSourceTypeEnum, MesProWorkOrderTypeEnum } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
|
@ -16,11 +16,6 @@ import { getRangePickerDefaultProps } from '#/utils';
|
|||
import MdClientSelect from '#/views/mes/md/client/components/md-client-select.vue';
|
||||
import { MdItemSelect, MdProductBomSelect } from '#/views/mes/md/item/components';
|
||||
import MdVendorSelect from '#/views/mes/md/vendor/components/md-vendor-select.vue';
|
||||
import {
|
||||
MesAutoCodeRuleCode,
|
||||
MesProWorkOrderSourceTypeEnum,
|
||||
MesProWorkOrderTypeEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'confirm' | 'create' | 'detail' | 'finish' | 'update';
|
||||
|
|
|
|||
|
|
@ -5,6 +5,11 @@ import type { MesProWorkOrderApi } from '#/api/mes/pro/workorder';
|
|||
import { ref } from 'vue';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import {
|
||||
BarcodeBizTypeEnum,
|
||||
MesProWorkOrderStatusEnum,
|
||||
MesProWorkOrderTypeEnum,
|
||||
} from '@vben/constants';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
|
@ -17,11 +22,6 @@ import {
|
|||
getWorkOrderPage,
|
||||
} from '#/api/mes/pro/workorder';
|
||||
import { $t } from '#/locales';
|
||||
import {
|
||||
BarcodeBizTypeEnum,
|
||||
MesProWorkOrderStatusEnum,
|
||||
MesProWorkOrderTypeEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
import { BarcodeDetail } from '#/views/mes/wm/barcode/components';
|
||||
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
|
|
|
|||
|
|
@ -8,6 +8,10 @@ import type { MesProWorkOrderBomApi } from '#/api/mes/pro/workorder/bom';
|
|||
import { computed } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import {
|
||||
MesProWorkOrderStatusEnum,
|
||||
MesProWorkOrderTypeEnum,
|
||||
} from '@vben/constants';
|
||||
|
||||
import { message } from 'ant-design-vue';
|
||||
|
||||
|
|
@ -17,10 +21,6 @@ import {
|
|||
getWorkOrderBomPage,
|
||||
} from '#/api/mes/pro/workorder/bom';
|
||||
import { $t } from '#/locales';
|
||||
import {
|
||||
MesProWorkOrderStatusEnum,
|
||||
MesProWorkOrderTypeEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
|
||||
import { useBomGridColumns } from '../data';
|
||||
import BomForm from './bom-form.vue';
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@ import type { MesProWorkOrderBomApi } from '#/api/mes/pro/workorder/bom';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import {
|
||||
BarcodeBizTypeEnum,
|
||||
MesProWorkOrderStatusEnum,
|
||||
} from '@vben/constants';
|
||||
|
||||
import { Button, message, Popconfirm, Tabs } from 'ant-design-vue';
|
||||
|
||||
|
|
@ -19,10 +23,6 @@ import {
|
|||
updateWorkOrder,
|
||||
} from '#/api/mes/pro/workorder';
|
||||
import { $t } from '#/locales';
|
||||
import {
|
||||
BarcodeBizTypeEnum,
|
||||
MesProWorkOrderStatusEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
import { BarcodeDetail } from '#/views/mes/wm/barcode/components';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import type { MesProWorkRecordApi } from '#/api/mes/pro/workrecord';
|
|||
import { computed, onMounted, ref } from 'vue';
|
||||
|
||||
import { confirm } from '@vben/common-ui';
|
||||
import { MesProWorkRecordTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { formatDateTime } from '@vben/utils';
|
||||
|
||||
|
|
@ -15,7 +16,6 @@ import {
|
|||
getMyWorkRecord,
|
||||
} from '#/api/mes/pro/workrecord';
|
||||
import MdWorkstationSelect from '#/views/mes/md/workstation/components/md-workstation-select.vue';
|
||||
import { MesProWorkRecordTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'change'): void;
|
||||
|
|
|
|||
|
|
@ -4,13 +4,12 @@ import type { MesQcDefectApi } from '#/api/mes/qc/defect';
|
|||
|
||||
import { h } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
||||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { MesAutoCodeRuleCode } from '#/views/mes/utils/constants';
|
||||
|
||||
/** 新增/修改的表单 */
|
||||
export function useFormSchema(formApi?: VbenFormApi): VbenFormSchema[] {
|
||||
|
|
|
|||
|
|
@ -4,17 +4,13 @@ import type { MesQcIndicatorApi } from '#/api/mes/qc/indicator';
|
|||
|
||||
import { h } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode, MesQcResultValueType } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
||||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { getSimpleDictTypeList } from '#/api/system/dict/type';
|
||||
import {
|
||||
MesAutoCodeRuleCode,
|
||||
MesQcResultValueType,
|
||||
} from '#/views/mes/utils/constants';
|
||||
|
||||
/** 新增/修改的表单 */
|
||||
export function useFormSchema(formApi?: VbenFormApi): VbenFormSchema[] {
|
||||
|
|
|
|||
|
|
@ -4,10 +4,11 @@ import type { MesQcIndicatorResultApi } from '#/api/mes/qc/indicatorresult';
|
|||
|
||||
import { h } from 'vue';
|
||||
|
||||
import { MesAutoCodeRuleCode } from '@vben/constants';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
||||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { MesAutoCodeRuleCode } from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'update';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import type { MesQcIndicatorResultApi } from '#/api/mes/qc/indicatorresult';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { MesQcResultValueType } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import {
|
||||
|
|
@ -25,7 +26,6 @@ import {
|
|||
updateIndicatorResult,
|
||||
} from '#/api/mes/qc/indicatorresult';
|
||||
import { $t } from '#/locales';
|
||||
import { MesQcResultValueType } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useQcIndicatorResultFormSchema } from './data';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import type { MesQcIpqcLineApi } from '#/api/mes/qc/ipqc/line';
|
|||
|
||||
import { h, markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode, MesProTaskStatusEnum, MesProWorkOrderStatusEnum } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
|
@ -16,11 +16,6 @@ import MdItemSelect from '#/views/mes/md/item/components/md-item-select.vue';
|
|||
import MdWorkstationSelect from '#/views/mes/md/workstation/components/md-workstation-select.vue';
|
||||
import ProTaskSelect from '#/views/mes/pro/task/components/pro-task-select.vue';
|
||||
import ProWorkOrderSelect from '#/views/mes/pro/workorder/components/pro-work-order-select.vue';
|
||||
import {
|
||||
MesAutoCodeRuleCode,
|
||||
MesProTaskStatusEnum,
|
||||
MesProWorkOrderStatusEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesQcIpqcApi } from '#/api/mes/qc/ipqc';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { MesQcStatusEnum } from '@vben/constants';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
|
@ -10,7 +11,6 @@ import { Button, message } from 'ant-design-vue';
|
|||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { deleteIpqc, exportIpqc, getIpqcPage } from '#/api/mes/qc/ipqc';
|
||||
import { $t } from '#/locales';
|
||||
import { MesQcStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import Form from './modules/form.vue';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import type { MesQcIpqcApi } from '#/api/mes/qc/ipqc';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { confirm, useVbenModal } from '@vben/common-ui';
|
||||
import { MesQcStatusEnum, MesQcTypeEnum } from '@vben/constants';
|
||||
|
||||
import { Button, Descriptions, message, Tabs } from 'ant-design-vue';
|
||||
|
||||
|
|
@ -17,7 +18,6 @@ import {
|
|||
updateIpqc,
|
||||
} from '#/api/mes/qc/ipqc';
|
||||
import { $t } from '#/locales';
|
||||
import { MesQcStatusEnum, MesQcTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { QcIndicatorResultList } from '../../indicatorresult/components';
|
||||
import { useFormSchema } from '../data';
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesQcIpqcLineApi } from '#/api/mes/qc/ipqc/line';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { MesQcTypeEnum } from '@vben/constants';
|
||||
|
||||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { getIpqcLinePage } from '#/api/mes/qc/ipqc/line';
|
||||
import { MesQcTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { DefectRecordInlineList } from '../../defectrecord/components';
|
||||
import { type FormType, useLineGridColumns } from '../data';
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import type { MesQcIqcLineApi } from '#/api/mes/qc/iqc/line';
|
|||
|
||||
import { h, markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
|
@ -15,7 +15,6 @@ import { getSimpleUserList } from '#/api/system/user';
|
|||
import { getRangePickerDefaultProps } from '#/utils';
|
||||
import MdItemSelect from '#/views/mes/md/item/components/md-item-select.vue';
|
||||
import MdVendorSelect from '#/views/mes/md/vendor/components/md-vendor-select.vue';
|
||||
import { MesAutoCodeRuleCode } from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesQcIqcApi } from '#/api/mes/qc/iqc';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { MesQcStatusEnum } from '@vben/constants';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
|
@ -10,7 +11,6 @@ import { Button, message } from 'ant-design-vue';
|
|||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { deleteIqc, exportIqc, getIqcPage } from '#/api/mes/qc/iqc';
|
||||
import { $t } from '#/locales';
|
||||
import { MesQcStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import Form from './modules/form.vue';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import type { MesQcIqcApi } from '#/api/mes/qc/iqc';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { confirm, useVbenModal } from '@vben/common-ui';
|
||||
import { MesQcStatusEnum, MesQcTypeEnum } from '@vben/constants';
|
||||
|
||||
import {
|
||||
Button,
|
||||
|
|
@ -22,7 +23,6 @@ import {
|
|||
updateIqc,
|
||||
} from '#/api/mes/qc/iqc';
|
||||
import { $t } from '#/locales';
|
||||
import { MesQcStatusEnum, MesQcTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { QcIndicatorResultList } from '../../indicatorresult/components';
|
||||
import { useFormSchema } from '../data';
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesQcIqcLineApi } from '#/api/mes/qc/iqc/line';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { MesQcTypeEnum } from '@vben/constants';
|
||||
|
||||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { getIqcLinePage } from '#/api/mes/qc/iqc/line';
|
||||
import { MesQcTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { DefectRecordInlineList } from '../../defectrecord/components';
|
||||
import { type FormType, useLineGridColumns } from '../data';
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import type { MesQcOqcLineApi } from '#/api/mes/qc/oqc/line';
|
|||
|
||||
import { h, markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
|
@ -14,7 +14,6 @@ import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
|||
import { getSimpleUserList } from '#/api/system/user';
|
||||
import MdClientSelect from '#/views/mes/md/client/components/md-client-select.vue';
|
||||
import MdItemSelect from '#/views/mes/md/item/components/md-item-select.vue';
|
||||
import { MesAutoCodeRuleCode } from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesQcOqcApi } from '#/api/mes/qc/oqc';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { MesQcStatusEnum } from '@vben/constants';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
|
@ -10,7 +11,6 @@ import { Button, message } from 'ant-design-vue';
|
|||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { deleteOqc, exportOqc, getOqcPage } from '#/api/mes/qc/oqc';
|
||||
import { $t } from '#/locales';
|
||||
import { MesQcStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import Form from './modules/form.vue';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import type { MesQcOqcApi } from '#/api/mes/qc/oqc';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { confirm, useVbenModal } from '@vben/common-ui';
|
||||
import { MesQcStatusEnum, MesQcTypeEnum } from '@vben/constants';
|
||||
|
||||
import { Button, Descriptions, message, Tabs } from 'ant-design-vue';
|
||||
|
||||
|
|
@ -17,7 +18,6 @@ import {
|
|||
updateOqc,
|
||||
} from '#/api/mes/qc/oqc';
|
||||
import { $t } from '#/locales';
|
||||
import { MesQcStatusEnum, MesQcTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { QcIndicatorResultList } from '../../indicatorresult/components';
|
||||
import { useFormSchema } from '../data';
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesQcOqcLineApi } from '#/api/mes/qc/oqc/line';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { MesQcTypeEnum } from '@vben/constants';
|
||||
|
||||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { getOqcLinePage } from '#/api/mes/qc/oqc/line';
|
||||
import { MesQcTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { DefectRecordInlineList } from '../../defectrecord/components';
|
||||
import { type FormType, useLineGridColumns } from '../data';
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ import type { MesQcPendingInspectApi } from '#/api/mes/qc/pendinginspect';
|
|||
import type { MesQcRqcApi } from '#/api/mes/qc/rqc';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { MesQcTypeEnum } from '@vben/constants';
|
||||
|
||||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { getPendingInspectPage } from '#/api/mes/qc/pendinginspect';
|
||||
import { MesQcTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import IpqcForm from '../ipqc/modules/form.vue';
|
||||
import IqcForm from '../iqc/modules/form.vue';
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import type { MesQcRqcLineApi } from '#/api/mes/qc/rqc/line';
|
|||
|
||||
import { h, markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode, MesQcSourceDocTypeEnum } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
|
@ -13,10 +13,6 @@ import { Button } from 'ant-design-vue';
|
|||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { getSimpleUserList } from '#/api/system/user';
|
||||
import MdItemSelect from '#/views/mes/md/item/components/md-item-select.vue';
|
||||
import {
|
||||
MesAutoCodeRuleCode,
|
||||
MesQcSourceDocTypeEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesQcRqcApi } from '#/api/mes/qc/rqc';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { MesQcStatusEnum } from '@vben/constants';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
|
@ -10,7 +11,6 @@ import { Button, message } from 'ant-design-vue';
|
|||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { deleteRqc, exportRqc, getRqcPage } from '#/api/mes/qc/rqc';
|
||||
import { $t } from '#/locales';
|
||||
import { MesQcStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import Form from './modules/form.vue';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import type { MesQcRqcApi } from '#/api/mes/qc/rqc';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { confirm, useVbenModal } from '@vben/common-ui';
|
||||
import { MesQcStatusEnum, MesQcTypeEnum } from '@vben/constants';
|
||||
|
||||
import { Button, Descriptions, message, Tabs } from 'ant-design-vue';
|
||||
|
||||
|
|
@ -17,7 +18,6 @@ import {
|
|||
updateRqc,
|
||||
} from '#/api/mes/qc/rqc';
|
||||
import { $t } from '#/locales';
|
||||
import { MesQcStatusEnum, MesQcTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { QcIndicatorResultList } from '../../indicatorresult/components';
|
||||
import { useFormSchema } from '../data';
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesQcRqcLineApi } from '#/api/mes/qc/rqc/line';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { MesQcTypeEnum } from '@vben/constants';
|
||||
|
||||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { getRqcLinePage } from '#/api/mes/qc/rqc/line';
|
||||
import { MesQcTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { DefectRecordInlineList } from '../../defectrecord/components';
|
||||
import { type FormType, useLineGridColumns } from '../data';
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import type { MesQcTemplateApi } from '#/api/mes/qc/template';
|
|||
import type { MesQcTemplateIndicatorApi } from '#/api/mes/qc/template/indicator';
|
||||
import type { MesQcTemplateItemApi } from '#/api/mes/qc/template/item';
|
||||
|
||||
import { h, markRaw } from 'vue';
|
||||
import { DICT_TYPE, h, markRaw } from 'vue';
|
||||
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@vben/constants';
|
||||
import { CommonStatusEnum, MesAutoCodeRuleCode } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
|
@ -16,7 +16,6 @@ import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
|||
import MdItemSelect from '#/views/mes/md/item/components/md-item-select.vue';
|
||||
import MdUnitMeasureSelect from '#/views/mes/md/unitmeasure/components/md-unit-measure-select.vue';
|
||||
import QcIndicatorSelect from '#/views/mes/qc/indicator/components/qc-indicator-select.vue';
|
||||
import { MesAutoCodeRuleCode } from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import type { MesTmToolApi } from '#/api/mes/tm/tool';
|
|||
|
||||
import { h, markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode, MesMaintenTypeEnum, MesToolStatusEnum } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
import { formatDateTime } from '@vben/utils';
|
||||
|
||||
|
|
@ -12,11 +12,6 @@ import { Button } from 'ant-design-vue';
|
|||
|
||||
import { z } from '#/adapter/form';
|
||||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import {
|
||||
MesAutoCodeRuleCode,
|
||||
MesMaintenTypeEnum,
|
||||
MesToolStatusEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
|
||||
import { TmToolTypeSelect } from './type/components';
|
||||
|
||||
|
|
|
|||
|
|
@ -6,13 +6,13 @@ import type { MesTmToolApi } from '#/api/mes/tm/tool';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { BarcodeBizTypeEnum } from '@vben/constants';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
||||
import { useVbenForm } from '#/adapter/form';
|
||||
import { createTool, getTool, updateTool } from '#/api/mes/tm/tool';
|
||||
import { $t } from '#/locales';
|
||||
import { BarcodeBizTypeEnum } from '#/views/mes/utils/constants';
|
||||
import { BarcodeDetail } from '#/views/mes/wm/barcode/components';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
|
|
|
|||
|
|
@ -4,14 +4,13 @@ import type { MesTmToolTypeApi } from '#/api/mes/tm/tool/type';
|
|||
|
||||
import { h } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode, MesMaintenTypeEnum } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
||||
import { z } from '#/adapter/form';
|
||||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { MesAutoCodeRuleCode, MesMaintenTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import type { MesWmArrivalNoticeLineApi } from '#/api/mes/wm/arrivalnotice/line'
|
|||
|
||||
import { h, markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode } from '@vben/constants';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
||||
|
|
@ -14,7 +14,6 @@ import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
|||
import { getRangePickerDefaultProps } from '#/utils';
|
||||
import MdItemSelect from '#/views/mes/md/item/components/md-item-select.vue';
|
||||
import MdVendorSelect from '#/views/mes/md/vendor/components/md-vendor-select.vue';
|
||||
import { MesAutoCodeRuleCode } from '#/views/mes/utils/constants';
|
||||
|
||||
/** 表单类型 */
|
||||
export type FormType = 'create' | 'detail' | 'update';
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesWmArrivalNoticeApi } from '#/api/mes/wm/arrivalnotice';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { MesWmArrivalNoticeStatusEnum } from '@vben/constants';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
|
@ -14,7 +15,6 @@ import {
|
|||
getArrivalNoticePage,
|
||||
} from '#/api/mes/wm/arrivalnotice';
|
||||
import { $t } from '#/locales';
|
||||
import { MesWmArrivalNoticeStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import Form from './modules/form.vue';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import type { MesWmArrivalNoticeApi } from '#/api/mes/wm/arrivalnotice';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { MesWmArrivalNoticeStatusEnum } from '@vben/constants';
|
||||
|
||||
import { Button, Divider, message, Popconfirm } from 'ant-design-vue';
|
||||
|
||||
|
|
@ -17,7 +18,6 @@ import {
|
|||
updateArrivalNotice,
|
||||
} from '#/api/mes/wm/arrivalnotice';
|
||||
import { $t } from '#/locales';
|
||||
import { MesWmArrivalNoticeStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
import LineList from './line-list.vue';
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import type { MesWmBarcodeApi } from '#/api/mes/wm/barcode';
|
|||
import type { MesWmBarcodeConfigApi } from '#/api/mes/wm/barcode/config';
|
||||
import type { DescriptionItemSchema } from '#/components/description';
|
||||
|
||||
import { h, markRaw } from 'vue';
|
||||
import { BarcodeBizTypeEnum, DICT_TYPE, h, markRaw } from 'vue';
|
||||
|
||||
import { CommonStatusEnum, DICT_TYPE } from '@vben/constants';
|
||||
import { CommonStatusEnum } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
import { formatDateTime } from '@vben/utils';
|
||||
|
||||
|
|
@ -22,7 +22,6 @@ import MdWorkstationSelect from '#/views/mes/md/workstation/components/md-workst
|
|||
import { ProCardSelect } from '#/views/mes/pro/card/components';
|
||||
import ProWorkOrderSelect from '#/views/mes/pro/workorder/components/pro-work-order-select.vue';
|
||||
import TmToolSelect from '#/views/mes/tm/tool/components/tm-tool-select.vue';
|
||||
import { BarcodeBizTypeEnum } from '#/views/mes/utils/constants';
|
||||
import { WmBatchSelect } from '#/views/mes/wm/batch/components';
|
||||
import { UserSelect } from '#/views/system/user/components';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<script lang="ts" setup>
|
||||
import type { MesWmBarcodeApi } from '#/api/mes/wm/barcode';
|
||||
|
||||
import { computed, ref } from 'vue';
|
||||
import { BarcodeBizTypeEnum, computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { CommonStatusEnum } from '@vben/constants';
|
||||
|
|
@ -17,7 +17,6 @@ import {
|
|||
import { getWarehouseArea } from '#/api/mes/wm/warehouse/area';
|
||||
import { getWarehouseLocation } from '#/api/mes/wm/warehouse/location';
|
||||
import { $t } from '#/locales';
|
||||
import { BarcodeBizTypeEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import type { MesWmItemReceiptLineApi } from '#/api/mes/wm/itemreceipt/line';
|
|||
|
||||
import { h, markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode, MesWmArrivalNoticeStatusEnum } from '@vben/constants';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
||||
|
|
@ -16,10 +16,6 @@ import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
|||
import { getRangePickerDefaultProps } from '#/utils';
|
||||
import MdItemSelect from '#/views/mes/md/item/components/md-item-select.vue';
|
||||
import MdVendorSelect from '#/views/mes/md/vendor/components/md-vendor-select.vue';
|
||||
import {
|
||||
MesAutoCodeRuleCode,
|
||||
MesWmArrivalNoticeStatusEnum,
|
||||
} from '#/views/mes/utils/constants';
|
||||
import {
|
||||
WmArrivalNoticeLineSelect,
|
||||
WmArrivalNoticeSelect,
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesWmItemReceiptApi } from '#/api/mes/wm/itemreceipt';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { MesWmItemReceiptStatusEnum } from '@vben/constants';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
|
@ -15,7 +16,6 @@ import {
|
|||
getItemReceiptPage,
|
||||
} from '#/api/mes/wm/itemreceipt';
|
||||
import { $t } from '#/locales';
|
||||
import { MesWmItemReceiptStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import Form from './modules/form.vue';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import type { MesWmItemReceiptApi } from '#/api/mes/wm/itemreceipt';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { confirm, useVbenModal } from '@vben/common-ui';
|
||||
import { MesWmItemReceiptStatusEnum } from '@vben/constants';
|
||||
|
||||
import { Button, Divider, message, Popconfirm } from 'ant-design-vue';
|
||||
|
||||
|
|
@ -19,7 +20,6 @@ import {
|
|||
updateItemReceipt,
|
||||
} from '#/api/mes/wm/itemreceipt';
|
||||
import { $t } from '#/locales';
|
||||
import { MesWmItemReceiptStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
import LineList from './line-list.vue';
|
||||
|
|
|
|||
|
|
@ -6,14 +6,13 @@ import type { MesWmMiscIssueLineApi } from '#/api/mes/wm/miscissue/line';
|
|||
|
||||
import { h, markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
||||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { getRangePickerDefaultProps } from '#/utils';
|
||||
import { MesAutoCodeRuleCode } from '#/views/mes/utils/constants';
|
||||
import { WmMaterialStockSelect } from '#/views/mes/wm/materialstock/components';
|
||||
import {
|
||||
WmWarehouseAreaSelect,
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { MesWmMiscIssueApi } from '#/api/mes/wm/miscissue';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { MesWmMiscIssueStatusEnum } from '@vben/constants';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
|
@ -15,7 +16,6 @@ import {
|
|||
getMiscIssuePage,
|
||||
} from '#/api/mes/wm/miscissue';
|
||||
import { $t } from '#/locales';
|
||||
import { MesWmMiscIssueStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import Form from './modules/form.vue';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import type { MesWmMiscIssueApi } from '#/api/mes/wm/miscissue';
|
|||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { MesWmMiscIssueStatusEnum } from '@vben/constants';
|
||||
|
||||
import { Button, Divider, message, Popconfirm } from 'ant-design-vue';
|
||||
|
||||
|
|
@ -18,7 +19,6 @@ import {
|
|||
updateMiscIssue,
|
||||
} from '#/api/mes/wm/miscissue';
|
||||
import { $t } from '#/locales';
|
||||
import { MesWmMiscIssueStatusEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
import { useFormSchema } from '../data';
|
||||
import LineList from './line-list.vue';
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import type { MesWmMiscReceiptLineApi } from '#/api/mes/wm/miscreceipt/line';
|
|||
|
||||
import { h, markRaw } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, MesAutoCodeRuleCode } from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
|
@ -13,7 +13,6 @@ import { Button } from 'ant-design-vue';
|
|||
import { generateAutoCode } from '#/api/mes/md/autocode/record';
|
||||
import { getRangePickerDefaultProps } from '#/utils';
|
||||
import { MdItemSelect } from '#/views/mes/md/item/components';
|
||||
import { MesAutoCodeRuleCode } from '#/views/mes/utils/constants';
|
||||
import {
|
||||
WmWarehouseAreaSelect,
|
||||
WmWarehouseLocationSelect,
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue