-
-
-
-
+
+
+
+
+
+
搜索
@@ -54,7 +55,7 @@
-
+
{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}
@@ -65,10 +66,11 @@
-
+
+
@@ -88,13 +90,7 @@
size="mini"
type="text"
@click="handleUpdate(scope.row)"
- >审批
-
+ >审批
@@ -115,17 +111,7 @@
-
-
-
- 选择人员
-
-
-
+
-
-
@@ -222,64 +206,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 @@