feat(shipping-notice): 落地 XFA 拆分、版面签名、统一进度与处理域履约
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
3a9fbac2fc
commit
d2b3d74def
571 files changed
+78064
-24681
No files matched your search
@@ -2,10 +2,8 @@
|
||||
* features/workspace/shipping-task-center/TaskTodoPanel.vue
|
||||
* 用途:渲染统一 Gate 恢复卡片与 STP 履约待办动作(ui_state.action_buttons)。
|
||||
* 依赖:ProcessGateRecoveryCard、shipping.api、shipping-tasks.api、ManualUploadEvidenceDialog。
|
||||
* 逻辑:优先展示 ui_state.process_gate 阻断信息与 next_action_code;禁止按 process_status
|
||||
* 二次推导门禁动作;存在 current_blocking_gate 时不渲染旧 action_buttons(Gate 唯一真相);
|
||||
* confirm_customer 打开本面板客户弹窗(非跳转复核);管理员 can_handle=false 时只读;
|
||||
* 无 Gate 阻断时 wait_manual_upload 允许下载 Excel + 人工上传凭据。
|
||||
* 逻辑:优先展示 ui_state.process_gate 阻断信息与 next_action_code;禁止按 workflow_item.lifecycle
|
||||
* 或 process_status 推断人工上传;存在 current_blocking_gate 时不渲染旧 action_buttons。
|
||||
*/
|
||||
<script setup lang="ts">
|
||||
import { computed, ref } from 'vue';
|
||||
@@ -35,6 +33,7 @@ import InventorySourceSelectDialog from './InventorySourceSelectDialog.vue';
|
||||
import ManualUploadEvidenceDialog from './ManualUploadEvidenceDialog.vue';
|
||||
import ProcessGateRecoveryCard from '@/features/shipping-process-gates/components/ProcessGateRecoveryCard.vue';
|
||||
import type { ShippingProcessGateUserSummary } from '@/features/chat/types/shipping.api.types';
|
||||
import { gateSummaryIndicatesManualUpload } from '@/features/chat/shipping/shippingProcessingFulfillment';
|
||||
|
||||
const props = defineProps<{
|
||||
detail: ShippingTaskDetail;
|
||||
@@ -66,7 +65,6 @@ const processGateSummary = computed((): ShippingProcessGateUserSummary | null =>
|
||||
);
|
||||
const actionButtons = computed(() => props.detail.ui_state?.action_buttons || []);
|
||||
const checkpointKind = computed(() => String(props.detail.ui_state?.checkpoint_kind || ''));
|
||||
const checkpoint = computed(() => String(props.detail.ui_state?.checkpoint || ''));
|
||||
/** 统一 Gate 投影中的主要恢复动作;用于去重旧 action_buttons。 */
|
||||
const processGateNextAction = computed(() =>
|
||||
String(
|
||||
@@ -90,17 +88,27 @@ const displayTodoMessage = computed(() =>
|
||||
|
||||
/**
|
||||
* 是否展示「待人工上传登记」提示。
|
||||
* 核心逻辑:wait_manual_upload,或 export_ready/export_generated 且已有导出文件名/工件。
|
||||
* 核心逻辑:优先 process_gate / current_blocking_gate 的 next_action_code 与
|
||||
* available_actions;RPA 上传中不展示;禁止用 workflow_item.lifecycle 作主判据。
|
||||
*/
|
||||
const showWaitingManualUploadNote = computed(() => {
|
||||
if (checkpointKind.value === 'wait_manual_upload') return true;
|
||||
if (checkpoint.value === 'export_ready' || checkpoint.value === 'export_generated') {
|
||||
return Boolean(
|
||||
props.detail.export_file_name
|
||||
|| (Array.isArray(props.detail.export_artifacts) && props.detail.export_artifacts.length > 0),
|
||||
);
|
||||
}
|
||||
return false;
|
||||
const process = String(props.detail.process_status || '').trim();
|
||||
if (process === 'uploading') return false;
|
||||
const gateNextAction = String(
|
||||
processGateSummary.value?.current_blocking_gate?.next_action_code
|
||||
|| processGateSummary.value?.next_action_code
|
||||
|| processGateNextAction.value
|
||||
|| '',
|
||||
).trim();
|
||||
const allowedActions = [
|
||||
...(summary.value.allowed_actions || []),
|
||||
...(actionButtons.value.map((item) => item.id)),
|
||||
];
|
||||
return gateSummaryIndicatesManualUpload({
|
||||
nextActionCode: gateNextAction,
|
||||
checkpointKind: checkpointKind.value,
|
||||
availableActions: allowedActions,
|
||||
});
|
||||
});
|
||||
|
||||
/** 当前导出工件 id,供人工上传登记对话框绑定。 */
|
||||
|
||||
Reference in new issue
Block a user