Blame view

src/pages/pms/partPlan/CustBuyPlanProcess/api.ts 1.64 KB
fb24188b   jiangwei   客户定件计划进度查看
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  import { http } from '@/typing/http';
  import request from '@/utils/request';
  import { PMS_HOST } from '@/utils/host';
  
  export interface ListVO {
    partId?: number, //	配件id
    partName?: string, //	配件名称
    partCode?: string, //	配件编码
    partCnt?: number, //	缺件数量
    price?: number, //	价格
    count?: number,
    cnt?: number,
    amount?: number, //	价格
    supplierId?: number,
    supplierName?: string,
    storageId?: number
    storageName?: string
    shopId?: number
    shopName?: string
    waitListIds?: string
    remark?: string
    typeId?: string
    userName?: string
    status?:string
    brandName?:number
  }
  
  export interface Params{
    current?:number
    pageSize?:number
    brandId?:number
    status?:number
    shopId?:number
    keywords?:string
81339a3c   jiangwei   客户订件进度增加筛选条件
35
36
37
    serviceName?:string
    plateNo?:string
    vin?:string
fb24188b   jiangwei   客户定件计划进度查看
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
  }
  
  export interface ProgressVO {
    planId?: string, //	计划ID
    planGroupId?: string, //	计划分组ID
    progressVOS?: ProgressItemVO[], //	流程详情
  }
  export interface ProgressItemVO {
    status?: string, //	状态
    title?: string, //	标题
    remarks?: string[], //	备注
    hasDetail?: boolean, //	是否有明细
  }
  
  export interface ProgressParams {
    handleTypeId?: string, //	缺件处理类型id
    handleType?: string, //	缺件处理类型 外采 调件 客户定件
  }
  // 列表查询
  export function fetchPartList(params: Params): http.PromisePageResp<ListVO> {
    return request.get(`${PMS_HOST}/erp/cus/buy/part/get/buy/part/page`, { params });
  }
  // 进度查询
  export function fetchProgress(params?: ProgressParams): http.PromiseResp<ProgressItemVO[]> {
    return request.get(`${PMS_HOST}/erp/cus/buy/part/get/pool/part/progress`, { params });
  }