|
|
|
@ -137,11 +137,12 @@
|
|
|
|
|
|
|
|
|
|
</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
|
|
|
|
|
highlight-current-row>
|
|
|
|
|
<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="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="status">
|
|
|
|
@ -160,8 +161,12 @@
|
|
|
|
|
<el-table-column label="确认说明" prop="auditComment" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="操作">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button v-if="editType==1" type="text" size="small" @click.native="printSupCert(scope.row)">打印</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" v-if="scope.row.auditStatus==1" @click.native="revoke(scope.row)">
|
|
|
|
|
撤回
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -197,7 +202,7 @@
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="有效期:" prop="vailDate">
|
|
|
|
|
<el-form-item label="生效期:" prop="vailDate">
|
|
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="currentAudit.vailDate"
|
|
|
|
@ -205,7 +210,7 @@
|
|
|
|
|
disabled
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
placeholder="请选择有效期">
|
|
|
|
|
placeholder="请选择生效期">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -251,15 +256,17 @@
|
|
|
|
|
<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-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>
|
|
|
|
|
<el-form-item label="结果说明:">
|
|
|
|
|
<el-input type="textarea" :disabled="isOpen==1" v-model="currentAudit.auditComment" autocomplete="off"
|
|
|
|
|
autosize></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -290,14 +297,13 @@ import {
|
|
|
|
|
CodeToText,
|
|
|
|
|
TextToCode,
|
|
|
|
|
} 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 {customerlist} from '@/api/system/role'
|
|
|
|
|
import store from '@/store'
|
|
|
|
|
import ElImageViewer from "element-ui/packages/image/src/image-viewer"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
|
|
|
|
|
name: "supCompanyEdit",
|
|
|
|
@ -321,8 +327,8 @@ export default {
|
|
|
|
|
return {
|
|
|
|
|
BASE_URL: process.env.VUE_APP_BASE_API,
|
|
|
|
|
headers: {},
|
|
|
|
|
imgViewerVisible:false,
|
|
|
|
|
imgList:[],
|
|
|
|
|
imgViewerVisible: false,
|
|
|
|
|
imgList: [],
|
|
|
|
|
classesDisplay: false,
|
|
|
|
|
selectedOptions: [],
|
|
|
|
|
options: regionDataPlus,
|
|
|
|
@ -431,7 +437,7 @@ export default {
|
|
|
|
|
productLoading: false,
|
|
|
|
|
uuid: null,
|
|
|
|
|
companyApplyUpdateVisible: false,
|
|
|
|
|
isOpen:false,
|
|
|
|
|
isOpen: false,
|
|
|
|
|
companyEditDisabled: true,
|
|
|
|
|
companyEditButtonStr: "编辑",
|
|
|
|
|
checkFlag: {
|
|
|
|
@ -515,35 +521,38 @@ 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){
|
|
|
|
|
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 => {
|
|
|
|
|
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() };
|
|
|
|
|
const m = (e) => {
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
};
|
|
|
|
|
document.body.style.overflow = 'hidden';
|
|
|
|
|
document.addEventListener("touchmove", m, false); // 禁止页面滑动
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
this.toViewCompanyCert(row);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
closeImgViewer(){
|
|
|
|
|
closeImgViewer() {
|
|
|
|
|
this.imgViewerVisible = false;
|
|
|
|
|
const m = (e) => { e.preventDefault() };
|
|
|
|
|
const m = (e) => {
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
};
|
|
|
|
|
document.body.style.overflow = 'auto';
|
|
|
|
|
document.removeEventListener("touchmove", m, true);
|
|
|
|
|
},
|
|
|
|
@ -584,7 +593,7 @@ export default {
|
|
|
|
|
auditCert(row) {
|
|
|
|
|
this.certAuditVisible = true;
|
|
|
|
|
this.currentAudit = row;
|
|
|
|
|
this.isOpen=this.currentAudit.auditStatus;
|
|
|
|
|
this.isOpen = this.currentAudit.auditStatus;
|
|
|
|
|
this.confirmStatus = this.currentAudit.auditStatus;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -781,6 +790,35 @@ export default {
|
|
|
|
|
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;
|
|
|
|
|
},
|
|
|
|
|