diff --git a/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/editor/PddPublishEditor.vue b/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/editor/PddPublishEditor.vue index da70feb9..12b1957c 100644 --- a/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/editor/PddPublishEditor.vue +++ b/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/editor/PddPublishEditor.vue @@ -390,7 +390,7 @@ function onSkuTableWrapRef(el: HTMLElement | null) {
-
+
渠道店铺 *
@@ -405,7 +405,7 @@ function onSkuTableWrapRef(el: HTMLElement | null) { @search="(kw: string) => loadShops(kw)" />
-
+
叶子类目 * @@ -436,10 +436,12 @@ function onSkuTableWrapRef(el: HTMLElement | null) { />
+
diff --git a/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/editor/composables/use-publish-draft.ts b/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/editor/composables/use-publish-draft.ts index 63c35bd4..ce20b1e0 100644 --- a/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/editor/composables/use-publish-draft.ts +++ b/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/editor/composables/use-publish-draft.ts @@ -18,12 +18,14 @@ import { updatePddPublishDeskDraftApi, } from '#/api/channel/pdd/goods'; -import type { - PersistedUpload, - PublishFormFields, - SpecAxis, - SpecCatalogItem, - SkuRow, +import { + twoPiecesDiscountFromStored, + twoPiecesDiscountToApi, + type PersistedUpload, + type PublishFormFields, + type SpecAxis, + type SpecCatalogItem, + type SkuRow, } from '../types'; type EmitDraft = { @@ -185,9 +187,9 @@ export function usePublishDraft(options: { if ( form.twoPiecesDiscount == null || form.twoPiecesDiscount < 0 || - form.twoPiecesDiscount > 100 + form.twoPiecesDiscount > 10 ) { - message.warning('请填写满两件折扣(0-100,95表示95折)'); + message.warning('请填写正常折扣(0-10,9.5 表示 9.5 折)'); return false; } for (const p of nonSaleProps.value) { @@ -362,7 +364,7 @@ export function usePublishDraft(options: { isPreSale: form.isPreSale, isRefundable: form.isRefundable, secondHand: form.secondHand, - twoPiecesDiscount: form.twoPiecesDiscount, + twoPiecesDiscount: twoPiecesDiscountToApi(form.twoPiecesDiscount), carouselImages: carouselFileIds.map(String), detailImages: detailFileIds.map(String), goodsProperties, @@ -459,7 +461,7 @@ export function usePublishDraft(options: { } if (typeof es.secondHand === 'boolean') form.secondHand = es.secondHand; if (typeof es.twoPiecesDiscount === 'number') { - form.twoPiecesDiscount = es.twoPiecesDiscount; + form.twoPiecesDiscount = twoPiecesDiscountFromStored(es.twoPiecesDiscount); } if ( es.goodsPropValues && diff --git a/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/editor/index.vue b/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/editor/index.vue index 2a7fac0d..2a9c0315 100644 --- a/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/editor/index.vue +++ b/apps/web/apps/web-antd/src/views/channel/pdd/goods/publish/editor/index.vue @@ -60,15 +60,6 @@ function goBack() { >