fix(api): 对齐 crm/erp 模块前端 API 类型与后端 VO

CRM 模块:
- customer/business/contact/clue: ownerUserDept→ownerUserDeptName(字段名修正)
- contract/receivable: processInstanceId number→string
- contact: qq string→number(后端是 Long)

ERP 模块:
- stock/move: outTime→moveTime(字段名修正,与后端一致)
vo
xingyu4j 2026-06-07 12:56:48 +08:00
parent c8acf583b9
commit ec32e7003a
7 changed files with 8 additions and 8 deletions

View File

@ -16,7 +16,7 @@ export namespace CrmBusinessApi {
contactNextTime: Date; contactNextTime: Date;
ownerUserId: number; ownerUserId: number;
ownerUserName?: string; // 负责人的用户名称 ownerUserName?: string; // 负责人的用户名称
ownerUserDept?: string; // 负责人的部门名称 ownerUserDeptName?: string; // 负责人的部门名称
statusTypeId: number; statusTypeId: number;
statusTypeName?: string; statusTypeName?: string;
statusId: number; statusId: number;

View File

@ -15,7 +15,7 @@ export namespace CrmClueApi {
contactNextTime: Date; // 下次联系时间 contactNextTime: Date; // 下次联系时间
ownerUserId: number; // 负责人的用户编号 ownerUserId: number; // 负责人的用户编号
ownerUserName?: string; // 负责人的用户名称 ownerUserName?: string; // 负责人的用户名称
ownerUserDept?: string; // 负责人的部门名称 ownerUserDeptName?: string; // 负责人的部门名称
transformStatus: boolean; // 转化状态 transformStatus: boolean; // 转化状态
customerId: number; // 客户编号 customerId: number; // 客户编号
customerName?: string; // 客户名称 customerName?: string; // 客户名称

View File

@ -16,10 +16,10 @@ export namespace CrmContactApi {
contactNextTime: Date; // 下次联系时间 contactNextTime: Date; // 下次联系时间
ownerUserId: number; // 负责人的用户编号 ownerUserId: number; // 负责人的用户编号
ownerUserName?: string; // 负责人的用户名称 ownerUserName?: string; // 负责人的用户名称
ownerUserDept?: string; // 负责人的部门名称 ownerUserDeptName?: string; // 负责人的部门名称
mobile: string; // 手机号 mobile: string; // 手机号
telephone: string; // 电话 telephone: string; // 电话
qq: string; // QQ qq: number; // QQ
wechat: string; // wechat wechat: string; // wechat
email: string; // email email: string; // email
areaId: number; // 所在地 areaId: number; // 所在地

View File

@ -18,7 +18,7 @@ export namespace CrmContractApi {
ownerUserId: number; ownerUserId: number;
ownerUserName?: string; ownerUserName?: string;
ownerUserDeptName?: string; ownerUserDeptName?: string;
processInstanceId: number; processInstanceId: string;
auditStatus: number; auditStatus: number;
orderDate: Date; orderDate: Date;
startTime: Date; startTime: Date;

View File

@ -15,7 +15,7 @@ export namespace CrmCustomerApi {
contactNextTime: Date; // 下次联系时间 contactNextTime: Date; // 下次联系时间
ownerUserId: number; // 负责人的用户编号 ownerUserId: number; // 负责人的用户编号
ownerUserName?: string; // 负责人的用户名称 ownerUserName?: string; // 负责人的用户名称
ownerUserDept?: string; // 负责人的部门名称 ownerUserDeptName?: string; // 负责人的部门名称
ownerUserDeptName?: string; // 负责人的部门名称 ownerUserDeptName?: string; // 负责人的部门名称
lockStatus?: boolean; lockStatus?: boolean;
dealStatus?: boolean; dealStatus?: boolean;

View File

@ -14,7 +14,7 @@ export namespace CrmReceivableApi {
contractId?: number; contractId?: number;
contract?: Contract; contract?: Contract;
auditStatus: number; auditStatus: number;
processInstanceId: number; processInstanceId: string;
returnTime: Date; returnTime: Date;
returnType: number; returnType: number;
price: number; price: number;

View File

@ -7,7 +7,7 @@ export namespace ErpStockMoveApi {
export interface StockMove { export interface StockMove {
id?: number; // 调拨编号 id?: number; // 调拨编号
no: string; // 调拨单号 no: string; // 调拨单号
outTime: Date; // 调拨时间 moveTime: Date; // 调拨时间
totalCount: number; // 合计数量 totalCount: number; // 合计数量
totalPrice: number; // 合计金额,单位:元 totalPrice: number; // 合计金额,单位:元
status: number; // 状态 status: number; // 状态