feat(management-navigation-single-company-ux): 收敛管理导航与单公司配置体验

这个提交包含在:
2026-08-03 12:43:00 +08:00
父节点 f4ddc18f12
当前提交 4b0184c64b
共修改 36 个文件,包含 1249 行新增和 178 行删除
+5 -5
查看文件
@@ -178,7 +178,7 @@ function resolvePurchaseEvidenceHint(item: {
}) {
const missingFields = [
item.supplierId ? null : "供应商",
item.legalEntityId ? null : "法体",
item.legalEntityId ? null : "公司",
item.costCenterId ? null : "成本中心",
item.documentCategoryId ? null : "单据分类",
].filter(Boolean);
@@ -590,7 +590,7 @@ export function PurchaseRequestsPage() {
throw new Error("提交前请选择供应商");
}
if (!legalEntityId) {
throw new Error("提交前请选择法体");
throw new Error("提交前请选择公司");
}
if (!costCenterId) {
throw new Error("提交前请选择成本中心");
@@ -991,7 +991,7 @@ export function PurchaseRequestsPage() {
setPage(1);
}}
>
<option value="">全部法体</option>
<option value="">全部公司</option>
{(legalEntitiesQuery.data?.items ?? []).map((item) => (
<option key={item.id} value={item.id}>
{item.name}
@@ -1344,7 +1344,7 @@ export function PurchaseRequestsPage() {
<Input value={currencyCode} onChange={(event) => setCurrencyCode(event.target.value.toUpperCase())} disabled={!canEditDraft} />
</div>
<div className="space-y-2">
<label className="text-sm font-medium text-zinc-700">法体</label>
<label className="text-sm font-medium text-zinc-700">公司</label>
<select
data-testid="purchase-legal-entity"
className="select-std"
@@ -1358,7 +1358,7 @@ export function PurchaseRequestsPage() {
}
}}
>
<option value="">请选择法体</option>
<option value="">请选择公司</option>
{(legalEntitiesQuery.data?.items ?? []).map((item) => (
<option key={item.id} value={item.id}>
{item.name}