feat(mes): 移除多余 defineOptions
parent
c8ce1a8911
commit
2a97bed546
|
|
@ -11,8 +11,6 @@ import {
|
|||
} from '#/api/mes/md/item/batchConfig';
|
||||
import { MesItemOrProductEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
defineOptions({ name: 'MesMdItemBatchConfigForm' });
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
formType?: string;
|
||||
|
|
|
|||
|
|
@ -20,8 +20,6 @@ import { $t } from '#/locales';
|
|||
import { MdItemSelectDialog } from '../components';
|
||||
import { useProductBomGridColumns } from '../data';
|
||||
|
||||
defineOptions({ name: 'MesMdProductBomForm' });
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
formType?: string;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
<script lang="ts" setup>
|
||||
import ProductMediaList from './product-media-list.vue';
|
||||
|
||||
defineOptions({ name: 'MesMdProductSipForm' });
|
||||
|
||||
defineProps<{
|
||||
formType?: string;
|
||||
itemId: number;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
<script lang="ts" setup>
|
||||
import ProductMediaList from './product-media-list.vue';
|
||||
|
||||
defineOptions({ name: 'MesMdProductSopForm' });
|
||||
|
||||
defineProps<{
|
||||
formType?: string;
|
||||
itemId: number;
|
||||
|
|
|
|||
|
|
@ -24,12 +24,12 @@ const formData = ref<MesMdVendorApi.Vendor>();
|
|||
|
||||
const isDetail = computed(() => formMode.value === 'detail'); // 是否查看模式
|
||||
const getTitle = computed(() => {
|
||||
const titles: Record<FormMode, string> = {
|
||||
create: '新增供应商',
|
||||
update: '修改供应商',
|
||||
detail: '查看供应商',
|
||||
};
|
||||
return titles[formMode.value];
|
||||
if (formMode.value === 'detail') {
|
||||
return $t('ui.actionTitle.view', ['供应商']);
|
||||
}
|
||||
return formMode.value === 'update'
|
||||
? $t('ui.actionTitle.edit', ['供应商'])
|
||||
: $t('ui.actionTitle.create', ['供应商']);
|
||||
});
|
||||
|
||||
const [Form, formApi] = useVbenForm({
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@ import {
|
|||
} from '#/api/mes/md/item/batchConfig';
|
||||
import { MesItemOrProductEnum } from '#/views/mes/utils/constants';
|
||||
|
||||
defineOptions({ name: 'MesMdItemBatchConfigForm' });
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
formType?: string;
|
||||
|
|
|
|||
|
|
@ -20,8 +20,6 @@ import { $t } from '#/locales';
|
|||
import { MdItemSelectDialog } from '../components';
|
||||
import { useProductBomGridColumns } from '../data';
|
||||
|
||||
defineOptions({ name: 'MesMdProductBomForm' });
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
formType?: string;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
<script lang="ts" setup>
|
||||
import ProductMediaList from './product-media-list.vue';
|
||||
|
||||
defineOptions({ name: 'MesMdProductSipForm' });
|
||||
|
||||
defineProps<{
|
||||
formType?: string;
|
||||
itemId: number;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
<script lang="ts" setup>
|
||||
import ProductMediaList from './product-media-list.vue';
|
||||
|
||||
defineOptions({ name: 'MesMdProductSopForm' });
|
||||
|
||||
defineProps<{
|
||||
formType?: string;
|
||||
itemId: number;
|
||||
|
|
|
|||
Loading…
Reference in New Issue