From 2109bbb085fd664a33f4468605fc8b82865eca3a Mon Sep 17 00:00:00 2001 From: shilei <965026003@qq.com> Date: Sat, 31 Aug 2024 15:06:31 +0800 Subject: [PATCH] =?UTF-8?q?8.31=20=20=E7=AB=99=E5=A4=96=E5=85=85=E7=94=B5?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/biz/outchargeorder/index.ts | 10 + src/utils/dict.ts | 3 +- .../chargingOrder/OutChargeOrderForm.vue | 346 +----------------- .../chargingOrder/components/drawer.vue | 54 ++- .../chargingOrder/index.vue | 183 ++++----- .../chargingOrders/ChargeOrderForm.vue | 338 +---------------- .../orderManagement/chargingOrders/index.vue | 178 +++------ 7 files changed, 195 insertions(+), 917 deletions(-) diff --git a/src/api/biz/outchargeorder/index.ts b/src/api/biz/outchargeorder/index.ts index d664a68..6c51416 100644 --- a/src/api/biz/outchargeorder/index.ts +++ b/src/api/biz/outchargeorder/index.ts @@ -143,4 +143,14 @@ export const OutChargeOrderApi = { exportOutChargeOrder: async (params) => { return await request.download({ url: `/cloud/out-charge-order/export-excel`, params }) }, + + // 线下结算 + postpayOffline: async (data: OutChargeOrderVO) => { + return await request.post({ url: `/cloud/out-charge-order/payOffline`, data }) + }, + + // 挂起关闭 + changeoutstatusOrder: async (data: OutChargeOrderVO) => { + return await request.post({ url: `/cloud/out-charge-order/changeStatus`, data }) + }, } diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 1096c5f..963031c 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -280,5 +280,6 @@ GUNSTATUS = 'gunstatus', OUTORDERSTATUS = 'out_orderStatus', OUTREPORTINGMODE = 'out_reportingMode', OUTCHARGSTATUS = 'outcharg_status', - PAYBIZTYPE = 'pay_bizType' + PAYBIZTYPE = 'pay_bizType', + ORDERSTATUS = 'order_status', } diff --git a/src/views/system/offStationCharging/chargingOrder/OutChargeOrderForm.vue b/src/views/system/offStationCharging/chargingOrder/OutChargeOrderForm.vue index da60dfb..82af075 100644 --- a/src/views/system/offStationCharging/chargingOrder/OutChargeOrderForm.vue +++ b/src/views/system/offStationCharging/chargingOrder/OutChargeOrderForm.vue @@ -20,367 +20,35 @@ /> - - - - - - + - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/src/views/system/offStationCharging/chargingOrder/components/drawer.vue b/src/views/system/offStationCharging/chargingOrder/components/drawer.vue index 6468fd8..d4c9169 100644 --- a/src/views/system/offStationCharging/chargingOrder/components/drawer.vue +++ b/src/views/system/offStationCharging/chargingOrder/components/drawer.vue @@ -7,7 +7,17 @@ direction="rtl" size="60%" > -
基本信息
+
+ 基本信息 +
+ 挂起 + 关闭 +
+

- {{ check_row.startSoc == null ? '--' : check_row.startSoc / 100 }} + {{ check_row.startSoc == null ? '--' : check_row.startSoc }} - {{ check_row.endSoc == null ? '--' : check_row.endSoc / 100 }} + {{ check_row.endSoc == null ? '--' : check_row.endSoc }}
@@ -82,28 +92,51 @@ @@ -117,6 +150,9 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗 .title_info { font-size: 16px; font-weight: 600; + display: flex; + align-items: center; + justify-content: space-between; } :deep(.el-drawer__title) { font-size: 20px; diff --git a/src/views/system/offStationCharging/chargingOrder/index.vue b/src/views/system/offStationCharging/chargingOrder/index.vue index 9dba7bf..4780f63 100644 --- a/src/views/system/offStationCharging/chargingOrder/index.vue +++ b/src/views/system/offStationCharging/chargingOrder/index.vue @@ -27,7 +27,7 @@ /> - + - + @@ -99,135 +99,36 @@ - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + + + - + - + @@ -256,9 +159,23 @@ @pagination="getList" /> - + + + + + + + + + + @/api/biz/chargingorder