From 94735ef4ae2dcfe10cacd0b24524079dc16eac3f Mon Sep 17 00:00:00 2001 From: bibi <541660090@qq.com> Date: Tue, 1 Mar 2022 13:12:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/shop/goods/cate.js | 9 +- src/api/shop/score/index.js | 18 + src/router/index.js | 2 +- src/router/payment.js | 40 +- src/router/shop.js | 18 +- .../ChargeStandardManage/depend/config.js | 46 +++ .../ChargeStandardManage/depend/form.js | 7 + .../Payment/ChargeStandardManage/index.vue | 230 ++++++++++++ .../GoodsManage/_goodsCate/depend/config.js | 4 + .../Shop/GoodsManage/_goodsCate/index.vue | 349 +++++++++++++----- src/views/Shop/ScoreSetting/depend/config.js | 123 +----- src/views/Shop/ScoreSetting/depend/form.js | 28 -- src/views/Shop/ScoreSetting/depend/form.vue | 241 ------------ src/views/Shop/ScoreSetting/index.vue | 278 +++++++------- 14 files changed, 777 insertions(+), 616 deletions(-) create mode 100644 src/api/shop/score/index.js create mode 100644 src/views/Payment/ChargeStandardManage/depend/config.js create mode 100644 src/views/Payment/ChargeStandardManage/depend/form.js create mode 100644 src/views/Payment/ChargeStandardManage/index.vue delete mode 100644 src/views/Shop/ScoreSetting/depend/form.js delete mode 100644 src/views/Shop/ScoreSetting/depend/form.vue diff --git a/src/api/shop/goods/cate.js b/src/api/shop/goods/cate.js index 8f76579..942fcd3 100644 --- a/src/api/shop/goods/cate.js +++ b/src/api/shop/goods/cate.js @@ -32,7 +32,14 @@ export function cateUpdate(params) { } export function cateInsert(params) { return httpService({ - url: `/user/shopCategory/insertCategory`, + url: `/user/shopCategory/insert`, + method: 'post', + data: params, + }) +} +export function cateDel(params) { + return httpService({ + url: `/user/shopCategory/delete`, method: 'post', data: params, }) diff --git a/src/api/shop/score/index.js b/src/api/shop/score/index.js new file mode 100644 index 0000000..b84cb2d --- /dev/null +++ b/src/api/shop/score/index.js @@ -0,0 +1,18 @@ +import httpService from "@/request" + +// 获取任务设置 +export function getSetting(params) { + return httpService({ + url: `/user/pointsSetting/earnPointsSettingInfo`, + method: 'get', + params: params, + }) +} +// 保存任务设置 +export function Setting(params) { + return httpService({ + url: `/user/pointsSetting/savePintsSetting`, + method: 'post', + data: params, + }) +} \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 8881258..cf2a5c7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -57,7 +57,7 @@ const router = [ name: "payment", title: "缴费管理", component: Layout, - redirect: '/', + redirect: '/ChargeStandardManage', meta: {title: '缴费管理'}, children: [ ...payment, diff --git a/src/router/payment.js b/src/router/payment.js index 232ab70..be2ae77 100644 --- a/src/router/payment.js +++ b/src/router/payment.js @@ -6,4 +6,42 @@ * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @FilePath: /LittleBeeSaas/src/router/payment.js */ -export default [] \ No newline at end of file +export default [ + { + path: '/ChargeStandardManage', + name: "ChargeStandardManage", + title: "收费标准管理", + icon: 'form', + hide: false, + component: resolve => require(['@/views/Payment/ChargeStandardManage'], resolve), + meta: {title: '收费标准管理'}, + }, + // { + // path: '/Activity', + // name: "Activity", + // title: "活动", + // icon: 'notification', + // hide: false, + // component: resolve => require(['@/views/Operation/Activity'], resolve), + // redirect: '/Activity/ActivityManage', + // meta: {title: '活动'}, + // children: [ + // { + // path: '/Activity/ActivityManage', + // name: "ActivityManage", + // title: "活动管理", + // hide: false, + // component: resolve => require(['@/views/Operation/Activity/_activityManage'], resolve), + // meta: {title: '活动管理'}, + // }, + // { + // path: '/Activity/Organizers', + // name: "Organizers", + // title: "活动主办方", + // hide: false, + // component: resolve => require(['@/views/Operation/Activity/_organizers'], resolve), + // meta: {title: '活动主办方'}, + // }, + // ] + // }, +] \ No newline at end of file diff --git a/src/router/shop.js b/src/router/shop.js index 93584f0..cd25dde 100644 --- a/src/router/shop.js +++ b/src/router/shop.js @@ -104,13 +104,13 @@ export default [ component: resolve => require(['@/views/Shop/SwiperManage'], resolve), meta: {title: '商城轮播图管理'} }, - // { - // path: '/ScoreSetting', - // name: "ScoreSetting", - // title: "积分设置", - // hide: false, - // icon: 'crown', - // component: resolve => require(['@/views/Shop/ScoreSetting'], resolve), - // meta: {title: '积分设置'} - // }, + { + path: '/ScoreSetting', + name: "ScoreSetting", + title: "积分设置", + hide: false, + icon: 'crown', + component: resolve => require(['@/views/Shop/ScoreSetting'], resolve), + meta: {title: '积分设置'} + }, ] \ No newline at end of file diff --git a/src/views/Payment/ChargeStandardManage/depend/config.js b/src/views/Payment/ChargeStandardManage/depend/config.js new file mode 100644 index 0000000..7f27d9c --- /dev/null +++ b/src/views/Payment/ChargeStandardManage/depend/config.js @@ -0,0 +1,46 @@ +export const formItem = [ + { + type: 'input', + label:'费用名称', + prop:'name', + placeholder:'请输入' + }, +] +export const columns = [ + { + title: "费用名称", + dataIndex: "name", + }, + { + title: "计费方式", + dataIndex: "type", + }, + { + title: "计量方式", + dataIndex: "name", + }, + { + title: "单价", + dataIndex: "price", + }, + { + title: "单价", + dataIndex: "unit", + }, + { + title: "操作", + dataIndex: "action", + key: "action", + width: "180", + fixed: "right", + scopedSlots: { customRender: "action" }, + }, +] +export const pagination = { + current: 1, + total: 0, + pageSize: 10, + showTotal: (total) => `共 ${total} 条`, + showSizeChanger: true, + showQuickJumper: true, +} \ No newline at end of file diff --git a/src/views/Payment/ChargeStandardManage/depend/form.js b/src/views/Payment/ChargeStandardManage/depend/form.js new file mode 100644 index 0000000..f3fd958 --- /dev/null +++ b/src/views/Payment/ChargeStandardManage/depend/form.js @@ -0,0 +1,7 @@ +export const form = { + id:null, + brandName: undefined, +} +export const rules = { + brandName:[{required:true,message:'请输入品牌名',trigger:'blur'}], +} \ No newline at end of file diff --git a/src/views/Payment/ChargeStandardManage/index.vue b/src/views/Payment/ChargeStandardManage/index.vue new file mode 100644 index 0000000..17b8ae1 --- /dev/null +++ b/src/views/Payment/ChargeStandardManage/index.vue @@ -0,0 +1,230 @@ + + + + 收费标准管理 + + + 房屋收费标准 + + + 仪表收费标准 + + + 车位收费标准 + + + 临时收费标准 + + + + + 添加费用 + + + + 修改 + 删除 + + + + + + + 批量删除 + + 批量操作 + + + + {{ `已选择 ${selectedRowKeys.length} 条` }} + + + + + + 基本信息 + + + + + + + + + + + + + + diff --git a/src/views/Shop/GoodsManage/_goodsCate/depend/config.js b/src/views/Shop/GoodsManage/_goodsCate/depend/config.js index c8f7c74..40fc75a 100644 --- a/src/views/Shop/GoodsManage/_goodsCate/depend/config.js +++ b/src/views/Shop/GoodsManage/_goodsCate/depend/config.js @@ -40,3 +40,7 @@ export const pagination = { showSizeChanger: true, showQuickJumper: true, } +export const rules = { + name:[{required:true,message:'请输入名称',trigger:'blur'}], + parentId:[{required:true,message:'请选择',trigger:'change',type:'array'}], +} \ No newline at end of file diff --git a/src/views/Shop/GoodsManage/_goodsCate/index.vue b/src/views/Shop/GoodsManage/_goodsCate/index.vue index ae1f4a7..98a9efb 100644 --- a/src/views/Shop/GoodsManage/_goodsCate/index.vue +++ b/src/views/Shop/GoodsManage/_goodsCate/index.vue @@ -1,103 +1,165 @@ 商品分类 - - + + + 新增商品分类 - - + + + + + - - - - - - - - 显示 - 隐藏 - 修改分类信息 - - - - - 无图片 - - - - + + + 修改 + 显示 + 隐藏 + 删除 + + + + + 无图片 + + + + + + 批量删除 + + 批量操作 + + + + {{ `已选择 ${selectedRowKeys.length} 条` }} + + + + - + + + + + + + + + + + + + + - - diff --git a/src/views/Shop/ScoreSetting/index.vue b/src/views/Shop/ScoreSetting/index.vue index aeb3241..51419f8 100644 --- a/src/views/Shop/ScoreSetting/index.vue +++ b/src/views/Shop/ScoreSetting/index.vue @@ -1,163 +1,171 @@ - 公告 - - 新增公告任务设置 + - - + 首次登录设置 + + + 开启 + 关闭 + + + + + + 签到奖励设置 + + + 开启 + 关闭 + + + - 修改 - 删除 + {{ setForm.signType === 1 ? "一周每日签到模式" : "" }} + + + + 一周签到模式:在后台设置每周累计1天至 + 累计7天不同的签到积分奖励,用户签到时按照 + 实际累计登陆天数签到。例:A用户周一签到, + 周二缺签,周三签到时可领取累计2天的签到奖励, + 每周一的凌晨00:00将会重置所有累计签到次数, + 用户将由第一天起重新签到。 + + + + - - - - - - 批量删除 - - 批量操作 - - - - {{ `已选择 ${selectedRowKeys.length} 条` }} - - - - + + + + + + {{ setForm.signReward === 1 ? "商城积分" : "" }} + + + + + + + {{ item.label + }} + + + + 保存 + 重置 + + +
+ 一周签到模式:在后台设置每周累计1天至 + 累计7天不同的签到积分奖励,用户签到时按照 + 实际累计登陆天数签到。例:A用户周一签到, + 周二缺签,周三签到时可领取累计2天的签到奖励, + 每周一的凌晨00:00将会重置所有累计签到次数, + 用户将由第一天起重新签到。 +