diff --git a/src/api/materialsStation/auth.js b/src/api/materialsStation/auth.js new file mode 100644 index 00000000..b12cd4a1 --- /dev/null +++ b/src/api/materialsStation/auth.js @@ -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 + }) +} diff --git a/src/views/material/materialStation/authorize/index.vue b/src/views/material/materialStation/authorize/index.vue new file mode 100644 index 00000000..85764562 --- /dev/null +++ b/src/views/material/materialStation/authorize/index.vue @@ -0,0 +1,1054 @@ + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + 批量授权 + + ({{ selectList.length }}) + + + + 已选择 {{ selectList.length }} 条未授权记录 + + + + + + + + {{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }} + + + + + + + + + + + + + 未授权 + 已授权 + + + + + + 授权 + + + 查看 + + + 编辑 + + + 项目部委托书 + + + + + + + + + + + + + + + + + 点击上传PDF + + + 预览委托书 + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ scope.row.frontUploading ? '识别中...' : '头像面' }} + + + ✓ + + + + + {{ scope.row.backUploading ? '识别中...' : '国徽面' }} + + + ✓ + + + + + + + 删除 + + + + + + 新增领料人 + + + + + + + + + {{ item.code }} ({{ item.leasePerson }}) + + 无已选申请单 + + + + + + + + + + + + + + + + {{ viewForm.authorizationFile.name }} + + + ({{ formatFileSize(viewForm.authorizationFile.size) }}) + + + 无 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +