Blame view

src/pages/pms/setting/api.ts 977 Bytes
e8ed4786   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
  import { http } from '@/typing/http';
  import request from '@/utils/request';
  import { PMS_HOST } from '@/utils/host';
  
  export interface Item {
    ratio?: number, // 当库存为零,本月有出库,但90天月均出库量<1,动态库销比指定为
    limit?: number, // 外采标准管控
    noApprovalRatio?: number
    editBuyPartCode?:boolean
    transferAmount?: number// 员工调运费用, 1.5元 / 公里
    prepareTime?: number // 备料时效
    startingPrice?: number// 调运起步价
    startingDistance?: number // 调运起步距离
    ratioMorax1?:string
    ratioMorax2?:string
    ratioMorax3?:string
    type?:number
  }
  
  /**
   * 查询配件设置明细
   */
  export function getDetail(params: {type: number}): http.PromiseResp<Item> {
    return request.get(`${PMS_HOST}/erp/part/setting/detail`, {params});
  }
  
  /**
   * 保存配件设置
   */
  export function saveApi(params: Item): http.PromiseResp<void> {
    return request.post(`${PMS_HOST}/erp/part/setting/save`, params);
  }