fix(重新搭建表,重构代码)

master
031026 2024-05-30 22:43:06 +08:00
commit 2e10286af3
19 changed files with 438 additions and 676 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

@ -1,44 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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

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

View File

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

View File

@ -0,0 +1,44 @@
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,254 +0,0 @@
<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

@ -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="auditor"> <el-form-item label="审核报告人" prop="auidtor">
<el-input <el-input
v-model="queryParams.auditor" v-model="queryParams.auidtor"
placeholder="请输入审核报告人" placeholder="请输入审核报告人"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="待审核,已通过,未通过" prop="stat"> <el-form-item label="审核状态" prop="status">
<el-select v-model="queryParams.stat" placeholder="请选择待审核,已通过,未通过" clearable> <el-select v-model="queryParams.status" placeholder="请选择审核状态" clearable>
<el-option <el-option
v-for="dict in dict.type.sys_common_status" v-for="dict in dict.type.sys_examine"
: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="['authentication:authentication:add']" v-hasPermi="['certification:certification: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="['authentication:authentication:edit']" v-hasPermi="['certification:certification: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="['authentication:authentication:remove']" v-hasPermi="['certification:certification: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="['authentication:authentication:export']" v-hasPermi="['certification:certification: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="authenticationList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="certificationList" @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="id" align="center" prop="id" />
<el-table-column label="审核报告人" align="center" prop="auditor" /> <el-table-column label="审核报告人" align="center" prop="auidtor" />
<el-table-column label="待审核,已通过,未通过" align="center" prop="stat"> <el-table-column label="审核状态" align="center" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.sys_common_status" :value="scope.row.stat"/> <dict-tag :options="dict.type.sys_examine" :value="scope.row.status"/>
</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="['authentication:authentication:edit']" v-hasPermi="['certification:certification: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="['authentication:authentication:remove']" v-hasPermi="['certification:certification: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="auditor"> <el-form-item label="审核报告人" prop="auidtor">
<el-input v-model="form.auditor" placeholder="请输入审核报告人" /> <el-input v-model="form.auidtor" placeholder="请输入审核报告人" />
</el-form-item> </el-form-item>
<el-form-item label="待审核,已通过,未通过" prop="stat"> <el-form-item label="审核状态" prop="status">
<el-radio-group v-model="form.stat"> <el-radio-group v-model="form.status">
<el-radio <el-radio
v-for="dict in dict.type.sys_common_status" v-for="dict in dict.type.sys_examine"
: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 { listAuthentication, getAuthentication, delAuthentication, addAuthentication, updateAuthentication } from "@/api/authentication/authentication"; import { listCertification, getCertification, delCertification, addCertification, updateCertification } from "@/api/certification/certification";
export default { export default {
name: "Authentication", name: "Certification",
dicts: ['sys_common_status'], dicts: ['sys_examine'],
data() { data() {
return { return {
// //
@ -168,8 +168,8 @@ export default {
showSearch: true, showSearch: true,
// //
total: 0, total: 0,
// //
authenticationList: [], certificationList: [],
// //
title: "", title: "",
// //
@ -178,8 +178,8 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
auditor: null, auidtor: null,
stat: null, status: 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;
listAuthentication(this.queryParams).then(response => { listCertification(this.queryParams).then(response => {
this.authenticationList = response.data.rows; this.certificationList = response.rows;
this.total = response.data.total; this.total = response.total;
this.loading = false; this.loading = false;
}); });
}, },
@ -211,14 +211,14 @@ export default {
reset() { reset() {
this.form = { this.form = {
id: null, id: null,
auditor: null, auidtor: null,
stat: null, status: 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
getAuthentication(id).then(response => { getCertification(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) {
updateAuthentication(this.form).then(response => { updateCertification(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
} else { } else {
addAuthentication(this.form).then(response => { addCertification(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 delAuthentication(ids); return delCertification(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
@ -286,9 +286,9 @@ export default {
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download('authentication/authentication/export', { this.download('certification/certification/export', {
...this.queryParams ...this.queryParams
}, `authentication_${new Date().getTime()}.xlsx`) }, `certification_${new Date().getTime()}.xlsx`)
} }
} }
}; };

View File

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

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

@ -1,10 +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="appreciationDecimal"> <el-form-item label="企业id" prop="enterpriseId">
<el-input <el-input
v-model="queryParams.appreciationDecimal" v-model="queryParams.enterpriseId"
placeholder="请输入增值需要支付的价格" placeholder="请输入企业id"
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"
/> />
@ -23,7 +31,7 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['authentication:pay:add']" v-hasPermi="['product:for:add']"
>新增</el-button> >新增</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -34,7 +42,7 @@
size="mini" size="mini"
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['authentication:pay:edit']" v-hasPermi="['product:for:edit']"
>修改</el-button> >修改</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -45,7 +53,7 @@
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['authentication:pay:remove']" v-hasPermi="['product:for:remove']"
>删除</el-button> >删除</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -55,18 +63,17 @@
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExport"
v-hasPermi="['authentication:pay:export']" v-hasPermi="['product:for: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="payList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="forList" @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="id" align="center" prop="id" />
<el-table-column label="企业主键" align="center" prop="companyId" /> <el-table-column label="企业id" align="center" prop="enterpriseId" />
<el-table-column label="支付方式主键" align="center" prop="paymentId" /> <el-table-column label="增值金额" align="center" prop="price" />
<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">
@ -75,14 +82,14 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['authentication:pay:edit']" v-hasPermi="['product:for: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="['authentication:pay:remove']" v-hasPermi="['product:for:remove']"
>删除</el-button> >删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -99,8 +106,11 @@
<!-- 添加或修改支付对话框 --> <!-- 添加或修改支付对话框 -->
<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="appreciationDecimal"> <el-form-item label="企业id" prop="enterpriseId">
<el-input v-model="form.appreciationDecimal" placeholder="请输入增值需要支付的价格" /> <el-input v-model="form.enterpriseId" placeholder="请输入企业id" />
</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="请输入备注" />
@ -115,10 +125,10 @@
</template> </template>
<script> <script>
import { listPay, getPay, delPay, addPay, updatePay } from "@/api/authentication/pay"; import { listFor, getFor, delFor, addFor, updateFor } from "@/api/product/for";
export default { export default {
name: "Pay", name: "For",
data() { data() {
return { return {
// //
@ -134,7 +144,7 @@ export default {
// //
total: 0, total: 0,
// //
payList: [], forList: [],
// //
title: "", title: "",
// //
@ -143,9 +153,8 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
companyId: null, enterpriseId: null,
paymentId: null, price: null,
appreciationDecimal: null,
}, },
// //
form: {}, form: {},
@ -161,9 +170,9 @@ export default {
/** 查询支付列表 */ /** 查询支付列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listPay(this.queryParams).then(response => { listFor(this.queryParams).then(response => {
this.payList = response.data.rows; this.forList = response.rows;
this.total = response.data.total; this.total = response.total;
this.loading = false; this.loading = false;
}); });
}, },
@ -176,14 +185,13 @@ export default {
reset() { reset() {
this.form = { this.form = {
id: null, id: null,
companyId: null, enterpriseId: null,
paymentId: null, price: 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");
}, },
@ -213,7 +221,7 @@ export default {
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const id = row.id || this.ids const id = row.id || this.ids
getPay(id).then(response => { getFor(id).then(response => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改支付"; this.title = "修改支付";
@ -224,13 +232,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) {
updatePay(this.form).then(response => { updateFor(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
} else { } else {
addPay(this.form).then(response => { addFor(this.form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
@ -243,7 +251,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 delPay(ids); return delFor(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
@ -251,9 +259,9 @@ export default {
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download('authentication/pay/export', { this.download('product/for/export', {
...this.queryParams ...this.queryParams
}, `pay_${new Date().getTime()}.xlsx`) }, `for_${new Date().getTime()}.xlsx`)
} }
} }
}; };

View File

@ -1,15 +1,29 @@
<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="1开通 2未开通" prop="activateTheService"> <el-form-item label="增值属性" prop="addValue">
<el-select v-model="queryParams.activateTheService" placeholder="请选择1开通 2未开通" clearable> <el-input
<el-option v-model="queryParams.addValue"
v-for="dict in dict.type.sys_common_status" placeholder="请输入增值属性"
:key="dict.value" clearable
:label="dict.label" @keyup.enter.native="handleQuery"
:value="dict.value" />
/> </el-form-item>
</el-select> <el-form-item label="金额" prop="addDecimal">
<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>
@ -25,7 +39,7 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['authentication:liberal:add']" v-hasPermi="['product:service:add']"
>新增</el-button> >新增</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -36,7 +50,7 @@
size="mini" size="mini"
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['authentication:liberal:edit']" v-hasPermi="['product:service:edit']"
>修改</el-button> >修改</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -47,7 +61,7 @@
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['authentication:liberal:remove']" v-hasPermi="['product:service:remove']"
>删除</el-button> >删除</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -57,18 +71,20 @@
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExport"
v-hasPermi="['authentication:liberal:export']" v-hasPermi="['product:service: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="liberalList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="serviceList" @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="id" align="center" prop="id" />
<el-table-column label="1开通 2未开通" align="center" prop="activateTheService"> <el-table-column label="增值属性" align="center" prop="addValue" />
<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">
<dict-tag :options="dict.type.sys_common_status" :value="scope.row.activateTheService"/> <span>{{ parseTime(scope.row.updaetTime, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" align="center" prop="remark" /> <el-table-column label="备注" align="center" prop="remark" />
@ -79,14 +95,14 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['authentication:liberal:edit']" v-hasPermi="['product:service: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="['authentication:liberal:remove']" v-hasPermi="['product:service:remove']"
>删除</el-button> >删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -100,17 +116,22 @@
@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="1开通 2未开通" prop="activateTheService"> <el-form-item label="增值属性" prop="addValue">
<el-radio-group v-model="form.activateTheService"> <el-input v-model="form.addValue" placeholder="请输入增值属性" />
<el-radio </el-form-item>
v-for="dict in dict.type.sys_common_status" <el-form-item label="金额" prop="addDecimal">
:key="dict.value" <el-input v-model="form.addDecimal" placeholder="请输入金额" />
:label="dict.value" </el-form-item>
>{{dict.label}}</el-radio> <el-form-item label="修改时间" prop="updaetTime">
</el-radio-group> <el-date-picker clearable
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="请输入备注" />
@ -125,11 +146,10 @@
</template> </template>
<script> <script>
import { listLiberal, getLiberal, delLiberal, addLiberal, updateLiberal } from "@/api/authentication/liberal"; import { listService, getService, delService, addService, updateService } from "@/api/product/service";
export default { export default {
name: "Liberal", name: "Service",
dicts: ['sys_common_status'],
data() { data() {
return { return {
// //
@ -144,8 +164,8 @@ export default {
showSearch: true, showSearch: true,
// //
total: 0, total: 0,
// //
liberalList: [], serviceList: [],
// //
title: "", title: "",
// //
@ -154,7 +174,9 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
activateTheService: null, addValue: null,
addDecimal: null,
updaetTime: null,
}, },
// //
form: {}, form: {},
@ -167,12 +189,12 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
/** 查询开通服务列表 */ /** 查询增值列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listLiberal(this.queryParams).then(response => { listService(this.queryParams).then(response => {
this.liberalList = response.data.rows; this.serviceList = response.rows;
this.total = response.data.total; this.total = response.total;
this.loading = false; this.loading = false;
}); });
}, },
@ -185,12 +207,13 @@ export default {
reset() { reset() {
this.form = { this.form = {
id: null, id: null,
activateTheService: null, addValue: null,
remark: null, addDecimal: null,
createBy: null, createBy: null,
createTime: null, createTime: null,
updateBy: null, updateBy: null,
updateTime: null updaetTime: null,
remark: null
}; };
this.resetForm("form"); this.resetForm("form");
}, },
@ -214,16 +237,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
getLiberal(id).then(response => { getService(id).then(response => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改开通服务"; this.title = "修改增值";
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -231,13 +254,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) {
updateLiberal(this.form).then(response => { updateService(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
} else { } else {
addLiberal(this.form).then(response => { addService(this.form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
@ -249,8 +272,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 delLiberal(ids); return delService(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
@ -258,9 +281,9 @@ export default {
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download('authentication/liberal/export', { this.download('product/service/export', {
...this.queryParams ...this.queryParams
}, `liberal_${new Date().getTime()}.xlsx`) }, `service_${new Date().getTime()}.xlsx`)
} }
} }
}; };

View File

@ -478,7 +478,8 @@ export default {
trigger: "blur" trigger: "blur"
} }
] ]
} },
companyList:[]
}; };
}, },
watch: { watch: {
@ -493,6 +494,7 @@ 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: {
/** 查询用户列表 */ /** 查询用户列表 */
@ -511,6 +513,12 @@ 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 // 端口