资质证书撤回功能

ywj_dev
anthonywj 2 years ago
parent 33ec07820d
commit 41c285535a

@ -42,6 +42,19 @@ export function auditSupCert(query) {
}
export function revokeSupCert(query) {
return axios(
{
url: "/sale/sup/cert/revoke",
method: "post",
data: query
}
);
}
export function deleteCompanyCert(query) {
return axios(
{

@ -325,7 +325,7 @@
<el-divider direction="vertical"></el-divider>
<el-col span="5">
<el-select v-model="inputQuery.scanPreIn" style="width: 65%"
:disabled="inputQuery.corpType!=1 || inputQuery.mainAction== 'WareHouseIn'"
:disabled=" inputQuery.mainAction== 'WareHouseIn'"
placeholder="是否启用" clearable>
<el-option label="是" :value="true"></el-option>
<el-option label="否" :value="false"></el-option>
@ -345,7 +345,7 @@
<el-divider direction="vertical"></el-divider>
<el-col span="5">
<el-select v-model="inputQuery.vailInv" style="width: 65%"
:disabled="inputQuery.corpType!=1 || inputQuery.mainAction!= 'WareHouseOut'"
:disabled=" inputQuery.mainAction!= 'WareHouseOut'"
placeholder="是否启用" clearable
>
<el-option label="启用" :value="true"></el-option>
@ -366,7 +366,7 @@
<el-divider direction="vertical"></el-divider>
<el-col span="5">
<el-select v-model="inputQuery.useDyCount" style="width: 65%"
:disabled="inputQuery.corpType!=1 || inputQuery.mainAction!= 'WareHouseOut'"
:disabled=" inputQuery.mainAction!= 'WareHouseOut'"
placeholder="是否启用" clearable
>
<el-option label="是" :value="true"></el-option>

@ -810,7 +810,7 @@ export default {
this.loading = true;
this.currentRow = {billNo: ""};
this.clearDetailList();
this.filterQuery.busType = 2; //
// this.filterQuery.busType = 2; //
getOrderList(this.filterQuery)
.then((response) => {
this.loading = false;

@ -34,7 +34,7 @@
<el-row>
<el-col :span="3">
<div class="ao-text">
<span>效期</span>
<span>效期</span>
</div>
</el-col>
<el-col :span="8">
@ -46,7 +46,7 @@
:disabled="formData.auditStatus == 1"
value-format="yyyy-MM-dd"
style="width: 100%"
placeholder="请选择效期">
placeholder="请选择效期">
</el-date-picker>
</el-form-item>
</el-col>

File diff suppressed because it is too large Load Diff

@ -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;
},

@ -124,7 +124,7 @@
<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="证书状态" >
<template slot-scope="scope">

File diff suppressed because it is too large Load Diff

@ -255,7 +255,7 @@
<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="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="auditStatus" width="120">
<template slot-scope="scope">

Loading…
Cancel
Save