<!--
 * @Author: Fly
 * @Date: 2025-12-10 16:44:11
 * @LastEditTime: 2025-12-19 11:03:45
 * @Description: 
-->
<template>
    <Drawer title="查看" :visible.sync="DrawerVisible" :showFooter="true" :wrapperClosable="true"
        :size="$drawerWidth(1000)">
        <Details ref="detailsRef" page-class="popup" @callback="handleCallback" />
        <!-- <template v-slot:footer>
            <el-button :size="ELsize" @click.stop="DrawerVisible = false">取消</el-button>
        </template> -->
    </Drawer>
</template>

<script>
import Details from "@/views/shop/details.vue"
export default {
    name: 'AuditDetails',
    components: { Details },
    data() {
        return {
            DrawerVisible: false,
        };
    },
    created() {
        // setTimeout(() => {
        //     this.open({ "createBy": null, "createTime": "2025-12-09 10:55:26", "updateBy": null, "updateTime": "2025-12-09 11:25:26", "orderId": 23, "businessName": "中站药品专门店", "orderNo": "ZFDD251209000002", "payType": 0, "userMobile": "18839160015", "userName": "程", "payAmount": "20.00", "payTime": null, "actualSubsidyAmount": null, "refundTime": null, "refundAmount": null, "orderStatus": 100, "subsidyAmount": "0.00", "orderAmount": "20.00", "payStatus": 0, "transactionId": "P1998224934601895937", "userId": 15, "businessId": 21, "cancelType": 2, "cancelTime": "2025-12-09 11:25:26", "cancelReason": "支付超时取消", "refundStatus": 0, "sendPoint": "0.00", "expireTime": "2025-12-09 11:25:25", "lastEndTime": null, "end": false, "businessIncome": "0.00", "businessShouldSubsidy": "0.00", "subsidyStatus": null, "platformServiceFee": "0.00", "platformIncome": "0.00", "platformIncomeSettled": 0, "onlineRefundOrderVo": null, "orderType": 3, "subsidyQueueVo": null })
        // }, 100);
    },

    methods: {
        async openHandle(params) {
            this.DrawerVisible = true;
            await this.$nextTick()
            this.$refs.detailsRef.handlePopup(params)
        },
        handleCallback(isRefresh) {
            this.DrawerVisible = false;
            if (isRefresh) this.$emit('success')
        }
    },
};
</script>