feat: 合同付款预警迁移到agent页面

This commit is contained in:
sophie committed 2026-09-16 09:36:18 +08:00
1 parent ef6bc42c20
commit 4ce2defef0
49 files changed
+1052 -423

No files matched your search

@@ -10,6 +10,7 @@ export const AGENT_CODE_GENERIC = 'generic';
export const AGENT_CODE_SHIPPING_NOTICE = 'shipping_notice';
export const AGENT_CODE_FILE_CHECK = 'file_check';
export const AGENT_CODE_PROCUREMENT_CONTRACT_REVIEW = 'procurement_contract_review';
export const AGENT_CODE_CONTRACT_PAYMENT = 'contract_payment';
export const AGENT_CODE_IN_TRANSIT_TRANSFER = 'in_transit_transfer';
export interface AgentRegistryCapabilities {
@@ -237,6 +238,11 @@ export function isProcurementContractAgent(agent: AgentLike): boolean {
return resolveAgentCode(agent) === AGENT_CODE_PROCUREMENT_CONTRACT_REVIEW;
}
/** 是否为合同付款预警 Agent(agent_code=contract_payment)。 */
export function isContractPaymentAgent(agent: AgentLike): boolean {
return resolveAgentCode(agent) === AGENT_CODE_CONTRACT_PAYMENT;
}
/** 是否启用本地请假表单(后端 leave_feature_enabled)。 */
export function canUseLeaveFeature(agent: AgentLike): boolean {
return Boolean(agent?.leave_feature_enabled);
-1
View File
@@ -6,7 +6,6 @@
*/
export type FeaturePermissions = {
training_hr_manage?: boolean;
'contract_payment.access'?: boolean;
[key: string]: boolean | undefined;
};