feat(equipment-acceptance): 补抓E8数据并更新需求文档
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
f0334e5d22
commit
02aa00e913
47 files changed
+4423
-1261
No files matched your search
@@ -2,7 +2,9 @@
|
||||
* features/equipment-acceptance/api/equipment-acceptance.api.ts
|
||||
* 用途:设备验收预警同步列表、详情和手动同步。
|
||||
* 依赖:统一 requestJson;后端 /api/equipment-acceptance。
|
||||
* 逻辑:Chat 作业面调用。同步只读 E10。配置只保存天数和系统用户,不保存发送时刻。
|
||||
* 逻辑:Chat 作业面调用。同步同时读 E10 和 E8,列表用来源字段区分。
|
||||
* 停留列表的 keyword 同时查流程编号、验收单号、采购单号,applicant 只查申请人。
|
||||
* 配置只保存天数和系统用户,不保存发送时刻。
|
||||
* 保存配置自行声明 Content-Type: application/json,供 Flask get_json 解析。
|
||||
* 发送记录只读已落库的行。每位收件人的 Excel 可再下载。
|
||||
*/
|
||||
@@ -23,7 +25,15 @@ export interface EquipmentAcceptanceOperator {
|
||||
|
||||
export interface EquipmentAcceptanceOrder {
|
||||
id: number;
|
||||
/** 来源。e10 或 e8。旧数据未返回时为空。 */
|
||||
oa_system?: string | null;
|
||||
acceptance_no?: string | null;
|
||||
/** 流程编号。E10 为 requestmark,E8 为 lcbh。 */
|
||||
flow_no?: string | null;
|
||||
/** 流程标题。两边都是流程表 requestname。 */
|
||||
request_title?: string | null;
|
||||
/** 流程创建时间。E10 为 createdatetime,E8 为 createdate 加 createtime。 */
|
||||
request_created_at?: string | null;
|
||||
purchase_order_no?: string | null;
|
||||
contract_no?: string | null;
|
||||
timer_started_at?: string | null;
|
||||
@@ -72,19 +82,27 @@ export interface EquipmentAcceptanceSyncResult {
|
||||
|
||||
/**
|
||||
* 分页查询已同步的验收单。
|
||||
* 核心逻辑:focus 对应原型分组。空或 all 不过滤。
|
||||
* 核心逻辑:focus 对应状态分组。keyword 同时匹配流程编号、验收单号、采购单号。applicant 只匹配申请人。空值不传。
|
||||
* @param params.focus - watching、overdue、stopped、not_started
|
||||
* @param params.keyword - 三种单号的包含匹配
|
||||
* @param params.applicant - 申请人姓名的包含匹配
|
||||
* @param params.page - 页码,从 1 开始
|
||||
* @param params.pageSize - 每页条数
|
||||
* @returns 分页快照和全部单据汇总
|
||||
* @returns 分页快照和汇总。汇总不看状态分组,但跟着单号和申请人走
|
||||
*/
|
||||
export function listEquipmentAcceptanceOrders(params?: {
|
||||
focus?: string;
|
||||
keyword?: string;
|
||||
applicant?: string;
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
}) {
|
||||
const query = new URLSearchParams();
|
||||
if (params?.focus && params.focus !== 'all') query.set('focus', params.focus);
|
||||
const keyword = params?.keyword?.trim();
|
||||
const applicant = params?.applicant?.trim();
|
||||
if (keyword) query.set('keyword', keyword);
|
||||
if (applicant) query.set('applicant', applicant);
|
||||
if (params?.page) query.set('page', String(params.page));
|
||||
if (params?.pageSize) query.set('page_size', String(params.pageSize));
|
||||
const suffix = query.toString() ? `?${query.toString()}` : '';
|
||||
|
||||
Reference in new issue
Block a user