feat(shipping-notice): 收敛复核状态隔离、STP 重试幂等与 XFA 合成预览标注
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
84a881b554
commit
74270adc22
149 files changed
+20111
-3871
No files matched your search
+15
-3
@@ -66,7 +66,7 @@ const blockingIssueCount = computed(() => {
|
||||
return blocking.length || issues.length;
|
||||
});
|
||||
|
||||
/** 首要阻断文案。 */
|
||||
/** 首要阻断文案:仅来自当前未解决业务问题;客户已确认时不得再显示客户确认阻断。 */
|
||||
const primaryBlockMessage = computed(() => {
|
||||
const issues = effectiveIssues.value;
|
||||
const primary = issues.find((item) => String(item.severity || '') === 'blocking') || issues[0];
|
||||
@@ -78,7 +78,13 @@ const primaryBlockMessage = computed(() => {
|
||||
return !reason.startsWith('customer_');
|
||||
});
|
||||
if (!blockedLines.length) {
|
||||
const failedGate = (props.eligibility?.failed_gates || [])[0];
|
||||
const failedGate = (props.eligibility?.failed_gates || []).find((gate) => {
|
||||
const code = String(gate || '').trim().toLowerCase();
|
||||
if (props.customerResolved === true && (code === 'customer_confirmed' || code === 'customer_resolution')) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
if (!failedGate) return '';
|
||||
const gateKey = `chat.shippingOrderReview.buildEligibility.gates.${failedGate}`;
|
||||
return te(gateKey) ? t(gateKey) : t('chat.shippingOrderReview.issueCodes.unknown');
|
||||
@@ -116,7 +122,13 @@ const primaryBlockMessage = computed(() => {
|
||||
if (message) return message;
|
||||
const key = `chat.shippingOrderReview.issueCodes.${code}`;
|
||||
if (code && te(key)) return t(key);
|
||||
const failedGate = (props.eligibility?.failed_gates || [])[0];
|
||||
const failedGate = (props.eligibility?.failed_gates || []).find((gate) => {
|
||||
const gateCode = String(gate || '').trim().toLowerCase();
|
||||
if (props.customerResolved === true && (gateCode === 'customer_confirmed' || gateCode === 'customer_resolution')) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
if (failedGate) {
|
||||
const gateKey = `chat.shippingOrderReview.buildEligibility.gates.${failedGate}`;
|
||||
return te(gateKey) ? t(gateKey) : t('chat.shippingOrderReview.issueCodes.unknown');
|
||||
|
||||
Reference in new issue
Block a user