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 }} 元 +