From 94f61c4a169871f914c21aee2cc63e0f73f5c9a7 Mon Sep 17 00:00:00 2001 From: zz <2510566342@qq.com> Date: Wed, 11 Sep 2024 17:44:20 +0800 Subject: [PATCH] =?UTF-8?q?9.11=20=20bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/pay/wallet/account/index.ts | 21 +- .../orderManagement/reservationForm/index.ts | 3 +- src/utils/dict.ts | 2 +- .../components/WalletRechargeList.vue | 15 +- .../components/WalletTransactionList.vue | 8 +- .../fleetAccount/components/drawer.vue | 57 ++++-- .../accountManagement/fleetAccount/index.vue | 1 + .../components/WalletRechargeList.vue | 16 +- .../components/WalletTransactionList.vue | 8 +- .../individualAccount/components/drawer.vue | 61 ++++-- .../individualAccount/index.vue | 2 +- .../personalFleetAccount/WalletForm.vue | 144 ++++++++++++++ .../components/WalletRechargeForm.vue | 182 +++++++++++++++++ .../components/WalletRechargeList.vue | 99 +++++++++ .../components/WalletTransactionForm.vue | 125 ++++++++++++ .../components/WalletTransactionList.vue | 80 ++++++++ .../components/drawer.vue | 118 +++++++++++ .../personalFleetAccount/index.vue | 188 ++++++++++++++++++ .../batteryretrospect/index.vue | 2 +- .../components/PersonalVehicleList.vue | 6 +- .../driverManagement/components/drawer.vue | 11 +- .../orderManagement/refundOrder/index.vue | 8 +- .../reservationForm/AmtOrderDetails.vue | 4 +- .../reservationForm/AmtOrderForm.vue | 7 +- .../orderManagement/reservationForm/index.vue | 28 +-- .../powerChangingTimesStatistics/index.vue | 12 +- .../stationChargingTimesStatistics/index.vue | 10 +- .../stationRevenueStatistics/index.vue | 12 +- .../statisticsDCSharp/index.vue | 37 +++- .../statisticsSharp/index.vue | 36 +++- .../substation/fleetManagement/index.vue | 2 +- .../feetVehicles/fleetDriverAudit/index.vue | 15 +- .../vehiclesList/vehiclesListForm.vue | 73 +++---- 33 files changed, 1244 insertions(+), 149 deletions(-) create mode 100644 src/views/system/accountManagement/personalFleetAccount/WalletForm.vue create mode 100644 src/views/system/accountManagement/personalFleetAccount/components/WalletRechargeForm.vue create mode 100644 src/views/system/accountManagement/personalFleetAccount/components/WalletRechargeList.vue create mode 100644 src/views/system/accountManagement/personalFleetAccount/components/WalletTransactionForm.vue create mode 100644 src/views/system/accountManagement/personalFleetAccount/components/WalletTransactionList.vue create mode 100644 src/views/system/accountManagement/personalFleetAccount/components/drawer.vue create mode 100644 src/views/system/accountManagement/personalFleetAccount/index.vue diff --git a/src/api/pay/wallet/account/index.ts b/src/api/pay/wallet/account/index.ts index 2a69fdb..b3ccd3a 100644 --- a/src/api/pay/wallet/account/index.ts +++ b/src/api/pay/wallet/account/index.ts @@ -32,13 +32,28 @@ export const WalletApi = { // 查询会员钱包分页 getWalletPage: async (params: any) => { + return await request.get({ url: `/pay/wallet/page-team`, params }) + // return await request.get({ url: `/pay/wallet/page`, params }) + }, + getWalletPage2: async (params: any) => { + // return await request.get({ url: `/pay/wallet/page-team`, params }) return await request.get({ url: `/pay/wallet/page`, params }) }, - // 查询会员钱包详情 - getWallet: async (id: number) => { - return await request.get({ url: `/pay/wallet/get?id=` + id }) + // 查询会员钱包详情车队账户 + getWallet2: async data => { + const { teamId,bindType } =data + return await request.get({ url: `/pay/wallet/get-team?teamId=${teamId}&bindType=${bindType}`,data}) + }, + + // 个人和个人车队详情 + getWallet: async data=> { + const { userId,bindType } =data + return await request.get({ url: `/pay/wallet/get?userId=${userId}&bindType=${bindType}`,data }) }, + // getWallet: async (id: number) => { + // return await request.get({ url: `/pay/wallet/get?id=` + id }) + // }, // 新增会员钱包 createWallet: async (data: WalletVO) => { diff --git a/src/api/system/orderManagement/reservationForm/index.ts b/src/api/system/orderManagement/reservationForm/index.ts index 807fe4c..abc2b4d 100644 --- a/src/api/system/orderManagement/reservationForm/index.ts +++ b/src/api/system/orderManagement/reservationForm/index.ts @@ -74,6 +74,7 @@ export const AmtOrderApi = { // 导出预约订单 Excel exportAmtOrder: async (params) => { - return await request.download({ url: `/cloud/amt-order/export-excel`, params }) + return await request.download({ url: `/cloud/amt-order/exportExcel`, params }) + }, } diff --git a/src/utils/dict.ts b/src/utils/dict.ts index cfd32b1..153913f 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -140,7 +140,7 @@ export enum DICT_TYPE { TOP_UP_STATUS = 'top_up_status', TOP_UP_STATUS_TWO = 'top_up_status_two', ENABLE_STATUS = 'enable_status', - + REFUND_STATUS_DETAILS = 'refund_status_details', PACKAGE_TYPE = 'package_type',//zz PACKAGE_STATUS = 'package_status', SITEMANAGER_SERVICE_STATE = 'siteManager_service_state', diff --git a/src/views/system/accountManagement/fleetAccount/components/WalletRechargeList.vue b/src/views/system/accountManagement/fleetAccount/components/WalletRechargeList.vue index 6ccf312..aeda30c 100644 --- a/src/views/system/accountManagement/fleetAccount/components/WalletRechargeList.vue +++ b/src/views/system/accountManagement/fleetAccount/components/WalletRechargeList.vue @@ -58,7 +58,11 @@ :formatter="dateFormatter" width="180px" /> - + + + import { dateFormatter } from '@/utils/formatTime' import { WalletApi } from '@/api/pay/wallet/account' +import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' // import WalletRechargeForm from './WalletRechargeForm.vue' const props = defineProps<{ @@ -109,7 +114,9 @@ const handleQuery = () => { getList() } -onMounted(() => { - handleQuery() -}) +// onMounted(() => { +// handleQuery() +// }) + +defineExpose({ handleQuery }) diff --git a/src/views/system/accountManagement/fleetAccount/components/WalletTransactionList.vue b/src/views/system/accountManagement/fleetAccount/components/WalletTransactionList.vue index 5983d14..30416b2 100644 --- a/src/views/system/accountManagement/fleetAccount/components/WalletTransactionList.vue +++ b/src/views/system/accountManagement/fleetAccount/components/WalletTransactionList.vue @@ -88,7 +88,9 @@ const handleQuery = () => { getList() } -onMounted(() => { - handleQuery() -}) +// onMounted(() => { +// handleQuery() +// }) + +defineExpose({ handleQuery }) diff --git a/src/views/system/accountManagement/fleetAccount/components/drawer.vue b/src/views/system/accountManagement/fleetAccount/components/drawer.vue index b7cb76c..323d3f5 100644 --- a/src/views/system/accountManagement/fleetAccount/components/drawer.vue +++ b/src/views/system/accountManagement/fleetAccount/components/drawer.vue @@ -11,7 +11,7 @@
- {{ check_row.teamCode != null ? check_row.teamCode : '--' }} + {{ formData.teamCode != null ? formData.teamCode : '--' }} - {{ check_row.teamName != null ? check_row.teamName : '--' }} + {{ formData.teamName != null ? formData.teamName : '--' }} - {{ check_row.balance != null ? check_row.balance / 100 : '--' }} + {{ formData.balance != null ? formData.balance / 100 : '--' }} - {{ check_row.totalExpense != null ? check_row.totalExpense / 100 : '--' }} + {{ formData.totalExpense != null ? formData.totalExpense / 100 : '--' }} - {{ check_row.totalRecharge != null ? check_row.totalRecharge / 100 : '--' }} + {{ formData.totalRecharge != null ? formData.totalRecharge / 100 : '--' }} - {{ check_row.freezePrice != null ? check_row.freezePrice / 100 : '--' }} + {{ formData.freezePrice != null ? formData.freezePrice / 100 : '--' }}
充值记录

- +
余额明细

- + @@ -52,14 +52,45 @@ diff --git a/src/views/system/accountManagement/fleetAccount/index.vue b/src/views/system/accountManagement/fleetAccount/index.vue index ab7b971..9483476 100644 --- a/src/views/system/accountManagement/fleetAccount/index.vue +++ b/src/views/system/accountManagement/fleetAccount/index.vue @@ -171,6 +171,7 @@ const handleCurrentChange = (row) => { const drawerRef = ref() const open_drawer = (row: any) => { drawerRef.value.open(row) + } /** 修改余额 */ const setbalance = async (row) => { diff --git a/src/views/system/accountManagement/individualAccount/components/WalletRechargeList.vue b/src/views/system/accountManagement/individualAccount/components/WalletRechargeList.vue index f3a6705..4e67670 100644 --- a/src/views/system/accountManagement/individualAccount/components/WalletRechargeList.vue +++ b/src/views/system/accountManagement/individualAccount/components/WalletRechargeList.vue @@ -34,7 +34,13 @@ :formatter="dateFormatter" width="180px" /> - + + + + + import { dateFormatter } from '@/utils/formatTime' import { WalletApi } from '@/api/pay/wallet/account' +import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' // import WalletRechargeForm from './WalletRechargeForm.vue' const props = defineProps<{ @@ -85,7 +92,8 @@ const handleQuery = () => { getList() } -onMounted(() => { - handleQuery() -}) +// onMounted(() => { +// handleQuery() +// }) +defineExpose({ handleQuery }) diff --git a/src/views/system/accountManagement/individualAccount/components/WalletTransactionList.vue b/src/views/system/accountManagement/individualAccount/components/WalletTransactionList.vue index d917fe0..e9bb18e 100644 --- a/src/views/system/accountManagement/individualAccount/components/WalletTransactionList.vue +++ b/src/views/system/accountManagement/individualAccount/components/WalletTransactionList.vue @@ -72,7 +72,9 @@ const handleQuery = () => { getList() } -onMounted(() => { - handleQuery() -}) +// onMounted(() => { +// handleQuery() +// }) + +defineExpose({ handleQuery }) diff --git a/src/views/system/accountManagement/individualAccount/components/drawer.vue b/src/views/system/accountManagement/individualAccount/components/drawer.vue index 3623788..10bf682 100644 --- a/src/views/system/accountManagement/individualAccount/components/drawer.vue +++ b/src/views/system/accountManagement/individualAccount/components/drawer.vue @@ -19,52 +19,81 @@ class-name="my-content" width="150px" > - {{ check_row.nickName != null ? check_row.nickName : '--' }} + {{ queryParams.nickname != null ? queryParams.nickname : '--' }} -- - {{ check_row.balance != null ? check_row.balance / 100 : '--' }} + {{ queryParams.balance != null ? queryParams.balance / 100 : '--' }} - {{ check_row.totalExpense != null ? check_row.totalExpense / 100 : '--' }} + {{ queryParams.totalExpense != null ? queryParams.totalExpense / 100 : '--' }} - {{ check_row.totalRecharge != null ? check_row.totalRecharge / 100 : '--' }} + {{ queryParams.totalRecharge != null ? queryParams.totalRecharge / 100 : '--' }} - {{ check_row.freezePrice != null ? check_row.freezePrice / 100 : '--' }} + {{ queryParams.freezePrice != null ? queryParams.freezePrice / 100 : '--' }}
充值记录

- +
余额明细

- + diff --git a/src/views/system/accountManagement/individualAccount/index.vue b/src/views/system/accountManagement/individualAccount/index.vue index bd95631..4e0604d 100644 --- a/src/views/system/accountManagement/individualAccount/index.vue +++ b/src/views/system/accountManagement/individualAccount/index.vue @@ -115,7 +115,7 @@ const exportLoading = ref(false) // 导出的加载中 const getList = async () => { loading.value = true try { - const data = await WalletApi.getWalletPage(queryParams) + const data = await WalletApi.getWalletPage2(queryParams) list.value = data.list total.value = data.total } finally { diff --git a/src/views/system/accountManagement/personalFleetAccount/WalletForm.vue b/src/views/system/accountManagement/personalFleetAccount/WalletForm.vue new file mode 100644 index 0000000..a1d2fdb --- /dev/null +++ b/src/views/system/accountManagement/personalFleetAccount/WalletForm.vue @@ -0,0 +1,144 @@ + + \ No newline at end of file diff --git a/src/views/system/accountManagement/personalFleetAccount/components/WalletRechargeForm.vue b/src/views/system/accountManagement/personalFleetAccount/components/WalletRechargeForm.vue new file mode 100644 index 0000000..6bfa797 --- /dev/null +++ b/src/views/system/accountManagement/personalFleetAccount/components/WalletRechargeForm.vue @@ -0,0 +1,182 @@ + + \ No newline at end of file diff --git a/src/views/system/accountManagement/personalFleetAccount/components/WalletRechargeList.vue b/src/views/system/accountManagement/personalFleetAccount/components/WalletRechargeList.vue new file mode 100644 index 0000000..b499d39 --- /dev/null +++ b/src/views/system/accountManagement/personalFleetAccount/components/WalletRechargeList.vue @@ -0,0 +1,99 @@ + + diff --git a/src/views/system/accountManagement/personalFleetAccount/components/WalletTransactionForm.vue b/src/views/system/accountManagement/personalFleetAccount/components/WalletTransactionForm.vue new file mode 100644 index 0000000..0c3c23d --- /dev/null +++ b/src/views/system/accountManagement/personalFleetAccount/components/WalletTransactionForm.vue @@ -0,0 +1,125 @@ + + \ No newline at end of file diff --git a/src/views/system/accountManagement/personalFleetAccount/components/WalletTransactionList.vue b/src/views/system/accountManagement/personalFleetAccount/components/WalletTransactionList.vue new file mode 100644 index 0000000..2132f00 --- /dev/null +++ b/src/views/system/accountManagement/personalFleetAccount/components/WalletTransactionList.vue @@ -0,0 +1,80 @@ + + diff --git a/src/views/system/accountManagement/personalFleetAccount/components/drawer.vue b/src/views/system/accountManagement/personalFleetAccount/components/drawer.vue new file mode 100644 index 0000000..9c5fca7 --- /dev/null +++ b/src/views/system/accountManagement/personalFleetAccount/components/drawer.vue @@ -0,0 +1,118 @@ + + + + + diff --git a/src/views/system/accountManagement/personalFleetAccount/index.vue b/src/views/system/accountManagement/personalFleetAccount/index.vue new file mode 100644 index 0000000..c103135 --- /dev/null +++ b/src/views/system/accountManagement/personalFleetAccount/index.vue @@ -0,0 +1,188 @@ + + + diff --git a/src/views/system/batteryManagement/batteryretrospect/index.vue b/src/views/system/batteryManagement/batteryretrospect/index.vue index 89b4636..40be6d4 100644 --- a/src/views/system/batteryManagement/batteryretrospect/index.vue +++ b/src/views/system/batteryManagement/batteryretrospect/index.vue @@ -50,7 +50,7 @@ plain @click="handleExport" :loading="exportLoading" - v-hasPermi="['cloud:battery-retrospect:export']" + > 导出 diff --git a/src/views/system/customerManagement/driverManagement/components/PersonalVehicleList.vue b/src/views/system/customerManagement/driverManagement/components/PersonalVehicleList.vue index a4011cf..7ce5059 100644 --- a/src/views/system/customerManagement/driverManagement/components/PersonalVehicleList.vue +++ b/src/views/system/customerManagement/driverManagement/components/PersonalVehicleList.vue @@ -17,7 +17,7 @@ - + @@ -101,4 +101,8 @@ const handleDelete = async (id: number) => { await getList() } catch {} } + + // 提供 open 方法,用于打开弹窗 +// defineExpose({ handleQuery }) + diff --git a/src/views/system/customerManagement/driverManagement/components/drawer.vue b/src/views/system/customerManagement/driverManagement/components/drawer.vue index 58b2ac4..4d7e8b9 100644 --- a/src/views/system/customerManagement/driverManagement/components/drawer.vue +++ b/src/views/system/customerManagement/driverManagement/components/drawer.vue @@ -22,10 +22,10 @@ {{ check_row.nickname }} - {{ check_row.phone }} + {{ check_row.mobile }} - Suzhou + {{ check_row.name }} @@ -46,7 +46,7 @@
名下车辆

- + @@ -56,12 +56,17 @@ import PersonalVehicleList from './PersonalVehicleList.vue' import { getIntDictOptions, DICT_TYPE } from '@/utils/dict' const drawer = ref(false) +const PersonalVehicle = ref(null) const check_row = ref() const open = (row: any) => { // console.log(row, 'row') check_row.value = row child_data.value = row.vehicles drawer.value = true + // setTimeout(() => { + + // PersonalVehicle.value.handleQuery() + // }, 1000) } const child_data = ref([]) diff --git a/src/views/system/orderManagement/refundOrder/index.vue b/src/views/system/orderManagement/refundOrder/index.vue index b43c904..8da3061 100644 --- a/src/views/system/orderManagement/refundOrder/index.vue +++ b/src/views/system/orderManagement/refundOrder/index.vue @@ -67,7 +67,7 @@ > 新增 --> - + @@ -87,6 +87,7 @@ }"> + - +