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