From 641520eaa8863a43fbfdf9407997f4548c31b490 Mon Sep 17 00:00:00 2001 From: ah-max150 Date: Mon, 19 Oct 2026 10:11:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=91=E5=B8=83=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=8F=B0=E7=82=B9=E5=87=BB=E6=A0=87=E9=A2=98=E6=A8=A1=E6=80=81?= =?UTF-8?q?=E6=A1=86=E5=B1=95=E7=A4=BA=E7=B3=BB=E7=BB=9F=E8=8D=89=E7=A8=BF?= =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../publish/PddPublishDraftDetailModal.vue | 522 ++++++++++++++++++ .../views/channel/pdd/goods/publish/index.vue | 30 +- 2 files changed, 551 insertions(+), 1 deletion(-) create mode 100644 apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/PddPublishDraftDetailModal.vue 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 @@ + + + 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: '暂无系统草稿' }" >