feat(shipping-notice): 收敛复核阶段同源投影与 OT 后履约推进
统一 Case/Progress 阶段 label_key、修复 Job 成功未推进 OT 的可重试失败投影与写路径,并落地 OT 后行级匹配/波次履约与版面诊断开关。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
74270adc22
commit
fd6a23f870
100 files changed
+12138
-1017
No files matched your search
@@ -3,7 +3,8 @@
|
||||
* 用途:渲染统一 Gate 恢复卡片与 STP 履约待办说明(表单/弹窗入口)。
|
||||
* 依赖:ProcessGateRecoveryCard、shipping.api、shipping-tasks.api、ManualUploadEvidenceDialog。
|
||||
* 逻辑:gateCanHandle 控制 Gate 卡写按钮;actionsExecutable 控制 invokeActionByCode / 对话框写;
|
||||
* hidePrimaryActions=true 时不渲染 action_buttons(订单处理工作台写入口仅 Footer)。
|
||||
* hidePrimaryActions=true 时不渲染 action_buttons(订单处理工作台写入口仅 Footer);
|
||||
* 系统 Worker / technical_auto_only 不计入人工阻断,避免「待处理事项」冒充系统等待。
|
||||
*/
|
||||
<script setup lang="ts">
|
||||
import { computed, ref } from 'vue';
|
||||
@@ -179,7 +180,28 @@ const allowedIds = computed(() => {
|
||||
if (Array.isArray(fromSummary) && fromSummary.length) return new Set(fromSummary.map(String));
|
||||
return new Set(actionButtons.value.map((item) => item.id));
|
||||
});
|
||||
const hasBlockingGate = computed(() => Boolean(processGateSummary.value?.current_blocking_gate));
|
||||
const hasBlockingGate = computed(() => {
|
||||
const gate = processGateSummary.value;
|
||||
if (!gate?.current_blocking_gate) return false;
|
||||
if (gate.technical_auto_only) return false;
|
||||
const owner = String(gate.owner_type || '').trim().toLowerCase();
|
||||
if (owner === 'system') return false;
|
||||
if (!owner) {
|
||||
const party = String(gate.responsible_party || '').trim().toLowerCase();
|
||||
if (party === 'system' || party === 'worker') return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
/** 系统自动等待:禁止用「待处理事项」或 STP 待办卡冒充人工动作。 */
|
||||
const isSystemAutoWait = computed(() => {
|
||||
const gate = processGateSummary.value;
|
||||
if (!gate) return false;
|
||||
if (gate.technical_auto_only) return true;
|
||||
if (String(gate.owner_type || '').trim().toLowerCase() === 'system') return true;
|
||||
if (!gate.current_blocking_gate) return false;
|
||||
return !hasBlockingGate.value;
|
||||
});
|
||||
|
||||
const UNIFIED_OWNED_ACTION_IDS = new Set([
|
||||
'retry',
|
||||
@@ -500,7 +522,7 @@ defineExpose({
|
||||
@confirm-customer="() => void openCustomerDialog()"
|
||||
/>
|
||||
<section
|
||||
v-if="!hasBlockingGate"
|
||||
v-if="!hasBlockingGate && !isSystemAutoWait"
|
||||
class="rounded-2xl border border-brand-200/80 bg-brand-50/40 px-4 py-3"
|
||||
>
|
||||
<div class="mb-1 text-xs font-semibold uppercase tracking-wide text-brand-700">
|
||||
|
||||
Reference in new issue
Block a user