项目部授权
This commit is contained in:
parent
6b367ce1ff
commit
35c2208bf9
|
|
@ -0,0 +1,64 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 获取领用申请一级列表-列表
|
||||
export function getLeasePublishAuthList(query) {
|
||||
return request({
|
||||
url: '/material/authorize/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
//获取班组下拉
|
||||
export function getTeamList(data) {
|
||||
return request({
|
||||
url: '/material/select/getTeamList',
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function sumbitAuthData(data) {
|
||||
return request({
|
||||
url: '/material/authorize/authorizeSubmit',
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 上传身份证照片并识别
|
||||
export function uploadIdCard(data) {
|
||||
return request({
|
||||
url: "/material/authorize/uploadPhoto",
|
||||
method: "post",
|
||||
headers: {
|
||||
"Content-Type": "multipart/form-data",
|
||||
},
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 如果需要单独调用OCR识别接口
|
||||
export function recognizeIdCard(file, type) {
|
||||
const formData = new FormData()
|
||||
formData.append("file", file)
|
||||
formData.append("type", type)
|
||||
|
||||
return request({
|
||||
url: "/material/authorize/uploadPhoto",
|
||||
method: "post",
|
||||
headers: {
|
||||
"Content-Type": "multipart/form-data",
|
||||
},
|
||||
data: formData,
|
||||
})
|
||||
}
|
||||
|
||||
//查看
|
||||
export function getAuthDetail(data) {
|
||||
return request({
|
||||
url: '/material/authorize/authorizeView',
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue