From fc8ff0a738d31443c995e7b04df4b18a3ba35101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A3=B7=E5=8F=B6?= <14103883+leaf-phos@user.noreply.gitee.com> Date: Thu, 23 Jan 2025 16:17:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/channel.js | 8 ++ .../Business/Channel/ChannelSelect.vue | 74 ++++++++++ src/components/FormCol/index.vue | 11 +- src/components/GroupTitle/index.vue | 2 +- src/utils/constants.js | 1 + src/views/dashboard/DailyBillAmountChart.vue | 8 +- src/views/ss/payBill/index.vue | 19 +-- .../components/StoreStaffEditDialog.vue | 26 ++-- src/views/ss/vip/components/VipTable.vue | 6 +- src/views/system/config/group.vue | 3 +- .../smUser/components/UserFormDialog.vue | 128 ++++++++++++++---- src/views/system/smUser/detail.vue | 4 +- src/views/system/smUser/index.vue | 53 +++----- 13 files changed, 248 insertions(+), 95 deletions(-) create mode 100644 src/components/Business/Channel/ChannelSelect.vue diff --git a/src/api/system/channel.js b/src/api/system/channel.js index 0f03cc7..90cd057 100644 --- a/src/api/system/channel.js +++ b/src/api/system/channel.js @@ -9,6 +9,14 @@ export function listChannel(query) { }) } +// 查询所有充值渠道列表 +export function listAllChannel() { + return request({ + url: '/system/channel/listAll', + method: 'get' + }) +} + // 查询充值渠道列表 export function listChannelByIds(ids) { return request({ diff --git a/src/components/Business/Channel/ChannelSelect.vue b/src/components/Business/Channel/ChannelSelect.vue new file mode 100644 index 0000000..f60bd94 --- /dev/null +++ b/src/components/Business/Channel/ChannelSelect.vue @@ -0,0 +1,74 @@ + + + \ No newline at end of file diff --git a/src/components/FormCol/index.vue b/src/components/FormCol/index.vue index 9916ee0..bf45b06 100644 --- a/src/components/FormCol/index.vue +++ b/src/components/FormCol/index.vue @@ -1,7 +1,12 @@ @@ -33,6 +38,10 @@ export default { table: { type: Boolean, default: false + }, + tip: { + type: String, + default: null } } } diff --git a/src/components/GroupTitle/index.vue b/src/components/GroupTitle/index.vue index 8bb93e1..737fe07 100644 --- a/src/components/GroupTitle/index.vue +++ b/src/components/GroupTitle/index.vue @@ -19,7 +19,7 @@ export default { position: relative; font-size: 16px; padding-left: 0.5em; - border-left: 3px solid #00BA88; + border-left: 4px solid #8883F0; margin: 0.5em 0 1em; } diff --git a/src/utils/constants.js b/src/utils/constants.js index 1ddc480..95ef544 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -188,6 +188,7 @@ export const ConfigKey = { RISK_WITHDRAW_TIME: "risk.withdraw.time", // 风控订单和提现相隔时长(分钟) RISK_WITHDRAW_COUNT: "risk.withdraw.count", // 提现风控累计风险次数 LOGIN_WITH_PHONE: "login.with.phone", // 登录获取手机号 + VIP_SERVICE_FEE_RATE: "vip.service.fee.rate", // 会员服务费费率 } // 用户类型 diff --git a/src/views/dashboard/DailyBillAmountChart.vue b/src/views/dashboard/DailyBillAmountChart.vue index 50738ff..a6beeb0 100644 --- a/src/views/dashboard/DailyBillAmountChart.vue +++ b/src/views/dashboard/DailyBillAmountChart.vue @@ -6,9 +6,10 @@ :end-date.sync="queryParams.dateEnd" @change="getList" /> - + + @@ -19,11 +20,12 @@ import { getLastDateStr } from '@/utils' import { getBillDailyAmount } from '@/api/system/dashboard' import DateRangePicker from '@/components/DateRangePicker/index.vue' import DailyBillAmountReport from '@/views/dashboard/DailyBillAmountReport.vue' +import ChannelSelect from '@/components/Business/Channel/ChannelSelect.vue' export default { name: 'DailyBillAmountChart', dicts: ['channel_type'], - components: { DailyBillAmountReport, DateRangePicker }, + components: { DailyBillAmountReport, DateRangePicker, ChannelSelect }, data() { return { // 查询条件 diff --git a/src/views/ss/payBill/index.vue b/src/views/ss/payBill/index.vue index a66dbec..5ec75fd 100644 --- a/src/views/ss/payBill/index.vue +++ b/src/views/ss/payBill/index.vue @@ -20,14 +20,7 @@ - - - + @@ -99,9 +92,6 @@ - @@ -155,7 +145,7 @@ import { listPayBill, getPayBill, delPayBill, addPayBill, updatePayBill, refundPayBill } from '@/api/ss/payBill' import { $showColumns, $view } from '@/utils/mixins' import { PayBillStatus } from '@/utils/constants' - +import ChannelSelect from '@/components/Business/Channel/ChannelSelect.vue' // 默认排序字段 const defaultSort = { prop: "createTime", @@ -165,7 +155,8 @@ const defaultSort = { export default { name: "PayBill", mixins: [$showColumns, $view], - dicts: ['pay_bill_status', 'pay_bill_bst_type', 'channel_type'], + dicts: ['pay_bill_status', 'pay_bill_bst_type'], + components: { ChannelSelect }, props: { query: { type: Object, @@ -198,7 +189,7 @@ export default { {key: 'bstType', visible: true, label: '业务类型', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {key: 'bstId', visible: false, label: '业务ID', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {key: 'amount', visible: true, label: '支付金额', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, - {key: 'channelId', visible: true, label: '支付渠道', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, + {key: 'channelName', visible: true, label: '支付渠道', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {key: 'status', visible: true, label: '支付状态', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {key: 'payTime', visible: true, label: '支付时间', minWidth: "120", sortable: false, overflow: false, align: 'center', width: null}, {key: 'description', visible: true, label: '描述', minWidth: "200", sortable: true, overflow: true, align: 'center', width: null}, diff --git a/src/views/ss/storeStaff/components/StoreStaffEditDialog.vue b/src/views/ss/storeStaff/components/StoreStaffEditDialog.vue index 9804ed3..14002c5 100644 --- a/src/views/ss/storeStaff/components/StoreStaffEditDialog.vue +++ b/src/views/ss/storeStaff/components/StoreStaffEditDialog.vue @@ -10,17 +10,7 @@ - - - - - - + % + + % + @@ -116,6 +116,9 @@ export default { enabled: [ { required: true, message: "是否启用不能为空", trigger: "change" } ], + vipPoint: [ + { required: true, message: "VIP分成不能为空", trigger: "change" } + ], } } }, @@ -166,6 +169,7 @@ export default { remark: null, role: StoreStaffRole.PARTNER, point: 0, + vipPoint: 0, enabled: true, permissions: [], ...this.initForm diff --git a/src/views/ss/vip/components/VipTable.vue b/src/views/ss/vip/components/VipTable.vue index f50d6c0..9179085 100644 --- a/src/views/ss/vip/components/VipTable.vue +++ b/src/views/ss/vip/components/VipTable.vue @@ -63,7 +63,9 @@