From 26a8ce42ab270ac7af34e7deadd6800f58deb06d Mon Sep 17 00:00:00 2001 From: messi <977691291@qq.com> Date: Wed, 21 Aug 2024 12:55:18 +0800 Subject: [PATCH] fix --- src/layout/index.vue | 4 +- .../analysis/components/statistics-card.vue | 55 +--- src/views/dashboard/analysis/index.vue | 17 +- .../dashboard/components/hot-search.vue | 72 +++++ .../system/dashboard/components/sale-card.vue | 248 ++++++++++++++++++ .../dashboard/components/statistics-card.vue | 236 +++++++++++++++++ .../dashboard/components/visit-hour.vue | 101 +++++++ src/views/system/dashboard/index.vue | 39 +++ .../yunxinwei/order/components/order-info.vue | 39 ++- .../order/components/order-online.vue | 186 +++++++++++++ 10 files changed, 934 insertions(+), 63 deletions(-) create mode 100644 src/views/system/dashboard/components/hot-search.vue create mode 100644 src/views/system/dashboard/components/sale-card.vue create mode 100644 src/views/system/dashboard/components/statistics-card.vue create mode 100644 src/views/system/dashboard/components/visit-hour.vue create mode 100644 src/views/system/dashboard/index.vue create mode 100644 src/views/yunxinwei/order/components/order-online.vue diff --git a/src/layout/index.vue b/src/layout/index.vue index a242715..1f9846c 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -123,8 +123,8 @@ const companyLogo = localStorage.getItem('CompanyLogo'); const shortName = localStorage.getItem('ShortName'); const logo = ref('/assets/logo.svg'); - if (tenantName) { - projectName.value = String(tenantName); + if (tenantName!=null) { + //projectName.value = String(tenantName); } if (companyLogo) { logo.value = companyLogo; diff --git a/src/views/dashboard/analysis/components/statistics-card.vue b/src/views/dashboard/analysis/components/statistics-card.vue index f4fefd5..8599fe2 100644 --- a/src/views/dashboard/analysis/components/statistics-card.vue +++ b/src/views/dashboard/analysis/components/statistics-card.vue @@ -2,7 +2,7 @@ diff --git a/src/views/dashboard/analysis/index.vue b/src/views/dashboard/analysis/index.vue index d0ede32..48a3951 100644 --- a/src/views/dashboard/analysis/index.vue +++ b/src/views/dashboard/analysis/index.vue @@ -2,22 +2,7 @@
- - - - - - - - +
diff --git a/src/views/system/dashboard/components/hot-search.vue b/src/views/system/dashboard/components/hot-search.vue new file mode 100644 index 0000000..c1a5531 --- /dev/null +++ b/src/views/system/dashboard/components/hot-search.vue @@ -0,0 +1,72 @@ + + + diff --git a/src/views/system/dashboard/components/sale-card.vue b/src/views/system/dashboard/components/sale-card.vue new file mode 100644 index 0000000..6dd90cc --- /dev/null +++ b/src/views/system/dashboard/components/sale-card.vue @@ -0,0 +1,248 @@ + + + + + diff --git a/src/views/system/dashboard/components/statistics-card.vue b/src/views/system/dashboard/components/statistics-card.vue new file mode 100644 index 0000000..b08fcc3 --- /dev/null +++ b/src/views/system/dashboard/components/statistics-card.vue @@ -0,0 +1,236 @@ + + + + + + diff --git a/src/views/system/dashboard/components/visit-hour.vue b/src/views/system/dashboard/components/visit-hour.vue new file mode 100644 index 0000000..ca371d3 --- /dev/null +++ b/src/views/system/dashboard/components/visit-hour.vue @@ -0,0 +1,101 @@ + + + diff --git a/src/views/system/dashboard/index.vue b/src/views/system/dashboard/index.vue new file mode 100644 index 0000000..ba69bb9 --- /dev/null +++ b/src/views/system/dashboard/index.vue @@ -0,0 +1,39 @@ + + + + + diff --git a/src/views/yunxinwei/order/components/order-info.vue b/src/views/yunxinwei/order/components/order-info.vue index c301569..6cd1f29 100644 --- a/src/views/yunxinwei/order/components/order-info.vue +++ b/src/views/yunxinwei/order/components/order-info.vue @@ -304,7 +304,18 @@ + + + @@ -403,6 +414,11 @@ + + @@ -415,6 +431,7 @@ import {formatNumber} from 'ele-admin-pro/es'; import {storeToRefs} from 'pinia'; import {copyText} from '@/utils/common'; import {Order} from '@/api/order/model'; +import OrderOnline from '../components/order-online.vue'; import {listEquipmentOrderGoods} from '@/api/apps/equipment/order/goods'; import {EquipmentOrderGoods} from '@/api/apps/equipment/order/goods/model'; import * as EquipmentApi from '@/api/apps/equipment'; @@ -423,12 +440,17 @@ import {ColumnItem, DatasourceFunction} from 'ele-admin-pro/es/ele-pro-table/typ import {listOrder, listOrderPay} from '@/api/order'; import {CopyOutlined} from '@ant-design/icons-vue'; import {EquipmentRecord} from '@/api/apps/equipment/record/model'; +import OrderRefund from "@/views/yunxinwei/order/components/order-refund.vue"; const useForm = Form.useForm; // 是否开启响应式布局 const themeStore = useThemeStore(); const {styleResponsive} = storeToRefs(themeStore); +const showOrderOnline = ref(false); +// 当前编辑数据 +const current = ref(null); + const props = defineProps<{ // 弹窗是否打开 visible: boolean; @@ -600,7 +622,15 @@ const columns2 = ref([ title: '逾期状态', dataIndex: 'expirationDay', key: 'expirationDay' - } + }, + { + title: '操作', + key: 'action', + width: 100, + align: 'center', + fixed: 'left', + hideInSetting: true + }, ]); const columns3 = ref([ { @@ -702,6 +732,13 @@ const getEquipmentOrderGoods = () => { }); }; + +/* 线下缴费 */ +const openOrderOnline = (row?: Order) => { + current.value = row ?? null; + showOrderOnline.value = true; +}; + const getEquipment = () => { EquipmentApi.listEquipment({orderId: order.orderId}).then((data) => { if (data.length > 0) { diff --git a/src/views/yunxinwei/order/components/order-online.vue b/src/views/yunxinwei/order/components/order-online.vue new file mode 100644 index 0000000..e0b7684 --- /dev/null +++ b/src/views/yunxinwei/order/components/order-online.vue @@ -0,0 +1,186 @@ + + + + +