feat(order-delivery-reply): 新增订单交期回复工作台

This commit is contained in:
HTEWJ\26070045 committed 2026-09-21 15:40:15 +08:00
1 parent de9db2ea77
commit 49f6a0f222
57 files changed
+6502 -67

No files matched your search

+5
View File
@@ -122,6 +122,11 @@ export async function requestJson<T>(url: string, init?: RequestInit): Promise<T
const headers = new Headers(init?.headers || {});
const authHeaders = getAuthHeaders();
Object.entries(authHeaders).forEach(([k, v]) => headers.set(k, v as string));
// 带 body 的请求若未显式声明类型,统一补 JSON 头:否则 Flask get_json(silent=True)
// 会因 Content-Type 非 JSON 解析出 None,把有效载荷当空 body 处理(如订单交期回复保存被误判 400)。
if (init?.body && !headers.has('Content-Type')) {
headers.set('Content-Type', 'application/json');
}
const res = await fetch(url, { ...init, headers });
let data: any = null;
+2
View File
@@ -7,6 +7,8 @@
export type FeaturePermissions = {
training_hr_manage?: boolean;
'contract_payment.access'?: boolean;
'order_delivery_reply.manage'?: boolean;
'order_delivery_reply.access'?: boolean;
[key: string]: boolean | undefined;
};