From 261fd5d17fe890cbff4dccb3abf82562fb185e9a Mon Sep 17 00:00:00 2001 From: 5g0Wp7Zy Date: Wed, 4 Mar 2026 14:25:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=B0=E5=A2=9E=E8=BF=90=E8=90=A5?= =?UTF-8?q?=E5=95=86=E9=85=8D=E7=BD=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/serviceConfiguration/index.ts | 20 +++ src/api/modules/serviceConfiguration/types.ts | 8 + src/views/login/login.vue | 6 +- .../orderPriceAdjustment.vue | 1 + .../servicePhone/servicePhone.vue | 152 ++++++++++++++++++ 5 files changed, 184 insertions(+), 3 deletions(-) create mode 100644 src/api/modules/serviceConfiguration/index.ts create mode 100644 src/api/modules/serviceConfiguration/types.ts create mode 100644 src/views/serviceConfiguration/servicePhone/servicePhone.vue diff --git a/src/api/modules/serviceConfiguration/index.ts b/src/api/modules/serviceConfiguration/index.ts new file mode 100644 index 0000000..653323e --- /dev/null +++ b/src/api/modules/serviceConfiguration/index.ts @@ -0,0 +1,20 @@ +import axios from "@/api"; +import { OperatorConfigFormType } from "./types"; + +// 运营商配置添加更新 +export const addOrUpdateOperatorConfigAPI = (data: OperatorConfigFormType) => { + return axios({ + url: "/operations/ebikeCarrierConfiguration/saveOrUpdate", + method: "post", + data + }); +}; + +//根据运营商id查询配置信息 +export const getOperatorConfigByOperatorIdAPI = (operatorId: string) => { + return axios({ + url: "/operations/ebikeCarrierConfiguration/getByOperatorId", + method: "get", + params: { operatorId } + }); +}; diff --git a/src/api/modules/serviceConfiguration/types.ts b/src/api/modules/serviceConfiguration/types.ts new file mode 100644 index 0000000..b28bff3 --- /dev/null +++ b/src/api/modules/serviceConfiguration/types.ts @@ -0,0 +1,8 @@ +//运营商配置添加更新配置 +export interface OperatorConfigFormType { + operatorId: string; //运营商id + dispatchDuration: number | undefined; //配置项时长 + rideDuration: number | undefined; //配置项骑行时长 + inspectionIntervalDuration: number | undefined; //巡检间隔时长(日) + operatorPhone: string; //运营商手机号 +} diff --git a/src/views/login/login.vue b/src/views/login/login.vue index 53b6687..9efa2ea 100644 --- a/src/views/login/login.vue +++ b/src/views/login/login.vue @@ -4,9 +4,9 @@
diff --git a/src/views/order/orderPriceAdjustment/orderPriceAdjustment.vue b/src/views/order/orderPriceAdjustment/orderPriceAdjustment.vue index 318ac93..a20f641 100644 --- a/src/views/order/orderPriceAdjustment/orderPriceAdjustment.vue +++ b/src/views/order/orderPriceAdjustment/orderPriceAdjustment.vue @@ -207,6 +207,7 @@ onBeforeMount(async () => { {{ record.actualAmount }} 元 +