01 AI → 02 提交 → 03 审批/直发生效说明,避免只见两步。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
88ae1d7ce6
commit
80ee26a5d2
@ -5486,11 +5486,19 @@ export default {
|
|||||||
'channel.salesProducts.publish.step2ReadyHint': 'Analysis done — continue here to add notes and publish.',
|
'channel.salesProducts.publish.step2ReadyHint': 'Analysis done — continue here to add notes and publish.',
|
||||||
'channel.salesProducts.publish.step2ReadyHintApproval':
|
'channel.salesProducts.publish.step2ReadyHintApproval':
|
||||||
'Analysis done — continue here to add notes and submit for approval; publishes after approval.',
|
'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.',
|
||||||
'channel.salesProducts.publish.flowStatus.todo': 'Pending',
|
'channel.salesProducts.publish.flowStatus.todo': 'Pending',
|
||||||
'channel.salesProducts.publish.flowStatus.doing': 'In progress',
|
'channel.salesProducts.publish.flowStatus.doing': 'In progress',
|
||||||
'channel.salesProducts.publish.flowStatus.done': 'Done',
|
'channel.salesProducts.publish.flowStatus.done': 'Done',
|
||||||
'channel.salesProducts.publish.flowStatus.locked': 'Locked',
|
'channel.salesProducts.publish.flowStatus.locked': 'Locked',
|
||||||
'channel.salesProducts.publish.flowStatus.ready': 'Ready',
|
'channel.salesProducts.publish.flowStatus.ready': 'Ready',
|
||||||
|
'channel.salesProducts.publish.flowStatus.follow': 'Next',
|
||||||
'channel.salesProducts.publish.flowRisk': 'Risk',
|
'channel.salesProducts.publish.flowRisk': 'Risk',
|
||||||
'channel.salesProducts.publish.startAi': 'Start AI analysis',
|
'channel.salesProducts.publish.startAi': 'Start AI analysis',
|
||||||
'channel.salesProducts.publish.gotoStep2': 'Continue to publish',
|
'channel.salesProducts.publish.gotoStep2': 'Continue to publish',
|
||||||
|
|||||||
@ -5498,7 +5498,8 @@ export default {
|
|||||||
'channel.salesProducts.publish.priceFlowTitle': '价格发布',
|
'channel.salesProducts.publish.priceFlowTitle': '价格发布',
|
||||||
'channel.salesProducts.publish.step1Title': 'AI 风险分析',
|
'channel.salesProducts.publish.step1Title': 'AI 风险分析',
|
||||||
'channel.salesProducts.publish.step1Desc': '核对差异并生成分析报告',
|
'channel.salesProducts.publish.step1Desc': '核对差异并生成分析报告',
|
||||||
'channel.salesProducts.publish.step1Hint': '请先在左侧流程卡完成 AI 分析并采用报告,再进入正式发布。',
|
'channel.salesProducts.publish.step1Hint':
|
||||||
|
'请先完成 AI 分析并采用报告,再进入步骤 02 提交;步骤 03 为生效说明(启用审批时需通过后落库)。',
|
||||||
'channel.salesProducts.publish.step2Title': '正式发布',
|
'channel.salesProducts.publish.step2Title': '正式发布',
|
||||||
'channel.salesProducts.publish.step2TitleApproval': '提交审批',
|
'channel.salesProducts.publish.step2TitleApproval': '提交审批',
|
||||||
'channel.salesProducts.publish.step2Desc': '确认报告、备注与生效时间',
|
'channel.salesProducts.publish.step2Desc': '确认报告、备注与生效时间',
|
||||||
@ -5507,11 +5508,19 @@ export default {
|
|||||||
'channel.salesProducts.publish.step2ReadyHint': '分析已完成,可进入本步骤填写备注并正式发布。',
|
'channel.salesProducts.publish.step2ReadyHint': '分析已完成,可进入本步骤填写备注并正式发布。',
|
||||||
'channel.salesProducts.publish.step2ReadyHintApproval':
|
'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.todo': '待开始',
|
||||||
'channel.salesProducts.publish.flowStatus.doing': '进行中',
|
'channel.salesProducts.publish.flowStatus.doing': '进行中',
|
||||||
'channel.salesProducts.publish.flowStatus.done': '已完成',
|
'channel.salesProducts.publish.flowStatus.done': '已完成',
|
||||||
'channel.salesProducts.publish.flowStatus.locked': '未解锁',
|
'channel.salesProducts.publish.flowStatus.locked': '未解锁',
|
||||||
'channel.salesProducts.publish.flowStatus.ready': '可进入',
|
'channel.salesProducts.publish.flowStatus.ready': '可进入',
|
||||||
|
'channel.salesProducts.publish.flowStatus.follow': '后续',
|
||||||
'channel.salesProducts.publish.flowRisk': '风险结论',
|
'channel.salesProducts.publish.flowRisk': '风险结论',
|
||||||
'channel.salesProducts.publish.startAi': '开始 AI 分析',
|
'channel.salesProducts.publish.startAi': '开始 AI 分析',
|
||||||
'channel.salesProducts.publish.gotoStep2': '进入正式发布',
|
'channel.salesProducts.publish.gotoStep2': '进入正式发布',
|
||||||
|
|||||||
@ -2039,6 +2039,21 @@
|
|||||||
? t('channel.salesProducts.publish.finalConfirmHighRiskApproval')
|
? t('channel.salesProducts.publish.finalConfirmHighRiskApproval')
|
||||||
: t('channel.salesProducts.publish.finalConfirmHighRisk'),
|
: 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(() => {
|
const publishDiffStatus = computed(() => {
|
||||||
if (!publishHasOnlineSnapshot.value) return 'first';
|
if (!publishHasOnlineSnapshot.value) return 'first';
|
||||||
@ -2103,6 +2118,10 @@
|
|||||||
|
|
||||||
/** 用后端 publish/preview 接口展示真实快照(含黑名单/计重等内嵌明细) */
|
/** 用后端 publish/preview 接口展示真实快照(含黑名单/计重等内嵌明细) */
|
||||||
async function openPublishDiffModal(operatorType: 'rules' | 'price') {
|
async function openPublishDiffModal(operatorType: 'rules' | 'price') {
|
||||||
|
if (operatorType === 'price') {
|
||||||
|
// 打开弹窗前刷新,保证流程卡能读到最新 ApprovalRequired
|
||||||
|
void refreshPricePublishSyncStatus();
|
||||||
|
}
|
||||||
const pid = selectedProduct.value;
|
const pid = selectedProduct.value;
|
||||||
if (pid == null) {
|
if (pid == null) {
|
||||||
Message.warning('请先选择产品');
|
Message.warning('请先选择产品');
|
||||||
@ -2287,7 +2306,7 @@
|
|||||||
const pricePublishAiSummary = ref('');
|
const pricePublishAiSummary = ref('');
|
||||||
const pricePublishAiPendingFingerprint = ref('');
|
const pricePublishAiPendingFingerprint = ref('');
|
||||||
const pricePublishAiSkipped = ref(false);
|
const pricePublishAiSkipped = ref(false);
|
||||||
/** 价格发布两步:1=AI分析 2=正式发布;规则发布不走步进 */
|
/** 价格发布:1=AI分析 2=提交;流程卡另展示 03 生效(审批/直发) */
|
||||||
const pricePublishStep = ref<1 | 2>(1);
|
const pricePublishStep = ref<1 | 2>(1);
|
||||||
const pricePublishSubmitting = ref(false);
|
const pricePublishSubmitting = ref(false);
|
||||||
const pricePublishShowRawJson = ref(false);
|
const pricePublishShowRawJson = ref(false);
|
||||||
@ -6169,7 +6188,11 @@
|
|||||||
>
|
>
|
||||||
<div class="release-content slim">
|
<div class="release-content slim">
|
||||||
<!-- 价格:流程卡片 -->
|
<!-- 价格:流程卡片 -->
|
||||||
<div v-if="isPricePublishFlow && publishDiffLength > 0" class="publish-flow">
|
<div
|
||||||
|
v-if="isPricePublishFlow && publishDiffLength > 0"
|
||||||
|
class="publish-flow"
|
||||||
|
:class="{ 'is-three-steps': true }"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
class="flow-card"
|
class="flow-card"
|
||||||
:class="{
|
:class="{
|
||||||
@ -6302,6 +6325,27 @@
|
|||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
</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>
|
||||||
|
|
||||||
<div class="publish-scroll">
|
<div class="publish-scroll">
|
||||||
@ -8042,10 +8086,14 @@
|
|||||||
|
|
||||||
.publish-flow {
|
.publish-flow {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 48px 1fr;
|
grid-template-columns: 1fr 36px 1fr;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
gap: 0;
|
gap: 0;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
||||||
|
&.is-three-steps {
|
||||||
|
grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.flow-connector {
|
.flow-connector {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user