Browse Source

动态信用-良好行为

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

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

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

Loading…
Cancel
Save