feat: 接入拼多多商品 PMC 消息并软标平台删除

This commit is contained in:
2026-09-05 01:25:06 +08:00
parent 717e108685
commit 4c053702e2
38 changed files with 1283 additions and 4 deletions
@@ -42,6 +42,8 @@ export namespace PddGoodsVO {
thumbUrl?: string;
isMoreSku?: number;
isOnsale?: number;
/** 平台是否已删除 0否 1是 */
isPlatformDeleted?: number;
pddCreatedAt?: string;
lastSyncTime?: string;
createTime?: string;
@@ -124,6 +124,12 @@ defineExpose({ open, close });
{{ detail.goodsName }}
</div>
<div class="mt-2 flex flex-wrap gap-2">
<Tag
v-if="detail.isPlatformDeleted === 1"
color="error"
>
平台已删
</Tag>
<Tag :color="detail.isOnsale === 1 ? 'success' : 'default'">
{{ detail.isOnsale === 1 ? '在架' : '下架' }}
</Tag>
@@ -348,9 +348,20 @@ onMounted(async () => {
</template>
<template #onsale="{ row }: { row: PddGoodsVO.Info }">
<Tag :color="row.isOnsale === 1 ? 'success' : 'default'">
{{ row.isOnsale === 1 ? '在架' : '下架' }}
</Tag>
<div class="flex flex-wrap gap-1">
<Tag
v-if="row.isPlatformDeleted === 1"
color="error"
>
平台已删
</Tag>
<Tag
v-else
:color="row.isOnsale === 1 ? 'success' : 'default'"
>
{{ row.isOnsale === 1 ? '在架' : '下架' }}
</Tag>
</div>
</template>
<template #moreSku="{ row }: { row: PddGoodsVO.Info }">