feat():企业修改审核部分
parent
555021f880
commit
fe92bf1bd9
|
@ -50,12 +50,24 @@
|
|||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="企业名称" align="center" prop="ebterpriseName" />
|
||||
<el-table-column label="法定代表人" align="center" prop="legalPerson" />
|
||||
<el-table-column label="经营范围" align="center" prop="businessScope" />
|
||||
<el-table-column label="企业成立时间" align="center" prop="estabinessDate" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.estabinessDate, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="注册地址" align="center" prop="address" />
|
||||
<el-table-column label="企业联系方式" align="center" prop="contactPhone" />
|
||||
<el-table-column label="公司邮箱" align="center" prop="email" />
|
||||
<el-table-column label="服务级别" align="center" prop="serviceLevel" />
|
||||
<el-table-column label="备注" align="center" prop="remark" />
|
||||
<el-table-column label="企业当前状态" align="center" prop="enterpriseStatus">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.enterprise_status" :value="scope.row.enterpriseStatus"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="服务级别" align="center" prop="serviceLevel">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.service_level" :value="scope.row.serviceLevel"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
|
@ -72,6 +84,12 @@
|
|||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['netWorking:car:remove']"
|
||||
>删除</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
@click="authentication(scope.row)"
|
||||
v-if="scope.row.enterpriseStatus!=='N'"
|
||||
>审核</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -84,7 +102,7 @@
|
|||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改企业信息对话框 -->
|
||||
<!-- 添加或修改车辆运营平台对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="企业名称" prop="ebterpriseName">
|
||||
|
@ -98,10 +116,10 @@
|
|||
</el-form-item>
|
||||
<el-form-item label="企业成立时间" prop="estabinessDate">
|
||||
<el-date-picker clearable
|
||||
v-model="form.estabinessDate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择企业成立时间">
|
||||
v-model="form.estabinessDate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择企业成立时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="经营范围" prop="businessScope">
|
||||
|
@ -116,12 +134,21 @@
|
|||
<el-form-item label="公司邮箱" prop="email">
|
||||
<el-input v-model="form.email" placeholder="请输入公司邮箱" />
|
||||
</el-form-item>
|
||||
<el-form-item label="企业当前状态" prop="enterpriseStatus">
|
||||
<el-radio-group v-model="form.enterpriseStatus">
|
||||
<el-radio
|
||||
v-for="dict in dict.type.enterprise_status"
|
||||
:key="dict.value"
|
||||
:label="dict.value"
|
||||
>{{dict.label}}</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="企业入驻平台时期" prop="registrationDate">
|
||||
<el-date-picker clearable
|
||||
v-model="form.registrationDate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择企业入驻平台时期">
|
||||
v-model="form.registrationDate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择企业入驻平台时期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="企业认证id" prop="certificationId">
|
||||
|
@ -129,14 +156,21 @@
|
|||
</el-form-item>
|
||||
<el-form-item label="认证时间" prop="authenticationDate">
|
||||
<el-date-picker clearable
|
||||
v-model="form.authenticationDate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择认证时间">
|
||||
v-model="form.authenticationDate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择认证时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="服务级别" prop="serviceLevel">
|
||||
<el-input v-model="form.serviceLevel" placeholder="请输入服务级别" />
|
||||
<el-select v-model="form.serviceLevel" placeholder="请选择服务级别">
|
||||
<el-option
|
||||
v-for="dict in dict.type.service_level"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="parseInt(dict.value)"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="开通服务id" prop="openServerId">
|
||||
<el-input v-model="form.openServerId" placeholder="请输入开通服务id" />
|
||||
|
@ -157,10 +191,11 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { listCar, getCar, delCar, addCar, updateCar } from "@/api/netWorking/car";
|
||||
import { listCar, getCar, delCar, addCar, updateCar, authentication } from '@/api/netWorking/car'
|
||||
|
||||
export default {
|
||||
name: "Car",
|
||||
dicts: ['service_level', 'enterprise_status'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
|
@ -175,7 +210,7 @@ export default {
|
|||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 企业信息表格数据
|
||||
// 车辆运营平台表格数据
|
||||
carList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
|
@ -193,7 +228,7 @@ export default {
|
|||
address: null,
|
||||
contactPhone: null,
|
||||
email: null,
|
||||
status: null,
|
||||
enterpriseStatus: null,
|
||||
registrationDate: null,
|
||||
certificationId: null,
|
||||
authenticationDate: null,
|
||||
|
@ -212,7 +247,15 @@ export default {
|
|||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询企业信息列表 */
|
||||
authentication(row){
|
||||
authentication(row).then(
|
||||
res=>{
|
||||
this.$modal.msgSuccess("认证成功");
|
||||
this.getList();
|
||||
}
|
||||
)
|
||||
},
|
||||
/** 查询车辆运营平台列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listCar(this.queryParams).then(response => {
|
||||
|
@ -238,7 +281,7 @@ export default {
|
|||
address: null,
|
||||
contactPhone: null,
|
||||
email: null,
|
||||
status: null,
|
||||
enterpriseStatus: null,
|
||||
registrationDate: null,
|
||||
certificationId: null,
|
||||
authenticationDate: null,
|
||||
|
@ -273,7 +316,7 @@ export default {
|
|||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加企业信息";
|
||||
this.title = "添加车辆运营平台";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
|
@ -282,7 +325,7 @@ export default {
|
|||
getCar(id).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改企业信息";
|
||||
this.title = "修改车辆运营平台";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
|
@ -308,7 +351,7 @@ export default {
|
|||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除企业信息编号为"' + ids + '"的数据项?').then(function() {
|
||||
this.$modal.confirm('是否确认删除车辆运营平台编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delCar(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
|
|
Loading…
Reference in New Issue