9b30ab8c
刘淇
新增快速工单,原版
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { post, get } from '@/common/utils/request';
/**
* 根据经纬度获取道路接口
* @param {Object} params {mobile, password, code}
* @returns {Promise}
*/
export const getRoadListByLatLng = (params) => {
return get('/app-api/bpm/garden/workorder/listRoadInfo', params);
};
|
8ddc6f6e
刘淇
登录 修改样式
|
14
15
16
17
18
19
20
21
22
23
|
/**
* 根据公司
* @param {Object} params {mobile, password, code}
* @returns {Promise}
*/
export const getCompanyList = (params) => {
return get('/admin-api/system/dept/sub-list', params);
};
|
9b30ab8c
刘淇
新增快速工单,原版
|
24
25
26
27
28
29
|
// export const fileUpload = (params) => {
// return post('/app-api/infra/file/upload', params);
// };
export const fileUpload = '/app-api/infra/file/upload'
|
ecbfbe06
刘淇
树巡检记录
|
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/**
* 根据问题类型
* @param {Object} params {mobile, password, code}
* @returns {Promise}
*/
export const getProblemListByType = (params) => {
return get('/app-api/app/problem-type/list-by-parent', params);
};
/**
* 获取所有公司
* @param {Object} params {mobile, password, code}
* @returns {Promise}
*/
export const getAllCompanyList = (params) => {
return get('/app-api/system/dept/sub-list', params);
};
|
de549a92
刘淇
养护。动态表单
|
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
/**
* 拉取字段配置
* @param {Object} params {`businessType`、`bizType`、`workTypeId`}
* @returns {Promise}
*/
export const getByType = (params) => {
return get('/app-api/app/garden/work-field-config/get-by-type', params);
};
/**
* 拉取枚举选项 用于 `fieldType=3`(枚举)且 `options` 为空(即非静态来源)时获取可选项。
* @param {Object} params {}
* @returns {Promise}
*/
export const getOptionsByCode = (params) => {
return get('/app-api/app/garden/work-field-config/options', params);
};
/**
* 拉取拉取物料列表 用于`fieldType=6`(物料)字段,列出可领物料及库存。
* @param {Object} params {}
* @returns {Promise}
*/
export const getMaterialsByCode = (params) => {
return get('/app-api/app/garden/work-field-config/materials', params);
};
|
ecbfbe06
刘淇
树巡检记录
|
|
|
9b30ab8c
刘淇
新增快速工单,原版
|
|
|