Browse Source

动态信用-良好行为

dev_kxc
xzt 1 year ago
parent
commit
0071c87457
  1. 134
      jwtech-admin-page/src/views/marketSupervision/enterpriseInformation/options/components/goodCredit.vue

134
jwtech-admin-page/src/views/marketSupervision/enterpriseInformation/options/components/goodCredit.vue

@ -93,15 +93,29 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
label="审核流程"
align="center"
prop="attachment"
min-width="120"
fixed="right"
>
<template slot-scope="scope">
<el-button type="primary" @click="openAuditProcess(scope.row)">
审核流程
</el-button>
</template>
</el-table-column>
<el-table-column <el-table-column
label="操作" label="操作"
align="center" align="center"
class-name="small-padding fixed-width" class-name="small-padding fixed-width"
width="180" width="184"
fixed="right" fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<!-- ===============审核按钮=========== -->
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -110,7 +124,9 @@
v-hasPermi="['enterpriseMange:credit:examine']" v-hasPermi="['enterpriseMange:credit:examine']"
>审核</el-button >审核</el-button
> >
<!-- ===================状态按钮===================== -->
<el-button <el-button
v-if="scope.row.status == '0'"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-position" icon="el-icon-position"
@ -118,6 +134,53 @@
v-hasPermi="['enterprise:credit:report']" v-hasPermi="['enterprise:credit:report']"
>上报</el-button >上报</el-button
> >
<el-button
v-if="scope.row.status == '1'"
size="mini"
type="text"
icon="el-icon-time"
@click="handleReport(scope.row)"
v-hasPermi="['enterprise:credit:report']"
>待审核</el-button
>
<el-button
v-if="scope.row.status == '2'"
size="mini"
type="text"
icon="el-icon-time"
@click="handleReport(scope.row)"
v-hasPermi="['enterprise:credit:report']"
>已驳回</el-button
>
<el-button
v-if="scope.row.status == '3'"
size="mini"
type="text"
icon="el-icon-time"
@click="handleReport(scope.row)"
v-hasPermi="['enterprise:credit:report']"
>已审核</el-button
>
<el-button
v-if="scope.row.status == '4'"
size="mini"
type="text"
icon="el-icon-time"
@click="handleReport(scope.row)"
v-hasPermi="['enterprise:credit:report']"
>已公示</el-button
>
<el-button
v-if="scope.row.status == '5'"
size="mini"
type="text"
icon="el-icon-time"
@click="handleReport(scope.row)"
v-hasPermi="['enterprise:credit:report']"
>已发布</el-button
>
<!-- ===============修改按钮=========== -->
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -126,6 +189,7 @@
v-hasPermi="['enterprise:credit:edit']" v-hasPermi="['enterprise:credit:edit']"
>修改</el-button >修改</el-button
> >
<!-- ===============删除按钮=========== -->
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -352,10 +416,6 @@
{{ this.creditMsg.validityPeriod }} {{ this.creditMsg.validityPeriod }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 不良行为 </template>
{{ this.creditMsg.badBehavior }}
</el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 附件 </template> <template slot="label"> 附件 </template>
<template v-if="this.creditMsg.attachment"> <template v-if="this.creditMsg.attachment">
@ -373,22 +433,54 @@
</div> </div>
</template> </template>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item v-if="this.creditMsg.status == '2'">
<template slot="label"> 驳回意见 </template>
{{ this.creditMsg.remark }}
</el-descriptions-item>
</el-descriptions> </el-descriptions>
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<!-- 审核通过按钮 -->
<el-button <el-button
type="primary" type="primary"
@click="passExamine" @click="passExamine"
v-hasPermi="['enterpriseMange:credit:passExamine']" v-hasPermi="['enterpriseMange:credit:passExamine']"
>通过审核</el-button >通过审核</el-button
> >
<el-button <!-- 驳回按钮 -->
type="warning" <el-popover
@click="TurnDownExamine" placement="top"
v-hasPermi="['enterpriseMange:credit:TurnDownExamine']" width="300"
>驳回审核</el-button v-model="visible"
style="margin: 0 10px"
> >
<el-input
v-model="remark"
placeholder="请输入驳回意见"
type="textarea"
style="margin-bottom: 10px"
></el-input>
<div style="text-align: right; margin: 0">
<el-button type="primary" size="mini" @click="TurnDownExamine">
确定
</el-button>
<el-button size="mini" type="text" @click="visible = false">
取消
</el-button>
</div>
<el-button
slot="reference"
type="warning"
v-hasPermi="['enterpriseMange:credit:TurnDownExamine']"
>
驳回审核
</el-button>
</el-popover>
<el-button <el-button
v-if="creditMsg.status == '0' || creditMsg.status == '2'"
type="primary" type="primary"
@click="upExamine" @click="upExamine"
v-hasPermi="['enterpriseMange:credit:upExamine']" v-hasPermi="['enterpriseMange:credit:upExamine']"
@ -409,6 +501,7 @@ import {
updateCredit, updateCredit,
exportCredit, exportCredit,
} from "@/api/enterprise/credit"; } from "@/api/enterprise/credit";
import { listApproval } from "@/api/enterprise/approval";
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
import { getFileStream } from "@/api/system/upload"; import { getFileStream } from "@/api/system/upload";
import { getAreasData } from "@/api/areas/index"; import { getAreasData } from "@/api/areas/index";
@ -444,6 +537,7 @@ export default {
// //
open: false, open: false,
viewOpen: false, viewOpen: false,
visible: false,
// //
qualificationCategoryOptions: [], qualificationCategoryOptions: [],
// //
@ -490,6 +584,7 @@ export default {
}, },
fileList: [], fileList: [],
creditMsg: {}, creditMsg: {},
remark: "",
}; };
}, },
created() { created() {
@ -503,6 +598,11 @@ export default {
}); });
}, },
methods: { methods: {
openAuditProcess(row) {
listApproval({ data: { creditId: row.id } }).then((res) => {
console.log(6666, res);
});
},
formatDeclarationManagementZones(row) { formatDeclarationManagementZones(row) {
if (row.declarationManagementZones) { if (row.declarationManagementZones) {
let provinceCode = row.declarationManagementZones.slice(0, 2); let provinceCode = row.declarationManagementZones.slice(0, 2);
@ -692,14 +792,22 @@ export default {
handleReport(row) { handleReport(row) {
this.creditMsg = row; this.creditMsg = row;
console.log("this.creditMsg", this.creditMsg); console.log("this.creditMsg", this.creditMsg);
this.viewTitle = "上报信息"; if (row.status == "0") this.viewTitle = "上报信息";
if (row.status == "1") this.viewTitle = "待审核信息";
if (row.status == "2") this.viewTitle = "驳回信息";
if (row.status == "3") this.viewTitle = "审核通过信息";
if (row.status == "4") this.viewTitle = "公示信息";
if (row.status == "5") this.viewTitle = "发布信息";
this.viewOpen = true; this.viewOpen = true;
}, },
// //
closeView() { closeView() {
this.creditMsg = {}; this.creditMsg = {};
this.remark = "";
}, },
//
passExamine() { passExamine() {
this.creditMsg.status = "3"; this.creditMsg.status = "3";
updateCredit(this.creditMsg).then((response) => { updateCredit(this.creditMsg).then((response) => {
@ -710,8 +818,11 @@ export default {
} }
}); });
}, },
//
TurnDownExamine() { TurnDownExamine() {
this.visible = false;
this.creditMsg.status = "2"; this.creditMsg.status = "2";
this.creditMsg.remark = this.remark;
updateCredit(this.creditMsg).then((response) => { updateCredit(this.creditMsg).then((response) => {
if (response.code === 200) { if (response.code === 200) {
this.msgSuccess("审核驳回成功"); this.msgSuccess("审核驳回成功");
@ -720,6 +831,7 @@ export default {
} }
}); });
}, },
//
upExamine() { upExamine() {
if (this.creditMsg.status == "1") { if (this.creditMsg.status == "1") {
this.msgInfo("请勿重复上报"); this.msgInfo("请勿重复上报");

Loading…
Cancel
Save