diff --git a/src/api/certificateManage/index.js b/src/api/certificateManage/index.js index c9533b2..87c7724 100644 --- a/src/api/certificateManage/index.js +++ b/src/api/certificateManage/index.js @@ -322,8 +322,30 @@ export function getCertificateVerifyUserApi(data) { headers: { //"merchant-id":"378915229716713472", }, - params:data + data:data }) } +// 核验任务-新增 +export function addCertificateVerifyApi(data) { + return request({ + url: '/certificate/certificate_verify/certificateVerify/add', + method: 'post', + headers: { + //"merchant-id":"378915229716713472", + }, + data:data + }) +} +// 核验任务-详情 +export function getCertificateVerifyDetailApi(data) { + return request({ + url: '/certificate/certificate_verify/certificateVerify/detail', + method: 'get', + headers: { + //"merchant-id":"378915229716713472", + }, + params:data + }) +} diff --git a/src/views/certificate/remoteVerification/remoteVerificationTask/index.vue b/src/views/certificate/remoteVerification/remoteVerificationTask/index.vue index ddd60d3..3a81a2a 100644 --- a/src/views/certificate/remoteVerification/remoteVerificationTask/index.vue +++ b/src/views/certificate/remoteVerification/remoteVerificationTask/index.vue @@ -21,8 +21,8 @@ end-placeholder="结束日期" > - - + + @@ -31,8 +31,8 @@ - - + + @@ -68,11 +68,11 @@ - + @@ -99,14 +99,14 @@ 编辑 - 查看 + @@ -160,8 +160,8 @@ - - + + 有无证件核验 一人多证核验 出入境时间核验 @@ -169,8 +169,8 @@ - - + + 邮件通知 短信通知 @@ -184,7 +184,75 @@ + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + + + + + + + @@ -192,8 +260,7 @@ import { listDept } from '@/api/system/dept' - import { getCertificateVerifyListPageApi,addCertificateCheckApi, updateCertificateInfoApi, - deleteCertificateInfoApi,getCertificateVerifyUserApi } from "@/api/certificateManage/index"; + import { getCertificateVerifyListPageApi,addCertificateVerifyApi,getCertificateVerifyUserApi,getCertificateVerifyDetailApi } from "@/api/certificateManage/index"; import base64 from 'base-64'; import { getToken } from '@/utils/auth' import { downloadFileByUrl } from '@/utils/download' @@ -232,13 +299,12 @@ pageNum: 1, pageSize: 10, keyWord:null, - state:null, - type:null, + verifyState:null, + verifyType:null, }, // 表单参数 baseForm: { - checkType:1, - processDate:"", + }, // 表单校验 baseFormRules: { @@ -249,6 +315,15 @@ { required: true, message: "核验截至日期不能为空", trigger: "blur" } ] }, + openDetail:false, + rowData:{}, + detailParams:{ + pageNum: 1, + pageSize: 10, + name:null, + }, + total2:0, + detailList:[] }; }, mounted(){ @@ -290,10 +365,10 @@ this.loading = true; let param = { "pageNum":this.queryParams.pageNum, - "pageSize":this.queryParams.pageSize, + "pageSize":this.queryParams.pageSize, "keyWord":this.queryParams.keyWord, - "state":this.queryParams.state, - "type":this.queryParams.type, + "verifyState":this.queryParams.verifyState, + "verifyType":this.queryParams.verifyType, "startTime":this.dateRange[0]||"", "endTime":this.dateRange[1]||"", } @@ -311,20 +386,7 @@ }, // 表单重置 reset() { - this.baseForm = { - deptId:null, - name:"", - idNumber:"", - birthday:"", - birthAddr:"", - certificateType:"", - certificateTypeName:"", - certificateNo:"", - issueAddr:"", - issueDay:"", - issueLifespan:"", - isEle:"0",isCreate:"0" - }; + this.baseForm = {}; this.resetForm("baseForm"); }, /** 新增按钮操作 */ @@ -338,8 +400,8 @@ console.log("this.baseForm",this.baseForm); this.$refs["baseForm"].validate(valid => { if (valid) { - this.baseForm.taskNos=this.taskNos; - addCertificateCheckApi(this.baseForm).then(response => { + // this.baseForm.taskNos=this.taskNos; + addCertificateVerifyApi(this.baseForm).then(response => { if(response.code=200){ this.$modal.msgSuccess("验证下发成功"); this.open = false; @@ -351,6 +413,31 @@ } }); }, + handleView(row){ + console.log(row) + this.rowData = row; + this.handleQuery2() + this.openDetail = true + }, + /** 搜索按钮操作 */ + handleQuery2() { + this.detailParams.pageNum = 1; + this.getDetailList(); + }, + /** 重置按钮操作 */ + resetQuery2() { + this.resetForm("detailForm"); + this.handleQuery2(); + }, + getDetailList(){ + let param = { + bathId:this.rowData.bathId + } + getCertificateVerifyDetailApi(param).then(response => { + this.detailList = response.rows; + this.total2 = Number(response.total); + }); + }, formatDate(date) { // 格式化为 YYYY-MM-DD const year = date.getFullYear();