|
@@ -59,11 +59,15 @@
|
|
|
</div>
|
|
|
</h3>
|
|
|
<el-table v-loading="loading" :data="list" border>
|
|
|
- <el-table-column label="账户" prop="userName" width="120" align="center" />
|
|
|
- <el-table-column label="企业名称" prop="entName" align="center" width="120"></el-table-column>
|
|
|
- <el-table-column label="省" prop="provinceName" align="center" width="120"/>
|
|
|
- <el-table-column label="市" prop="cityName" align="center" width="120" />
|
|
|
- <el-table-column label="区" prop="districtName" align="center" width="120" />
|
|
|
+ <el-table-column label="账户" prop="userName" width="150" align="center" />
|
|
|
+ <el-table-column label="企业名称" prop="entName" align="center" width="150"></el-table-column>
|
|
|
+ <el-table-column label="省市区" prop="provinceName" align="center" width="180">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.provinceName}}{{scope.row.cityName}}{{scope.row.districtName}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!-- <el-table-column label="市" prop="cityName" align="center" width="120" />
|
|
|
+ <el-table-column label="区" prop="districtName" align="center" width="120" /> -->
|
|
|
<el-table-column label="社会信用代码" prop="license" align="center" width="160"></el-table-column>
|
|
|
<el-table-column label="联系人" align="center" prop="linkName" width="150"></el-table-column>
|
|
|
<el-table-column label="联系人手机号" prop="linkMobile" align="center" width="160"></el-table-column>
|
|
@@ -89,12 +93,13 @@
|
|
|
<el-button type="text" @click="handleView(scope.row)">查看</el-button>
|
|
|
<!-- 只有科德管理员才可以有以下操作 -->
|
|
|
<template v-if="roleType =='manager'">
|
|
|
- <el-button type="text" @click="handleRePwd(scope.row)">重置密码</el-button>
|
|
|
+ <el-button type="text" @click="handleResetPwd(scope.row)">重置密码</el-button>
|
|
|
<el-button type="text" @click="handleAudit(scope.row)" v-if="scope.row.authState == '1'">审核</el-button>
|
|
|
<!-- 只有审核通过 authState才可以修改 -->
|
|
|
<el-button type="text" @click="handleUpdate(scope.row)" v-if="scope.row.authState == '2'">修改</el-button>
|
|
|
<!-- 只有服务中且审核状态为已通过才可以停用 -->
|
|
|
- <el-button type="text" @click="handleStop(scope.row)" v-if="scope.row.entState == '2' || scope.row.authState == '2'">停用</el-button>
|
|
|
+ <el-button type="text" @click="handleStop(scope.row)" v-if="scope.row.entState == '2' && scope.row.authState == '2'">停用</el-button>
|
|
|
+ <el-button type="text" @click="handleEnable(scope.row)" v-if="scope.row.entState == '4' && scope.row.authState == '2'">启用</el-button>
|
|
|
<!-- 只有服务状态为已到期才可以提醒 -->
|
|
|
<el-button type="text" @click="handleRemind(scope.row)" v-if="scope.row.entState == '3'">提醒</el-button>
|
|
|
<!-- 审核状态为已驳回不可以删除 -->
|
|
@@ -116,9 +121,10 @@
|
|
|
<!-- 企业管理模块只有科德管理员和税务人员 -->
|
|
|
<script>
|
|
|
import {getProvinceDataApi,getRegionChildrenApi} from "@/api/common/common"
|
|
|
- import {listEntApi, deleteEntApi, resetPwdApi, remindUserApi, stopEntUserApi} from '@/api/admin/ent/ent'
|
|
|
+ import {listEntApi, deleteEntApi, resetPwdApi, remindUserApi, stopEntUserApi,enableEntUserApi} from '@/api/admin/ent/ent'
|
|
|
import {entStateOptions, getLabel, authStateOptions} from '@/utils/dataFormat'
|
|
|
import {listEntTaxApi} from '@/api/gov/gov'
|
|
|
+ import { resetUserPwd } from "@/api/system/user";
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
@@ -238,8 +244,8 @@
|
|
|
handleView(row) {
|
|
|
this.$router.push("/ent/info/"+row.id+'?type=view')
|
|
|
},
|
|
|
- //重置密码
|
|
|
- handleRePwd(row) {
|
|
|
+ // //重置密码
|
|
|
+ handleResetPwd(row) {
|
|
|
this.$confirm('是否确认重置密码?', "警告", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
@@ -249,12 +255,25 @@
|
|
|
}).then(() => {
|
|
|
this.queryParams.pageNum = 1;
|
|
|
this.getList();
|
|
|
- this.$message({
|
|
|
- message: '密码重置成功',
|
|
|
- type: 'success'
|
|
|
- });
|
|
|
+ setTimeout(() => { // 加延时
|
|
|
+ this.$modal.msgSuccess("重置密码成功,新密码是:123456");
|
|
|
+ }, 500);
|
|
|
})
|
|
|
},
|
|
|
+ /** 重置密码按钮操作 */
|
|
|
+ // handleResetPwd(row) {
|
|
|
+ // this.$prompt('请输入"' + row.userName + '"的新密码', "提示", {
|
|
|
+ // confirmButtonText: "确定",
|
|
|
+ // cancelButtonText: "取消",
|
|
|
+ // closeOnClickModal: false,
|
|
|
+ // inputPattern: /^.{5,20}$/,
|
|
|
+ // inputErrorMessage: "用户密码长度必须介于 5 和 20 之间"
|
|
|
+ // }).then(({ value }) => {
|
|
|
+ // resetPwdApi(row.id, value).then(response => {
|
|
|
+ // this.$modal.msgSuccess("修改成功,新密码是:" + value);
|
|
|
+ // });
|
|
|
+ // }).catch(() => {});
|
|
|
+ // },
|
|
|
handleRemind(row) {
|
|
|
this.$confirm('是否确认提醒用户服务时间到期?', "警告", {
|
|
|
confirmButtonText: "确定",
|
|
@@ -287,6 +306,22 @@
|
|
|
});
|
|
|
})
|
|
|
},
|
|
|
+ handleEnable(row) {
|
|
|
+ this.$confirm('是否确认启用该企业账号?', "警告", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function() {
|
|
|
+ return enableEntUserApi(row.id);
|
|
|
+ }).then(() => {
|
|
|
+ this.queryParams.pageNum = 1;
|
|
|
+ this.getList();
|
|
|
+ this.$message({
|
|
|
+ message: '启用成功',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ })
|
|
|
+ },
|
|
|
handleDelete(row) {
|
|
|
const id = row.id;
|
|
|
this.$confirm('是否确认删除该数据?', "警告", {
|