From c80531bddec86d6a84c306354dfebf8ed4ad8564 Mon Sep 17 00:00:00 2001 From: zzh <1368735060@qq.com> Date: Mon, 9 Nov 2026 09:48:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8F=90=E4=BA=A4=E4=BA=BA=E8=A7=86?= =?UTF-8?q?=E8=A7=92=E7=90=86=E9=A1=BA=E4=BB=B7=E6=A0=BC=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=E7=AD=89=E5=BE=85=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 去掉弹窗假第三步;提交后在卖价页用待审批/失败条承接进度与操作。 Co-authored-by: Cursor --- src/locale/en-US.ts | 31 ++-- src/locale/zh-CN.ts | 30 ++-- src/views/channel/salesProducts/index.vue | 172 ++++++++++++++++------ 3 files changed, 159 insertions(+), 74 deletions(-) diff --git a/src/locale/en-US.ts b/src/locale/en-US.ts index ee70574..eb3b1bb 100644 --- a/src/locale/en-US.ts +++ b/src/locale/en-US.ts @@ -5476,29 +5476,22 @@ export default { 'channel.salesProducts.publish.priceFlowTitle': 'Price publish', 'channel.salesProducts.publish.step1Title': 'AI risk analysis', 'channel.salesProducts.publish.step1Desc': 'Review diffs and generate a risk report', - 'channel.salesProducts.publish.step1Hint': 'Finish AI analysis on the left flow card and adopt the report before formal publish.', + 'channel.salesProducts.publish.step1Hint': + 'Finish AI analysis and adopt the report, then continue to step 02.', 'channel.salesProducts.publish.step2Title': 'Formal publish', 'channel.salesProducts.publish.step2TitleApproval': 'Submit for approval', 'channel.salesProducts.publish.step2Desc': 'Confirm report, notes, and effective time', 'channel.salesProducts.publish.step2DescApproval': - 'Confirm report and notes; takes effect after approval', + 'Confirm report and notes, then wait on the price page after the modal closes', 'channel.salesProducts.publish.step2LockedHint': 'Unlocks after AI risk analysis is adopted.', 'channel.salesProducts.publish.step2ReadyHint': 'Analysis done — continue here to add notes and publish.', 'channel.salesProducts.publish.step2ReadyHintApproval': - 'Analysis done — continue here to add notes and submit for approval; publishes after approval.', - 'channel.salesProducts.publish.step3Title': 'Go live', - 'channel.salesProducts.publish.step3TitleApproval': 'Approval & go live', - 'channel.salesProducts.publish.step3Desc': 'Takes effect right after submit', - 'channel.salesProducts.publish.step3DescApproval': 'Publishes automatically after approval', - 'channel.salesProducts.publish.step3Hint': 'No action here; goes live when step 02 succeeds.', - 'channel.salesProducts.publish.step3HintApproval': - 'No action in this modal; after submit the page shows pending approval, then auto-publishes.', + 'Analysis done. After submit the modal closes — track approval on the price page; publishes when approved.', 'channel.salesProducts.publish.flowStatus.todo': 'Pending', 'channel.salesProducts.publish.flowStatus.doing': 'In progress', 'channel.salesProducts.publish.flowStatus.done': 'Done', 'channel.salesProducts.publish.flowStatus.locked': 'Locked', 'channel.salesProducts.publish.flowStatus.ready': 'Ready', - 'channel.salesProducts.publish.flowStatus.follow': 'Next', 'channel.salesProducts.publish.flowRisk': 'Risk', 'channel.salesProducts.publish.startAi': 'Start AI analysis', 'channel.salesProducts.publish.gotoStep2': 'Continue to publish', @@ -5518,8 +5511,20 @@ export default { 'channel.salesProducts.publish.effectiveTime': 'Effective time', 'channel.salesProducts.publish.effectiveTimeHint': 'Leave empty for immediate effect', 'channel.salesProducts.publish.success': 'Published successfully', - 'channel.salesProducts.publish.pendingApproval': 'Submitted for approval ({no}); takes effect after approval', - 'channel.salesProducts.publish.pendingApprovalFallback': 'Submitted for approval; takes effect after approval', + 'channel.salesProducts.publish.pendingApproval': 'Submitted — wait for approval on this page', + 'channel.salesProducts.publish.pendingApprovalFallback': 'Submitted — wait for approval on this page', + 'channel.salesProducts.publish.waitingBannerTitle': 'Price publish pending approval', + 'channel.salesProducts.publish.waitingBannerDesc': + 'No. {no}. Auto-publishes when approved; view progress or withdraw.', + 'channel.salesProducts.publish.waitingBannerDescNoNo': + 'Submitted for approval; auto-publishes when approved. View progress or withdraw.', + 'channel.salesProducts.publish.viewProgress': 'View progress', + 'channel.salesProducts.publish.withdrawHint': 'Withdraw', + 'channel.salesProducts.publish.failedBannerTitle': 'Price publish approval not passed', + 'channel.salesProducts.publish.failedBannerDesc': + '{status} ({no}). Review details, fix if needed, then resubmit.', + 'channel.salesProducts.publish.failedBannerDescNoNo': + '{status}. Review details, fix if needed, then resubmit.', 'channel.salesProducts.publish.fail': 'Publish failed', 'channel.salesProducts.publish.status.synced': 'Content matches the live cache; no republish needed', 'channel.salesProducts.publish.status.changed': '{count} change(s) detected; confirm to update the live cache', diff --git a/src/locale/zh-CN.ts b/src/locale/zh-CN.ts index 64c2353..b832174 100644 --- a/src/locale/zh-CN.ts +++ b/src/locale/zh-CN.ts @@ -5498,29 +5498,20 @@ export default { 'channel.salesProducts.publish.priceFlowTitle': '价格发布', 'channel.salesProducts.publish.step1Title': 'AI 风险分析', 'channel.salesProducts.publish.step1Desc': '核对差异并生成分析报告', - 'channel.salesProducts.publish.step1Hint': - '请先完成 AI 分析并采用报告,再进入步骤 02 提交;步骤 03 为生效说明(启用审批时需通过后落库)。', + 'channel.salesProducts.publish.step1Hint': '请先完成 AI 分析并采用报告,再进入步骤 02 提交。', 'channel.salesProducts.publish.step2Title': '正式发布', 'channel.salesProducts.publish.step2TitleApproval': '提交审批', 'channel.salesProducts.publish.step2Desc': '确认报告、备注与生效时间', - 'channel.salesProducts.publish.step2DescApproval': '确认报告与备注,提交后待审批通过生效', + 'channel.salesProducts.publish.step2DescApproval': '确认报告与备注后提交,关闭弹窗后在卖价页等待结果', 'channel.salesProducts.publish.step2LockedHint': '需先完成「AI 风险分析」并采用报告后解锁。', 'channel.salesProducts.publish.step2ReadyHint': '分析已完成,可进入本步骤填写备注并正式发布。', 'channel.salesProducts.publish.step2ReadyHintApproval': - '分析已完成,可进入本步骤填写备注并提交审批;通过后自动发布生效。', - 'channel.salesProducts.publish.step3Title': '发布生效', - 'channel.salesProducts.publish.step3TitleApproval': '审批生效', - 'channel.salesProducts.publish.step3Desc': '提交后立即写入线上版本', - 'channel.salesProducts.publish.step3DescApproval': '审批人通过后自动落发布记录', - 'channel.salesProducts.publish.step3Hint': '本步无需操作;步骤 02 提交成功后即生效。', - 'channel.salesProducts.publish.step3HintApproval': - '本步无需在弹窗操作;提交后页头显示待审批,通过后自动发布。', + '分析已完成。提交后弹窗关闭,请在卖价页查看审批进度;通过后自动发布。', 'channel.salesProducts.publish.flowStatus.todo': '待开始', 'channel.salesProducts.publish.flowStatus.doing': '进行中', 'channel.salesProducts.publish.flowStatus.done': '已完成', 'channel.salesProducts.publish.flowStatus.locked': '未解锁', 'channel.salesProducts.publish.flowStatus.ready': '可进入', - 'channel.salesProducts.publish.flowStatus.follow': '后续', 'channel.salesProducts.publish.flowRisk': '风险结论', 'channel.salesProducts.publish.startAi': '开始 AI 分析', 'channel.salesProducts.publish.gotoStep2': '进入正式发布', @@ -5540,8 +5531,19 @@ export default { 'channel.salesProducts.publish.effectiveTime': '生效时间', 'channel.salesProducts.publish.effectiveTimeHint': '不选默认立即生效', 'channel.salesProducts.publish.success': '发布成功', - 'channel.salesProducts.publish.pendingApproval': '已提交审批({no}),通过后生效', - 'channel.salesProducts.publish.pendingApprovalFallback': '已提交审批,通过后生效', + 'channel.salesProducts.publish.pendingApproval': '已提交,请在本页等待审批', + 'channel.salesProducts.publish.pendingApprovalFallback': '已提交,请在本页等待审批', + 'channel.salesProducts.publish.waitingBannerTitle': '卖价发布审批中', + 'channel.salesProducts.publish.waitingBannerDesc': + '单号 {no}。审批通过后自动发布生效;可查看进度或撤回。', + 'channel.salesProducts.publish.waitingBannerDescNoNo': + '已提交审批,通过后自动发布生效;可查看进度或撤回。', + 'channel.salesProducts.publish.viewProgress': '查看进度', + 'channel.salesProducts.publish.withdrawHint': '撤回', + 'channel.salesProducts.publish.failedBannerTitle': '卖价发布审批未通过', + 'channel.salesProducts.publish.failedBannerDesc': + '{status}({no})。可查看详情后修改再重新提交。', + 'channel.salesProducts.publish.failedBannerDescNoNo': '{status}。可查看详情后修改再重新提交。', 'channel.salesProducts.publish.fail': '发布失败', 'channel.salesProducts.publish.status.synced': '当前内容与线上一致,无需重复发布', 'channel.salesProducts.publish.status.changed': '检测到 {count} 处变更,确认后将更新线上缓存', diff --git a/src/views/channel/salesProducts/index.vue b/src/views/channel/salesProducts/index.vue index 1f78841..90b8283 100644 --- a/src/views/channel/salesProducts/index.vue +++ b/src/views/channel/salesProducts/index.vue @@ -2039,21 +2039,6 @@ ? t('channel.salesProducts.publish.finalConfirmHighRiskApproval') : t('channel.salesProducts.publish.finalConfirmHighRisk'), ); - const pricePublishStep3Title = computed(() => - priceApprovalRequired.value - ? t('channel.salesProducts.publish.step3TitleApproval') - : t('channel.salesProducts.publish.step3Title'), - ); - const pricePublishStep3Desc = computed(() => - priceApprovalRequired.value - ? t('channel.salesProducts.publish.step3DescApproval') - : t('channel.salesProducts.publish.step3Desc'), - ); - const pricePublishStep3Hint = computed(() => - priceApprovalRequired.value - ? t('channel.salesProducts.publish.step3HintApproval') - : t('channel.salesProducts.publish.step3Hint'), - ); const publishDiffStatus = computed(() => { if (!publishHasOnlineSnapshot.value) return 'first'; @@ -2306,7 +2291,7 @@ const pricePublishAiSummary = ref(''); const pricePublishAiPendingFingerprint = ref(''); const pricePublishAiSkipped = ref(false); - /** 价格发布:1=AI分析 2=提交;流程卡另展示 03 生效(审批/直发) */ + /** 价格发布两步:1=AI分析 2=提交(审批或直发);等待在卖价页承接 */ const pricePublishStep = ref<1 | 2>(1); const pricePublishSubmitting = ref(false); const pricePublishShowRawJson = ref(false); @@ -4793,6 +4778,81 @@