From 7f97fffcc373076ed34692080501447b93e320ae Mon Sep 17 00:00:00 2001 From: zx <604444282@qq.com> Date: Mon, 7 Mar 2022 17:00:03 +0800 Subject: [PATCH] zx --- src/api/city/index.js | 19 ++ src/api/manage/index.js | 74 ++++- src/api/upload/index.js | 10 + src/router/manage.js | 9 + .../ChargingManage/ChargingStandard/index.vue | 38 ++- .../ChargingManage/FinancialBill/_payback.vue | 16 +- src/views/Manage/CustomerList/_detail.vue | 64 ++-- src/views/Manage/CustomerList/index.vue | 8 +- src/views/Manage/OrderManage/_addOrder.vue | 172 +++++++++- src/views/Manage/VillageManage/_detail.vue | 15 + src/views/Manage/VillageManage/index.vue | 302 ++++++++++++------ 11 files changed, 567 insertions(+), 160 deletions(-) create mode 100644 src/api/city/index.js create mode 100644 src/api/upload/index.js create mode 100644 src/views/Manage/VillageManage/_detail.vue diff --git a/src/api/city/index.js b/src/api/city/index.js new file mode 100644 index 0000000..a1fb4bc --- /dev/null +++ b/src/api/city/index.js @@ -0,0 +1,19 @@ +import httpService from "@/request" + +// 城市-查询所有城市信息 +export function getAllCity(params) { + return httpService({ + url: `/city/allCity`, + method: 'get', + params: params, + }) +} + +// 城市-根据父类ID查询城市信息 +export function getCityByParent(params) { + return httpService({ + url: `/city/findByParentId`, + method: 'get', + params: params, + }) +} \ No newline at end of file diff --git a/src/api/manage/index.js b/src/api/manage/index.js index 67d44d4..3b3a41a 100644 --- a/src/api/manage/index.js +++ b/src/api/manage/index.js @@ -45,6 +45,42 @@ export function getCustomerDetail(params) { }) } +// 小区管理-查询所有的小区信息 +export function getCommunityList(params) { + return httpService({ + url: `/user/community/list`, + method: 'get', + params: params, + }) +} + +// 小区管理-获取对应公司下的所有小区信息 +export function getComById(params) { + return httpService({ + url: `/user/community/getCommunityInfoByCompanyId`, + method: 'get', + params: params, + }) +} + +// 小区管理-添加小区信息 +export function getAddCommunity(params) { + return httpService({ + url: `/user/community/insertAdmin`, + method: 'post', + params: params, + }) +} + +// 小区管理-修改小区信息 +export function updateCommunity(params) { + return httpService({ + url: `/user/community/updateAdmin`, + method: 'post', + params: params, + }) +} + // 订单管理-查询所有订单 export function getAllOrder(params) { return httpService({ @@ -54,6 +90,24 @@ export function getAllOrder(params) { }) } +// 订单管理-后台创建订单 +export function createOrder(params) { + return httpService({ + url: `/user/order/adminCreateOrder`, + method: 'post', + data: params, + }) +} + +// 订单管理-计算金额 +export function calcAmount(params) { + return httpService({ + url: `/user/order/calculateAmount`, + method: 'post', + data: params, + }) +} + // 订单管理-订单解绑小区 export function orderUnbound(params) { return httpService({ @@ -90,12 +144,21 @@ export function findSuperNavigation(params) { }) } +// 收费管理-根据收费模版主键Id查询收费模版信息 +export function getChargeById(params) { + return httpService({ + url: `/user/charging/findById`, + method: 'get', + params: params, + }) +} + // 收费管理-收费标准-启用/禁用收费模版 export function onoffCharging(params) { return httpService({ url: `/user/charging/updateStatus`, method: 'post', - params: params, + data: params, }) } @@ -108,6 +171,15 @@ export function addCharge(params) { }) } +// 收费管理-收费标准-修改收费模版 +export function updateCharge(params) { + return httpService({ + url: `/user/charging/update`, + method: 'post', + data: params, + }) +} + // 收费管理-财务账单-查询所有财务账单 export function getAllList(params) { return httpService({ diff --git a/src/api/upload/index.js b/src/api/upload/index.js new file mode 100644 index 0000000..b425417 --- /dev/null +++ b/src/api/upload/index.js @@ -0,0 +1,10 @@ +import httpService from "@/request" + +// 上传平台照片 +export function uploadImg(params) { + return httpService({ + url: `/user/upload/uploadImg`, + method: 'post', + params: params, + }) +} \ No newline at end of file diff --git a/src/router/manage.js b/src/router/manage.js index 381d3dc..d98b063 100644 --- a/src/router/manage.js +++ b/src/router/manage.js @@ -44,6 +44,15 @@ export default [ component: resolve => require(['@/views/Manage/VillageManage'], resolve), meta: {title: '小区管理'}, }, + { + path: '/Manage/VillageManage/_detail', + name: "village_detail", + title: "小区管理详情", + hide: true, + icon: 'home', + component: resolve => require(['@/views/Manage/VillageManage/_detail'], resolve), + meta: {title: '小区管理详情'}, + }, { path: '/Manage/OrderManage', name: "OrderManage", diff --git a/src/views/Manage/ChargingManage/ChargingStandard/index.vue b/src/views/Manage/ChargingManage/ChargingStandard/index.vue index 1e2e6ba..389de50 100644 --- a/src/views/Manage/ChargingManage/ChargingStandard/index.vue +++ b/src/views/Manage/ChargingManage/ChargingStandard/index.vue @@ -39,7 +39,8 @@ 修改设置 - + + @@ -71,7 +72,8 @@ - 确定 + 确认新增 + 确认修改 @@ -79,12 +81,13 @@ - \ No newline at end of file diff --git a/src/views/Manage/VillageManage/_detail.vue b/src/views/Manage/VillageManage/_detail.vue new file mode 100644 index 0000000..eb16f64 --- /dev/null +++ b/src/views/Manage/VillageManage/_detail.vue @@ -0,0 +1,15 @@ + + + test + + + + + + \ No newline at end of file diff --git a/src/views/Manage/VillageManage/index.vue b/src/views/Manage/VillageManage/index.vue index 6808aa8..5e83b7e 100644 --- a/src/views/Manage/VillageManage/index.vue +++ b/src/views/Manage/VillageManage/index.vue @@ -1,87 +1,142 @@ - - - - 删除 - | - 详情 - - + + 小区管理 + + + + 查 询 + 重 置 + + + + 添加小区 + + + + + + + + + 修改 + + + + + + + + + + + + {{item.companyName}} + + + + + + + {{item.name}} + + + + + {{item.name}} + + + + + {{item.name}} + + + + + + + + + + + Upload + + + + + 确定 + 取消 + - \ No newline at end of file