Commit 764a832ffb7a2c75247c25a75e0f01076294390c

Authored by 李宇
1 parent 7ab02d9a

资金池

admin-web-master/src/api/couponmanagement/capitalpool.js 0 → 100644
  1 +import request from '@/utils/request'
  2 +
  3 +export function getcereFundsPoolData(data) {
  4 + return request({
  5 + url: '/cereFundsPool',
  6 + method: 'post',
  7 + data
  8 + })
  9 +}
  10 +
  11 +/**
  12 +{
  13 + "activityId": 0
  14 +}
  15 + */
  16 +export function getcereFundsPoolDetail(data) {
  17 + return request({
  18 + url: '/cereFundsPool/getById',
  19 + method: 'post',
  20 + data
  21 + })
  22 +}
  23 +
  24 +
  25 +export function addcereFundsPool(data) {
  26 + return request({
  27 + url: '/cereFundsPool/add ',
  28 + method: 'post',
  29 + data
  30 + })
  31 +}
  32 +
... ...
admin-web-master/src/layout/index.vue
... ... @@ -254,12 +254,12 @@ export default {
254 254 }
255 255 }
256 256 return {
257   - msg:['招商服务系统'],
258   - // msg:['招商服务系统','推广策划系统','在线商城系统','支付服务模块','票务'],
  257 + // msg:['招商服务系统'],
  258 + msg:['招商服务系统','推广策划系统','在线商城系统','支付服务模块','票务'],
259 259 listMune:[],
260 260 list:[
261 261 // ['问卷调查'],
262   - ['招商资源监测','商家管理','招商方案管理','招商租赁管理','广告服务','客服服务管理','系统设置','商铺租赁服务','招商过程管理','问卷调查','商户寻租管理','轮播图设置','平台活动','客服配置'],
  262 + ['招商资源监测','商家管理','招商方案管理','招商租赁管理','广告服务','客服服务管理','系统设置','商铺租赁服务','招商过程管理','问卷调查','商户寻租管理','轮播图设置','平台活动','客服配置','优惠券管理'],
263 263 ['品牌策划','活动策划','氛围策划','媒体推广'],
264 264 ['订单管理','积分管理','消息中心','会员管理','评论管理','商品管理','库存管理','销售统计','平台活动'],
265 265 ['联机交易'],
... ... @@ -637,7 +637,7 @@ this.listMune[0] = All
637 637 this.listMune = []
638 638 this.list=[
639 639 // ['问卷调查'],
640   - ['招商资源监测','商家管理','招商方案管理','招商租赁管理','广告服务','客服服务管理','系统设置','商铺租赁服务','招商过程管理','问卷调查','商户寻租管理','轮播图设置','平台活动','客服配置'],
  640 + ['招商资源监测','商家管理','招商方案管理','招商租赁管理','广告服务','客服服务管理','系统设置','商铺租赁服务','招商过程管理','问卷调查','商户寻租管理','轮播图设置','平台活动','客服配置','优惠券管理'],
641 641 ['品牌策划','活动策划','氛围策划','媒体推广'],
642 642 ['订单管理',,'积分管理','消息中心','会员管理','评论管理','商品管理','库存管理','销售统计','平台活动'],
643 643 ['联机交易'],
... ... @@ -766,7 +766,10 @@ this.listMune[0] = All
766 766 margin-top: 50px;
767 767 }
768 768 .main-container{
769   - margin-top: 50px;
  769 + // margin-top: 50px;
  770 + position: fixed;
  771 + right: 0;
  772 + top: 50px;
770 773 }
771 774 .topList{
772 775 position: relative;
... ...
admin-web-master/src/utils/request.js
... ... @@ -20,8 +20,8 @@ if (host == '172.16.61.48' || host == '172.16.61.49 :5173' || host =='172.16.61.
20 20 // PREFIX = 'http://172.16.61.48/meserver/admin-server';
21 21 // PREFIX = 'http://192.168.2.98:9003';
22 22 // PREFIX = 'http://8.130.38.56:8019/admin-server';
23   - PREFIX = 'http://192.168.2.236:9003';
24   - // PREFIX = 'https://jy.scjysm.asia:18086/meserver/admin-server';
  23 + // PREFIX = 'http://192.168.2.236:9003';
  24 + PREFIX = 'https://jy.scjysm.asia:18086/meserver/admin-server';
25 25 // PREFIX = 'http://172.16.61.126:8080/meserver/admin-server';
26 26  
27 27 }else{
... ...
admin-web-master/src/views/couponmanagement/capitalpool.vue 0 → 100644
  1 +<template>
  2 + <div style="background-color:#f7f7f7;padding:10px 10px;">
  3 + <div class="couponPage">
  4 + <div style="height:58px;line-height:58px;">
  5 + <div style="color:#0006"> <span>优惠券管理</span> <span style="padding:0 5px;">></span> <span style="color:#000000e6">资金池</span></div>
  6 + </div>
  7 + <!-- 搜索 -->
  8 + <div class="formSearch">
  9 + <!-- 搜索条件 -->
  10 + <el-form :inline="true" :model="query" class="demo-form-inline">
  11 + <el-form-item label="名称">
  12 + <el-input v-model="query.activityName" placeholder="请输入名称" />
  13 + </el-form-item>
  14 + <el-form-item label="状态">
  15 + <el-select v-model="query.state" placeholder="请选择状态">
  16 + <el-option
  17 + v-for="item in activityStatusSelect"
  18 + :key="item.index"
  19 + :label="item.label"
  20 + :value="item.value"
  21 + />
  22 + </el-select>
  23 + </el-form-item>
  24 + </el-form>
  25 + <div>
  26 + <el-button style="background-color: #3F9B6A;color: #fff" @click="search">查询</el-button>
  27 + <el-button class="buttonHover"
  28 + style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;" @click="clear">重置</el-button>
  29 + </div>
  30 + </div>
  31 + <div style="margin: 0 0 20px 0;">
  32 + <el-button icon="el-icon-circle-plus-outline"
  33 + style="background-color: #3F9B6A;color: #fff;" @click="addActivity">新建活动</el-button>
  34 + </div>
  35 + <!-- 表格 -->
  36 + <div class="tableBox">
  37 + <el-table
  38 + ref="multipleTable"
  39 + :data="tableData"
  40 + :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}"
  41 + tooltip-effect="dark"
  42 + >
  43 + <el-table-column label="资金池名称" width="220">
  44 + <template slot-scope="scope">{{ scope.row.poolName }}</template>
  45 + </el-table-column>
  46 + <el-table-column label="出资方" width="220">
  47 + <template slot-scope="scope">{{ scope.row.contributor }}</template>
  48 + </el-table-column>
  49 + <el-table-column label="总金额" width="220">
  50 + <template slot-scope="scope">{{ scope.row.totalAmount }}</template>
  51 + </el-table-column>
  52 + <el-table-column label="状态">
  53 + <template slot-scope="scope">
  54 + <span v-if="scope.row.fundsStatus == '0'">未启用</span>
  55 + <span v-if="scope.row.fundsStatus == '1'">启用中</span>
  56 + <span v-if="scope.row.fundsStatus == '2'">已关闭</span>
  57 + </template>
  58 + </el-table-column>
  59 + <!-- <el-table-column label="操作" show-overflow-tooltip>
  60 + <template slot-scope="scope">
  61 + <div class="btnList">
  62 + <div class="tableBtn greens" @click="details(scope.row)">详情</div>
  63 + <div v-if="scope.row.state != 4" class="tableBtn greens" @click="editActivity(scope.row)">编辑</div>
  64 + <div v-if="scope.row.state != 4" class="tableBtn greens" @click="endActivity(scope.row)">结束</div>
  65 + <div v-if="scope.row.state == 4" class="tableBtn greens" @click="delActivity(scope.row)">删除</div>
  66 + </div>
  67 + </template>
  68 + </el-table-column> -->
  69 + </el-table>
  70 + <div class="fenye">
  71 + <el-pagination
  72 + :current-page="query.pageNumber"
  73 + :page-sizes="[10, 20, 50, 100]"
  74 + :page-size="10"
  75 + background
  76 + small
  77 + layout="prev, pager, next,total"
  78 + :total="total"
  79 + @size-change="handleSizeChange"
  80 + @current-change="handleCurrentChange"
  81 + />
  82 + </div>
  83 + </div>
  84 +
  85 + <el-dialog
  86 + :title="editForm ? '修改资金池' : '新增资金池'"
  87 + :visible.sync="activityVisible"
  88 + width="500px"
  89 + center
  90 + :close-on-click-modal="false"
  91 + @close="closeModal">
  92 + <el-form ref="activityForm" :model="activityForm" label-width="100px">
  93 + <el-form-item label="资金池名称:">
  94 + <el-input v-model="activityForm.poolName" placeholder="请输入资金池名称" />
  95 + </el-form-item>
  96 + <el-form-item label="出资方:">
  97 + <el-input v-model="activityForm.contributor" placeholder="请输入出资方" />
  98 + </el-form-item>
  99 + <el-form-item label="总金额:">
  100 + <el-input v-model="activityForm.activityName" placeholder="请输入总金额" />
  101 + </el-form-item>
  102 + </el-form>
  103 + <div class="footer">
  104 + <div class="btn_list">
  105 + <span @click="cancel" class="buttonHover" style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">取消</span>
  106 + <span @click="save" style="background-color: #3F9B6A;color: #fff">保存</span>
  107 + </div>
  108 + </div>
  109 + </el-dialog>
  110 + </div>
  111 + </div>
  112 +</template>
  113 +
  114 +<script>
  115 +import { getcereFundsPoolData,addcereFundsPool,}from '@/api/couponmanagement/capitalpool.js'
  116 +export default {
  117 +
  118 + data () {
  119 + return {
  120 + query: {
  121 + activityName: '', // 活动名称
  122 + // 活动状态 0-报名未开始 1-报名进行中 2-活动待开始 3-活动进行中 4-活动已结束
  123 + state: '',
  124 + pageNumber: 1,
  125 + pageSize: 10
  126 + },
  127 + total: 1,
  128 + tableData: [],
  129 + activityStatusSelect: [
  130 + {
  131 + index: 0,
  132 + label: '未启用',
  133 + value: 0
  134 + },
  135 + {
  136 + index: 1,
  137 + label: '启用中',
  138 + value: 1
  139 + },
  140 + {
  141 + index: 2,
  142 + label: '已关闭',
  143 + value: 2
  144 + },
  145 + ],
  146 + activityVisible: false,
  147 + editForm: false,
  148 + activityDetailVisible: false,
  149 + activityForm: {}
  150 + }
  151 + },
  152 + created () {
  153 + this.getAll()
  154 + },
  155 + methods: {
  156 + save( ){
  157 +
  158 + },
  159 + cancel() {
  160 +
  161 + },
  162 + async getAll () {
  163 + const res = await getcereFundsPoolData(this.query)
  164 + this.tableData = res.data.list
  165 + this.total = res.data.total
  166 + },
  167 + handleSizeChange (val) {
  168 + this.query.pageSize = val
  169 + this.getAll()
  170 + },
  171 + handleCurrentChange (val) {
  172 + this.query.pageNumber = val
  173 + this.getAll()
  174 + },
  175 + search () {
  176 + this.total = 1
  177 + this.query.pageNumber = 1
  178 + this.getAll()
  179 + },
  180 + // 重置
  181 + clear () {
  182 + this.query = {
  183 + activityName: '',
  184 + state: '',
  185 + pageNumber: 1,
  186 + pageSize: 10
  187 + }
  188 + this.getAll()
  189 + },
  190 + // 活动详情
  191 + details (row) {
  192 + this.activityForm = row
  193 + this.activityDetailVisible = true
  194 + },
  195 + // 添加活动
  196 + addActivity () {
  197 + this.editForm = false
  198 + this.activityVisible = true
  199 + },
  200 + // 编辑
  201 + editActivity (row) {
  202 + this.editForm = true
  203 + this.activityForm = row
  204 + this.activityVisible = true
  205 + },
  206 + async endActivity (row) {
  207 + const res = await endCoupon({ activityId: row.activityId })
  208 + if (res.code === '') {
  209 + this.$message({
  210 + message: '结束成功',
  211 + type: 'success'
  212 + })
  213 + } else {
  214 + this.$message({
  215 + message: res.message,
  216 + type: 'error'
  217 + })
  218 + }
  219 + this.getAll()
  220 + },
  221 + async delActivity (row) {
  222 + const res = await delCoupon({ activityId: row.activityId })
  223 + if (res.code === '') {
  224 + this.$message({
  225 + message: '删除成功',
  226 + type: 'success'
  227 + })
  228 + } else {
  229 + this.$message({
  230 + message: res.message,
  231 + type: 'error'
  232 + })
  233 + }
  234 + this.getAll()
  235 + },
  236 +
  237 + }
  238 +}
  239 +</script>
  240 +
  241 +<style scoped lang="scss">
  242 + ::v-deep .el-dialog__header{
  243 + border-bottom: 2px solid #eee;
  244 + background-color: #fff;
  245 + }
  246 + ::v-deep .el-dialog__title {
  247 + color: #303133;
  248 + }
  249 + .footer{
  250 + font-size: 24px;
  251 + .btn_list {
  252 + display: flex;
  253 + flex-direction: row-reverse;
  254 + span {
  255 + padding: 0;
  256 + margin: 0;
  257 + width: 100px;
  258 + height:32px;
  259 + line-height:32px;
  260 + text-align: center;
  261 + display: inline-block;
  262 + font-size: 16px;
  263 + border-radius: 4px;
  264 + box-sizing: border-box;
  265 + &:hover {
  266 + cursor: pointer;
  267 + }
  268 + &:nth-child(1) {
  269 + background: rgba(255, 255, 255, 1);
  270 + order: 1px solid rgba(224, 229, 235, 1);
  271 +
  272 + border: 1px solid rgba(224, 229, 235, 1);
  273 + }
  274 + &:nth-child(2) {
  275 + background: #3f9b6a;
  276 + color: #fff;
  277 + margin-right: 20px;
  278 + }
  279 + }
  280 + }
  281 + }
  282 +.couponPage{
  283 +
  284 + padding: 0 20px 20px 20px;
  285 + min-height: calc(100vh - 50px - 20px);
  286 + background-color: #Fff;
  287 +
  288 +
  289 + .tableBox{
  290 + .fenye{
  291 + margin: 20px;
  292 + }
  293 + }
  294 +}
  295 +.couponDialogBox {
  296 + max-height: 600px;
  297 + overflow-y: auto;
  298 +}
  299 +.formSearch{
  300 +
  301 + display: flex;
  302 + width: 100%;
  303 + font-size: 14px;
  304 + justify-content: space-between;
  305 + padding-bottom: 10px;
  306 + align-items: center;
  307 +
  308 +}
  309 + .tableBtn {
  310 + display: inline-block;
  311 + margin-right: 10px;
  312 + }
  313 +
  314 +.greens {
  315 + color: #3F9B6A;
  316 + }
  317 + ::v-deep .buttonHover:hover{
  318 + color:#3f9b6a !important;
  319 + border-color: #c5e1d2 !important;
  320 + background-color: #ecf5f0 !important;
  321 + outline: none;
  322 + }
  323 + ::v-deep .el-pagination__total {
  324 + position: absolute;
  325 + left: 10px;
  326 + }
  327 + ::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active{
  328 + background-color:#3f9b6a;
  329 + }
  330 +</style>
... ...
admin-web-master/src/views/couponmanagement/coupon.vue 0 → 100644