{t('重试')}}
/>
);
}
if (!overview) return ;
const transferRow = transfer?.row;
const isRecall = transfer?.mode === 'recall';
return (
{operable ? t('已开启') : t('未开启')}
{operable ? (
) : (
)}
}
>
{established && (
<>
}
onClick={() =>
setLedgerAccount({
id: unallocated.id,
name: t('企业未分配户'),
})
}
>
{t('查看流水')}
) : null
}
/>
>
)}
{error && (
{t('数据刷新失败,请重试')}
)}
{anomaly && (
)}
{state === FUND_STATE.OFF && (
)}
{established && (
{t('包含已归档部门')}
}
padding='p-2'
>
{accountsError ? (
{t('重试')}}
/>
) : overview.department_count === 0 && rows.length === 0 ? (
navigate('/org/departments')}>
{t('前往部门管理')}
}
/>
) : (
)}
)}
isRecall
? orgFundApi.recall(orgId, {
...body,
dept_id: transferRow.department_id,
})
: orgFundApi.allocate(orgId, {
...body,
dept_id: transferRow.department_id,
})
}
lookup={(opId) => orgFundApi.transfer(orgId, opId)}
onClose={() => setTransfer(null)}
onDone={load}
/>
setLedgerAccount(null)}
/>
);
};
export default OrgDeptFunds;