|
|
@ -9,33 +9,11 @@
|
|
|
|
<el-card class="el-card" style="margin-top: -25px">
|
|
|
|
<el-card class="el-card" style="margin-top: -25px">
|
|
|
|
|
|
|
|
|
|
|
|
<div style="display: flex;">
|
|
|
|
<div style="display: flex;">
|
|
|
|
<el-button
|
|
|
|
<el-button v-if="editType==2" type="primary" size="mini" icon="search" @click="onPassSubmit">审核通过</el-button>
|
|
|
|
v-if="editType==2"
|
|
|
|
<el-button v-if="editType==2" type="primary" size="mini" @click="onRejectSubmit">审核拒绝</el-button>
|
|
|
|
type="primary"
|
|
|
|
<el-button v-if="editType==1" type="primary" size="mini" icon="search" @click="printSupCertAll">打印</el-button>
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
icon="search"
|
|
|
|
|
|
|
|
@click="onPassSubmit"
|
|
|
|
|
|
|
|
>审核通过
|
|
|
|
|
|
|
|
</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
v-if="editType==2"
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
icon="search"
|
|
|
|
|
|
|
|
@click="onRejectSubmit"
|
|
|
|
|
|
|
|
>审核拒绝
|
|
|
|
|
|
|
|
</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
v-if="editType==1"
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
icon="search"
|
|
|
|
|
|
|
|
@click="printSupCertAll"
|
|
|
|
|
|
|
|
>打印
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 20px">
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 20px">
|
|
|
|
<el-col :span="10" class="el-col">
|
|
|
|
<el-col :span="10" class="el-col">
|
|
|
|
<el-form-item label="企业名称:" label-width="150px" prop="companyName">
|
|
|
|
<el-form-item label="企业名称:" label-width="150px" prop="companyName">
|
|
|
@ -128,6 +106,7 @@
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
<el-card>
|
|
|
|
<el-card>
|
|
|
|
|
|
|
|
|
|
|
@ -143,60 +122,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="certLoading" :data="certList" ref="certTable" style="width: 100%" border highlight-current-row>
|
|
|
|
<el-table v-loading="certLoading" :data="certList" ref="certTable" style="width: 100%" border
|
|
|
|
<el-table-column type="selection" width="55">
|
|
|
|
highlight-current-row>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
|
<el-table-column type="index" label="序号" width="50"></el-table-column>
|
|
|
|
<el-table-column type="index" label="序号" width="50"></el-table-column>
|
|
|
|
<el-table-column label="证书名称" prop="name"></el-table-column>
|
|
|
|
<el-table-column label="证书名称" prop="name"></el-table-column>
|
|
|
|
<el-table-column label="证书编号" prop="code"></el-table-column>
|
|
|
|
<el-table-column label="证书编号" prop="code"></el-table-column>
|
|
|
|
<el-table-column label="有效期" prop="vailDate"></el-table-column>
|
|
|
|
<el-table-column label="生效期" prop="vailDate"></el-table-column>
|
|
|
|
<el-table-column label="失效期" prop="expireDate"></el-table-column>
|
|
|
|
<el-table-column label="失效期" prop="expireDate"></el-table-column>
|
|
|
|
<el-table-column label="备注" prop="remark"></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="证书状态" prop="status">
|
|
|
|
<el-table-column label="证书状态" prop="status">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ supStatus[scope.row.status] }}
|
|
|
|
{{ supStatus[scope.row.status] }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="审核状态" prop="auditStatus" width="120">
|
|
|
|
<el-table-column label="确认状态" prop="auditStatus" width="120">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-tag :type="(scope.row.auditStatus) | statusFilterType">
|
|
|
|
<el-tag :type="(scope.row.auditStatus) | statusFilterType">
|
|
|
|
{{ checkFlag[scope.row.auditStatus] }}
|
|
|
|
{{ checkFlag[scope.row.auditStatus] }}
|
|
|
|
</el-tag>
|
|
|
|
</el-tag>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="备注" prop="remark"></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="确认说明" prop="auditComment" show-overflow-tooltip></el-table-column>
|
|
|
|
<el-table-column label="操作">
|
|
|
|
<el-table-column label="操作">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
<el-button v-if="editType==1" type="text" size="small" @click.native="printSupCert(scope.row)">打印
|
|
|
|
type="text"
|
|
|
|
</el-button>
|
|
|
|
size="small"
|
|
|
|
<el-button type="text" size="small" v-if="editType==2" @click.native="auditCert(scope.row)">编辑</el-button>
|
|
|
|
@click.native="toViewCompanyCert(scope.row)"
|
|
|
|
<el-button type="text" size="small" v-if="scope.row.auditStatus==1" @click.native="revoke(scope.row)">
|
|
|
|
>预览
|
|
|
|
撤回
|
|
|
|
</el-button
|
|
|
|
</el-button>
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
v-if="editType==1"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
@click.native="printSupCert(scope.row)"
|
|
|
|
|
|
|
|
>打印
|
|
|
|
|
|
|
|
</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
v-if="editType==2"
|
|
|
|
|
|
|
|
@click.native="auditCert(scope.row)"
|
|
|
|
|
|
|
|
>审核
|
|
|
|
|
|
|
|
</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
@click.native="rejectInfo(scope.row)"
|
|
|
|
|
|
|
|
>说明
|
|
|
|
|
|
|
|
</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
@ -211,17 +167,99 @@
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog width="30%" :visible.sync="certAuditVisible" append-to-body>
|
|
|
|
<el-dialog width="60%" :visible.sync="certAuditVisible" append-to-body title="配送企业资质证书确认">
|
|
|
|
<el-form :model="currentAudit">
|
|
|
|
<el-form :model="currentAudit" label-width="120px">
|
|
|
|
<label></label>
|
|
|
|
<el-row>
|
|
|
|
<el-form-item label="审核备注:" :label-width="120">
|
|
|
|
<el-col :span="11">
|
|
|
|
<el-input type="textarea" v-model="currentAudit.auditComment" autocomplete="off"
|
|
|
|
<el-form-item label="证书名称:" prop="name">
|
|
|
|
|
|
|
|
<el-input v-model="currentAudit.name" auto-complete="off"
|
|
|
|
|
|
|
|
disabled></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
|
|
|
<el-form-item label="证书编号:" prop="code">
|
|
|
|
|
|
|
|
<el-input v-model="currentAudit.code" auto-complete="off"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
|
|
|
<el-form-item label="生效期:" prop="vailDate">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
v-model="currentAudit.vailDate"
|
|
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
|
|
placeholder="请选择生效期">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
|
|
|
<el-form-item label="失效期:" prop="expireDate">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
v-model="currentAudit.expireDate"
|
|
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
|
|
disabled
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
|
|
placeholder="请选择失效期">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
|
|
|
<el-form-item label="证书状态:" prop="status">
|
|
|
|
|
|
|
|
<el-select v-model="currentAudit.status" :disabled="isOpen!=1" style="width: 100%">
|
|
|
|
|
|
|
|
<el-option label="失效" :value=1></el-option>
|
|
|
|
|
|
|
|
<el-option label="有效" :value=0></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
|
|
|
<el-form-item label="确认状态:" prop="confirmStatus">
|
|
|
|
|
|
|
|
<el-select v-model="confirmStatus" :disabled="isOpen==1" style="width: 100%">
|
|
|
|
|
|
|
|
<el-option label="符合" :value="1"></el-option>
|
|
|
|
|
|
|
|
<el-option label="不符合" :value="2"></el-option>
|
|
|
|
|
|
|
|
<el-option label="未确认" :value="6"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
|
|
|
<el-form-item label="证书文件:">
|
|
|
|
|
|
|
|
<el-button type="primary" size="mini" @click.native="showImgViewer(currentAudit)">证书预览</el-button>
|
|
|
|
|
|
|
|
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer"
|
|
|
|
|
|
|
|
:url-list="imgList"/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row style="margin-top: 12px">
|
|
|
|
|
|
|
|
<el-col :span="22">
|
|
|
|
|
|
|
|
<el-form-item label="结果说明:">
|
|
|
|
|
|
|
|
<el-input type="textarea" :disabled="isOpen==1" v-model="currentAudit.auditComment" autocomplete="off"
|
|
|
|
autosize></el-input>
|
|
|
|
autosize></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<el-button type="primary" @click="rejectAuditCert">审核拒绝</el-button>
|
|
|
|
<el-button type="primary" @click="confirm">确认</el-button>
|
|
|
|
<el-button type="primary" @click="passAuditCert">审核通过</el-button>
|
|
|
|
<el-button type="primary" @click="cancel">取消</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
@ -229,7 +267,14 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import {modifyCompany, auditCompany,printSupCert, verifyTemplateFile} from "../../../api/purchase/supCompany";
|
|
|
|
import {
|
|
|
|
|
|
|
|
modifyCompany,
|
|
|
|
|
|
|
|
auditCompany,
|
|
|
|
|
|
|
|
printSupCert,
|
|
|
|
|
|
|
|
verifyTemplateFile,
|
|
|
|
|
|
|
|
getRoId,
|
|
|
|
|
|
|
|
previewImage
|
|
|
|
|
|
|
|
} from '../../../api/purchase/supCompany'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
provinceAndCityData,
|
|
|
|
provinceAndCityData,
|
|
|
|
regionData,
|
|
|
|
regionData,
|
|
|
@ -238,8 +283,11 @@ import {
|
|
|
|
CodeToText,
|
|
|
|
CodeToText,
|
|
|
|
TextToCode,
|
|
|
|
TextToCode,
|
|
|
|
} from "element-china-area-data";
|
|
|
|
} from "element-china-area-data";
|
|
|
|
import {filterCompanyCert, deleteCompanyCert, auditSupCert} from "../../../api/purchase/companyCert";
|
|
|
|
import {filterCompanyCert, deleteCompanyCert, auditSupCert, revokeSupCert} from "../../../api/purchase/companyCert";
|
|
|
|
import draggable from "vuedraggable";
|
|
|
|
import draggable from "vuedraggable";
|
|
|
|
|
|
|
|
import {customerlist} from '@/api/system/role'
|
|
|
|
|
|
|
|
import store from '@/store'
|
|
|
|
|
|
|
|
import ElImageViewer from "element-ui/packages/image/src/image-viewer"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
@ -265,6 +313,8 @@ export default {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
BASE_URL: process.env.VUE_APP_BASE_API,
|
|
|
|
BASE_URL: process.env.VUE_APP_BASE_API,
|
|
|
|
headers: {},
|
|
|
|
headers: {},
|
|
|
|
|
|
|
|
imgViewerVisible: false,
|
|
|
|
|
|
|
|
imgList: [],
|
|
|
|
classesDisplay: false,
|
|
|
|
classesDisplay: false,
|
|
|
|
selectedOptions: [],
|
|
|
|
selectedOptions: [],
|
|
|
|
options: regionDataPlus,
|
|
|
|
options: regionDataPlus,
|
|
|
@ -342,6 +392,7 @@ export default {
|
|
|
|
limit: 20
|
|
|
|
limit: 20
|
|
|
|
},
|
|
|
|
},
|
|
|
|
certList: [],
|
|
|
|
certList: [],
|
|
|
|
|
|
|
|
roleList: [],
|
|
|
|
certTotal: 0,
|
|
|
|
certTotal: 0,
|
|
|
|
certLoading: false,
|
|
|
|
certLoading: false,
|
|
|
|
addCertVisible: false,
|
|
|
|
addCertVisible: false,
|
|
|
@ -357,6 +408,8 @@ export default {
|
|
|
|
certTypeMap: {
|
|
|
|
certTypeMap: {
|
|
|
|
1: '身份证'
|
|
|
|
1: '身份证'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
confirmStatus: null,
|
|
|
|
selectLocalVisible: false,
|
|
|
|
selectLocalVisible: false,
|
|
|
|
productQuery: {
|
|
|
|
productQuery: {
|
|
|
|
ylqxzcrbarmc: "",
|
|
|
|
ylqxzcrbarmc: "",
|
|
|
@ -370,15 +423,25 @@ export default {
|
|
|
|
productLoading: false,
|
|
|
|
productLoading: false,
|
|
|
|
uuid: null,
|
|
|
|
uuid: null,
|
|
|
|
companyApplyUpdateVisible: false,
|
|
|
|
companyApplyUpdateVisible: false,
|
|
|
|
|
|
|
|
isOpen: false,
|
|
|
|
companyEditDisabled: true,
|
|
|
|
companyEditDisabled: true,
|
|
|
|
companyEditButtonStr: "编辑",
|
|
|
|
companyEditButtonStr: "编辑",
|
|
|
|
checkFlag: {
|
|
|
|
checkFlag: {
|
|
|
|
0: "草稿",
|
|
|
|
0: "草稿",
|
|
|
|
1: "已通过",
|
|
|
|
1: "已确认",
|
|
|
|
|
|
|
|
2: "已拒绝",
|
|
|
|
|
|
|
|
3: "变更未确认",
|
|
|
|
|
|
|
|
6: "未确认",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkSupFlage: {
|
|
|
|
|
|
|
|
0: "草稿",
|
|
|
|
|
|
|
|
1: "已审核",
|
|
|
|
2: "已拒绝",
|
|
|
|
2: "已拒绝",
|
|
|
|
3: "变更未审核",
|
|
|
|
3: "变更未审核",
|
|
|
|
6: "未审核",
|
|
|
|
6: "未审核",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
supStatus: {
|
|
|
|
supStatus: {
|
|
|
|
0: "有效",
|
|
|
|
0: "有效",
|
|
|
|
1: "失效",
|
|
|
|
1: "失效",
|
|
|
@ -389,11 +452,12 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.getCompanyCertList();
|
|
|
|
this.getCompanyCertList();
|
|
|
|
|
|
|
|
this.customerlist();
|
|
|
|
this.selectedOptions = this.inputQuery.areaCode.split(",");
|
|
|
|
this.selectedOptions = this.inputQuery.areaCode.split(",");
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
draggable
|
|
|
|
draggable,
|
|
|
|
|
|
|
|
ElImageViewer
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
|
@ -417,9 +481,8 @@ export default {
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
onRejectSubmit() {
|
|
|
|
onRejectSubmit() {
|
|
|
|
this.$prompt('请输入驳回意见', '提示', {
|
|
|
|
this.$prompt('请输入结果说明', '提示', {
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
}).then(({value}) => {
|
|
|
|
}).then(({value}) => {
|
|
|
@ -440,8 +503,42 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
,
|
|
|
|
,
|
|
|
|
|
|
|
|
isAssetTypeAnImage(ext) {
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
'png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
showImgViewer(row) {
|
|
|
|
|
|
|
|
var varindex = row.filePath.lastIndexOf(".");
|
|
|
|
|
|
|
|
var varext = row.filePath.substring(varindex + 1);
|
|
|
|
|
|
|
|
var isImage = this.isAssetTypeAnImage(varext);
|
|
|
|
|
|
|
|
if (isImage == true) {
|
|
|
|
|
|
|
|
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
|
|
|
|
|
|
|
|
this.imgList = [];
|
|
|
|
|
|
|
|
previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => {
|
|
|
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
|
|
|
this.imgList.push(response.data);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.imgViewerVisible = true;
|
|
|
|
|
|
|
|
const m = (e) => {
|
|
|
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
document.body.style.overflow = 'hidden';
|
|
|
|
|
|
|
|
document.addEventListener("touchmove", m, false); // 禁止页面滑动
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.toViewCompanyCert(row);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
closeImgViewer() {
|
|
|
|
|
|
|
|
this.imgViewerVisible = false;
|
|
|
|
|
|
|
|
const m = (e) => {
|
|
|
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
document.body.style.overflow = 'auto';
|
|
|
|
|
|
|
|
document.removeEventListener("touchmove", m, true);
|
|
|
|
|
|
|
|
},
|
|
|
|
cancelDialog() {
|
|
|
|
cancelDialog() {
|
|
|
|
this.closeDialog();
|
|
|
|
this.closeDialog();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -479,6 +576,8 @@ export default {
|
|
|
|
auditCert(row) {
|
|
|
|
auditCert(row) {
|
|
|
|
this.certAuditVisible = true;
|
|
|
|
this.certAuditVisible = true;
|
|
|
|
this.currentAudit = row;
|
|
|
|
this.currentAudit = row;
|
|
|
|
|
|
|
|
this.isOpen = this.currentAudit.auditStatus;
|
|
|
|
|
|
|
|
this.confirmStatus = this.currentAudit.auditStatus;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
passAuditCert() {
|
|
|
|
passAuditCert() {
|
|
|
@ -489,6 +588,10 @@ export default {
|
|
|
|
this.currentAudit.auditStatus = 2;
|
|
|
|
this.currentAudit.auditStatus = 2;
|
|
|
|
this.auditSupCert(this.currentAudit);
|
|
|
|
this.auditSupCert(this.currentAudit);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
notAuditCert() {
|
|
|
|
|
|
|
|
this.currentAudit.auditStatus = 6;
|
|
|
|
|
|
|
|
this.auditSupCert(this.currentAudit);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
auditSupCert(inputQuery) {
|
|
|
|
auditSupCert(inputQuery) {
|
|
|
@ -520,6 +623,12 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
,
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getRoIds() {
|
|
|
|
|
|
|
|
let params = {companyId: this.inputQuery.customerId}
|
|
|
|
|
|
|
|
getRoId(params).then((res) => {
|
|
|
|
|
|
|
|
this.inputQuery.roleId = parseInt(res.data.roleId);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
getCompanyCertList() {
|
|
|
|
getCompanyCertList() {
|
|
|
|
this.certLoading = true;
|
|
|
|
this.certLoading = true;
|
|
|
|
this.certQuery.customerId = this.inputQuery.customerId;
|
|
|
|
this.certQuery.customerId = this.inputQuery.customerId;
|
|
|
@ -639,7 +748,63 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
,
|
|
|
|
,
|
|
|
|
|
|
|
|
customerlist() {
|
|
|
|
|
|
|
|
customerlist().then((response) => {
|
|
|
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
|
|
|
this.roleList = response.data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
|
|
this.roleList = null;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
confirm() {
|
|
|
|
|
|
|
|
debugger
|
|
|
|
|
|
|
|
if (this.confirmStatus == null) {
|
|
|
|
|
|
|
|
this.$message.error("请选择确认状态");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.confirmStatus == 1) {
|
|
|
|
|
|
|
|
this.passAuditCert();
|
|
|
|
|
|
|
|
} else if (this.confirmStatus == 2) {
|
|
|
|
|
|
|
|
this.rejectAuditCert();
|
|
|
|
|
|
|
|
} else if (this.confirmStatus == 6) {
|
|
|
|
|
|
|
|
this.notAuditCert();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
revoke(inputQuery) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$confirm("是否确定撤回证书状态至未确认?", "提示", {
|
|
|
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
|
|
|
type: "warning",
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
this.certLoading = true;
|
|
|
|
|
|
|
|
inputQuery.auditStatus = 6
|
|
|
|
|
|
|
|
revokeSupCert(inputQuery)
|
|
|
|
|
|
|
|
.then((response) => {
|
|
|
|
|
|
|
|
this.certLoading = false;
|
|
|
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
|
|
|
this.getCompanyCertList();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
|
|
this.certLoading = false;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cancel() {
|
|
|
|
|
|
|
|
this.certAuditVisible = false;
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
filters: {
|
|
|
|
filters: {
|
|
|
|
statusFilterType(status) {
|
|
|
|
statusFilterType(status) {
|
|
|
|