|
@@ -67,7 +67,7 @@
|
|
|
<div class="refund-list" v-loading="loading">
|
|
<div class="refund-list" v-loading="loading">
|
|
|
<div v-if="list.length === 0" class="empty-text text-center py-10 text-gray-400">暂无数据</div>
|
|
<div v-if="list.length === 0" class="empty-text text-center py-10 text-gray-400">暂无数据</div>
|
|
|
<refund-item v-for="(item, index) in list" :key="index" :item="item" @push-sms="handlePushSms"
|
|
<refund-item v-for="(item, index) in list" :key="index" :item="item" @push-sms="handlePushSms"
|
|
|
- @send-packet="handleSendPacket" @view-detail="handleViewDetail" />
|
|
|
|
|
|
|
+ @send-packet="handleSendPacket" @view-detail="handleViewDetail" @confirm-refund="handleConfirmRefund" />
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Pagination -->
|
|
<!-- Pagination -->
|
|
@@ -81,6 +81,7 @@
|
|
|
<!-- Dialogs -->
|
|
<!-- Dialogs -->
|
|
|
<push-sms-dialog ref="pushSmsDialogRef" @success="fetchData" />
|
|
<push-sms-dialog ref="pushSmsDialogRef" @success="fetchData" />
|
|
|
<refund-detail-dialog ref="refundDetailDialogRef" />
|
|
<refund-detail-dialog ref="refundDetailDialogRef" />
|
|
|
|
|
+ <confirm-refund-dialog ref="confirmRefundDialogRef" @success="fetchData" />
|
|
|
</ele-page>
|
|
</ele-page>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -93,6 +94,7 @@
|
|
|
import RefundItem from './components/refund-item.vue';
|
|
import RefundItem from './components/refund-item.vue';
|
|
|
import PushSmsDialog from './components/push-sms-dialog.vue';
|
|
import PushSmsDialog from './components/push-sms-dialog.vue';
|
|
|
import RefundDetailDialog from './components/refund-detail-dialog.vue';
|
|
import RefundDetailDialog from './components/refund-detail-dialog.vue';
|
|
|
|
|
+ import ConfirmRefundDialog from './components/confirm-refund-dialog.vue';
|
|
|
|
|
|
|
|
const activeTab = ref('');
|
|
const activeTab = ref('');
|
|
|
const loading = ref(false);
|
|
const loading = ref(false);
|
|
@@ -110,6 +112,7 @@
|
|
|
|
|
|
|
|
const pushSmsDialogRef = ref(null);
|
|
const pushSmsDialogRef = ref(null);
|
|
|
const refundDetailDialogRef = ref(null);
|
|
const refundDetailDialogRef = ref(null);
|
|
|
|
|
+ const confirmRefundDialogRef = ref(null);
|
|
|
|
|
|
|
|
const fetchData = () => {
|
|
const fetchData = () => {
|
|
|
loading.value = true;
|
|
loading.value = true;
|
|
@@ -181,6 +184,12 @@
|
|
|
refundDetailDialogRef.value?.handleOpen(item);
|
|
refundDetailDialogRef.value?.handleOpen(item);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ const handleConfirmRefund = (item) => {
|
|
|
|
|
+ if (confirmRefundDialogRef.value) {
|
|
|
|
|
+ confirmRefundDialogRef.value.open(item.refundOrderId, item.refundMoney);
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
fetchData();
|
|
fetchData();
|
|
|
});
|
|
});
|