diff --git a/src/views/moneyManage/receiveDetail/receiveFinance.vue b/src/views/moneyManage/receiveDetail/receiveFinance.vue index 26c2ea7..68da10d 100644 --- a/src/views/moneyManage/receiveDetail/receiveFinance.vue +++ b/src/views/moneyManage/receiveDetail/receiveFinance.vue @@ -190,8 +190,7 @@ - + @@ -457,17 +456,16 @@ placeholder="请输入产品数量" disabled /> {{ productUnit }} -
-
- 永久金币: - +
+ 永久金币: +
-
+
免费金币: - 免费金币: +
@@ -605,16 +603,28 @@ const textContent = ref('') //退款弹窗 const refundDialog = ref(false) +const refundFormData = ref({}) const openRefundDialog = () => { refundDialog.value = true closeConfirmRefund() + } const closeRefundForm = () => { refundDialog.value = false refundFormData.value = {} } +const isRefundGold = ref(false) +const ifRefundGold = () => { + if (refundFormData.value.goodsName === '金币充值') { + isRefundGold.value = true + refundFormData.value.goodNum = 0 + } else { + isRefundGold.value = false + } +} + // 基础数据 @@ -627,9 +637,13 @@ const paytypeOptions = ref([...paytypeList]); // ===================== 2. 核心功能函数(仅地区财务) ===================== //确认退款弹窗 -const openRefundConfirm = () => { +const openRefundConfirm = (row) => { textContent.value = '将要对该订单退款!' refundConfirmDialog.value = true + refundFormData.value = { ...row } + ifRefundGold() + console.log(row); + } const closeConfirmRefund = () => { @@ -1027,6 +1041,9 @@ onMounted(async () => { window.history.back(); }); } + //背景预加载 + const bgImg = new Image(); + bgImg.src = '/src/assets/收款明细撤回背景.png'; }); // 2.10 未使用函数占位(避免报错) @@ -1306,6 +1323,37 @@ const handlePagination = (type, val) => { font-weight: 800; padding-bottom: 15px; } + + .refundDialog { + .left { + width: 50%; + height: 70vh; + min-height: 700px; + padding: 0 2vw; + + .add-item { + display: flex; + align-items: center; + margin-bottom: 1vh; + } + + .image { + width: 4vw !important; + height: 4vw !important; + } + } + + .right { + width: 50%; + height: 50vh; + + .add-item { + display: flex; + align-items: center; + margin-bottom: 1vh; + } + } + } } // 表格样式统一