|
@@ -8,43 +8,43 @@
|
|
</template>
|
|
</template>
|
|
<!--字段回显插槽-->
|
|
<!--字段回显插槽-->
|
|
<template v-slot:bodyCell="{ column, record, index, text }"> </template>
|
|
<template v-slot:bodyCell="{ column, record, index, text }"> </template>
|
|
- <template #goods>
|
|
|
|
- <div class="flex items-center h-20px">
|
|
|
|
- <div>订单编号:D202503071608580001</div>
|
|
|
|
|
|
+ <template #goods="{ record }">
|
|
|
|
+ <div class="flex items-center h-20px text-16px">
|
|
|
|
+ <div class="font-semibold">订单编号:{{ record.orderCode }}</div>
|
|
<div class="ml3">下单时间:2025-03-07 16:08:58</div>
|
|
<div class="ml3">下单时间:2025-03-07 16:08:58</div>
|
|
</div>
|
|
</div>
|
|
- <div class="mt3 flex items-center border-b border-solid pb-3 h-90px" v-for="item in 3">
|
|
|
|
|
|
+ <div class="mt3 flex items-center border-b border-solid pb-3 h-90px" v-for="item in record.orderProInfoList" :key="item.id">
|
|
<Image :width="80" class="rounded-16px" src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png" />
|
|
<Image :width="80" class="rounded-16px" src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png" />
|
|
- <div class="ml3">学校场地开放</div>
|
|
|
|
|
|
+ <div class="ml3">{{ item.productName }}</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- <template #price>
|
|
|
|
|
|
+ <template #price="{ record }">
|
|
<div class="h-20px"></div>
|
|
<div class="h-20px"></div>
|
|
- <div class="mt3 h-90px flex flex-col justify-center border-b border-solid" v-for="item in 3">
|
|
|
|
|
|
+ <div class="mt3 h-90px flex flex-col justify-center border-b border-solid" v-for="item in record.orderProInfoList" :key="item.id">
|
|
<div class="flex items-center">
|
|
<div class="flex items-center">
|
|
- <div>¥0</div>
|
|
|
|
- <div class="line-through ml-3 text-gray">¥0</div>
|
|
|
|
|
|
+ <div>¥{{ item.price }}</div>
|
|
|
|
+ <div class="line-through ml-3 text-gray">¥{{ item.originalPrice }}</div>
|
|
</div>
|
|
</div>
|
|
- <div class="text-gray">x1</div>
|
|
|
|
|
|
+ <div class="text-gray">x{{ item.quantity }}</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- <template #user>
|
|
|
|
|
|
+ <template #user="{ record }">
|
|
<div class="h-20px"></div>
|
|
<div class="h-20px"></div>
|
|
- <div class="mt3 h-90px flex flex-col justify-center border-b border-solid" v-for="item in 3">
|
|
|
|
- <div>杨金鑫</div>
|
|
|
|
- <div class="text-gray">18984144104</div>
|
|
|
|
|
|
+ <div class="mt3 h-90px flex flex-col justify-center border-b border-solid" v-for="item in record.orderProInfoList" :key="item.id">
|
|
|
|
+ <div>{{ item.userName }}</div>
|
|
|
|
+ <div class="text-gray">{{ item.userPhone }}</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- <template #status>
|
|
|
|
|
|
+ <template #status="{ record }">
|
|
<div class="h-20px"></div>
|
|
<div class="h-20px"></div>
|
|
- <div class="mt3 h-90px flex flex-col justify-center border-b border-solid" v-for="item in 3">
|
|
|
|
|
|
+ <div class="mt3 h-90px flex flex-col justify-center border-b border-solid" v-for="item in record.orderProInfoList" :key="item.id">
|
|
<div>待使用</div>
|
|
<div>待使用</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- <template #After>
|
|
|
|
|
|
+ <template #After="{ record }">
|
|
<div class="h-20px"></div>
|
|
<div class="h-20px"></div>
|
|
- <div class="mt3 h-90px flex flex-col justify-center border-b border-solid" v-for="item in 3">
|
|
|
|
- <div>暂无售后</div>
|
|
|
|
|
|
+ <div class="mt3 h-90px flex flex-col justify-center border-b border-solid" v-for="item in record.orderProInfoList" :key="item.id">
|
|
|
|
+ <div>{{ afterSaleStatus[item.afterSaleStatus] }}</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</BasicTable>
|
|
</BasicTable>
|
|
@@ -58,7 +58,7 @@
|
|
import { BasicTable, useTable, TableAction, TableImg } from '/@/components/Table';
|
|
import { BasicTable, useTable, TableAction, TableImg } from '/@/components/Table';
|
|
import { useModal } from '/@/components/Modal';
|
|
import { useModal } from '/@/components/Modal';
|
|
import { useListPage } from '/@/hooks/system/useListPage';
|
|
import { useListPage } from '/@/hooks/system/useListPage';
|
|
- import { columns, searchFormSchema } from './order.data';
|
|
|
|
|
|
+ import { columns, searchFormSchema, afterSaleStatus } from './order.data';
|
|
import { list } from './order.api';
|
|
import { list } from './order.api';
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
@@ -88,7 +88,7 @@
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
},
|
|
},
|
|
beforeFetch: (params) => {
|
|
beforeFetch: (params) => {
|
|
- return Object.assign(params, queryParam);
|
|
|
|
|
|
+ return Object.assign(params, { ...queryParam, orgCode: userStore.userInfo?.orgCode });
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|
|
});
|