去掉弹窗假第三步;提交后在卖价页用待审批/失败条承接进度与操作。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
80ee26a5d2
commit
c80531bdde
@ -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',
|
||||
|
||||
@ -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} 处变更,确认后将更新线上缓存',
|
||||
|
||||
@ -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 @@
|
||||
<template v-else>
|
||||
<!-- 产品卖价:切走不卸载,避免回来空表再等接口 -->
|
||||
<div v-show="activeTab === 'price'" class="price-section">
|
||||
<div
|
||||
v-if="priceApprovalPending"
|
||||
class="price-approval-banner is-waiting"
|
||||
>
|
||||
<div class="price-approval-banner-main">
|
||||
<div class="price-approval-banner-title">
|
||||
{{ t('channel.salesProducts.publish.waitingBannerTitle') }}
|
||||
</div>
|
||||
<div class="price-approval-banner-desc">
|
||||
{{
|
||||
priceApprovalInstanceNo
|
||||
? t('channel.salesProducts.publish.waitingBannerDesc', {
|
||||
no: priceApprovalInstanceNo,
|
||||
})
|
||||
: t('channel.salesProducts.publish.waitingBannerDescNoNo')
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="price-approval-banner-actions">
|
||||
<a-button type="primary" size="small" @click="openPriceApprovalDrawer">
|
||||
{{ t('channel.salesProducts.publish.viewProgress') }}
|
||||
</a-button>
|
||||
<a-button size="small" @click="openPriceApprovalDrawer">
|
||||
{{ t('channel.salesProducts.publish.withdrawHint') }}
|
||||
</a-button>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-else-if="priceApprovalFailed"
|
||||
class="price-approval-banner is-failed"
|
||||
>
|
||||
<div class="price-approval-banner-main">
|
||||
<div class="price-approval-banner-title">
|
||||
{{ t('channel.salesProducts.publish.failedBannerTitle') }}
|
||||
</div>
|
||||
<div class="price-approval-banner-desc">
|
||||
{{
|
||||
priceApprovalInstanceNo
|
||||
? t('channel.salesProducts.publish.failedBannerDesc', {
|
||||
status: priceApprovalStatusName || t('channel.salesProducts.publish.badge.failed'),
|
||||
no: priceApprovalInstanceNo,
|
||||
})
|
||||
: t('channel.salesProducts.publish.failedBannerDescNoNo', {
|
||||
status: priceApprovalStatusName || t('channel.salesProducts.publish.badge.failed'),
|
||||
})
|
||||
}}
|
||||
<template v-if="priceApprovalComment">
|
||||
— {{ priceApprovalComment }}
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
<div class="price-approval-banner-actions">
|
||||
<a-button
|
||||
v-if="priceApprovalExecuteFailed"
|
||||
type="primary"
|
||||
size="small"
|
||||
:loading="priceApprovalRetryLoading"
|
||||
@click="retryPriceApprovalExecute"
|
||||
>
|
||||
{{ t('channel.salesProducts.actions.retryPriceApprovalExecute') }}
|
||||
</a-button>
|
||||
<a-button
|
||||
v-else
|
||||
type="primary"
|
||||
size="small"
|
||||
:loading="publishModalLoading"
|
||||
@click="handlePublishPrice"
|
||||
>
|
||||
{{ t('channel.salesProducts.actions.resubmitPriceApproval') }}
|
||||
</a-button>
|
||||
<a-button size="small" @click="openPriceApprovalDrawer">
|
||||
{{ t('channel.salesProducts.actions.viewPriceApproval') }}
|
||||
</a-button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="price-header">
|
||||
<div class="version-info">
|
||||
{{ t('channel.salesProducts.price.effectiveVersion', { version: effectiveVersion }) }}
|
||||
@ -6188,11 +6248,7 @@
|
||||
>
|
||||
<div class="release-content slim">
|
||||
<!-- 价格:流程卡片 -->
|
||||
<div
|
||||
v-if="isPricePublishFlow && publishDiffLength > 0"
|
||||
class="publish-flow"
|
||||
:class="{ 'is-three-steps': true }"
|
||||
>
|
||||
<div v-if="isPricePublishFlow && publishDiffLength > 0" class="publish-flow">
|
||||
<div
|
||||
class="flow-card"
|
||||
:class="{
|
||||
@ -6325,27 +6381,6 @@
|
||||
</a-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flow-connector" aria-hidden="true">
|
||||
<span class="flow-connector-line" />
|
||||
<span class="flow-connector-arrow">›</span>
|
||||
</div>
|
||||
|
||||
<div class="flow-card is-locked is-follow">
|
||||
<div class="flow-card-head">
|
||||
<span class="flow-badge">03</span>
|
||||
<div class="flow-card-titles">
|
||||
<div class="flow-card-title">{{ pricePublishStep3Title }}</div>
|
||||
<div class="flow-card-desc">{{ pricePublishStep3Desc }}</div>
|
||||
</div>
|
||||
<a-tag size="small" color="gray">
|
||||
{{ t('channel.salesProducts.publish.flowStatus.follow') }}
|
||||
</a-tag>
|
||||
</div>
|
||||
<div class="flow-card-body">
|
||||
<p class="flow-card-hint">{{ pricePublishStep3Hint }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="publish-scroll">
|
||||
@ -6923,6 +6958,53 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.price-approval-banner {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
margin-bottom: 12px;
|
||||
padding: 12px 14px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid var(--color-border-2);
|
||||
|
||||
&.is-waiting {
|
||||
background: #e8f7f7;
|
||||
border-color: color-mix(in srgb, var(--app-primary-color, #1d7281) 35%, #fff);
|
||||
}
|
||||
|
||||
&.is-failed {
|
||||
background: #fff7f0;
|
||||
border-color: #ffd0a8;
|
||||
}
|
||||
}
|
||||
|
||||
.price-approval-banner-main {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.price-approval-banner-title {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--color-text-1);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.price-approval-banner-desc {
|
||||
margin-top: 4px;
|
||||
font-size: 13px;
|
||||
color: var(--color-text-2);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.price-approval-banner-actions {
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.customer-guide-section {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
@ -8086,14 +8168,10 @@
|
||||
|
||||
.publish-flow {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 36px 1fr;
|
||||
grid-template-columns: 1fr 48px 1fr;
|
||||
align-items: stretch;
|
||||
gap: 0;
|
||||
flex-shrink: 0;
|
||||
|
||||
&.is-three-steps {
|
||||
grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
.flow-connector {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user