|
|
@@ -12,6 +12,14 @@
|
|
|
:columns="columns"
|
|
|
:bodyStyle="{ padding: 0 }"
|
|
|
>
|
|
|
+ <template #orderId="{ row }">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ link
|
|
|
+ @click="handleOrderId(row)"
|
|
|
+ >{{ row.orderId }}</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
<!-- 操作列 -->
|
|
|
<template #action="{ row }">
|
|
|
<div class="action-buttons">
|
|
|
@@ -29,20 +37,21 @@
|
|
|
</ele-card>
|
|
|
<!-- 分享信息弹窗 -->
|
|
|
<share-info ref="shareRef" />
|
|
|
+ <!-- 订单详情弹窗 -->
|
|
|
+ <order-detail ref="orderDetailRef" />
|
|
|
</ele-page>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
import { ref, reactive } from 'vue';
|
|
|
- import { ElMessage } from 'element-plus';
|
|
|
import CommonTable from '@/components/CommonPage/CommonTable.vue';
|
|
|
import PageSearch from './components/page-search.vue';
|
|
|
import ShareInfo from './components/share-info.vue';
|
|
|
+ import OrderDetail from '@/views/recycleOrder/components/order-detail.vue';
|
|
|
|
|
|
// 表格实例
|
|
|
const tableRef = ref(null);
|
|
|
const searchRef = ref(null);
|
|
|
- const detailRef = ref(null);
|
|
|
const shareRef = ref(null);
|
|
|
|
|
|
// 页面配置
|
|
|
@@ -57,14 +66,31 @@
|
|
|
// 表格列配置
|
|
|
const columns = ref([
|
|
|
{ label: '用户UID', prop: 'userId' },
|
|
|
- { label: '订单编号', prop: 'orderId' },
|
|
|
+ {
|
|
|
+ label: '订单编号',
|
|
|
+ prop: 'orderId',
|
|
|
+ align: 'center',
|
|
|
+ slot: 'orderId'
|
|
|
+ },
|
|
|
{ label: '参与时间', prop: 'orderTime', width: 160 },
|
|
|
- { label: '省份', prop: 'provinceName', formatter: (row) => row.provinceName || '--' },
|
|
|
- { label: '地区', prop: 'cityName', formatter: (row) => row.cityName || '--' },
|
|
|
+ {
|
|
|
+ label: '省份',
|
|
|
+ prop: 'provinceName',
|
|
|
+ formatter: (row) => row.provinceName || '--'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '地区',
|
|
|
+ prop: 'cityName',
|
|
|
+ formatter: (row) => row.cityName || '--'
|
|
|
+ },
|
|
|
{ label: '订单总本数', prop: 'totalNum' },
|
|
|
{ label: '加价本数', prop: 'upsellNum' },
|
|
|
{ label: '订单总金额', prop: 'expectMoney' },
|
|
|
- { label: '实际加价金额', prop: 'upsellFinalMoney', formatter: (row) => row.upsellFinalMoney || '--' },
|
|
|
+ {
|
|
|
+ label: '实际加价金额',
|
|
|
+ prop: 'upsellFinalMoney',
|
|
|
+ formatter: (row) => row.upsellFinalMoney || '--'
|
|
|
+ },
|
|
|
{
|
|
|
columnKey: 'action',
|
|
|
label: '操作',
|
|
|
@@ -81,6 +107,11 @@
|
|
|
tableRef.value?.reload(data);
|
|
|
};
|
|
|
|
|
|
+ const orderDetailRef = ref(null);
|
|
|
+ const handleOrderId = (row) => {
|
|
|
+ orderDetailRef.value?.handleOpen(row);
|
|
|
+ };
|
|
|
+
|
|
|
// 导出Excel
|
|
|
const handleExportExcel = () => {
|
|
|
tableRef.value?.exportData();
|