diff --git a/src/layout/index.vue b/src/layout/index.vue
index 828e9b3..66b232b 100644
--- a/src/layout/index.vue
+++ b/src/layout/index.vue
@@ -20,7 +20,6 @@
:colorful-icon="colorfulIcon"
:side-unique-open="sideUniqueOpen"
:style-responsive="styleResponsive"
- :project-name="projectName"
:hide-footers="HIDE_FOOTERS"
:hide-sidebars="HIDE_SIDEBARS"
:repeatable-tabs="REPEATABLE_TABS"
@@ -49,7 +48,7 @@
-
+
+ {{ projectName }}
+
+
@@ -133,7 +135,7 @@
const themeStore = useThemeStore();
// 网站名称
- const projectName = t('layout.system');
+ const projectName = localStorage.getItem('TenantName') || t('layout.system');
// 网站LOGO
const logoPath = '/logo.png';
diff --git a/src/utils/shop.ts b/src/utils/shop.ts
new file mode 100644
index 0000000..6fc7aa4
--- /dev/null
+++ b/src/utils/shop.ts
@@ -0,0 +1,90 @@
+// 支付方式
+export function getPayType(index?: number): any {
+ const payType = [
+ {
+ value: 0,
+ label: '余额支付',
+ },
+ {
+ value: 1,
+ label: '微信支付',
+ },
+ {
+ value: 2,
+ label: '积分',
+ },
+ {
+ value: 3,
+ label: '支付宝',
+ },
+ {
+ value: 4,
+ label: '现金',
+ },
+ {
+ value: 5,
+ label: 'POS机',
+ },
+ {
+ value: 6,
+ label: '会员卡',
+ },
+ // {
+ // value: 7,
+ // label: 'VIP年卡',
+ // },
+ // {
+ // value: 8,
+ // label: 'VIP次卡',
+ // },
+ // {
+ // value: 9,
+ // icon: 'IdcardOutlined',
+ // label: 'IC月卡',
+ // },
+ // {
+ // value: 10,
+ // icon: 'IdcardOutlined',
+ // label: 'IC年卡',
+ // },
+ // {
+ // value: 11,
+ // icon: 'IdcardOutlined',
+ // label: 'IC次卡',
+ // },
+ // {
+ // value: 12,
+ // icon: '',
+ // label: '免费',
+ // },
+ // {
+ // value: 13,
+ // icon: 'IdcardOutlined',
+ // label: 'VIP充值卡',
+ // },
+ // {
+ // value: 14,
+ // icon: 'IdcardOutlined',
+ // label: 'IC充值卡',
+ // },
+ // {
+ // value: 15,
+ // icon: '',
+ // label: '积分支付',
+ // },
+ // {
+ // value: 16,
+ // icon: 'IdcardOutlined',
+ // label: 'VIP季卡',
+ // },
+ // {
+ // value: 17,
+ // icon: 'IdcardOutlined',
+ // label: 'IC季卡',
+ // },
+ ];
+ if(index){
+ return payType[index].label || '';
+ }
+ return payType;
+}
diff --git a/src/views/bszx/bszxOrder/components/search.vue b/src/views/bszx/bszxOrder/components/search.vue
index d995f61..7346f4c 100644
--- a/src/views/bszx/bszxOrder/components/search.vue
+++ b/src/views/bszx/bszxOrder/components/search.vue
@@ -9,7 +9,7 @@
>
全部
已付款
- 未付款
+ 未付款
全部
已完成
+ 未完成
未使用
已取消
退款中
@@ -26,39 +27,21 @@
退款成功
- 全部
- 微信支付
- 余额支付
- 支付宝
- 现金
- POS机
-
-
-
-
-
-
- 免费
-
-
-
-
-
-
+ />
- 已开票
- 未开票
- 不能开票
+ 已开票
+ 未开票
+ 不能开票
import { ref, watch } from 'vue';
import { utils, writeFile } from 'xlsx';
- import dayjs from 'dayjs';
import { message } from 'ant-design-vue';
import useSearch from "@/utils/use-search";
- import {listBszxPay} from "@/api/bszx/bszxPay";
import {ShopOrder, ShopOrderParam} from "@/api/shop/shopOrder/model";
+ import {listShopOrder} from "@/api/shop/shopOrder";
+ import {getPayType} from "@/utils/shop";
const props = withDefaults(
defineProps<{
@@ -123,6 +106,7 @@
/* 搜索 */
const search = () => {
const [d1, d2] = dateRange.value ?? [];
+ xlsFileName.value = `${d1}至${d2}`;
where.createTimeStart = d1 ? d1 + ' 00:00:00' : undefined;
where.createTimeEnd = d2 ? d2 + ' 23:59:59' : undefined;
emit('search', {
@@ -149,18 +133,16 @@
[
'订单编号',
'订单标题',
- '客户姓名',
+ '买家姓名',
'手机号码',
- '实付金额',
+ '实付金额(元)',
'支付方式',
'付款时间',
'下单时间'
]
];
- // 按搜索结果导出
- where.sceneType = 'Content';
- await listBszxPay(where)
+ await listShopOrder(where)
.then((list) => {
orders.value = list;
list?.forEach((d: ShopOrder) => {
@@ -170,12 +152,12 @@
`${d.realName}`,
`${d.phone}`,
`${d.payPrice}`,
- `${d.payType}`,
- `${d.payTime}`,
+ `${getPayType(d.payType)}`,
+ `${d.payTime || ''}`,
`${d.createTime}`
]);
});
- const sheetName = `导出订单记录${dayjs(new Date()).format('YYYYMMDD')}`;
+ const sheetName = `订单数据`;
const workbook = {
SheetNames: [sheetName],
Sheets: {}
diff --git a/src/views/bszx/bszxOrder/index.vue b/src/views/bszx/bszxOrder/index.vue
index b6fca43..133006f 100644
--- a/src/views/bszx/bszxOrder/index.vue
+++ b/src/views/bszx/bszxOrder/index.vue
@@ -31,77 +31,14 @@
{{ record.phone }}
-
- 余额支付
-
-
- 微信支付
-
- 积分
-
-
- 支付宝
-
-
-
- 现金
-
-
-
- POS机
-
-
-
- VIP月卡
-
-
-
- VIP年卡
-
-
-
- VIP次卡
-
-
-
- IC月卡
-
-
-
- IC年卡
-
-
-
- IC次卡
-
-
-
- 免费
-
-
-
- VIP充值卡
-
-
-
- IC充值卡
-
-
-
- 积分支付
-
-
-
- VIP季卡
-
-
-
- IC季卡
-
-
-
-
-
+
+
+ {{ item.label }}
+
+
+
+
+
已付款
@@ -156,7 +93,7 @@
-
+
@@ -176,6 +113,7 @@ import {ShopOrder, ShopOrderParam} from "@/api/shop/shopOrder/model";
import {updateShopOrder} from "@/api/shop/shopOrder";
import {message} from "ant-design-vue";
import {updateUser} from "@/api/system/user";
+import {getPayType} from '@/utils/shop';
// 表格实例
const tableRef = ref | null>(null);
diff --git a/src/views/shop/shopOrder/components/orderInfo.vue b/src/views/shop/shopOrder/components/orderInfo.vue
index 98b9302..6c88446 100644
--- a/src/views/shop/shopOrder/components/orderInfo.vue
+++ b/src/views/shop/shopOrder/components/orderInfo.vue
@@ -440,47 +440,27 @@ const updateVisible = (value: boolean) => {
const columns = ref([
{
- title: '场馆名称',
- dataIndex: 'siteName',
- key: 'siteName',
- align: 'center'
- },
- {
- title: '场地',
- dataIndex: 'fieldName',
- align: 'center'
+ title: '商品名称',
+ dataIndex: 'formName',
+ key: 'formName',
+ align: 'center',
+ width: 280
},
{
- title: '价格',
+ title: '金额',
dataIndex: 'price',
align: 'center'
},
{
- title: '儿童价',
- dataIndex: 'childrenPrice',
- align: 'center'
- },
- {
- title: '成人数',
- dataIndex: 'adultNum',
+ title: '备注',
+ dataIndex: 'comments',
+ key: 'comments',
align: 'center'
},
{
- title: '儿童数',
- dataIndex: 'childrenNum',
- align: 'center'
- },
- {
- title: '预定信息',
- dataIndex: 'dateTime',
- key: 'dateTime',
- align: 'center'
- },
- {
- title: '是否免费',
+ title: '操作',
dataIndex: 'isFree',
- align: 'center',
- customRender: ({text}) => ['', '免费', '付费'][text]
+ align: 'center'
}
]);
@@ -561,7 +541,7 @@ watch(
if (props.data) {
loading.value = true;
assignObject(form, props.data);
- pageBszxPay({orderId: form.orderId}).then((res) => {
+ pageBszxPay({orderNo: form.orderNo}).then((res) => {
if (res?.list) {
orderInfo.value = res?.list;
}
diff --git a/src/views/shop/shopOrder/components/search.vue b/src/views/shop/shopOrder/components/search.vue
index d995f61..7346f4c 100644
--- a/src/views/shop/shopOrder/components/search.vue
+++ b/src/views/shop/shopOrder/components/search.vue
@@ -9,7 +9,7 @@
>
全部
已付款
- 未付款
+ 未付款
全部
已完成
+ 未完成
未使用
已取消
退款中
@@ -26,39 +27,21 @@
退款成功
- 全部
- 微信支付
- 余额支付
- 支付宝
- 现金
- POS机
-
-
-
-
-
-
- 免费
-
-
-
-
-
-
+ />
- 已开票
- 未开票
- 不能开票
+ 已开票
+ 未开票
+ 不能开票
import { ref, watch } from 'vue';
import { utils, writeFile } from 'xlsx';
- import dayjs from 'dayjs';
import { message } from 'ant-design-vue';
import useSearch from "@/utils/use-search";
- import {listBszxPay} from "@/api/bszx/bszxPay";
import {ShopOrder, ShopOrderParam} from "@/api/shop/shopOrder/model";
+ import {listShopOrder} from "@/api/shop/shopOrder";
+ import {getPayType} from "@/utils/shop";
const props = withDefaults(
defineProps<{
@@ -123,6 +106,7 @@
/* 搜索 */
const search = () => {
const [d1, d2] = dateRange.value ?? [];
+ xlsFileName.value = `${d1}至${d2}`;
where.createTimeStart = d1 ? d1 + ' 00:00:00' : undefined;
where.createTimeEnd = d2 ? d2 + ' 23:59:59' : undefined;
emit('search', {
@@ -149,18 +133,16 @@
[
'订单编号',
'订单标题',
- '客户姓名',
+ '买家姓名',
'手机号码',
- '实付金额',
+ '实付金额(元)',
'支付方式',
'付款时间',
'下单时间'
]
];
- // 按搜索结果导出
- where.sceneType = 'Content';
- await listBszxPay(where)
+ await listShopOrder(where)
.then((list) => {
orders.value = list;
list?.forEach((d: ShopOrder) => {
@@ -170,12 +152,12 @@
`${d.realName}`,
`${d.phone}`,
`${d.payPrice}`,
- `${d.payType}`,
- `${d.payTime}`,
+ `${getPayType(d.payType)}`,
+ `${d.payTime || ''}`,
`${d.createTime}`
]);
});
- const sheetName = `导出订单记录${dayjs(new Date()).format('YYYYMMDD')}`;
+ const sheetName = `订单数据`;
const workbook = {
SheetNames: [sheetName],
Sheets: {}
diff --git a/src/views/shop/shopOrder/index.vue b/src/views/shop/shopOrder/index.vue
index b6fca43..133006f 100644
--- a/src/views/shop/shopOrder/index.vue
+++ b/src/views/shop/shopOrder/index.vue
@@ -31,77 +31,14 @@
{{ record.phone }}
-
- 余额支付
-
-
- 微信支付
-
- 积分
-
-
- 支付宝
-
-
-
- 现金
-
-
-
- POS机
-
-
-
- VIP月卡
-
-
-
- VIP年卡
-
-
-
- VIP次卡
-
-
-
- IC月卡
-
-
-
- IC年卡
-
-
-
- IC次卡
-
-
-
- 免费
-
-
-
- VIP充值卡
-
-
-
- IC充值卡
-
-
-
- 积分支付
-
-
-
- VIP季卡
-
-
-
- IC季卡
-
-
-
-
-
+
+
+ {{ item.label }}
+
+
+
+
+
已付款
@@ -156,7 +93,7 @@
-
+
@@ -176,6 +113,7 @@ import {ShopOrder, ShopOrderParam} from "@/api/shop/shopOrder/model";
import {updateShopOrder} from "@/api/shop/shopOrder";
import {message} from "ant-design-vue";
import {updateUser} from "@/api/system/user";
+import {getPayType} from '@/utils/shop';
// 表格实例
const tableRef = ref | null>(null);