laundry-flow.js
1.13 KB
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
35
36
37
38
39
40
import request from '@/service/request.js'
import config from '@/common/config.js'
export default {
// 获取毛巾流水列表
getLaundryFlowList(params) {
return request.get(`${config.getApiBaseUrl()}/api/Extend/LqLaundryFlow/GetList`, params);
},
// 创建送出记录
createSendRecord(data) {
return request.post(`${config.getApiBaseUrl()}/api/Extend/LqLaundryFlow/Send`, data);
},
// 创建送回记录
createReturnRecord(data) {
return request.post(`${config.getApiBaseUrl()}/api/Extend/LqLaundryFlow/Return`, data);
},
// 获取清洗商列表
getSupplierList(params) {
return request.get(`${config.getApiBaseUrl()}/api/Extend/LqLaundrySupplier/GetList`, params);
},
// 获取毛巾流水详情
getLaundryFlowDetail(id) {
return request.get(`${config.getApiBaseUrl()}/api/Extend/LqLaundryFlow/${id}`);
},
// 获取产品类型列表
getProductTypeList() {
return request.get(`${config.getApiBaseUrl()}/api/Extend/LqStoreConsumableInventory/consumable-product-type`);
},
// 更新记录
updateLaundryFlow(data) {
return request.post(`${config.getApiBaseUrl()}/api/Extend/LqLaundryFlow/Update`, data);
}
}