Blame view

src/pages/pms/storage/partShop/api.ts 2.11 KB
cc26d1fc   张志伟   🎉 重新构建项目,解决项目过大的问题
1
2
3
  import { http } from '@/typing/http';
  import request from '@/utils/request';
  import { PMS_HOST, OOP_HOST } from "@/utils/host";
cf4f0fe5   baiyun   释放库存
4
  
cc26d1fc   张志伟   🎉 重新构建项目,解决项目过大的问题
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  /** 获取服务站配件列表 */
  export function getPartShopPageApi(params: PmsStoragePartShop.QueryParams): http.PromisePageResp<PmsStoragePartShop.Item> {
    return request.get(`${PMS_HOST}/erp/part/shop/list`, { params });
  }
  
  /** 编辑服务站配件 */
  export function savePartShopApi(params: PmsStoragePartShop.Params): http.PromiseResp<string> {
    return request.post(`${PMS_HOST}/erp/part/shop/save`, { ...params });
  }
  
  /** 获取服务站列表 */
  export function getShopApi(): http.PromiseResp<PmsStoragePartShop.Option[]> {
    return request.get(`${OOP_HOST}/select/biz/shops`, { params: { bizType: 2 } });
  }
  
  /**
   * 配件选择
   */
  export function getPartPageListApi(params?: PartPriceCoefficientSpace.QueryPartParams): http.PromisePageResp<PartPriceCoefficientSpace.PartItem> {
    return request.get(`${PMS_HOST}/erp/part/list`, { params });
  }
cf4f0fe5   baiyun   释放库存
26
27
28
29
30
  
  /** 释放库存 */
  export function releaseApi(params: PmsStoragePartShop.ReleaseParam): http.PromiseResp<void> {
    return request.post(`${PMS_HOST}/erp/part/shop/release/actual`, { ...params });
  }
b34403f5   baiyun   配件锁件明细
31
32
33
34
35
36
37
  
  /**
   * 查询门店备件锁件明细列表
   */
  export function getLockDetail(params?: PmsStoragePartShop.LockParams): http.PromiseRespA<PmsStoragePartShop.LockDetailVO> {
    return request.get(`${PMS_HOST}/erp/part/shop/get/lock/detail`, { params });
  }
b20f6c52   baiyun   配件流水
38
39
40
41
42
43
44
  
  /**
   * 查询门店备件流水明细列表
   */
  export function getFlowDetail(params?: PmsStoragePartShop.FlowParams): http.PromisePageResp<PmsStoragePartShop.FlowVO> {
    return request.get(`${PMS_HOST}/erp/part/shop/get/record`, { params });
  }
052c8f9f   jiangwei   服务站配件锁库流水和释放流水查看
45
46
47
48
49
50
  /**
   * 查询门店备件锁库流水明细列表
   */
  export function getLockFlowDetail(params?: PmsStoragePartShop.FlowParams): http.PromisePageResp<PmsStoragePartShop.FlowVO> {
    return request.get(`${PMS_HOST}/erp/part/shop/get/lock/record`, { params });
  }
c52b00d6   jiangwei   Merge branch 'cas...
51
52
  // 释放库存
  export function unLock(params: PmsStoragePartShop.unLock): http.PromiseResp<string> {
3c589335   jiangwei   服务站配件-->修改、导入、释放库...
53
    return request.post(`${PMS_HOST}/erp/part/shop/cancel/lock`, { ...params }, { contentType: "form-urlencoded" });
c52b00d6   jiangwei   Merge branch 'cas...
54
  }