|
|
const http = uni.$u.http
|
|
|
const platform = '162881648838805'
|
|
|
export const api = {
|
|
|
// 账户注册
|
|
|
register: (params = {}, header = {}) => http.post('/api/member/register', params, header = {
|
|
|
header: {
|
|
|
platform
|
|
|
},
|
|
|
params: {
|
|
|
...header
|
|
|
},
|
|
|
custom: {
|
|
|
auth: false
|
|
|
},
|
|
|
}),
|
|
|
// 账户忘记密码
|
|
|
forget: (params = {}, header = {}) => http.post('api/member/forget', params, header = {
|
|
|
header: {
|
|
|
platform
|
|
|
},
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
custom: {
|
|
|
auth: false
|
|
|
},
|
|
|
}),
|
|
|
// 获取手机验证码
|
|
|
loginCd: (params = {}, header = {}) => http.post('/SMS', params, header = {
|
|
|
header: {
|
|
|
platform
|
|
|
},
|
|
|
params: {
|
|
|
...header
|
|
|
},
|
|
|
}),
|
|
|
// 登录
|
|
|
signIn: (params = {}, header = {}) => http.post('/api/member/login', params, header = {
|
|
|
header: {
|
|
|
platform
|
|
|
},
|
|
|
params: {
|
|
|
...header
|
|
|
},
|
|
|
custom: {
|
|
|
auth: false
|
|
|
},
|
|
|
|
|
|
}),
|
|
|
// 统计
|
|
|
satistics: (params = {}, header = {}) => http.post('/api/satistics/task', params, header = {
|
|
|
header: {
|
|
|
platform,
|
|
|
...header
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 待接受任务列表
|
|
|
notAccept: (params = {}, header = {}) => http.post('/api/task/not/accept/list', params, header = {
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 点检工单列表
|
|
|
spotList: (params = {}, header = {}) => http.post('/api/spot/list', params, header = {
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 登录会员账户信息
|
|
|
account: (params = {}, header = {}) => http.post('/api/member/account', params, header = {
|
|
|
header: {},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 会员账户信息保存
|
|
|
accountSave: (params = {}, header = {}) => http.post('/api/member/account/save', params, header = {
|
|
|
|
|
|
params: {
|
|
|
...header
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 当前绑定公司列表
|
|
|
bindCompany: (params = {}, header = {}) => http.post('/api/member/company/list', params, header = {
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 当前绑定公司岗位列表
|
|
|
bindDeptList: (params = {}, header = {}) => http.post('/api/member/company/dept/list', params, header = {
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 人员岗位解绑
|
|
|
unbind: (params = {}, header = {}) => http.post('/api/member/company/dept/unbind', params, header = {
|
|
|
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 工作台扫描二维码绑定岗位保存
|
|
|
deptDind: (params = {}, header = {}) => http.post('/api/member/dept/bind', params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
|
|
|
// 接受任务列表(执行中的任务)(同时包含审核未成功的)
|
|
|
inExecution: (params = {}, header = {}) => http.post('/api/task/accept/list', params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 任务完毕列表
|
|
|
finishList: (params = {}, header = {}) => http.post('/api/task/finish/list', params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 消息列表
|
|
|
messageList: (params = {}, header = {}) => http.post('/api/member/message/list', params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 系统公告列表
|
|
|
memberNotice: (params = {}, header = {}) => http.post('/api/member/notice/list', params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
// header: {
|
|
|
// systemcode: header.systemcode
|
|
|
// },
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 系统公告详细
|
|
|
noticeDetails: (params = {}, header = {}) => http.post('/api/member/notice/details', params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 消息详细
|
|
|
messageDetails: (params = {}, header = {}) => http.post('/api/member/message/details', params, header = {
|
|
|
params: {
|
|
|
...header
|
|
|
},
|
|
|
// header: {
|
|
|
// systemcode: header.systemcode
|
|
|
// },
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 消息数量
|
|
|
messageCount: (params = {}, header = {}) => http.post('/api/member/message/count', params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 样品入库(返回url内嵌打开)
|
|
|
applyform_rk: (url, params = {}, header = {}) => http.post(url, params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
//切换系统
|
|
|
memberSystem: (params = {}, header = {}) => http.post('/api/member/system/current', params, header = {
|
|
|
// params: {
|
|
|
// ...header.params
|
|
|
// },
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 任务详细信息
|
|
|
taskdetails: (url, params = {}, header = {}) => http.post(url, params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
htime: (params = {}) => http.get('/date'),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取验证图片 以及token
|
|
|
reqGet: (params = {}) => http.get('/code'),
|
|
|
//滑动或者点选验证
|
|
|
reqCheck: (params = {}, header = {}) => http.post('/code/check', params),
|
|
|
// 登录认证相关接口
|
|
|
login: (params = {}, header = {}) => http.post('/auth/oauth/token', params, header),
|
|
|
|
|
|
vxLogin: (params = {}, header = {}) => http.post('/auth/oauth/token?grant_type=mobile&mobile=MINI@' +
|
|
|
params.code + '&code=' + params.code, {}, header),
|
|
|
bingUser: (params = {}, header = {}) => http.post('/admin/social/bind?state=MINI&code=' + params
|
|
|
.code, {}, header),
|
|
|
smsLogin: (params = {}, header = {}) => http.post('/auth/oauth/token?mobile=SMS@' + params.mobile +
|
|
|
'&code=' + params.code + '&grant_type=mobile', {}, header),
|
|
|
sendCode: (params = {}, header = {}) => http.get('/admin/mobile/' + params.mobile, {}, header),
|
|
|
logout: (params = {}) => http.delete('/auth/token/logout', params),
|
|
|
|
|
|
// 字典
|
|
|
dictData: (params = {}) => http.get('/admin/dict/type/' + params.dictType),
|
|
|
|
|
|
// 个人信息
|
|
|
user: {
|
|
|
getUserInfo: (params = {
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}) => http.get('/admin/user/info', params),
|
|
|
updateUserInfo: (params = {}, config = {}) => http.put('/admin/user/edit', params, config = {
|
|
|
...config,
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}),
|
|
|
infoSaveBase: (params = {}) => http.post('/admin/sys/user/infoSaveBase', params),
|
|
|
infoSavePwd: (params = {}) => http.post('/admin/sys/user/infoSavePwd', params),
|
|
|
},
|
|
|
|
|
|
// 字典
|
|
|
dict: {
|
|
|
type: (params = {}) => http.get('/admin/dict/type/' + params)
|
|
|
},
|
|
|
|
|
|
// pigx文件管理
|
|
|
pigxFile: {
|
|
|
upload: (params = {}) => http.post('/admin/sys-file/upload')
|
|
|
},
|
|
|
|
|
|
// pigx 部门管理
|
|
|
pigxDept: {
|
|
|
list: (params = {
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}) => http.get('/admin/dept/list', params)
|
|
|
},
|
|
|
|
|
|
// pigx 岗位管理
|
|
|
pigxPost: {
|
|
|
// 列出所有
|
|
|
list: (params = {
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}) => http.get('/admin/post/list', params),
|
|
|
|
|
|
// 分页
|
|
|
fetchList: (params = {}) => http.get('/admin/post/page', params),
|
|
|
|
|
|
// 新增
|
|
|
addObj: (obj = {}) => http.post('/admin/post', obj),
|
|
|
|
|
|
// 修改
|
|
|
putObj: (obj = {}, header = {
|
|
|
|
|
|
}) => http.put('/admin/post', obj, header = {
|
|
|
...obj,
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}),
|
|
|
|
|
|
// 删除
|
|
|
delObj: (params) => http.delete('/admin/post/' + params.id, params),
|
|
|
|
|
|
// 查询
|
|
|
getObj: (params) => http.get('/admin/post/' + params.id, params = {
|
|
|
...params,
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
|
|
|
// pigx 角色管理
|
|
|
pigxRole: {
|
|
|
// 列出所有
|
|
|
list: (params = {
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}) => http.get('/admin/role/list', params),
|
|
|
|
|
|
// 分页
|
|
|
fetchList: (params = {}) => http.get('/admin/role/page', params),
|
|
|
|
|
|
// 新增
|
|
|
addObj: (obj = {}, header = {}) => http.post('/admin/role', obj, header),
|
|
|
|
|
|
// 修改
|
|
|
putObj: (obj = {}, header = {}) => http.put('/admin/role', obj, header),
|
|
|
|
|
|
// 删除
|
|
|
delObj: (params = {}, header = {}) => http.delete('/admin/role', params, header),
|
|
|
|
|
|
// 查询
|
|
|
getObj: (params = {}) => http.get('/admin/role/' + params.id, params = {
|
|
|
...params,
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
|
|
|
// pigx 用户管理
|
|
|
pigxUser: {
|
|
|
page: (params = {}) => http.get('/admin/user/page', params),
|
|
|
delete: (params = {}) => http.delete('/admin/user/' + params.id),
|
|
|
getOne: (params = {
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}) => http.get('/admin/user/' + params.id, params),
|
|
|
putObj: (params = {}, config = {}) => http.put('/admin/user', params, config = {
|
|
|
...config,
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
//pigx 令牌管理
|
|
|
pigxToken: {
|
|
|
page: (params = {}) => http.get('/admin/token/page', params),
|
|
|
delete: (params = {}) => http.delete('/admin/token/' + params.token),
|
|
|
},
|
|
|
|
|
|
//pigx 日志管理
|
|
|
pigxLog: {
|
|
|
page: (params = {}) => http.get('/admin/log/page', params),
|
|
|
delete: (params = {}) => http.delete('/admin/log/' + params.id),
|
|
|
},
|
|
|
|
|
|
// pigx 工作流
|
|
|
pigxOA: {
|
|
|
queryTodos: (params = {}) => http.get('/act/task/todo', params),
|
|
|
queryBill: (params = {}) => http.get('/act/leave-bill/' + params.leaveId, params = {
|
|
|
...params,
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}),
|
|
|
delBill: (params = {}, config = {
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}) => http.delete('/act/leave-bill/' + params.leaveId, params, config),
|
|
|
submitBill: (params = {}) => http.get('/act/leave-bill/submit/' + params.leaveId),
|
|
|
queryBillPage: (params = {}) => http.get('/act/leave-bill/page', params = {
|
|
|
...params,
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}),
|
|
|
getTask: (params = {}) => http.get('/act/task/' + params.taskId),
|
|
|
addTask: (params = {}, config = {
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}) => http.post('/act/leave-bill', params, config),
|
|
|
doTask: (params = {}) => http.post('/act/task', params),
|
|
|
},
|
|
|
|
|
|
// pigx 租户管理
|
|
|
pigxTenant: {
|
|
|
// 分页
|
|
|
fetchList: (params = {}) => http.get('/admin/tenant/page', params),
|
|
|
|
|
|
// 新增
|
|
|
addObj: (obj = {}) => http.post('/admin/tenant', obj),
|
|
|
|
|
|
// 修改
|
|
|
putObj: (obj = {}) => http.put('/admin/tenant', obj),
|
|
|
|
|
|
// 删除
|
|
|
delObj: (params = {}) => http.delete('/admin/tenant', params),
|
|
|
|
|
|
// 查询
|
|
|
getObj: (params) => http.get('/admin/tenant/', params)
|
|
|
},
|
|
|
|
|
|
// pigx 参数管理
|
|
|
pigxParam: {
|
|
|
// 分页
|
|
|
fetchList: (params = {}) => http.get('/admin/param/page', params),
|
|
|
|
|
|
// 新增
|
|
|
addObj: (obj = {}) => http.post('/admin/param', obj),
|
|
|
|
|
|
// 修改
|
|
|
putObj: (obj = {}) => http.put('/admin/param', obj),
|
|
|
|
|
|
// 删除
|
|
|
delObj: (params) => http.delete('/admin/param/' + params.id),
|
|
|
|
|
|
// 查询
|
|
|
getObj: (params) => http.get('/admin/param/' + params.id)
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
|
|
const http = uni.$u.http
|
|
|
const platform = '162881648838805'
|
|
|
export const api = {
|
|
|
// 账户注册
|
|
|
register: (params = {}, header = {}) => http.post('/api/member/register', params, header = {
|
|
|
header: {
|
|
|
platform
|
|
|
},
|
|
|
params: {
|
|
|
...header
|
|
|
},
|
|
|
custom: {
|
|
|
auth: false
|
|
|
},
|
|
|
}),
|
|
|
// 账户忘记密码
|
|
|
forget: (params = {}, header = {}) => http.post('api/member/forget', params, header = {
|
|
|
header: {
|
|
|
platform
|
|
|
},
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
custom: {
|
|
|
auth: false
|
|
|
},
|
|
|
}),
|
|
|
// 获取手机验证码
|
|
|
loginCd: (params = {}, header = {}) => http.post('/SMS', params, header = {
|
|
|
header: {
|
|
|
platform
|
|
|
},
|
|
|
params: {
|
|
|
...header
|
|
|
},
|
|
|
}),
|
|
|
// 登录
|
|
|
signIn: (params = {}, header = {}) => http.post('/api/member/login', params, header = {
|
|
|
header: {
|
|
|
platform
|
|
|
},
|
|
|
params: {
|
|
|
...header
|
|
|
},
|
|
|
custom: {
|
|
|
auth: false
|
|
|
},
|
|
|
|
|
|
}),
|
|
|
// 统计
|
|
|
satistics: (params = {}, header = {}) => http.post('/api/satistics/task', params, header = {
|
|
|
header: {
|
|
|
platform,
|
|
|
...header
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 待接受任务列表
|
|
|
notAccept: (params = {}, header = {}) => http.post('/api/task/not/accept/list', params, header = {
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 点检工单列表
|
|
|
spotList: (params = {}, header = {}) => http.post('/api/spot/list', params, header = {
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 登录会员账户信息
|
|
|
account: (params = {}, header = {}) => http.post('/api/member/account', params, header = {
|
|
|
header: {},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 会员账户信息保存
|
|
|
accountSave: (params = {}, header = {}) => http.post('/api/member/account/save', params, header = {
|
|
|
|
|
|
params: {
|
|
|
...header
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 当前绑定公司列表
|
|
|
bindCompany: (params = {}, header = {}) => http.post('/api/member/company/list', params, header = {
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 当前绑定公司岗位列表
|
|
|
bindDeptList: (params = {}, header = {}) => http.post('/api/member/company/dept/list', params, header = {
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 人员岗位解绑
|
|
|
unbind: (params = {}, header = {}) => http.post('/api/member/company/dept/unbind', params, header = {
|
|
|
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 工作台扫描二维码绑定岗位保存
|
|
|
deptDind: (params = {}, header = {}) => http.post('/api/member/dept/bind', params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
|
|
|
// 接受任务列表(执行中的任务)(同时包含审核未成功的)
|
|
|
inExecution: (params = {}, header = {}) => http.post('/api/task/accept/list', params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
|
|
|
|
|
|
// 接收任务
|
|
|
taskSubFun: (params = {}, header = {}) => http.post('/api/task/accept/list', params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
|
|
|
|
|
|
// 获取保养列表
|
|
|
getRepair: (params = {}, header = {}) => http.post('/api/maintain/list', params, header = {
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 任务完毕列表
|
|
|
finishList: (params = {}, header = {}) => http.post('/api/task/finish/list', params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 消息列表
|
|
|
messageList: (params = {}, header = {}) => http.post('/api/member/message/list', params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 系统公告列表
|
|
|
memberNotice: (params = {}, header = {}) => http.post('/api/member/notice/list', params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
// header: {
|
|
|
// systemcode: header.systemcode
|
|
|
// },
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 系统公告详细
|
|
|
noticeDetails: (params = {}, header = {}) => http.post('/api/member/notice/details', params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 消息详细
|
|
|
messageDetails: (params = {}, header = {}) => http.post('/api/member/message/details', params, header = {
|
|
|
params: {
|
|
|
...header
|
|
|
},
|
|
|
// header: {
|
|
|
// systemcode: header.systemcode
|
|
|
// },
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 消息数量
|
|
|
messageCount: (params = {}, header = {}) => http.post('/api/member/message/count', params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 样品入库(返回url内嵌打开)
|
|
|
applyform_rk: (url, params = {}, header = {}) => http.post(url, params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
//切换系统
|
|
|
memberSystem: (params = {}, header = {}) => http.post('/api/member/system/current', params, header = {
|
|
|
// params: {
|
|
|
// ...header.params
|
|
|
// },
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
// 任务详细信息
|
|
|
taskdetails: (url, params = {}, header = {}) => http.post(url, params, header = {
|
|
|
params: {
|
|
|
...header.params
|
|
|
},
|
|
|
header: {
|
|
|
systemcode: header.systemcode
|
|
|
},
|
|
|
custom: {
|
|
|
auth: true
|
|
|
},
|
|
|
}),
|
|
|
htime: (params = {}) => http.get('/date'),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取验证图片 以及token
|
|
|
reqGet: (params = {}) => http.get('/code'),
|
|
|
//滑动或者点选验证
|
|
|
reqCheck: (params = {}, header = {}) => http.post('/code/check', params),
|
|
|
// 登录认证相关接口
|
|
|
login: (params = {}, header = {}) => http.post('/auth/oauth/token', params, header),
|
|
|
|
|
|
vxLogin: (params = {}, header = {}) => http.post('/auth/oauth/token?grant_type=mobile&mobile=MINI@' +
|
|
|
params.code + '&code=' + params.code, {}, header),
|
|
|
bingUser: (params = {}, header = {}) => http.post('/admin/social/bind?state=MINI&code=' + params
|
|
|
.code, {}, header),
|
|
|
smsLogin: (params = {}, header = {}) => http.post('/auth/oauth/token?mobile=SMS@' + params.mobile +
|
|
|
'&code=' + params.code + '&grant_type=mobile', {}, header),
|
|
|
sendCode: (params = {}, header = {}) => http.get('/admin/mobile/' + params.mobile, {}, header),
|
|
|
logout: (params = {}) => http.delete('/auth/token/logout', params),
|
|
|
|
|
|
// 字典
|
|
|
dictData: (params = {}) => http.get('/admin/dict/type/' + params.dictType),
|
|
|
|
|
|
// 个人信息
|
|
|
user: {
|
|
|
getUserInfo: (params = {
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}) => http.get('/admin/user/info', params),
|
|
|
updateUserInfo: (params = {}, config = {}) => http.put('/admin/user/edit', params, config = {
|
|
|
...config,
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}),
|
|
|
infoSaveBase: (params = {}) => http.post('/admin/sys/user/infoSaveBase', params),
|
|
|
infoSavePwd: (params = {}) => http.post('/admin/sys/user/infoSavePwd', params),
|
|
|
},
|
|
|
|
|
|
// 字典
|
|
|
dict: {
|
|
|
type: (params = {}) => http.get('/admin/dict/type/' + params)
|
|
|
},
|
|
|
|
|
|
// pigx文件管理
|
|
|
pigxFile: {
|
|
|
upload: (params = {}) => http.post('/admin/sys-file/upload')
|
|
|
},
|
|
|
|
|
|
// pigx 部门管理
|
|
|
pigxDept: {
|
|
|
list: (params = {
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}) => http.get('/admin/dept/list', params)
|
|
|
},
|
|
|
|
|
|
// pigx 岗位管理
|
|
|
pigxPost: {
|
|
|
// 列出所有
|
|
|
list: (params = {
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}) => http.get('/admin/post/list', params),
|
|
|
|
|
|
// 分页
|
|
|
fetchList: (params = {}) => http.get('/admin/post/page', params),
|
|
|
|
|
|
// 新增
|
|
|
addObj: (obj = {}) => http.post('/admin/post', obj),
|
|
|
|
|
|
// 修改
|
|
|
putObj: (obj = {}, header = {
|
|
|
|
|
|
}) => http.put('/admin/post', obj, header = {
|
|
|
...obj,
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}),
|
|
|
|
|
|
// 删除
|
|
|
delObj: (params) => http.delete('/admin/post/' + params.id, params),
|
|
|
|
|
|
// 查询
|
|
|
getObj: (params) => http.get('/admin/post/' + params.id, params = {
|
|
|
...params,
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
|
|
|
// pigx 角色管理
|
|
|
pigxRole: {
|
|
|
// 列出所有
|
|
|
list: (params = {
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}) => http.get('/admin/role/list', params),
|
|
|
|
|
|
// 分页
|
|
|
fetchList: (params = {}) => http.get('/admin/role/page', params),
|
|
|
|
|
|
// 新增
|
|
|
addObj: (obj = {}, header = {}) => http.post('/admin/role', obj, header),
|
|
|
|
|
|
// 修改
|
|
|
putObj: (obj = {}, header = {}) => http.put('/admin/role', obj, header),
|
|
|
|
|
|
// 删除
|
|
|
delObj: (params = {}, header = {}) => http.delete('/admin/role', params, header),
|
|
|
|
|
|
// 查询
|
|
|
getObj: (params = {}) => http.get('/admin/role/' + params.id, params = {
|
|
|
...params,
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
|
|
|
// pigx 用户管理
|
|
|
pigxUser: {
|
|
|
page: (params = {}) => http.get('/admin/user/page', params),
|
|
|
delete: (params = {}) => http.delete('/admin/user/' + params.id),
|
|
|
getOne: (params = {
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}) => http.get('/admin/user/' + params.id, params),
|
|
|
putObj: (params = {}, config = {}) => http.put('/admin/user', params, config = {
|
|
|
...config,
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
//pigx 令牌管理
|
|
|
pigxToken: {
|
|
|
page: (params = {}) => http.get('/admin/token/page', params),
|
|
|
delete: (params = {}) => http.delete('/admin/token/' + params.token),
|
|
|
},
|
|
|
|
|
|
//pigx 日志管理
|
|
|
pigxLog: {
|
|
|
page: (params = {}) => http.get('/admin/log/page', params),
|
|
|
delete: (params = {}) => http.delete('/admin/log/' + params.id),
|
|
|
},
|
|
|
|
|
|
// pigx 工作流
|
|
|
pigxOA: {
|
|
|
queryTodos: (params = {}) => http.get('/act/task/todo', params),
|
|
|
queryBill: (params = {}) => http.get('/act/leave-bill/' + params.leaveId, params = {
|
|
|
...params,
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}),
|
|
|
delBill: (params = {}, config = {
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}) => http.delete('/act/leave-bill/' + params.leaveId, params, config),
|
|
|
submitBill: (params = {}) => http.get('/act/leave-bill/submit/' + params.leaveId),
|
|
|
queryBillPage: (params = {}) => http.get('/act/leave-bill/page', params = {
|
|
|
...params,
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}),
|
|
|
getTask: (params = {}) => http.get('/act/task/' + params.taskId),
|
|
|
addTask: (params = {}, config = {
|
|
|
custom: {
|
|
|
auth: true
|
|
|
}
|
|
|
}) => http.post('/act/leave-bill', params, config),
|
|
|
doTask: (params = {}) => http.post('/act/task', params),
|
|
|
},
|
|
|
|
|
|
// pigx 租户管理
|
|
|
pigxTenant: {
|
|
|
// 分页
|
|
|
fetchList: (params = {}) => http.get('/admin/tenant/page', params),
|
|
|
|
|
|
// 新增
|
|
|
addObj: (obj = {}) => http.post('/admin/tenant', obj),
|
|
|
|
|
|
// 修改
|
|
|
putObj: (obj = {}) => http.put('/admin/tenant', obj),
|
|
|
|
|
|
// 删除
|
|
|
delObj: (params = {}) => http.delete('/admin/tenant', params),
|
|
|
|
|
|
// 查询
|
|
|
getObj: (params) => http.get('/admin/tenant/', params)
|
|
|
},
|
|
|
|
|
|
// pigx 参数管理
|
|
|
pigxParam: {
|
|
|
// 分页
|
|
|
fetchList: (params = {}) => http.get('/admin/param/page', params),
|
|
|
|
|
|
// 新增
|
|
|
addObj: (obj = {}) => http.post('/admin/param', obj),
|
|
|
|
|
|
// 修改
|
|
|
putObj: (obj = {}) => http.put('/admin/param', obj),
|
|
|
|
|
|
// 删除
|
|
|
delObj: (params) => http.delete('/admin/param/' + params.id),
|
|
|
|
|
|
// 查询
|
|
|
getObj: (params) => http.get('/admin/param/' + params.id)
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|