Compare commits

..

No commits in common. "54a913852a0c168c7e0ff8bc824db8ab44085be9" and "834eb41e310c4e30eb91eda83a0f07d1264a9665" have entirely different histories.

19 changed files with 676 additions and 438 deletions

View File

@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 运营平台系统 VUE_APP_TITLE = 若依管理系统
# 开发环境配置 # 开发环境配置
ENV = 'development' ENV = 'development'

View File

@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 运营平台系统 VUE_APP_TITLE = 若依管理系统
# 生产环境配置 # 生产环境配置
ENV = 'production' ENV = 'production'

View File

@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 运营平台系统 VUE_APP_TITLE = 若依管理系统
NODE_ENV = production NODE_ENV = production

View File

@ -1,7 +1,7 @@
{ {
"name": "muyu", "name": "muyu",
"version": "3.6.3", "version": "3.6.3",
"description": "运营平台系统", "description": "若依管理系统",
"author": "若依", "author": "若依",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询认证列表
export function listAuthentication(query) {
return request({
url: '/authentication/authentication/list',
method: 'get',
params: query
})
}
// 查询认证详细
export function getAuthentication(id) {
return request({
url: '/authentication/authentication/' + id,
method: 'get'
})
}
// 新增认证
export function addAuthentication(data) {
return request({
url: '/authentication/authentication',
method: 'post',
data: data
})
}
// 修改认证
export function updateAuthentication(data) {
return request({
url: '/authentication/authentication/'+data.id,
method: 'put',
data: data
})
}
// 删除认证
export function delAuthentication(id) {
return request({
url: '/authentication/authentication/' + id,
method: 'delete'
})
}

View File

@ -1,44 +1,44 @@
import request from '@/utils/request' import request from '@/utils/request'
// 查询企业列表 // 查询企业列表
export function listEnterprise(query) { export function listCompany(query) {
return request({ return request({
url: '/enterprise/enterprise/list', url: '/authentication/company/list',
method: 'get', method: 'get',
params: query params: query
}) })
} }
// 查询企业详细 // 查询企业详细
export function getEnterprise(id) { export function getCompany(id) {
return request({ return request({
url: '/enterprise/enterprise/' + id, url: '/authentication/company/' + id,
method: 'get' method: 'get'
}) })
} }
// 新增企业 // 新增企业
export function addEnterprise(data) { export function addCompany(data) {
return request({ return request({
url: '/enterprise/enterprise', url: '/authentication/company',
method: 'post', method: 'post',
data: data data: data
}) })
} }
// 修改企业 // 修改企业
export function updateEnterprise(data) { export function updateCompany(data) {
return request({ return request({
url: '/enterprise/enterprise', url: '/authentication/company/'+data.id,
method: 'put', method: 'put',
data: data data: data
}) })
} }
// 删除企业 // 删除企业
export function delEnterprise(id) { export function delCompany(id) {
return request({ return request({
url: '/enterprise/enterprise/' + id, url: '/company/company/' + id,
method: 'delete' method: 'delete'
}) })
} }

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询开通服务列表
export function listLiberal(query) {
return request({
url: '/authentication/liberal/list',
method: 'get',
params: query
})
}
// 查询开通服务详细
export function getLiberal(id) {
return request({
url: '/authentication/liberal/' + id,
method: 'get'
})
}
// 新增开通服务
export function addLiberal(data) {
return request({
url: '/authentication/liberal',
method: 'post',
data: data
})
}
// 修改开通服务
export function updateLiberal(data) {
return request({
url: '/authentication/liberal/'+data.id,
method: 'put',
data: data
})
}
// 删除开通服务
export function delLiberal(id) {
return request({
url: '/authentication/liberal/' + id,
method: 'delete'
})
}

View File

@ -1,44 +1,44 @@
import request from '@/utils/request' import request from '@/utils/request'
// 查询支付列表 // 查询支付列表
export function listFor(query) { export function listPay(query) {
return request({ return request({
url: '/product/for/list', url: '/authentication/pay/list',
method: 'get', method: 'get',
params: query params: query
}) })
} }
// 查询支付详细 // 查询支付详细
export function getFor(id) { export function getPay(id) {
return request({ return request({
url: '/product/for/' + id, url: '/authentication/pay/' + id,
method: 'get' method: 'get'
}) })
} }
// 新增支付 // 新增支付
export function addFor(data) { export function addPay(data) {
return request({ return request({
url: '/product/for', url: '/authentication/pay',
method: 'post', method: 'post',
data: data data: data
}) })
} }
// 修改支付 // 修改支付
export function updateFor(data) { export function updatePay(data) {
return request({ return request({
url: '/product/for', url: '/authentication/pay/'+data.id,
method: 'put', method: 'put',
data: data data: data
}) })
} }
// 删除支付 // 删除支付
export function delFor(id) { export function delPay(id) {
return request({ return request({
url: '/product/for/' + id, url: '/authentication/pay/' + id,
method: 'delete' method: 'delete'
}) })
} }

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询支付方式列表
export function listPayment(query) {
return request({
url: '/authentication/payment/list',
method: 'get',
params: query
})
}
// 查询支付方式详细
export function getPayment(id) {
return request({
url: '/authentication/payment/' + id,
method: 'get'
})
}
// 新增支付方式
export function addPayment(data) {
return request({
url: '/authentication/payment',
method: 'post',
data: data
})
}
// 修改支付方式
export function updatePayment(data) {
return request({
url: '/authentication/payment/'+data.id,
method: 'put',
data: data
})
}
// 删除支付方式
export function delPayment(id) {
return request({
url: '/authentication/payment/' + id,
method: 'delete'
})
}

View File

@ -1,44 +0,0 @@
import request from '@/utils/request'
// 查询企业认证列表
export function listCertification(query) {
return request({
url: '/certification/certification/list',
method: 'get',
params: query
})
}
// 查询企业认证详细
export function getCertification(id) {
return request({
url: '/certification/certification/' + id,
method: 'get'
})
}
// 新增企业认证
export function addCertification(data) {
return request({
url: '/certification/certification',
method: 'post',
data: data
})
}
// 修改企业认证
export function updateCertification(data) {
return request({
url: '/certification/certification',
method: 'put',
data: data
})
}
// 删除企业认证
export function delCertification(id) {
return request({
url: '/certification/certification/' + id,
method: 'delete'
})
}

View File

@ -1,44 +0,0 @@
import request from '@/utils/request'
// 查询增值列表
export function listService(query) {
return request({
url: '/product/service/list',
method: 'get',
params: query
})
}
// 查询增值详细
export function getService(id) {
return request({
url: '/product/service/' + id,
method: 'get'
})
}
// 新增增值
export function addService(data) {
return request({
url: '/product/service',
method: 'post',
data: data
})
}
// 修改增值
export function updateService(data) {
return request({
url: '/product/service',
method: 'put',
data: data
})
}
// 删除增值
export function delService(id) {
return request({
url: '/product/service/' + id,
method: 'delete'
})
}

View File

@ -1,18 +1,18 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="审核报告人" prop="auidtor"> <el-form-item label="审核报告人" prop="auditor">
<el-input <el-input
v-model="queryParams.auidtor" v-model="queryParams.auditor"
placeholder="请输入审核报告人" placeholder="请输入审核报告人"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="审核状态" prop="status"> <el-form-item label="待审核,已通过,未通过" prop="stat">
<el-select v-model="queryParams.status" placeholder="请选择审核状态" clearable> <el-select v-model="queryParams.stat" placeholder="请选择待审核,已通过,未通过" clearable>
<el-option <el-option
v-for="dict in dict.type.sys_examine" v-for="dict in dict.type.sys_common_status"
:key="dict.value" :key="dict.value"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
@ -41,7 +41,7 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['certification:certification:add']" v-hasPermi="['authentication:authentication:add']"
>新增</el-button> >新增</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -52,7 +52,7 @@
size="mini" size="mini"
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['certification:certification:edit']" v-hasPermi="['authentication:authentication:edit']"
>修改</el-button> >修改</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -63,7 +63,7 @@
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['certification:certification:remove']" v-hasPermi="['authentication:authentication:remove']"
>删除</el-button> >删除</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -73,19 +73,19 @@
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExport"
v-hasPermi="['certification:certification:export']" v-hasPermi="['authentication:authentication:export']"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="certificationList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="authenticationList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="id" align="center" prop="id" /> <el-table-column label="企业认证主键" align="center" prop="id" />
<el-table-column label="审核报告人" align="center" prop="auidtor" /> <el-table-column label="审核报告人" align="center" prop="auditor" />
<el-table-column label="审核状态" align="center" prop="status"> <el-table-column label="待审核,已通过,未通过" align="center" prop="stat">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.sys_examine" :value="scope.row.status"/> <dict-tag :options="dict.type.sys_common_status" :value="scope.row.stat"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="审核报告" align="center" prop="auditReason" /> <el-table-column label="审核报告" align="center" prop="auditReason" />
@ -97,14 +97,14 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['certification:certification:edit']" v-hasPermi="['authentication:authentication:edit']"
>修改</el-button> >修改</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['certification:certification:remove']" v-hasPermi="['authentication:authentication:remove']"
>删除</el-button> >删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -118,16 +118,16 @@
@pagination="getList" @pagination="getList"
/> />
<!-- 添加或修改企业认证对话框 --> <!-- 添加或修改认证对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <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 ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="审核报告人" prop="auidtor"> <el-form-item label="审核报告人" prop="auditor">
<el-input v-model="form.auidtor" placeholder="请输入审核报告人" /> <el-input v-model="form.auditor" placeholder="请输入审核报告人" />
</el-form-item> </el-form-item>
<el-form-item label="审核状态" prop="status"> <el-form-item label="待审核,已通过,未通过" prop="stat">
<el-radio-group v-model="form.status"> <el-radio-group v-model="form.stat">
<el-radio <el-radio
v-for="dict in dict.type.sys_examine" v-for="dict in dict.type.sys_common_status"
:key="dict.value" :key="dict.value"
:label="dict.value" :label="dict.value"
>{{dict.label}}</el-radio> >{{dict.label}}</el-radio>
@ -149,11 +149,11 @@
</template> </template>
<script> <script>
import { listCertification, getCertification, delCertification, addCertification, updateCertification } from "@/api/certification/certification"; import { listAuthentication, getAuthentication, delAuthentication, addAuthentication, updateAuthentication } from "@/api/authentication/authentication";
export default { export default {
name: "Certification", name: "Authentication",
dicts: ['sys_examine'], dicts: ['sys_common_status'],
data() { data() {
return { return {
// //
@ -168,8 +168,8 @@ export default {
showSearch: true, showSearch: true,
// //
total: 0, total: 0,
// //
certificationList: [], authenticationList: [],
// //
title: "", title: "",
// //
@ -178,8 +178,8 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
auidtor: null, auditor: null,
status: null, stat: null,
auditReason: null, auditReason: null,
}, },
// //
@ -193,12 +193,12 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
/** 查询企业认证列表 */ /** 查询认证列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listCertification(this.queryParams).then(response => { listAuthentication(this.queryParams).then(response => {
this.certificationList = response.rows; this.authenticationList = response.data.rows;
this.total = response.total; this.total = response.data.total;
this.loading = false; this.loading = false;
}); });
}, },
@ -211,14 +211,14 @@ export default {
reset() { reset() {
this.form = { this.form = {
id: null, id: null,
auidtor: null, auditor: null,
status: null, stat: null,
auditReason: null, auditReason: null,
remark: null,
createBy: null, createBy: null,
createTime: null, createTime: null,
updateBy: null, updateBy: null,
updateTime: null, updateTime: null
remark: null
}; };
this.resetForm("form"); this.resetForm("form");
}, },
@ -242,16 +242,16 @@ export default {
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = "添加企业认证"; this.title = "添加认证";
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const id = row.id || this.ids const id = row.id || this.ids
getCertification(id).then(response => { getAuthentication(id).then(response => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改企业认证"; this.title = "修改认证";
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -259,13 +259,13 @@ export default {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateCertification(this.form).then(response => { updateAuthentication(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
} else { } else {
addCertification(this.form).then(response => { addAuthentication(this.form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
@ -277,8 +277,8 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除企业认证编号为"' + ids + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除认证编号为"' + ids + '"的数据项?').then(function() {
return delCertification(ids); return delAuthentication(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
@ -286,9 +286,9 @@ export default {
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download('certification/certification/export', { this.download('authentication/authentication/export', {
...this.queryParams ...this.queryParams
}, `certification_${new Date().getTime()}.xlsx`) }, `authentication_${new Date().getTime()}.xlsx`)
} }
} }
}; };

View File

@ -1,102 +1,88 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="企业名称" prop="enterpriseName"> <el-form-item label="企业名称" prop="companyName">
<el-input <el-input
v-model="queryParams.enterpriseName" v-model="queryParams.companyName"
placeholder="请输入企业名称" placeholder="请输入企业名称"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="法定代表人" prop="legalPerson"> <el-form-item label="法定代理人" prop="legalRepresentative">
<el-input <el-input
v-model="queryParams.legalPerson" v-model="queryParams.legalRepresentative"
placeholder="请输入法定代人" placeholder="请输入法定代人"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="经营执照凭证号码" prop="businessLicenseNumber"> <el-form-item label="企业注册时获得的合法经营凭证号码" prop="businessLicenseNumber">
<el-input <el-input
v-model="queryParams.businessLicenseNumber" v-model="queryParams.businessLicenseNumber"
placeholder="请输入经营执照凭证号码" placeholder="请输入企业注册时获得的合法经营凭证号码"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="企业成立时间" prop="establishmentDate"> <el-form-item label="企业成立的日期" prop="companyTime">
<el-date-picker clearable <el-date-picker clearable
v-model="queryParams.establishmentDate" v-model="queryParams.companyTime"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="请选择企业成立时间"> placeholder="请选择企业成立的日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="经营范围" prop="businessScope"> <el-form-item label="经营范围" prop="sphereOfBusiness">
<el-input <el-input
v-model="queryParams.businessScope" v-model="queryParams.sphereOfBusiness"
placeholder="请输入经营范围" placeholder="请输入经营范围"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="注册地址" prop="address"> <el-form-item label="注册地址" prop="registeredAddress">
<el-input <el-input
v-model="queryParams.address" v-model="queryParams.registeredAddress"
placeholder="请输入注册地址" placeholder="请输入注册地址"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="企业联系方式" prop="contactPhone"> <el-form-item label="负责人电话" prop="companyPhone">
<el-input <el-input
v-model="queryParams.contactPhone" v-model="queryParams.companyPhone"
placeholder="请输入企业联系方式" placeholder="请输入负责人电话"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="公司邮箱" prop="email"> <el-form-item label="负责人邮箱" prop="companyMailbox">
<el-input <el-input
v-model="queryParams.email" v-model="queryParams.companyMailbox"
placeholder="请输入公司邮箱" placeholder="请输入负责人邮箱"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="企业入驻平台时期" prop="registrationDate"> <el-form-item label="企业当前的状态,如正常状态,暂停,注销" prop="companyStatus">
<el-select v-model="queryParams.companyStatus" placeholder="请选择企业当前的状态,如正常状态,暂停,注销" clearable>
<el-option
v-for="dict in dict.type.sys_common_status"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="企业入驻时间" prop="enterTime">
<el-date-picker clearable <el-date-picker clearable
v-model="queryParams.registrationDate" v-model="queryParams.enterTime"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="请选择企业入驻平台时期"> placeholder="请选择企业入驻时间">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="企业认证id" prop="certificationId">
<el-input
v-model="queryParams.certificationId"
placeholder="请输入企业认证id"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="认证时间" prop="authenticationDate">
<el-date-picker clearable
v-model="queryParams.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="queryParams.serviceLevel"
placeholder="请输入服务级别"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
@ -111,7 +97,7 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['enterprise:enterprise:add']" v-hasPermi="['authentication:company:add']"
>新增</el-button> >新增</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -122,7 +108,7 @@
size="mini" size="mini"
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['enterprise:enterprise:edit']" v-hasPermi="['authentication:company:edit']"
>修改</el-button> >修改</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -133,7 +119,7 @@
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['enterprise:enterprise:remove']" v-hasPermi="['authentication:company:remove']"
>删除</el-button> >删除</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -143,42 +129,41 @@
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExport"
v-hasPermi="['enterprise:enterprise:export']" v-hasPermi="['authentication:company:export']"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="enterpriseList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="companyList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="主键" align="center" prop="id" /> <el-table-column label="主键" align="center" prop="id" />
<el-table-column label="企业名称" align="center" prop="enterpriseName" /> <el-table-column label="企业名称" align="center" prop="companyName" />
<el-table-column label="法定代表人" align="center" prop="legalPerson" /> <el-table-column label="法定代理人" align="center" prop="legalRepresentative" />
<el-table-column label="经营执照凭证号码" align="center" prop="businessLicenseNumber" /> <el-table-column label="企业注册时获得的合法经营凭证号码" align="center" prop="businessLicenseNumber" />
<el-table-column label="企业成立时间" align="center" prop="establishmentDate" width="180"> <el-table-column label="企业成立的日期" align="center" prop="companyTime" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.establishmentDate, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.companyTime, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="经营范围" align="center" prop="businessScope" /> <el-table-column label="经营范围" align="center" prop="sphereOfBusiness" />
<el-table-column label="注册地址" align="center" prop="address" /> <el-table-column label="注册地址" align="center" prop="registeredAddress" />
<el-table-column label="企业联系方式" align="center" prop="contactPhone" /> <el-table-column label="负责人电话" align="center" prop="companyPhone" />
<el-table-column label="公司邮箱" align="center" prop="email" /> <el-table-column label="负责人邮箱" align="center" prop="companyMailbox" />
<el-table-column label="企业当前状态" align="center" prop="status" /> <el-table-column label="企业当前的状态,如正常状态,暂停,注销" align="center" prop="companyStatus">
<el-table-column label="企业入驻平台时期" align="center" prop="registrationDate" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.registrationDate, '{y}-{m}-{d}') }}</span> <dict-tag :options="dict.type.sys_common_status" :value="scope.row.companyStatus"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="企业认证id" align="center" prop="certificationId" /> <el-table-column label="企业入驻时间" align="center" prop="enterTime" width="180">
<el-table-column label="认证时间" align="center" prop="authenticationDate" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.authenticationDate, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.enterTime, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="服务级别" align="center" prop="serviceLevel" /> <el-table-column label="企业认证主键" align="center" prop="authenticationId" />
<el-table-column label="开通服务id" align="center" prop="openServerId" /> <el-table-column label="开通服务主键" align="center" prop="liberalServiceId" />
<el-table-column label="增值服务id" align="center" prop="addServerId" /> <el-table-column label="增值服务主键" align="center" prop="appreciationServiceId" />
<el-table-column label="用户ID" align="center" prop="userId" />
<el-table-column label="备注" align="center" prop="remark" /> <el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
@ -187,14 +172,14 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['enterprise:enterprise:edit']" v-hasPermi="['authentication:company:edit']"
>修改</el-button> >修改</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['enterprise:enterprise:remove']" v-hasPermi="['authentication:company:remove']"
>删除</el-button> >删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -211,57 +196,52 @@
<!-- 添加或修改企业对话框 --> <!-- 添加或修改企业对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <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 ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="企业名称" prop="enterpriseName"> <el-form-item label="企业名称" prop="companyName">
<el-input v-model="form.enterpriseName" placeholder="请输入企业名称" /> <el-input v-model="form.companyName" placeholder="请输入企业名称" />
</el-form-item> </el-form-item>
<el-form-item label="法定代表人" prop="legalPerson"> <el-form-item label="法定代理人" prop="legalRepresentative">
<el-input v-model="form.legalPerson" placeholder="请输入法定代表人" /> <el-input v-model="form.legalRepresentative" placeholder="请输入法定代理人" />
</el-form-item> </el-form-item>
<el-form-item label="经营执照凭证号码" prop="businessLicenseNumber"> <el-form-item label="企业注册时获得的合法经营凭证号码" prop="businessLicenseNumber">
<el-input v-model="form.businessLicenseNumber" placeholder="请输入经营执照凭证号码" /> <el-input v-model="form.businessLicenseNumber" placeholder="请输入企业注册时获得的合法经营凭证号码" />
</el-form-item> </el-form-item>
<el-form-item label="企业成立时间" prop="establishmentDate"> <el-form-item label="企业成立的日期" prop="companyTime">
<el-date-picker clearable <el-date-picker clearable
v-model="form.establishmentDate" v-model="form.companyTime"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="请选择企业成立时间"> placeholder="请选择企业成立的日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="经营范围" prop="businessScope"> <el-form-item label="经营范围" prop="sphereOfBusiness">
<el-input v-model="form.businessScope" placeholder="请输入经营范围" /> <el-input v-model="form.sphereOfBusiness" placeholder="请输入经营范围" />
</el-form-item> </el-form-item>
<el-form-item label="注册地址" prop="address"> <el-form-item label="注册地址" prop="registeredAddress">
<el-input v-model="form.address" placeholder="请输入注册地址" /> <el-input v-model="form.registeredAddress" placeholder="请输入注册地址" />
</el-form-item> </el-form-item>
<el-form-item label="企业联系方式" prop="contactPhone"> <el-form-item label="负责人电话" prop="companyPhone">
<el-input v-model="form.contactPhone" placeholder="请输入企业联系方式" /> <el-input v-model="form.companyPhone" placeholder="请输入负责人电话" />
</el-form-item> </el-form-item>
<el-form-item label="公司邮箱" prop="email"> <el-form-item label="负责人邮箱" prop="companyMailbox">
<el-input v-model="form.email" placeholder="请输入公司邮箱" /> <el-input v-model="form.companyMailbox" placeholder="请输入负责人邮箱" />
</el-form-item> </el-form-item>
<el-form-item label="企业入驻平台时期" prop="registrationDate"> <el-form-item label="企业当前的状态,如正常状态,暂停,注销" prop="companyStatus">
<el-radio-group v-model="form.companyStatus">
<el-radio
v-for="dict in dict.type.sys_common_status"
:key="dict.value"
:label="dict.value"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="企业入驻时间" prop="enterTime">
<el-date-picker clearable <el-date-picker clearable
v-model="form.registrationDate" v-model="form.enterTime"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="请选择企业入驻平台时期"> placeholder="请选择企业入驻时间">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="企业认证id" prop="certificationId">
<el-input v-model="form.certificationId" placeholder="请输入企业认证id" />
</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="请选择认证时间">
</el-date-picker>
</el-form-item>
<el-form-item label="服务级别" prop="serviceLevel">
<el-input v-model="form.serviceLevel" placeholder="请输入服务级别" />
</el-form-item>
<el-form-item label="备注" prop="remark"> <el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" /> <el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item> </el-form-item>
@ -275,10 +255,11 @@
</template> </template>
<script> <script>
import { listEnterprise, getEnterprise, delEnterprise, addEnterprise, updateEnterprise } from "@/api/enterprise/enterprise"; import { listCompany, getCompany, delCompany, addCompany, updateCompany } from "@/api/authentication/company";
export default { export default {
name: "Enterprise", name: "Company",
dicts: ['sys_common_status'],
data() { data() {
return { return {
// //
@ -294,7 +275,7 @@ export default {
// //
total: 0, total: 0,
// //
enterpriseList: [], companyList: [],
// //
title: "", title: "",
// //
@ -303,21 +284,20 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
enterpriseName: null, companyName: null,
legalPerson: null, legalRepresentative: null,
businessLicenseNumber: null, businessLicenseNumber: null,
establishmentDate: null, companyTime: null,
businessScope: null, sphereOfBusiness: null,
address: null, registeredAddress: null,
contactPhone: null, companyPhone: null,
email: null, companyMailbox: null,
status: null, companyStatus: null,
registrationDate: null, enterTime: null,
certificationId: null, authenticationId: null,
authenticationDate: null, liberalServiceId: null,
serviceLevel: null, appreciationServiceId: null,
openServerId: null, userId: null,
addServerId: null,
}, },
// //
form: {}, form: {},
@ -333,9 +313,9 @@ export default {
/** 查询企业列表 */ /** 查询企业列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listEnterprise(this.queryParams).then(response => { listCompany(this.queryParams).then(response => {
this.enterpriseList = response.rows; this.companyList = response.data.rows;
this.total = response.total; this.total = response.data.total;
this.loading = false; this.loading = false;
}); });
}, },
@ -348,26 +328,25 @@ export default {
reset() { reset() {
this.form = { this.form = {
id: null, id: null,
enterpriseName: null, companyName: null,
legalPerson: null, legalRepresentative: null,
businessLicenseNumber: null, businessLicenseNumber: null,
establishmentDate: null, companyTime: null,
businessScope: null, sphereOfBusiness: null,
address: null, registeredAddress: null,
contactPhone: null, companyPhone: null,
email: null, companyMailbox: null,
status: null, companyStatus: null,
registrationDate: null, enterTime: null,
certificationId: null, authenticationId: null,
authenticationDate: null, liberalServiceId: null,
serviceLevel: null, appreciationServiceId: null,
openServerId: null, userId: null,
addServerId: null, remark: null,
createBy: null, createBy: null,
createTime: null, createTime: null,
updateBy: null, updateBy: null,
updateTime: null, updateTime: null
remark: null
}; };
this.resetForm("form"); this.resetForm("form");
}, },
@ -397,7 +376,7 @@ export default {
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const id = row.id || this.ids const id = row.id || this.ids
getEnterprise(id).then(response => { getCompany(id).then(response => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改企业"; this.title = "修改企业";
@ -408,13 +387,13 @@ export default {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateEnterprise(this.form).then(response => { updateCompany(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
} else { } else {
addEnterprise(this.form).then(response => { addCompany(this.form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
@ -427,7 +406,7 @@ export default {
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除企业编号为"' + ids + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除企业编号为"' + ids + '"的数据项?').then(function() {
return delEnterprise(ids); return delCompany(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
@ -435,9 +414,9 @@ export default {
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download('enterprise/enterprise/export', { this.download('authentication/company/export', {
...this.queryParams ...this.queryParams
}, `enterprise_${new Date().getTime()}.xlsx`) }, `company_${new Date().getTime()}.xlsx`)
} }
} }
}; };

View File

@ -1,29 +1,15 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="增值属性" prop="addValue"> <el-form-item label="1开通 2未开通" prop="activateTheService">
<el-input <el-select v-model="queryParams.activateTheService" placeholder="请选择1开通 2未开通" clearable>
v-model="queryParams.addValue" <el-option
placeholder="请输入增值属性" v-for="dict in dict.type.sys_common_status"
clearable :key="dict.value"
@keyup.enter.native="handleQuery" :label="dict.label"
/> :value="dict.value"
</el-form-item> />
<el-form-item label="金额" prop="addDecimal"> </el-select>
<el-input
v-model="queryParams.addDecimal"
placeholder="请输入金额"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="修改时间" prop="updaetTime">
<el-date-picker clearable
v-model="queryParams.updaetTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择修改时间">
</el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
@ -39,7 +25,7 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['product:service:add']" v-hasPermi="['authentication:liberal:add']"
>新增</el-button> >新增</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -50,7 +36,7 @@
size="mini" size="mini"
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['product:service:edit']" v-hasPermi="['authentication:liberal:edit']"
>修改</el-button> >修改</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -61,7 +47,7 @@
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['product:service:remove']" v-hasPermi="['authentication:liberal:remove']"
>删除</el-button> >删除</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -71,20 +57,18 @@
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExport"
v-hasPermi="['product:service:export']" v-hasPermi="['authentication:liberal:export']"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="serviceList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="liberalList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="id" align="center" prop="id" /> <el-table-column label="开通主键" align="center" prop="id" />
<el-table-column label="增值属性" align="center" prop="addValue" /> <el-table-column label="1开通 2未开通" align="center" prop="activateTheService">
<el-table-column label="金额" align="center" prop="addDecimal" />
<el-table-column label="修改时间" align="center" prop="updaetTime" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.updaetTime, '{y}-{m}-{d}') }}</span> <dict-tag :options="dict.type.sys_common_status" :value="scope.row.activateTheService"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" align="center" prop="remark" /> <el-table-column label="备注" align="center" prop="remark" />
@ -95,14 +79,14 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['product:service:edit']" v-hasPermi="['authentication:liberal:edit']"
>修改</el-button> >修改</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['product:service:remove']" v-hasPermi="['authentication:liberal:remove']"
>删除</el-button> >删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -116,22 +100,17 @@
@pagination="getList" @pagination="getList"
/> />
<!-- 添加或修改增值对话框 --> <!-- 添加或修改开通服务对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <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 ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="增值属性" prop="addValue"> <el-form-item label="1开通 2未开通" prop="activateTheService">
<el-input v-model="form.addValue" placeholder="请输入增值属性" /> <el-radio-group v-model="form.activateTheService">
</el-form-item> <el-radio
<el-form-item label="金额" prop="addDecimal"> v-for="dict in dict.type.sys_common_status"
<el-input v-model="form.addDecimal" placeholder="请输入金额" /> :key="dict.value"
</el-form-item> :label="dict.value"
<el-form-item label="修改时间" prop="updaetTime"> >{{dict.label}}</el-radio>
<el-date-picker clearable </el-radio-group>
v-model="form.updaetTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择修改时间">
</el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="remark"> <el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" /> <el-input v-model="form.remark" placeholder="请输入备注" />
@ -146,10 +125,11 @@
</template> </template>
<script> <script>
import { listService, getService, delService, addService, updateService } from "@/api/product/service"; import { listLiberal, getLiberal, delLiberal, addLiberal, updateLiberal } from "@/api/authentication/liberal";
export default { export default {
name: "Service", name: "Liberal",
dicts: ['sys_common_status'],
data() { data() {
return { return {
// //
@ -164,8 +144,8 @@ export default {
showSearch: true, showSearch: true,
// //
total: 0, total: 0,
// //
serviceList: [], liberalList: [],
// //
title: "", title: "",
// //
@ -174,9 +154,7 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
addValue: null, activateTheService: null,
addDecimal: null,
updaetTime: null,
}, },
// //
form: {}, form: {},
@ -189,12 +167,12 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
/** 查询增值列表 */ /** 查询开通服务列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listService(this.queryParams).then(response => { listLiberal(this.queryParams).then(response => {
this.serviceList = response.rows; this.liberalList = response.data.rows;
this.total = response.total; this.total = response.data.total;
this.loading = false; this.loading = false;
}); });
}, },
@ -207,13 +185,12 @@ export default {
reset() { reset() {
this.form = { this.form = {
id: null, id: null,
addValue: null, activateTheService: null,
addDecimal: null, remark: null,
createBy: null, createBy: null,
createTime: null, createTime: null,
updateBy: null, updateBy: null,
updaetTime: null, updateTime: null
remark: null
}; };
this.resetForm("form"); this.resetForm("form");
}, },
@ -237,16 +214,16 @@ export default {
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = "添加增值"; this.title = "添加开通服务";
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const id = row.id || this.ids const id = row.id || this.ids
getService(id).then(response => { getLiberal(id).then(response => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改增值"; this.title = "修改开通服务";
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -254,13 +231,13 @@ export default {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateService(this.form).then(response => { updateLiberal(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
} else { } else {
addService(this.form).then(response => { addLiberal(this.form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
@ -272,8 +249,8 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除增值编号为"' + ids + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除开通服务编号为"' + ids + '"的数据项?').then(function() {
return delService(ids); return delLiberal(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
@ -281,9 +258,9 @@ export default {
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download('product/service/export', { this.download('authentication/liberal/export', {
...this.queryParams ...this.queryParams
}, `service_${new Date().getTime()}.xlsx`) }, `liberal_${new Date().getTime()}.xlsx`)
} }
} }
}; };

View File

@ -1,18 +1,10 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="企业id" prop="enterpriseId"> <el-form-item label="增值需要支付的价格" prop="appreciationDecimal">
<el-input <el-input
v-model="queryParams.enterpriseId" v-model="queryParams.appreciationDecimal"
placeholder="请输入企业id" placeholder="请输入增值需要支付的价格"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="增值金额" prop="price">
<el-input
v-model="queryParams.price"
placeholder="请输入增值金额"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
@ -31,7 +23,7 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['product:for:add']" v-hasPermi="['authentication:pay:add']"
>新增</el-button> >新增</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -42,7 +34,7 @@
size="mini" size="mini"
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['product:for:edit']" v-hasPermi="['authentication:pay:edit']"
>修改</el-button> >修改</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -53,7 +45,7 @@
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['product:for:remove']" v-hasPermi="['authentication:pay:remove']"
>删除</el-button> >删除</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -63,17 +55,18 @@
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExport"
v-hasPermi="['product:for:export']" v-hasPermi="['authentication:pay:export']"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="forList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="payList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="id" align="center" prop="id" /> <el-table-column label="支付主键" align="center" prop="id" />
<el-table-column label="企业id" align="center" prop="enterpriseId" /> <el-table-column label="企业主键" align="center" prop="companyId" />
<el-table-column label="增值金额" align="center" prop="price" /> <el-table-column label="支付方式主键" align="center" prop="paymentId" />
<el-table-column label="增值需要支付的价格" align="center" prop="appreciationDecimal" />
<el-table-column label="备注" align="center" prop="remark" /> <el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
@ -82,14 +75,14 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['product:for:edit']" v-hasPermi="['authentication:pay:edit']"
>修改</el-button> >修改</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['product:for:remove']" v-hasPermi="['authentication:pay:remove']"
>删除</el-button> >删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -106,11 +99,8 @@
<!-- 添加或修改支付对话框 --> <!-- 添加或修改支付对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <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 ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="企业id" prop="enterpriseId"> <el-form-item label="增值需要支付的价格" prop="appreciationDecimal">
<el-input v-model="form.enterpriseId" placeholder="请输入企业id" /> <el-input v-model="form.appreciationDecimal" placeholder="请输入增值需要支付的价格" />
</el-form-item>
<el-form-item label="增值金额" prop="price">
<el-input v-model="form.price" placeholder="请输入增值金额" />
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="remark"> <el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" /> <el-input v-model="form.remark" placeholder="请输入备注" />
@ -125,10 +115,10 @@
</template> </template>
<script> <script>
import { listFor, getFor, delFor, addFor, updateFor } from "@/api/product/for"; import { listPay, getPay, delPay, addPay, updatePay } from "@/api/authentication/pay";
export default { export default {
name: "For", name: "Pay",
data() { data() {
return { return {
// //
@ -144,7 +134,7 @@ export default {
// //
total: 0, total: 0,
// //
forList: [], payList: [],
// //
title: "", title: "",
// //
@ -153,8 +143,9 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
enterpriseId: null, companyId: null,
price: null, paymentId: null,
appreciationDecimal: null,
}, },
// //
form: {}, form: {},
@ -170,9 +161,9 @@ export default {
/** 查询支付列表 */ /** 查询支付列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listFor(this.queryParams).then(response => { listPay(this.queryParams).then(response => {
this.forList = response.rows; this.payList = response.data.rows;
this.total = response.total; this.total = response.data.total;
this.loading = false; this.loading = false;
}); });
}, },
@ -185,13 +176,14 @@ export default {
reset() { reset() {
this.form = { this.form = {
id: null, id: null,
enterpriseId: null, companyId: null,
price: null, paymentId: null,
appreciationDecimal: null,
remark: null,
createBy: null, createBy: null,
createTime: null, createTime: null,
updateBy: null, updateBy: null,
updateTime: null, updateTime: null
remark: null
}; };
this.resetForm("form"); this.resetForm("form");
}, },
@ -221,7 +213,7 @@ export default {
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const id = row.id || this.ids const id = row.id || this.ids
getFor(id).then(response => { getPay(id).then(response => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改支付"; this.title = "修改支付";
@ -232,13 +224,13 @@ export default {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updateFor(this.form).then(response => { updatePay(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
} else { } else {
addFor(this.form).then(response => { addPay(this.form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
@ -251,7 +243,7 @@ export default {
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除支付编号为"' + ids + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除支付编号为"' + ids + '"的数据项?').then(function() {
return delFor(ids); return delPay(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
@ -259,9 +251,9 @@ export default {
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download('product/for/export', { this.download('authentication/pay/export', {
...this.queryParams ...this.queryParams
}, `for_${new Date().getTime()}.xlsx`) }, `pay_${new Date().getTime()}.xlsx`)
} }
} }
}; };

View File

@ -0,0 +1,254 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="支付方式" prop="payment">
<el-input
v-model="queryParams.payment"
placeholder="请输入支付方式"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['authentication:payment:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['authentication:payment:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['authentication:payment:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['authentication:payment:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="paymentList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="支付方式主键" align="center" prop="id" />
<el-table-column label="支付方式" align="center" prop="payment" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['authentication:payment:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['authentication:payment:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@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="payment">
<el-input v-model="form.payment" placeholder="请输入支付方式" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listPayment, getPayment, delPayment, addPayment, updatePayment } from "@/api/authentication/payment";
export default {
name: "Payment",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
paymentList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
payment: null,
},
//
form: {},
//
rules: {
}
};
},
created() {
this.getList();
},
methods: {
/** 查询支付方式列表 */
getList() {
this.loading = true;
listPayment(this.queryParams).then(response => {
this.paymentList = response.data.rows;
this.total = response.data.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
payment: null,
remark: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加支付方式";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getPayment(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改支付方式";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updatePayment(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addPayment(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除支付方式编号为"' + ids + '"的数据项?').then(function() {
return delPayment(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('authentication/payment/export', {
...this.queryParams
}, `payment_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -44,7 +44,7 @@
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :lg="12" :sm="24" style="padding-left: 20px"> <el-col :lg="12" :sm="24" style="padding-left: 20px">
<h2>运营管理框架</h2> <h2>若依后台管理框架</h2>
<p> <p>
一直想做一款后台管理系统看了很多优秀的开源项目但是发现没有合适自己的于是利用空闲休息时间开始自己写一套后台系统如此有了若依管理系统她可以用于所有的Web应用程序如网站管理后台网站会员中心CMSCRMOA等等当然您也可以对她进行深度定制以做出更强系统所有前端后台代码封装过后十分精简易上手出错概率低同时支持移动客户端访问系统会陆续更新一些实用功能 一直想做一款后台管理系统看了很多优秀的开源项目但是发现没有合适自己的于是利用空闲休息时间开始自己写一套后台系统如此有了若依管理系统她可以用于所有的Web应用程序如网站管理后台网站会员中心CMSCRMOA等等当然您也可以对她进行深度定制以做出更强系统所有前端后台代码封装过后十分精简易上手出错概率低同时支持移动客户端访问系统会陆续更新一些实用功能
</p> </p>

View File

@ -478,8 +478,7 @@ export default {
trigger: "blur" trigger: "blur"
} }
] ]
}, }
companyList:[]
}; };
}, },
watch: { watch: {
@ -494,7 +493,6 @@ export default {
this.getConfigKey("sys.user.initPassword").then(response => { this.getConfigKey("sys.user.initPassword").then(response => {
this.initPassword = response.data.msg; this.initPassword = response.data.msg;
}); });
this.gerCompany()
}, },
methods: { methods: {
/** 查询用户列表 */ /** 查询用户列表 */
@ -513,12 +511,6 @@ export default {
this.deptOptions = response.data; this.deptOptions = response.data;
}); });
}, },
/** 获取公司列表 */
gerCompany(){
companyList().then(res=>{
this.companyList=res.data
})
},
// //
filterNode(value, data) { filterNode(value, data) {
if (!value) return true; if (!value) return true;

View File

@ -7,7 +7,7 @@ function resolve(dir) {
const CompressionPlugin = require('compression-webpack-plugin') const CompressionPlugin = require('compression-webpack-plugin')
const name = process.env.VUE_APP_TITLE || '运营平台系统' // 网页标题 const name = process.env.VUE_APP_TITLE || '若依管理系统' // 网页标题
const port = process.env.port || process.env.npm_config_port || 80 // 端口 const port = process.env.port || process.env.npm_config_port || 80 // 端口