资质证书撤回功能

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) { export function deleteCompanyCert(query) {
return axios( return axios(
{ {

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

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

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

File diff suppressed because it is too large Load Diff

@ -137,11 +137,12 @@
</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
highlight-current-row>
<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="status"> <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="确认说明" 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 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="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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -197,7 +202,7 @@
<el-row> <el-row>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="效期:" prop="vailDate"> <el-form-item label="效期:" prop="vailDate">
<el-date-picker <el-date-picker
v-model="currentAudit.vailDate" v-model="currentAudit.vailDate"
@ -205,7 +210,7 @@
disabled disabled
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
style="width: 100%" style="width: 100%"
placeholder="请选择效期"> placeholder="请选择效期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -251,15 +256,17 @@
<el-col :span="11"> <el-col :span="11">
<el-form-item label="证书文件:"> <el-form-item label="证书文件:">
<el-button type="primary" size="mini" @click.native="showImgViewer(currentAudit)">证书预览</el-button> <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-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="margin-top: 12px"> <el-row style="margin-top: 12px">
<el-col :span="22"> <el-col :span="22">
<el-form-item label="结果说明:"> <el-form-item label="结果说明:">
<el-input type="textarea":disabled="isOpen==1" v-model="currentAudit.auditComment" autocomplete="off" autosize></el-input> <el-input type="textarea" :disabled="isOpen==1" v-model="currentAudit.auditComment" autocomplete="off"
autosize></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -290,14 +297,13 @@ 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 {customerlist} from '@/api/system/role'
import store from '@/store' import store from '@/store'
import ElImageViewer from "element-ui/packages/image/src/image-viewer" import ElImageViewer from "element-ui/packages/image/src/image-viewer"
export default { export default {
name: "supCompanyEdit", name: "supCompanyEdit",
@ -321,8 +327,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, imgViewerVisible: false,
imgList:[], imgList: [],
classesDisplay: false, classesDisplay: false,
selectedOptions: [], selectedOptions: [],
options: regionDataPlus, options: regionDataPlus,
@ -431,7 +437,7 @@ export default {
productLoading: false, productLoading: false,
uuid: null, uuid: null,
companyApplyUpdateVisible: false, companyApplyUpdateVisible: false,
isOpen:false, isOpen: false,
companyEditDisabled: true, companyEditDisabled: true,
companyEditButtonStr: "编辑", companyEditButtonStr: "编辑",
checkFlag: { checkFlag: {
@ -515,35 +521,38 @@ export default {
} }
, ,
isAssetTypeAnImage(ext) { isAssetTypeAnImage(ext) {
return [ return [
'png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff']. 'png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1;
indexOf(ext.toLowerCase()) !== -1; },
}, showImgViewer(row) {
showImgViewer(row){ var varindex = row.filePath.lastIndexOf(".");
var varindex= row.filePath.lastIndexOf("."); var varext = row.filePath.substring(varindex + 1);
var varext = row.filePath.substring(varindex+1); var isImage = this.isAssetTypeAnImage(varext);
var isImage=this.isAssetTypeAnImage(varext); if (isImage == true) {
if(isImage==true){
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name="; this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
this.imgList=[]; this.imgList = [];
previewImage({imageUrl:row.filePath,certFileUrl:this.certFileUrl}).then(response => { previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => {
if (response.code === 20000) { if (response.code === 20000) {
this.imgList.push(response.data); this.imgList.push(response.data);
} }
}); });
this.imgViewerVisible = true; this.imgViewerVisible = true;
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'hidden'; document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); // document.addEventListener("touchmove", m, false); //
}else{ } else {
this.toViewCompanyCert(row); this.toViewCompanyCert(row);
} }
}, },
closeImgViewer(){ closeImgViewer() {
this.imgViewerVisible = false; this.imgViewerVisible = false;
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true); document.removeEventListener("touchmove", m, true);
}, },
@ -584,7 +593,7 @@ export default {
auditCert(row) { auditCert(row) {
this.certAuditVisible = true; this.certAuditVisible = true;
this.currentAudit = row; this.currentAudit = row;
this.isOpen=this.currentAudit.auditStatus; this.isOpen = this.currentAudit.auditStatus;
this.confirmStatus = this.currentAudit.auditStatus; this.confirmStatus = this.currentAudit.auditStatus;
}, },
@ -781,6 +790,35 @@ export default {
this.notAuditCert(); 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() { cancel() {
this.certAuditVisible = false; this.certAuditVisible = false;
}, },

@ -124,7 +124,7 @@
<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="证书状态" > <el-table-column label="证书状态" >
<template slot-scope="scope"> <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 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="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="expireDate"></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">

Loading…
Cancel
Save