From c55fc4e223fdadfdebd2a891c2b4f149bcc05a52 Mon Sep 17 00:00:00 2001 From: xxm Date: Thu, 8 Dec 2022 22:59:38 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E7=BB=84=E5=90=88=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E6=94=B6=E9=93=B6=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/payment/cashier/Cashier.api.ts | 10 + .../payment/cashier/CombinationCashier.vue | 161 ++++++++++++++ .../demo/payment/cashier/SimpleCashier.vue | 23 +- .../combination/CombinationCashier.vue | 197 ------------------ .../modules/monitor/operate/OperateLog.api.ts | 28 +-- .../monitor/operate/OperateLogInfo.vue | 45 +++- 6 files changed, 236 insertions(+), 228 deletions(-) create mode 100644 src/views/demo/payment/cashier/CombinationCashier.vue delete mode 100644 src/views/demo/payment/combination/CombinationCashier.vue diff --git a/src/views/demo/payment/cashier/Cashier.api.ts b/src/views/demo/payment/cashier/Cashier.api.ts index d9e5af977..c82ae6d69 100644 --- a/src/views/demo/payment/cashier/Cashier.api.ts +++ b/src/views/demo/payment/cashier/Cashier.api.ts @@ -23,6 +23,16 @@ export function createAggregatePay(obj) { }) } +/** + * 组合支付 + */ +export function combinationPay (obj) { + return defHttp.post({ + url: '/cashier/combinationPay', + data: obj + }) +} + /** * 根据业务ID获取支付状态 */ diff --git a/src/views/demo/payment/cashier/CombinationCashier.vue b/src/views/demo/payment/cashier/CombinationCashier.vue new file mode 100644 index 000000000..4aaff3a42 --- /dev/null +++ b/src/views/demo/payment/cashier/CombinationCashier.vue @@ -0,0 +1,161 @@ + + + + + diff --git a/src/views/demo/payment/cashier/SimpleCashier.vue b/src/views/demo/payment/cashier/SimpleCashier.vue index 0e399d5aa..41e0388ef 100644 --- a/src/views/demo/payment/cashier/SimpleCashier.vue +++ b/src/views/demo/payment/cashier/SimpleCashier.vue @@ -4,7 +4,7 @@
- + {{ o.name }} @@ -82,16 +82,14 @@ // 二维码支付方式 amount: 0.01, }) - const rules = computed(() => { - return { - payChannel: [{ required: true, message: '不可为空' }], - businessId: [{ required: true, message: '不可为空' }], - title: [{ required: true, message: '不可为空' }], - payWay: [{ required: true, message: '不可为空' }], - amount: [{ required: true, message: '不可为空' }], - voucherNo: [{ required: true, message: '不可为空' }], - } - }) + const rules = { + payChannel: [{ required: true, message: '不可为空' }], + businessId: [{ required: true, message: '不可为空' }], + title: [{ required: true, message: '不可为空' }], + payWay: [{ required: true, message: '不可为空' }], + amount: [{ required: true, message: '不可为空' }], + voucherNo: [{ required: true, message: '不可为空' }], + } // 检查支付状态 const { pause, resume } = useIntervalFn( @@ -168,7 +166,4 @@ diff --git a/src/views/demo/payment/combination/CombinationCashier.vue b/src/views/demo/payment/combination/CombinationCashier.vue deleted file mode 100644 index 3d8d6e672..000000000 --- a/src/views/demo/payment/combination/CombinationCashier.vue +++ /dev/null @@ -1,197 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/views/modules/monitor/operate/OperateLog.api.ts b/src/views/modules/monitor/operate/OperateLog.api.ts index 063df28eb..6b65829c0 100644 --- a/src/views/modules/monitor/operate/OperateLog.api.ts +++ b/src/views/modules/monitor/operate/OperateLog.api.ts @@ -27,31 +27,31 @@ export const get = (id) => { */ export interface OperateLog extends BaseEntity { // 操作模块 - title: string + title?: string // 操作人员id - operateId: number + operateId?: number // 操作人员账号 - username: string + username?: string // 业务类型 - businessType: string + businessType?: string // 请求方法 - method: string + method?: string // 请求方式 - requestMethod: string + requestMethod?: string // 请求url - operateUrl: string + operateUrl?: string // 操作ip - operateIp: string + operateIp?: string // 操作地点 - operateLocation: string + operateLocation?: string // 请求参数 - operateParam: string + operateParam?: string // 返回参数 - operateReturn: string + operateReturn?: string // 是否成功 - success: boolean + success?: boolean // 错误提示 - errorMsg: string + errorMsg?: string // 操作时间 - operateTime: string + operateTime?: string } diff --git a/src/views/modules/monitor/operate/OperateLogInfo.vue b/src/views/modules/monitor/operate/OperateLogInfo.vue index f960ec644..a11dc6348 100644 --- a/src/views/modules/monitor/operate/OperateLogInfo.vue +++ b/src/views/modules/monitor/operate/OperateLogInfo.vue @@ -1,8 +1,47 @@ @@ -17,7 +56,7 @@ const { dictConvert } = useDict() - let data = $ref() + let data = $ref({}) let visible = $ref(false) let confirmLoading = $ref(false) let schema = [