diff --git a/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/PddPublishDraftDetailModal.vue b/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/PddPublishDraftDetailModal.vue new file mode 100644 index 00000000..7d992855 --- /dev/null +++ b/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/PddPublishDraftDetailModal.vue @@ -0,0 +1,522 @@ + + + + + + + + + + {{ statusLabel[draft.status]?.text || draft.status }} + + + + {{ draft.shopName || '未分配' }} + + + {{ parsed.editor.selectedCatPathLabel || '—' }} + + + {{ draft.skuCount ?? parsed.skus.length ?? 0 }} + + + + {{ parsed.hasPublishPayload ? '已生成' : '未生成' }} + + + + {{ draft.pushSuccessCount ?? 0 }} 次 / + {{ draft.pushShopCount ?? 0 }} 店 + + + {{ draft.publishSuccessCount ?? 0 }} 次 / + {{ draft.publishShopCount ?? 0 }} 店 + + + {{ formatPrice(parsed.editor.marketPriceYuan) }} + + + {{ draft.createTime || '—' }} + + + {{ draft.updateTime || '—' }} + + + + {{ parsed.editor.goodsDesc }} + + + + {{ draft.lastError }} + + + + + + 轮播图 + + + + + + 暂无轮播图 + + + + 详情图 + + + + + + 暂无详情图 + + + + SKU 明细 + + + + + — + + + {{ formatPrice(sku.priceYuan) }} + + + {{ formatPrice(sku.multiPriceYuan) }} + + + + + + + diff --git a/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/index.vue b/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/index.vue index e26f0388..57280737 100644 --- a/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/index.vue +++ b/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/index.vue @@ -34,6 +34,8 @@ import { getPddShopPageApi } from '#/api/channel/pdd/shop'; import { PermissionGate } from '#/components/permission'; import PddShopColPage from '#/views/channel/pdd/components/PddShopColPage.vue'; +import PddPublishDraftDetailModal from './PddPublishDraftDetailModal.vue'; + defineOptions({ name: 'PddGoodsPublishDesk' }); const router = useRouter(); @@ -62,6 +64,10 @@ const currentJob = ref(null); const pushingDraftId = ref(null); let jobPollTimer: ReturnType | undefined; +const detailOpen = ref(false); +const detailDraftId = ref(); +const detailPreview = ref(null); + const statusLabel: Record = { EDITING: { text: '编辑中', color: 'default' }, NEED_CHECK: { text: '待校验', color: 'orange' }, @@ -326,6 +332,12 @@ function openEdit(id: number) { }); } +function openDraftDetail(record: PddPublishDeskVO.Draft) { + detailDraftId.value = record.id; + detailPreview.value = record; + detailOpen.value = true; +} + async function removeDraft(id: number) { Modal.confirm({ title: '删除草稿?', @@ -544,7 +556,16 @@ onUnmounted(() => stopJobPoll()); :locale="{ emptyText: '暂无系统草稿' }" > - + + + {{ record.title }} + + + stopJobPoll()); + +