diff --git a/.env.development b/.env.development index 3f8e523..2768a18 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 电动车v2 +VUE_APP_TITLE = 小鹿骑行-开发 # 开发环境配置 ENV = 'development' diff --git a/.env.production b/.env.production index ee5838a..b8fb170 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 小鹿骑行管理系统 +VUE_APP_TITLE = 小鹿骑行 # 生产环境配置 ENV = 'production' diff --git a/.env.staging b/.env.staging index a6f477a..1777482 100644 --- a/.env.staging +++ b/.env.staging @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 小鹿骑行管理系统 +VUE_APP_TITLE = 小鹿骑行 NODE_ENV = production diff --git a/src/utils/enums.js b/src/utils/enums.js index 4d76bcd..884e605 100644 --- a/src/utils/enums.js +++ b/src/utils/enums.js @@ -214,7 +214,8 @@ export const OrderStatus = { // 支付业务类型 export const PayBstType = { - ORDER: "1", // 订单 + ORDER: "1", // 订单押金 + ORDER_RIDE: "2", // 订单骑行费 } // 分成业务类型 @@ -389,3 +390,10 @@ export const LogBizType = { USER: "USER", // 用户 COMMAND_LOG: "COMMAND_LOG", // 命令日志 } + +// 订单退款类型 +export const OrderRefundType = { + DEPOSIT: "1", // 押金 + RIDE: "2", // 骑行费 +} + diff --git a/src/views/bst/bonus/index.vue b/src/views/bst/bonus/index.vue index 21ffb69..9b13b5f 100644 --- a/src/views/bst/bonus/index.vue +++ b/src/views/bst/bonus/index.vue @@ -196,9 +196,9 @@ export default { {key: 'arrivalId', visible: false, label: '分成方ID', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {key: 'point', visible: true, label: '比例', 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: 'invalidAmount', visible: true, label: '未出账', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, + {key: 'invalidAmount', visible: false, label: '未出账', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {key: 'waitAmount', visible: true, label: '待分成', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, - {key: 'payedAmount', visible: true, label: '已分成', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, + {key: 'payedAmount', visible: true, label: '已到账', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {key: 'refundAmount', visible: true, label: '已退款', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {key: 'prePayTime', visible: true, label: '预计分成', minWidth: null, sortable: false, overflow: false, align: 'center', width: "100"}, {key: 'payTime', visible: true, label: '实际分成', minWidth: null, sortable: false, overflow: false, align: 'center', width: "100"}, diff --git a/src/views/bst/order/components/OrderDeductDialog.vue b/src/views/bst/order/components/OrderDeductDialog.vue index 735652c..e093d5d 100644 --- a/src/views/bst/order/components/OrderDeductDialog.vue +++ b/src/views/bst/order/components/OrderDeductDialog.vue @@ -6,21 +6,14 @@ append-to-body @open="handleOpen" > - - - - - +
+

即将进行押金抵扣,请确认。

+

抵扣金额:{{ detail.totalFee | fix2 | dv }} 元

+

剩余可抵扣押金:{{ detail.depositDeductRemain | fix2 | dv }} 元

+
@@ -74,23 +67,20 @@ export default { }, reset() { this.form = { - id: this.id, - amount: null, + id: this.id }; this.resetForm('form'); }, handleSubmit() { - this.$refs.form.validate().then(() => { - this.submitLoading = true; - deductOrder(this.form).then((response) => { - if (response.code == 200) { - this.$message.success('操作成功'); - this.dialogVisible = false; - this.$emit('success'); - } - }).finally(() => { - this.submitLoading = false; - }); + this.submitLoading = true; + deductOrder(this.form).then((response) => { + if (response.code == 200) { + this.$message.success('操作成功'); + this.dialogVisible = false; + this.$emit('success'); + } + }).finally(() => { + this.submitLoading = false; }); }, handleCancel() { diff --git a/src/views/bst/order/components/OrderRefundDialog.vue b/src/views/bst/order/components/OrderRefundDialog.vue index ee17d19..a5a00fa 100644 --- a/src/views/bst/order/components/OrderRefundDialog.vue +++ b/src/views/bst/order/components/OrderRefundDialog.vue @@ -1,15 +1,28 @@