diff --git a/apps/web-antd/src/views/mall/product/spu/modules/form.vue b/apps/web-antd/src/views/mall/product/spu/modules/form.vue index 9c24e85aa..d1b1a1508 100644 --- a/apps/web-antd/src/views/mall/product/spu/modules/form.vue +++ b/apps/web-antd/src/views/mall/product/spu/modules/form.vue @@ -6,10 +6,10 @@ import type { MallSpuApi } from '#/api/mall/product/spu'; import { onMounted, ref, watch } from 'vue'; import { useRoute } from 'vue-router'; -import { ContentWrap, Page, useVbenModal } from '@vben/common-ui'; +import { Page, useVbenModal } from '@vben/common-ui'; import { convertToInteger, floatToFixed2, formatToFraction } from '@vben/utils'; -import { Button, message, Tabs } from 'ant-design-vue'; +import { Button, Card, message } from 'ant-design-vue'; import { useVbenForm } from '#/adapter/form'; import { createSpu, getSpu, updateSpu } from '#/api/mall/product/spu'; @@ -29,6 +29,33 @@ import SkuList from './sku-list.vue'; const spuId = ref(); const { params, name } = useRoute(); const activeTabName = ref('info'); + +function onTabChange(key: string) { + activeTabName.value = key; +} + +const tabList = ref([ + { + key: 'info', + tab: '基础设置', + }, + { + key: 'sku', + tab: '价格库存', + }, + { + key: 'delivery', + tab: '物流设置', + }, + { + key: 'description', + tab: '商品详情', + }, + { + key: 'other', + tab: '其它设置', + }, +]); // spu 表单数据 const formData = ref({ name: '', // 商品名称 @@ -317,65 +344,62 @@ onMounted(async () => { - -