|
@@ -0,0 +1,78 @@
|
|
|
+import request from '@/axios'
|
|
|
+/*
|
|
|
+ * 房源管理
|
|
|
+ *
|
|
|
+ *
|
|
|
+ */
|
|
|
+export function houseManagement(projectId) {
|
|
|
+ return request({
|
|
|
+ url: `/api/projectItemTargetRoom/roomCount/${projectId}`,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+/*
|
|
|
+ * 费用管理
|
|
|
+ *
|
|
|
+ *
|
|
|
+ */
|
|
|
+export function paymentManagement(projectId) {
|
|
|
+ return request({
|
|
|
+ url: `/api/payment/count/${projectId}`,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+/*
|
|
|
+ * 客户管理
|
|
|
+ *
|
|
|
+ *
|
|
|
+ */
|
|
|
+export function clientManagement(projectId) {
|
|
|
+ return request({
|
|
|
+ url: `/manager/client/count/${projectId}`,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+/*
|
|
|
+ * 获取天气
|
|
|
+ * @data {Object}
|
|
|
+ *
|
|
|
+ */
|
|
|
+export function getWeather(cityId) {
|
|
|
+ return request({
|
|
|
+ url: `https://www.weatherol.cn/api/home/getCurrAnd15dAnd24h?cityid=${cityId}`,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+/*
|
|
|
+ * 事件提醒
|
|
|
+ *
|
|
|
+ *
|
|
|
+ */
|
|
|
+export function eventManagement(projectId) {
|
|
|
+ return request({
|
|
|
+ url: `/api/reminder/count/${projectId}`,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+/*
|
|
|
+ * 工单
|
|
|
+ *
|
|
|
+ *
|
|
|
+ */
|
|
|
+export function orderManagement(projectId) {
|
|
|
+ return request({
|
|
|
+ url: `/api/workOrder/count/${projectId}`,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+/*
|
|
|
+ * 设备
|
|
|
+ *
|
|
|
+ *
|
|
|
+ */
|
|
|
+export function deviceManagement(projectId) {
|
|
|
+ return request({
|
|
|
+ url: `/api/operateDevice/count/${projectId}`,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|