|
@@ -216,7 +216,7 @@
|
|
|
@close="refundDialogVisible = false"
|
|
@close="refundDialogVisible = false"
|
|
|
>
|
|
>
|
|
|
<div class="refund-dialog-content">
|
|
<div class="refund-dialog-content">
|
|
|
- <el-input v-model="refundAmount" placeholder="请输入退款金额" type="number">
|
|
|
|
|
|
|
+ <el-input v-model="refundAmount" placeholder="请输入退款金额" type="number" :disabled="refundAmountDisabled">
|
|
|
<template #prepend><icon :size="25" name="el-icon-money" /></template>
|
|
<template #prepend><icon :size="25" name="el-icon-money" /></template>
|
|
|
<template #append>元</template>
|
|
<template #append>元</template>
|
|
|
</el-input>
|
|
</el-input>
|
|
@@ -319,6 +319,7 @@ const handleExpandChange = (row: any, expandedRows: any) => {
|
|
|
const refundDialogVisible = ref(false)
|
|
const refundDialogVisible = ref(false)
|
|
|
const refundAmount = ref('')
|
|
const refundAmount = ref('')
|
|
|
const payMethod = ref('')
|
|
const payMethod = ref('')
|
|
|
|
|
+const refundAmountDisabled = ref(true)
|
|
|
let refundOrder: {
|
|
let refundOrder: {
|
|
|
refundTime: string
|
|
refundTime: string
|
|
|
refundAmount: number
|
|
refundAmount: number
|
|
@@ -333,7 +334,11 @@ const refundLoading = ref(false)
|
|
|
const refund = async (row: any) => {
|
|
const refund = async (row: any) => {
|
|
|
refundOrder = row
|
|
refundOrder = row
|
|
|
payMethod.value = row.payMethod
|
|
payMethod.value = row.payMethod
|
|
|
|
|
+ refundAmountDisabled.value = row.type === 2
|
|
|
refundAmount.value = ''
|
|
refundAmount.value = ''
|
|
|
|
|
+ if (row.type === 2) {
|
|
|
|
|
+ refundAmount.value = row.payAmount
|
|
|
|
|
+ }
|
|
|
refundDialogVisible.value = true
|
|
refundDialogVisible.value = true
|
|
|
}
|
|
}
|
|
|
|
|
|