资质审核功能修改

ywj_dev
郑明梁 2 years ago
parent 1497a8e739
commit d21b06e087

@ -137,22 +137,8 @@
<el-table-column label="操作" width="120">
<template slot-scope="scope">
<el-button
type="text"
size="small"
v-if="scope.row.auditStatus ==6 || scope.row.auditStatus ==3|| scope.row.auditStatus ==4"
@click.native.stop="addInfoDialog(scope.row)"
>审核
</el-button>
<el-button
type="text"
size="small"
v-if="scope.row.auditStatus !=6 && scope.row.auditStatus !=3 && scope.row.auditStatus !=4"
@click.native.stop="addInfoDialog(scope.row)"
>详情
</el-button>
<el-button type="text" size="small" v-if="scope.row.auditStatus ==6 || scope.row.auditStatus ==3|| scope.row.auditStatus ==4" @click.native.stop="addInfoDialog(scope.row)"></el-button>
<el-button type="text" size="small" v-if="scope.row.auditStatus !=6 && scope.row.auditStatus !=3 && scope.row.auditStatus !=4" @click.native.stop="addInfoDialog(scope.row)"></el-button>
</template>
</el-table-column>
</el-table>

@ -9,33 +9,11 @@
<el-card class="el-card" style="margin-top: -25px">
<div style="display: flex;">
<el-button
v-if="editType==2"
type="primary"
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>
<el-button v-if="editType==2" type="primary" size="mini" icon="search" @click="onPassSubmit"></el-button>
<el-button v-if="editType==2" type="primary" size="mini" @click="onRejectSubmit"></el-button>
<el-button v-if="editType==1" type="primary" size="mini" icon="search" @click="printSupCertAll"></el-button>
</div>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 20px">
<el-col :span="10" class="el-col">
<el-form-item label="企业名称:" label-width="150px" prop="companyName">
@ -159,10 +137,7 @@
</div>
<el-table v-loading="certLoading" :data="certList" ref="certTable" style="width: 100%" border
highlight-current-row>
<el-table-column type="selection" width="55">
</el-table-column>
<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>
@ -185,36 +160,8 @@
<el-table-column label="确认说明" prop="auditComment" show-overflow-tooltip></el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- @click.native="toViewCompanyCert(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"-->
<!-- @click.native="rejectInfo(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>
</template>
</el-table-column>
</el-table>
@ -230,27 +177,17 @@
<el-dialog width="60%" :visible.sync="certAuditVisible" append-to-body title="配送企业资质证书确认">
<el-form :model="currentAudit">
<el-form :model="currentAudit" label-width="120px">
<el-row>
<el-col :span="3">
<div class="ao-text">
<span>证书名称</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="name">
<el-col :span="11">
<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="3">
<div class="ao-text">
<span>证书编号</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="code">
<el-col :span="11">
<el-form-item label="证书编号:" prop="code">
<el-input v-model="currentAudit.code" auto-complete="off"
disabled
></el-input>
@ -259,13 +196,8 @@
</el-row>
<el-row>
<el-col :span="3">
<div class="ao-text">
<span>有效期</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="vailDate">
<el-col :span="11">
<el-form-item label="有效期:" prop="vailDate">
<el-date-picker
v-model="currentAudit.vailDate"
@ -278,13 +210,8 @@
</el-form-item>
</el-col>
<el-col :span="3">
<div class="ao-text">
<span>失效期</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="expireDate">
<el-col :span="11">
<el-form-item label="失效期:" prop="expireDate">
<el-date-picker
v-model="currentAudit.expireDate"
@ -300,61 +227,39 @@
<el-row>
<el-col :span="3">
<div class="ao-text">
<span>证书状态</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="status">
<el-select v-model="currentAudit.status" :disabled="confirmStatus == 1 || confirmStatus == 2"
style="width: 100%">
<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="3">
<div class="ao-text">
<span>确认状态</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="confirmStatus">
<el-select v-model="confirmStatus" :disabled="currentAudit.status ==1" style="width: 100%">
<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="3">
<div class="ao-text">
<span>证书文件</span>
</div>
</el-col>
<el-col :span="8">
<el-button
type="primary"
size="mini"
@click.native="toViewCompanyCert(currentAudit)"
>证书预览
</el-button>
<el-col :span="11">
<el-form-item label="证书文件:">
<el-button type="primary" size="mini" @click.native="toViewCompanyCert(currentAudit)">证书预览</el-button>
</el-form-item>
</el-col>
</el-row>
<el-row style="margin-top: 12px">
<el-col :span="3">
<div class="ao-text">
<span>结果说明</span>
</div>
</el-col>
<el-col :span="19">
<el-input type="textarea" v-model="currentAudit.auditComment" autocomplete="off"
autosize></el-input>
<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>
</el-col>
</el-row>
</el-form>
@ -514,6 +419,7 @@ export default {
productLoading: false,
uuid: null,
companyApplyUpdateVisible: false,
isOpen:false,
companyEditDisabled: true,
companyEditButtonStr: "编辑",
checkFlag: {
@ -634,6 +540,7 @@ export default {
auditCert(row) {
this.certAuditVisible = true;
this.currentAudit = row;
this.isOpen=this.currentAudit.auditStatus;
this.confirmStatus = this.currentAudit.auditStatus;
},
@ -821,8 +728,6 @@ export default {
this.passAuditCert();
} else if (this.confirmStatus == 2) {
this.rejectAuditCert();
} else if (this.confirmStatus == 6) {
this.cancel();
}
},
cancel() {

@ -10,31 +10,9 @@
<el-card class="el-card">
<div style="display: flex;">
<el-button
v-if="editType==2"
type="primary"
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 v-if="editType==2" type="primary" 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>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 20px">
@ -199,7 +177,6 @@
<!-- >-->
</div>
<el-table v-loading="certLoading" :data="certList" ref="certTable" style="width: 100%" border highlight-current-row>
<el-table-column type="selection" width="55"></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="code"></el-table-column>
@ -211,7 +188,7 @@
{{ supStatus[scope.row.status] }}
</template>
</el-table-column>
<el-table-column label="审核状态" prop="auditStatus" width="120">
<el-table-column label="确认状态" prop="auditStatus" width="120">
<template slot-scope="scope">
<el-tag :type="(scope.row.auditStatus) | statusFilterType">
{{ checkFlag[scope.row.auditStatus] }}
@ -220,37 +197,8 @@
</el-table-column>
<el-table-column label="操作" width="250">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click.native="toViewCompanyCert(scope.row)"
>预览
</el-button
>
<el-button
type="text"
size="small"
v-if="editType==2"
@click.native="auditCert(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"
@click.native="rejectInfo(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>
</template>
</el-table-column>
</el-table>
@ -264,17 +212,96 @@
</el-card>
<el-dialog width="30%" :visible.sync="certAuditVisible" append-to-body>
<el-form :model="currentAudit">
<label></label>
<el-form-item label="审核备注:" :label-width="120">
<el-input type="textarea" v-model="currentAudit.auditComment" autocomplete="off"
autosize></el-input>
<el-dialog width="60%" :visible.sync="certAuditVisible" append-to-body>
<el-form :model="currentAudit" label-width="120px">
<el-row>
<el-col :span="11">
<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="toViewCompanyCert(currentAudit)">证书预览</el-button>
</el-form-item>
</el-form>
</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>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="rejectAuditCert"></el-button>
<el-button type="primary" @click="passAuditCert"></el-button>
<el-button type="primary" @click="confirm"></el-button>
<el-button type="primary" @click="cancel"></el-button>
</div>
</el-dialog>
@ -408,19 +435,21 @@ export default {
certList: [],
certTotal: 0,
certLoading: false,
isOpen:false,
addCertVisible: false,
fromOptions: [],
confirmStatus: null,
idQuery: {
id: "",
},
addType: "2", //1:2.3.
checkFlag: {
0: "草稿",
1: "已通过",
2: "已拒绝",
3: "变更未审核",
6: "未审核",
0: "草稿",
1: "已确认",
2: "已拒绝",
3: "变更未确认",
6: "未确认",
},
supStatus: {
0: "有效",
@ -541,6 +570,8 @@ export default {
auditCert(row) {
this.certAuditVisible = true;
this.currentAudit = row;
this.isOpen=this.currentAudit.auditStatus;
this.confirmStatus = this.currentAudit.auditStatus;
},
passAuditCert() {
@ -551,8 +582,20 @@ export default {
this.currentAudit.auditStatus = 2;
this.auditSupCert(this.currentAudit);
},
confirm() {
if (this.confirmStatus == null) {
this.$message.error("请选择确认状态");
return;
}
if (this.confirmStatus == 1) {
this.passAuditCert();
} else if (this.confirmStatus == 2) {
this.rejectAuditCert();
}
},
cancel() {
this.certAuditVisible = false;
},
auditSupCert(inputQuery) {
auditSupCert(inputQuery).then(response => {
this.loading = false;

@ -213,7 +213,6 @@
</el-form>
<el-card class="el-card">
<el-table v-loading="certLoading" :data="certList" ref="certTable" style="width: 100%" border highlight-current-row>
<el-table-column type="selection" width="55"></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="code"></el-table-column>
@ -225,7 +224,7 @@
{{ supStatus[scope.row.status] }}
</template>
</el-table-column>
<el-table-column label="审核状态" prop="auditStatus" width="120">
<el-table-column label="确认状态" prop="auditStatus" width="120">
<template slot-scope="scope">
<el-tag :type="(scope.row.auditStatus) | statusFilterType">
{{ checkFlag[scope.row.auditStatus] }}
@ -235,45 +234,8 @@
<el-table-column label="操作" width="250">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click.native="toViewCompanyCert(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"
@click.native="rejectInfo(scope.row)"
>说明
</el-button
>
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- @click.native="deleteCompanyCert(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>
</template>
</el-table-column>
</el-table>
@ -286,18 +248,97 @@
</el-pagination>
</el-card>
<el-dialog width="30%" :visible.sync="certAuditVisible" append-to-body>
<el-form :model="currentAudit">
<label></label>
<el-form-item label="审核备注:" :label-width="120">
<el-input type="textarea" v-model="currentAudit.auditComment" autocomplete="off"
autosize></el-input>
<el-dialog width="60%" :visible.sync="certAuditVisible" append-to-body>
<el-form :model="currentAudit" label-width="120px">
<el-row>
<el-col :span="11">
<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="toViewCompanyCert(currentAudit)">证书预览</el-button>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="rejectAuditCert"></el-button>
<el-button type="primary" @click="passAuditCert"></el-button>
</div>
</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>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="confirm"></el-button>
<el-button type="primary" @click="cancel"></el-button>
</div>
</el-dialog>
</div>
</template>
@ -444,16 +485,18 @@ export default {
certFileUrl: "",
addType: "3", //1:2.3.
checkFlag: {
0: "草稿",
1: "已通过",
2: "已拒绝",
3: "变更未审核",
6: "未审核",
0: "草稿",
1: "已确认",
2: "已拒绝",
3: "变更未确认",
6: "未确认",
},
supStatus: {
0: "有效",
1: "失效",
},
confirmStatus: null,
isOpen:false,
certAuditVisible: false,
currentAudit: {},
};
@ -520,9 +563,21 @@ export default {
}).catch(() => {
});
}
,
},
confirm() {
if (this.confirmStatus == null) {
this.$message.error("请选择确认状态");
return;
}
if (this.confirmStatus == 1) {
this.passAuditCert();
} else if (this.confirmStatus == 2) {
this.rejectAuditCert();
}
},
cancel() {
this.certAuditVisible = false;
},
findMethod(query) {
this.fromOptions = [];
@ -625,6 +680,8 @@ export default {
auditCert(row) {
this.certAuditVisible = true;
this.currentAudit = row;
this.isOpen=this.currentAudit.auditStatus;
this.confirmStatus = this.currentAudit.auditStatus;
},
passAuditCert() {

Loading…
Cancel
Save