From 3db0a2064c413008399c85d4feb7fe969dae1020 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Tue, 25 Nov 2025 18:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A51?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/certificateManage/index.js | 85 ++++++ .../certificateExam/index.vue | 262 ++++-------------- .../certificateRequest/index.vue | 125 ++------- .../remoteVerificationTask/index.vue | 68 ++--- 4 files changed, 188 insertions(+), 352 deletions(-) diff --git a/src/api/certificateManage/index.js b/src/api/certificateManage/index.js index cae727b..1fd646c 100644 --- a/src/api/certificateManage/index.js +++ b/src/api/certificateManage/index.js @@ -232,3 +232,88 @@ export function addCertificateCheckApi(data) { data: data }) } + + +// 证件领用申请列表-分页查询 +export function getCertificateApplyListPageApi(data) { + return request({ + url: '/certificate/certificate_apply/certificateApply/list', + method: 'get', + headers: { + //"merchant-id":"378915229716713472", + }, + params:data + }) +} +// 证件领用申请添加申请 +export function addCertificateApplyApi(data) { + return request({ + url: '/certificate/certificate_apply/certificateApply/add', + method: 'post', + headers: { + //"merchant-id":"378915229716713472", + }, + data: data + }) +} + +// 证件领用申请删除 +export function delCertificateApplyApi(data) { + return request({ + url: '/certificate/certificate_apply/certificateApply/del', + method: 'post', + headers: { + //"merchant-id":"378915229716713472", + }, + data: data + }) +} + + +// 证件领用审核列表-分页查询 +export function getCertificateExamListPageApi(data) { + return request({ + url: '/certificate/certificate_check/certificateCheck/list', + method: 'get', + headers: { + //"merchant-id":"378915229716713472", + }, + params:data + }) +} +// 证件领用申请删除 +export function checkCertificateApplyApi(data) { + return request({ + url: '/certificate/certificate_check/certificateCheck/check', + method: 'post', + headers: { + //"merchant-id":"378915229716713472", + }, + data: data + }) +} + +// 核验任务列表-分页查询 +export function getCertificateVerifyListPageApi(data) { + return request({ + url: '/certificate/certificate_verify/certificateVerify/list', + method: 'get', + headers: { + //"merchant-id":"378915229716713472", + }, + params:data + }) +} +// 核验任务-人员树 +export function getCertificateVerifyUserApi(data) { + return request({ + url: '/certificate/certificate_verify/certificateVerify/user', + method: 'get', + headers: { + //"merchant-id":"378915229716713472", + }, + params:data + }) +} + + diff --git a/src/views/certificate/certificateReturnManage/certificateExam/index.vue b/src/views/certificate/certificateReturnManage/certificateExam/index.vue index 13b81fe..a85d4a9 100644 --- a/src/views/certificate/certificateReturnManage/certificateExam/index.vue +++ b/src/views/certificate/certificateReturnManage/certificateExam/index.vue @@ -1,15 +1,6 @@ @@ -287,8 +213,7 @@ import { listDept } from '@/api/system/dept' - import { getCertificateInfoListPageApi,addCertificateInfoApi, updateCertificateInfoApi, - deleteCertificateInfoApi,getSysUserListApi,addCertificateCheckApi } from "@/api/certificateManage/index"; + import { getCertificateExamListPageApi,addCertificateInfoApi,updateCertificateInfoApi,checkCertificateApplyApi } from "@/api/certificateManage/index"; import base64 from 'base-64'; import { getToken } from '@/utils/auth' import { downloadFileByUrl } from '@/utils/download' @@ -462,12 +387,11 @@ "pageSize":this.queryParams.pageSize, "idNumber":this.queryParams.idNumber, "name":this.queryParams.name, - "certificateNo":this.queryParams.certificateNo + "certificateType":this.queryParams.certificateType, + // "certificateNo":this.queryParams.certificateNo } - console.log("param",param) - // let str = base64.encode(JSON.stringify(param)) - // console.log({"content":str}) - getCertificateInfoListPageApi(param).then(response => { + console.log("param",param) + getCertificateExamListPageApi(param).then(response => { this.tableListData = response.rows; this.total = Number(response.total); this.loading = false; @@ -537,21 +461,13 @@ submitForm: function() { console.log("this.baseForm",this.baseForm); this.$refs["baseForm"].validate(valid => { - if (valid) { - if (this.baseForm.createTime != undefined) { - updateCertificateInfoApi(this.baseForm).then(response => { - this.$modal.msgSuccess("修改成功"); - this.open = false; - this.getList(); - }); - } else { - addCertificateInfoApi(this.baseForm).then(response => { - this.$modal.msgSuccess("新增成功"); - this.open = false; - this.getList(); - }); - } - } + if (valid) { + checkCertificateApplyApi(this.baseForm).then(response => { + this.$modal.msgSuccess("新增成功"); + this.open = false; + this.getList(); + }); + } }); }, // 取消按钮 @@ -560,54 +476,24 @@ this.reset(); }, handleSelect(){ - this.openSelectUser = true; - getSysUserListApi({}).then(response => { - console.log("response",response); - this.allUserList=response; - this.$set(this.baseForm2,"userId",this.baseForm.userId) - this.$set(this.baseForm2,"phone",this.baseForm.phone) - }); - }, - getCorpAndDept(val){ - console.log("getCorpAndDept",val) - this.selectItme=val; - this.$set(this.baseForm2,"phone",this.selectItme.phone) - this.$set(this.baseForm2,"userId",this.selectItme.userId) - }, - /** 提交按钮 */ - submitForm2: function() { - console.log("this.baseForm2",this.baseForm2); - this.$refs["baseForm2"].validate(valid => { - if (valid) { - this.$set(this.baseForm,"phone",this.selectItme.phone) - this.$set(this.baseForm,"name",this.selectItme.userName) - this.$set(this.baseForm,"userId",this.selectItme.userId) - this.$set(this.baseForm,"deptId",this.selectItme.deptId) - this.openSelectUser = false; - this.isCreateFlage=false; - } - }); - }, - // 取消按钮 - cancel2() { - this.openSelectUser = false; - }, + + }, /** 删除按钮操作 */ handleDelete(row) { - var certificateNoRow=""; - if(row!=undefined &&row.certificateNo!=null&&row.certificateNo!=undefined){ - certificateNoRow=row.certificateNo.split(" "); - } - const certificateNos = certificateNoRow || this.certificateNos; - console.log("certificateNos",certificateNos); - this.$modal.confirm('是否确认删除数据项?').then(() => { - deleteCertificateInfoApi({certificateNos:certificateNos}).then(response => { - console.log("deleteCertificateInfoApi",response); - this.getList(); - this.$modal.msgSuccess("删除成功"); - return; - }); - }).catch(() => {}); + // var certificateNoRow=""; + // if(row!=undefined &&row.certificateNo!=null&&row.certificateNo!=undefined){ + // certificateNoRow=row.certificateNo.split(" "); + // } + // const certificateNos = certificateNoRow || this.certificateNos; + // console.log("certificateNos",certificateNos); + // this.$modal.confirm('是否确认删除数据项?').then(() => { + // deleteCertificateInfoApi({certificateNos:certificateNos}).then(response => { + // console.log("deleteCertificateInfoApi",response); + // this.getList(); + // this.$modal.msgSuccess("删除成功"); + // return; + // }); + // }).catch(() => {}); }, formatDate(date) { // 格式化为 YYYY-MM-DD @@ -616,12 +502,7 @@ const day = String(date.getDate()).padStart(2, '0'); return `${year}-${month}-${day}`; }, - /** 导出按钮操作 */ - handleExport() { - this.download('certificate/certificate_manage/certificateInfo/export', { - ...this.queryParams - }, `证件信息_${new Date().getTime()}.xlsx`); - }, + // 文件上传中处理 handleFileUploadProgress(event, file, fileList) { this.upload.isUploading = true @@ -637,13 +518,7 @@ }else{ this.$modal.msgError(response.msg); } - }, - /** 下载模板操作 */ - importTemplate() { - let url = window.location.origin + '/glweb/template/证件信息模板.xlsx'; - console.log(url) - downloadFileByUrl(url) - }, + }, /** 批量删除 */ handleBatchDel(){ @@ -656,47 +531,6 @@ this.single = selection.length !== 1 this.multiple = !selection.length }, - /** 远程校验按钮操作 */ - handleTask() { - this.resetTask() - this.openTask = true - }, - // 取消按钮 - cancelTask() { - this.openTask = false - this.resetTask() - }, - // 表单重置 - resetTask() { - this.taskForm = { - processDate:"" - } - this.resetForm('taskForm') - }, - /** 提交按钮 */ - submitTask: function () { - this.$refs['taskForm'].validate((valid) => { - let param = Object.assign({},this.taskForm) - console.log(param) - console.log(this.ids) - if (valid) { - param.userIds=this.userIds; - param.checkType="2"; - addCertificateCheckApi(param).then(response => { - if(response.code=200){ - this.$modal.msgSuccess("验证下发成功"); - this.openTask = false; - this.getList(); - }else{ - this.$modal.msgError(response.msg); - } - }); - } - }) - }, - openLog(row){ - this.$router.push({ path: "/certificate/certificateManage/certificateLogList",query: {certificateInfoRowData:JSON.stringify(row)} }); - } } }; diff --git a/src/views/certificate/certificateReturnManage/certificateRequest/index.vue b/src/views/certificate/certificateReturnManage/certificateRequest/index.vue index 90db261..8c89c25 100644 --- a/src/views/certificate/certificateReturnManage/certificateRequest/index.vue +++ b/src/views/certificate/certificateReturnManage/certificateRequest/index.vue @@ -55,7 +55,7 @@ - +