接口对接1
This commit is contained in:
parent
1dd5e038e5
commit
3db0a2064c
|
|
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,6 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="身份证号" prop="idNumber">
|
||||
<el-input
|
||||
v-model="queryParams.idNumber"
|
||||
placeholder="请输入身份证号"
|
||||
clearable maxlength="20"
|
||||
style="width: 300px"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="姓名" prop="name">
|
||||
<el-input
|
||||
v-model="queryParams.name"
|
||||
|
|
@ -19,14 +10,24 @@
|
|||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="证件编号" prop="certificateNo">
|
||||
<el-form-item label="身份证号" prop="idNumber">
|
||||
<el-input
|
||||
v-model="queryParams.certificateNo"
|
||||
placeholder="请输入证件编号"
|
||||
v-model="queryParams.idNumber"
|
||||
placeholder="请输入身份证号"
|
||||
clearable maxlength="20"
|
||||
style="width: 300px"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="证件类型" prop="certificateType">
|
||||
<el-select v-model="queryParams.certificateType" placeholder="证件类型" clearable style="width: 100%;">
|
||||
<el-option
|
||||
v-for="dict in dict.type.sys_certificate_type"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
|
|
@ -54,7 +55,7 @@
|
|||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
<el-table v-loading="loading" :data="tableListData" @selection-change="handleSelectionChange" height="800">
|
||||
<el-table-column type="selection" width="55" align="center"/>
|
||||
<!-- <el-table-column type="selection" width="55" align="center"/> -->
|
||||
<el-table-column label="序号" align="center" width="80" type="index">
|
||||
<template slot-scope="scope">
|
||||
<span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
|
||||
|
|
@ -65,10 +66,11 @@
|
|||
<el-table-column label="身份证号" align="center" prop="idNumber" :show-overflow-tooltip="true" width="180"/>
|
||||
<el-table-column label="证件类型" align="center" prop="certificateTypeName" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="证件编号" align="center" prop="certificateNo" :show-overflow-tooltip="true" width="180"></el-table-column>
|
||||
<el-table-column label="领用原因" align="center" prop="requestReason" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="领用原因" align="center" prop="requestReason" :show-overflow-tooltip="true">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.issue_type" :value="scope.row.requestReason"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="详细说明" align="center" width="120" prop="remark" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="计划出国时间" align="center" prop="" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="计划返回时间" align="center" prop="" :show-overflow-tooltip="true"/>
|
||||
|
|
@ -88,13 +90,7 @@
|
|||
size="mini"
|
||||
type="text"
|
||||
@click="handleUpdate(scope.row)"
|
||||
>审批</el-button>
|
||||
<!-- <el-button v-if="scope.row.state==0||scope.row.state==4"
|
||||
size="mini"
|
||||
type="text"
|
||||
style="color: red;"
|
||||
@click="handleDelete(scope.row)"
|
||||
>删除</el-button> -->
|
||||
>审批</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
|
@ -115,17 +111,7 @@
|
|||
<el-form-item label="姓名" prop="name">
|
||||
<el-input v-model="baseForm.name" placeholder="请输入" maxlength="30" clearable/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col el-col :span="12" v-if="baseForm.deptId !== 0">
|
||||
<el-form-item label="">
|
||||
<el-button
|
||||
type="success"
|
||||
size="mini"
|
||||
@click="handleSelect()"
|
||||
>选择人员
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-col>
|
||||
<el-col :span="12" v-if="baseForm.deptId !== 0">
|
||||
<el-form-item label="单位" prop="deptId" style="width: 100%;">
|
||||
<treeselect
|
||||
|
|
@ -141,8 +127,6 @@
|
|||
<el-input v-model="baseForm.phone" placeholder="请输入" maxlength="30" clearable/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="身份证号" prop="idNumber">
|
||||
<el-input v-model="baseForm.idNumber" placeholder="请输入" maxlength="30" clearable/>
|
||||
|
|
@ -222,64 +206,6 @@
|
|||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 选择人员 -->
|
||||
<el-dialog title="选择系统人员" :visible.sync="openSelectUser" width="600px" append-to-body>
|
||||
<el-form ref="baseForm2" :model="baseForm2" :rules="baseFormRules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="姓名" prop="userId">
|
||||
<el-select
|
||||
v-model="baseForm2.userId"
|
||||
placeholder="请选择"
|
||||
filterable
|
||||
clearable
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in allUserList"
|
||||
:key="item.userId"
|
||||
:label="item.userName"
|
||||
:value="item.userId"
|
||||
@click.native="getCorpAndDept(item)"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="手机号码" prop="phone">
|
||||
<el-input style="width: 100%;background-color:#DAE1EE;" v-model="baseForm2.phone" readonly="true" maxlength="30" clearable/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm2">确 定</el-button>
|
||||
<el-button @click="cancel2">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 核验任务下达 -->
|
||||
<el-dialog title="核验任务下达" :visible.sync="openTask" width="600px" append-to-body>
|
||||
<el-form ref="taskForm" :model="taskForm" :rules="taskRules" label-width="120px">
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="核验截止日期" prop="processDate">
|
||||
<el-date-picker
|
||||
v-model="taskForm.processDate"
|
||||
type="date"
|
||||
placeholder="选择日期"
|
||||
format="yyyy-MM-dd" style="width: 100%;"
|
||||
value-format="yyyy-MM-dd"></el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitTask">确 定</el-button>
|
||||
<el-button @click="cancelTask">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -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)} });
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
<el-table v-loading="loading" :data="tableListData" @selection-change="handleSelectionChange" height="800">
|
||||
<el-table-column type="selection" width="55" align="center"/>
|
||||
<!-- <el-table-column type="selection" width="55" align="center"/> -->
|
||||
<el-table-column label="序号" align="center" width="80" type="index">
|
||||
<template slot-scope="scope">
|
||||
<span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
|
||||
|
|
@ -66,10 +66,11 @@
|
|||
<!-- <el-table-column label="身份证号" align="center" prop="idNumber" :show-overflow-tooltip="true" width="180"/> -->
|
||||
<el-table-column label="证件类型" align="center" prop="certificateTypeName" :show-overflow-tooltip="true"/>
|
||||
<!-- <el-table-column label="证件编号" align="center" prop="certificateNo" :show-overflow-tooltip="true" width="180"></el-table-column> -->
|
||||
<el-table-column label="领用原因" align="center" prop="requestReason" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="领用原因" align="center" prop="requestReason" :show-overflow-tooltip="true">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.issue_type" :value="scope.row.requestReason"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="详细说明" align="center" width="120" prop="remark" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="计划出国时间" align="center" prop="" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="计划返回时间" align="center" prop="" :show-overflow-tooltip="true"/>
|
||||
|
|
@ -254,37 +255,14 @@
|
|||
<el-button type="primary" @click="submitForm2">确 定</el-button>
|
||||
<el-button @click="cancel2">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 核验任务下达 -->
|
||||
<el-dialog title="核验任务下达" :visible.sync="openTask" width="600px" append-to-body>
|
||||
<el-form ref="taskForm" :model="taskForm" :rules="taskRules" label-width="120px">
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="核验截止日期" prop="processDate">
|
||||
<el-date-picker
|
||||
v-model="taskForm.processDate"
|
||||
type="date"
|
||||
placeholder="选择日期"
|
||||
format="yyyy-MM-dd" style="width: 100%;"
|
||||
value-format="yyyy-MM-dd"></el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitTask">确 定</el-button>
|
||||
<el-button @click="cancelTask">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
listDept
|
||||
} from '@/api/system/dept'
|
||||
import { getCertificateInfoListPageApi,addCertificateInfoApi, updateCertificateInfoApi,
|
||||
deleteCertificateInfoApi,getSysUserListApi,addCertificateCheckApi } from "@/api/certificateManage/index";
|
||||
import { listDept } from '@/api/system/dept'
|
||||
import { getCertificateApplyListPageApi,addCertificateApplyApi, updateCertificateInfoApi,
|
||||
delCertificateApplyApi,getSysUserListApi,addCertificateCheckApi } from "@/api/certificateManage/index";
|
||||
import base64 from 'base-64';
|
||||
import { getToken } from '@/utils/auth'
|
||||
import { downloadFileByUrl } from '@/utils/download'
|
||||
|
|
@ -403,23 +381,7 @@
|
|||
headers: { Authorization: 'Bearer ' + getToken() },
|
||||
// 上传的地址
|
||||
url: process.env.VUE_APP_BASE_API + '/certificate/certificate_manage/certificateInfo/import',
|
||||
},
|
||||
//远程校验弹窗
|
||||
openTask: false,
|
||||
// 表单参数
|
||||
taskForm: {
|
||||
processDate:""
|
||||
},
|
||||
// 表单校验
|
||||
taskRules: {
|
||||
processDate: [
|
||||
{
|
||||
required: true,
|
||||
message: '核验截止日期不能为空',
|
||||
trigger: 'blur',
|
||||
},
|
||||
]
|
||||
},
|
||||
}
|
||||
};
|
||||
},
|
||||
mounted(){
|
||||
|
|
@ -457,12 +419,10 @@
|
|||
"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 => {
|
||||
getCertificateApplyListPageApi(param).then(response => {
|
||||
this.tableListData = response.rows;
|
||||
this.total = Number(response.total);
|
||||
this.loading = false;
|
||||
|
|
@ -540,7 +500,7 @@
|
|||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addCertificateInfoApi(this.baseForm).then(response => {
|
||||
addCertificateApplyApi(this.baseForm).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
|
|
@ -596,8 +556,8 @@
|
|||
const certificateNos = certificateNoRow || this.certificateNos;
|
||||
console.log("certificateNos",certificateNos);
|
||||
this.$modal.confirm('是否确认删除数据项?').then(() => {
|
||||
deleteCertificateInfoApi({certificateNos:certificateNos}).then(response => {
|
||||
console.log("deleteCertificateInfoApi",response);
|
||||
delCertificateApplyApi({certificateNos:certificateNos}).then(response => {
|
||||
console.log("delCertificateApplyApi",response);
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
return;
|
||||
|
|
@ -633,64 +593,17 @@
|
|||
this.$modal.msgError(response.msg);
|
||||
}
|
||||
},
|
||||
/** 下载模板操作 */
|
||||
importTemplate() {
|
||||
let url = window.location.origin + '/glweb/template/证件信息模板.xlsx';
|
||||
console.log(url)
|
||||
downloadFileByUrl(url)
|
||||
},
|
||||
/** 批量删除 */
|
||||
handleBatchDel(){
|
||||
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.certificateNos = selection.map(item => item.certificateNo)
|
||||
this.userIds=selection.map(item => item.userId)
|
||||
// 更新单选和多选状态
|
||||
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)} });
|
||||
// this.certificateNos = selection.map(item => item.certificateNo)
|
||||
// this.userIds=selection.map(item => item.userId)
|
||||
// // 更新单选和多选状态
|
||||
// this.single = selection.length !== 1
|
||||
// this.multiple = !selection.length
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@
|
|||
end-placeholder="结束日期"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="任务状态" prop="taskStatus">
|
||||
<el-select v-model="queryParams.taskStatus" placeholder="任务状态" clearable>
|
||||
<el-form-item label="任务状态" prop="state">
|
||||
<el-select v-model="queryParams.state" placeholder="任务状态" clearable>
|
||||
<el-option label="未开始" value="1"/>
|
||||
<el-option label="进行中" value="2"/>
|
||||
<el-option label="已超时" value="3"/>
|
||||
|
|
@ -31,8 +31,8 @@
|
|||
<el-option label="已取消" value="6"/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="任务类型" prop="taskType">
|
||||
<el-select v-model="queryParams.taskType" placeholder="任务类型" clearable>
|
||||
<el-form-item label="任务类型" prop="type">
|
||||
<el-select v-model="queryParams.type" placeholder="任务类型" clearable>
|
||||
<el-option label="有无证件核验" value="1"/>
|
||||
<el-option label="一人多证核验" value="2"/>
|
||||
<el-option label="出入境时间核验" value="3"/>
|
||||
|
|
@ -66,13 +66,13 @@
|
|||
<el-table-column label="身份证号" align="center" prop="idNumber" :show-overflow-tooltip="true"/> -->
|
||||
<el-table-column label="开始时间" align="center" prop="startTime" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="结束时间" align="center" prop="endTime" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="任务标题" align="center" prop="taskTitle" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="任务状态" align="center" prop="taskStatus" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="任务类型" align="center" prop="taskType" :show-overflow-tooltip="true">
|
||||
<el-table-column label="任务标题" align="center" prop="verifyTiele" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="任务状态" align="center" prop="state" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="任务类型" align="center" prop="type" :show-overflow-tooltip="true">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.taskType==1">有无证件核验</span>
|
||||
<span v-if="scope.row.taskType==2">一人多证核验</span>
|
||||
<span v-if="scope.row.taskType==3">出入境时间核验</span>
|
||||
<span v-if="scope.row.type==1">有无证件核验</span>
|
||||
<span v-if="scope.row.type==2">一人多证核验</span>
|
||||
<span v-if="scope.row.type==3">出入境时间核验</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="完成进度" align="center" prop="taskProcess" :show-overflow-tooltip="true">
|
||||
|
|
@ -125,14 +125,14 @@
|
|||
<el-form ref="baseForm" :model="baseForm" :rules="baseFormRules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="任务标题" prop="remoteTitle">
|
||||
<el-input v-model="baseForm.remoteTitle" placeholder="请输入" maxlength="30" clearable/>
|
||||
<el-form-item label="任务标题" prop="verifyTitle">
|
||||
<el-input v-model="baseForm.verifyTitle" placeholder="请输入" maxlength="30" clearable/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="开始时间" prop="verificationDate">
|
||||
<el-form-item label="开始时间" prop="startTime">
|
||||
<el-date-picker
|
||||
v-model="baseForm.processDate"
|
||||
v-model="baseForm.startTime"
|
||||
type="date"
|
||||
placeholder="选择日期"
|
||||
format="yyyy-MM-dd" style="width: 100%;"
|
||||
|
|
@ -140,9 +140,9 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="结束时间" prop="verificationDate">
|
||||
<el-form-item label="结束时间" prop="endTime">
|
||||
<el-date-picker
|
||||
v-model="baseForm.processDate"
|
||||
v-model="baseForm.endTime"
|
||||
type="date"
|
||||
placeholder="选择日期"
|
||||
format="yyyy-MM-dd" style="width: 100%;"
|
||||
|
|
@ -150,9 +150,9 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="核验人员" prop="personList">
|
||||
<el-form-item label="核验人员" prop="verifyUsers">
|
||||
<treeselect
|
||||
v-model="baseForm.personList"
|
||||
v-model="baseForm.verifyUsers"
|
||||
:options="deptOptions"
|
||||
:normalizer="normalizer" :multiple="true" :flat="false" value-consists-of="LEAF_PRIORITY"
|
||||
placeholder="选择上级部门"
|
||||
|
|
@ -160,8 +160,8 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label-width="120px" label="选择核验类型" prop="verificationType">
|
||||
<el-radio-group v-model="baseForm.checkType" size="small">
|
||||
<el-form-item label-width="120px" label="选择核验类型" prop="type">
|
||||
<el-radio-group v-model="baseForm.type" size="small">
|
||||
<el-radio label="1">有无证件核验</el-radio>
|
||||
<el-radio label="2">一人多证核验</el-radio>
|
||||
<el-radio label="3">出入境时间核验</el-radio>
|
||||
|
|
@ -192,8 +192,8 @@
|
|||
import {
|
||||
listDept
|
||||
} from '@/api/system/dept'
|
||||
import { getCertificateCheckListPageApi,addCertificateCheckApi, updateCertificateInfoApi,
|
||||
deleteCertificateInfoApi,getSysUserListApi } from "@/api/certificateManage/index";
|
||||
import { getCertificateVerifyListPageApi,addCertificateCheckApi, updateCertificateInfoApi,
|
||||
deleteCertificateInfoApi,getCertificateVerifyUserApi } from "@/api/certificateManage/index";
|
||||
import base64 from 'base-64';
|
||||
import { getToken } from '@/utils/auth'
|
||||
import { downloadFileByUrl } from '@/utils/download'
|
||||
|
|
@ -231,8 +231,9 @@
|
|||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
name:null,//姓名
|
||||
certificateNo:null,//证件编号
|
||||
keyWord:null,
|
||||
state:null,
|
||||
type:null,
|
||||
},
|
||||
// 表单参数
|
||||
baseForm: {
|
||||
|
|
@ -258,7 +259,7 @@
|
|||
methods: {
|
||||
/** 查询部门列表 */
|
||||
getDeptList() {
|
||||
listDept().then((response) => {
|
||||
getCertificateVerifyUserApi().then((response) => {
|
||||
this.deptOptions = this.handleTree(response.data, 'deptId')
|
||||
})
|
||||
},
|
||||
|
|
@ -280,6 +281,7 @@
|
|||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.dateRange = []
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
|
|
@ -287,14 +289,16 @@
|
|||
getList() {
|
||||
this.loading = true;
|
||||
let param = {
|
||||
"pageNum":this.queryParams.pageNum,
|
||||
"pageSize":this.queryParams.pageSize,
|
||||
"idNumber":this.queryParams.idNumber,
|
||||
"name":this.queryParams.name,
|
||||
"certificateNo":this.queryParams.certificateNo
|
||||
"pageNum":this.queryParams.pageNum,
|
||||
"pageSize":this.queryParams.pageSize,
|
||||
"keyWord":this.queryParams.keyWord,
|
||||
"state":this.queryParams.state,
|
||||
"type":this.queryParams.type,
|
||||
"startTime":this.dateRange[0]||"",
|
||||
"endTime":this.dateRange[1]||"",
|
||||
}
|
||||
console.log("param",param)
|
||||
getCertificateCheckListPageApi(param).then(response => {
|
||||
console.log("param",param)
|
||||
getCertificateVerifyListPageApi(param).then(response => {
|
||||
this.tableListData = response.rows;
|
||||
this.total = Number(response.total);
|
||||
this.loading = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue