feat(mes): 优化 md 基础模块的迁移
parent
1afa70bb53
commit
d207e3b82c
|
|
@ -27,8 +27,6 @@ import { useGridColumns, useGridFormSchema } from './data';
|
|||
import Form from './modules/form.vue';
|
||||
import ImportForm from './modules/import-form.vue';
|
||||
|
||||
defineOptions({ name: 'MesMdItem' });
|
||||
|
||||
const selectedItemTypeId = ref<number>(); // 当前选中的物料分类编号
|
||||
|
||||
const [FormModal, formModalApi] = useVbenModal({
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@ import ProductSopForm from './product-sop-form.vue';
|
|||
|
||||
type FormMode = 'create' | 'detail' | 'update';
|
||||
|
||||
defineOptions({ name: 'MesMdItemForm' });
|
||||
|
||||
const emit = defineEmits(['success']);
|
||||
const formMode = ref<FormMode>('create'); // 表单模式
|
||||
const subTabsName = ref('bom'); // 当前子表页签
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@ import { $t } from '#/locales';
|
|||
|
||||
import { useImportFormSchema } from '../data';
|
||||
|
||||
defineOptions({ name: 'MesMdItemImportForm' });
|
||||
|
||||
const emit = defineEmits(['success']);
|
||||
|
||||
const [Form, formApi] = useVbenForm({
|
||||
|
|
|
|||
|
|
@ -15,8 +15,6 @@ import { $t } from '#/locales';
|
|||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import Form from './modules/form.vue';
|
||||
|
||||
defineOptions({ name: 'MesMdItemType' });
|
||||
|
||||
const [FormModal, formModalApi] = useVbenModal({
|
||||
connectedComponent: Form,
|
||||
destroyOnClose: true,
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ import { $t } from '#/locales';
|
|||
|
||||
import { useFormSchema } from '../data';
|
||||
|
||||
defineOptions({ name: 'MesMdItemTypeForm' });
|
||||
|
||||
const emit = defineEmits(['success']);
|
||||
const formData = ref<MesMdItemTypeApi.ItemType>();
|
||||
const getTitle = computed(() => {
|
||||
|
|
|
|||
|
|
@ -22,8 +22,6 @@ import { BarcodeDetail } from '#/views/mes/wm/barcode/components';
|
|||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import Form from './modules/form.vue';
|
||||
|
||||
defineOptions({ name: 'MesMdWorkstation' });
|
||||
|
||||
const barcodeDetailRef = ref<InstanceType<typeof BarcodeDetail>>(); // 条码详情弹窗
|
||||
|
||||
const [FormModal, formModalApi] = useVbenModal({
|
||||
|
|
|
|||
|
|
@ -24,8 +24,6 @@ import WorkerList from './worker-list.vue';
|
|||
|
||||
type FormMode = 'create' | 'detail' | 'update';
|
||||
|
||||
defineOptions({ name: 'MesMdWorkstationForm' });
|
||||
|
||||
const emit = defineEmits(['success']);
|
||||
const formMode = ref<FormMode>('create'); // 表单模式
|
||||
const subTabsName = ref('machine'); // 当前资源页签
|
||||
|
|
|
|||
|
|
@ -20,6 +20,14 @@ export const MesAutoCodeRuleCode = {
|
|||
MD_WORKSHOP_CODE: 'MD_WORKSHOP_CODE',
|
||||
} as const;
|
||||
|
||||
/** MES 编码规则分段类型枚举 */
|
||||
export const MesAutoCodePartTypeEnum = {
|
||||
INPUT: 1,
|
||||
DATE: 2,
|
||||
FIX: 3,
|
||||
SERIAL: 4,
|
||||
} as const;
|
||||
|
||||
/** MES 条码格式枚举 */
|
||||
export enum BarcodeFormatEnum {
|
||||
QR_CODE = 1,
|
||||
|
|
|
|||
|
|
@ -33,8 +33,6 @@ import { useGridColumns, useGridFormSchema } from './data';
|
|||
import Form from './modules/form.vue';
|
||||
import ImportForm from './modules/import-form.vue';
|
||||
|
||||
defineOptions({ name: 'MesMdItem' });
|
||||
|
||||
const selectedItemTypeId = ref<number>(); // 当前选中的物料分类编号
|
||||
|
||||
const [FormModal, formModalApi] = useVbenModal({
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@ import ProductSopForm from './product-sop-form.vue';
|
|||
|
||||
type FormMode = 'create' | 'detail' | 'update';
|
||||
|
||||
defineOptions({ name: 'MesMdItemForm' });
|
||||
|
||||
const emit = defineEmits(['success']);
|
||||
const formMode = ref<FormMode>('create'); // 表单模式
|
||||
const subTabsName = ref('bom'); // 当前子表页签
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@ import { $t } from '#/locales';
|
|||
|
||||
import { useImportFormSchema } from '../data';
|
||||
|
||||
defineOptions({ name: 'MesMdItemImportForm' });
|
||||
|
||||
const emit = defineEmits(['success']);
|
||||
|
||||
const [Form, formApi] = useVbenForm({
|
||||
|
|
|
|||
|
|
@ -15,8 +15,6 @@ import { $t } from '#/locales';
|
|||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import Form from './modules/form.vue';
|
||||
|
||||
defineOptions({ name: 'MesMdItemType' });
|
||||
|
||||
const [FormModal, formModalApi] = useVbenModal({
|
||||
connectedComponent: Form,
|
||||
destroyOnClose: true,
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ import { $t } from '#/locales';
|
|||
|
||||
import { useFormSchema } from '../data';
|
||||
|
||||
defineOptions({ name: 'MesMdItemTypeForm' });
|
||||
|
||||
const emit = defineEmits(['success']);
|
||||
const formData = ref<MesMdItemTypeApi.ItemType>();
|
||||
const getTitle = computed(() => {
|
||||
|
|
|
|||
|
|
@ -22,8 +22,6 @@ import { BarcodeDetail } from '#/views/mes/wm/barcode/components';
|
|||
import { useGridColumns, useGridFormSchema } from './data';
|
||||
import Form from './modules/form.vue';
|
||||
|
||||
defineOptions({ name: 'MesMdWorkstation' });
|
||||
|
||||
const barcodeDetailRef = ref<InstanceType<typeof BarcodeDetail>>(); // 条码详情弹窗
|
||||
|
||||
const [FormModal, formModalApi] = useVbenModal({
|
||||
|
|
|
|||
|
|
@ -24,8 +24,6 @@ import WorkerList from './worker-list.vue';
|
|||
|
||||
type FormMode = 'create' | 'detail' | 'update';
|
||||
|
||||
defineOptions({ name: 'MesMdWorkstationForm' });
|
||||
|
||||
const emit = defineEmits(['success']);
|
||||
const formMode = ref<FormMode>('create'); // 表单模式
|
||||
const subTabsName = ref('machine'); // 当前资源页签
|
||||
|
|
|
|||
|
|
@ -20,6 +20,14 @@ export const MesAutoCodeRuleCode = {
|
|||
MD_WORKSHOP_CODE: 'MD_WORKSHOP_CODE',
|
||||
} as const;
|
||||
|
||||
/** MES 编码规则分段类型枚举 */
|
||||
export const MesAutoCodePartTypeEnum = {
|
||||
INPUT: 1,
|
||||
DATE: 2,
|
||||
FIX: 3,
|
||||
SERIAL: 4,
|
||||
} as const;
|
||||
|
||||
/** MES 条码格式枚举 */
|
||||
export enum BarcodeFormatEnum {
|
||||
QR_CODE = 1,
|
||||
|
|
|
|||
|
|
@ -178,6 +178,9 @@ const IOT_DICT = {
|
|||
/** ========== MES - 制造执行模块 ========== */
|
||||
const MES_DICT = {
|
||||
MES_MD_ITEM_OR_PRODUCT: 'mes_md_item_or_product', // MES 物料/产品标识
|
||||
MES_MD_AUTO_CODE_CYCLE_METHOD: 'mes_md_auto_code_cycle_method', // MES 编码规则循环方式
|
||||
MES_MD_AUTO_CODE_PADDED_METHOD: 'mes_md_auto_code_padded_method', // MES 编码规则补齐方式
|
||||
MES_MD_AUTO_CODE_PART_TYPE: 'mes_md_auto_code_part_type', // MES 编码规则分段类型
|
||||
MES_CLIENT_TYPE: 'mes_client_type', // MES 客户类型
|
||||
MES_VENDOR_LEVEL: 'mes_vendor_level', // MES 供应商级别
|
||||
MES_WM_BARCODE_BIZ_TYPE: 'mes_wm_barcode_biz_type', // MES 条码业务类型
|
||||
|
|
|
|||
Loading…
Reference in New Issue