1 Commits

Author SHA1 Message Date
Zy
5c93e1e6e9 sidebar收缩 2026-05-13 10:15:58 +08:00
398 changed files with 9408 additions and 30400 deletions

View File

@@ -9,9 +9,9 @@ VITE_APP_ENV='development'
# 开发环境
VITE_APP_BASE_API = '/dev-api'
# # 开发环境 接口代理地址
#VITE_APP_PROXY_API='http://192.168.1.222:8080'
VITE_APP_PROXY_API = 'http://192.168.1.222:8080'
# 开发环境 接口代理地址
VITE_APP_PROXY_API='http://192.168.1.6:8080'
# VITE_APP_PROXY_API = 'http://192.168.1.215:8080'
# 图片基础地址
VITE_IMG_URL = 'http://192.168.1.222:8080'
@@ -21,28 +21,11 @@ VITE_APP_CONTEXT_PATH='/'
# 监控地址
VITE_APP_MONITOR_ADMIN = 'http://192.168.1.215/admin/applications'
# SnailJob 控制台地址
VITE_APP_SNAILJOB_ADMIN = 'http://192.168.1.215/snail-job'
VITE_APP_PORT=5174
# 登录成功跳转地址
# VITE_LOGIN_BACK_URL = '/equipment/WaterDevice'
VITE_LOGIN_BACK_URL='/index'
# 工作台正式内容:false 假内容true
VITE_LOGIN_BACK_URL_WORKBENCH_TRUE=false
# 是否展示工作台
VITE_APP_SHOW_WORK_PLATFORM=true
# 地图类型 天地图 WGS84 高德地图 GCJ02, 高德地图 需要在高德地图官网申请key
VITE_APP_MAP_TYPE='GCJ02'
# 高德地图key 建议放入环境变量中,避免泄露
VITE_GCJ02_KEY_GD='8e302fe1be5f4db62bc734db23dca149'
VITE_GCJ02_JS_CODE_GD='09534b3534d8da53968529a9ce164118'
# 天地图key 建议放入环境变量中,避免泄露
VITE_TIANDITU_KEY='f71689f9e22158947ebf64ad95e0a595'
VITE_APP_PORT = 5173
# 接口加密功能开关(如需关闭 后端也必须对应关闭)
VITE_APP_ENCRYPT = true
@@ -58,5 +41,4 @@ VITE_APP_CLIENT_ID='e5cd7e4891bf95d1d19206ce24a7b32e'
VITE_APP_WEBSOCKET = false
# sse 开关
VITE_APP_SSE=true
VITE_APP_SSE = false

View File

@@ -15,29 +15,13 @@ VITE_APP_MONITOR_ADMIN='/admin/applications'
VITE_APP_SNAILJOB_ADMIN = '/snail-job'
# 生产环境
# VITE_APP_BASE_API = 'https://wuyeapi.bugtc.com'
VITE_APP_BASE_API='https://wuyeapi.ckdzkj.com'
#VITE_APP_BASE_API='http://192.168.1.198'
# 登录成功跳转地址
# VITE_LOGIN_BACK_URL = '/equipment/WaterDevice'
VITE_LOGIN_BACK_URL='/index'
# 工作台正式内容:false 假内容true
VITE_LOGIN_BACK_URL_WORKBENCH_TRUE=false
# 是否展示工作台
VITE_APP_SHOW_WORK_PLATFORM=true
VITE_APP_BASE_API = 'https://wuyeapi.bugtc.com'
# VITE_APP_BASE_API = 'http://192.168.0.222:8080'
# 地图类型 天地图 WGS84 高德地图 GCJ02, 高德地图 需要在高德地图官网申请key
VITE_APP_MAP_TYPE='GCJ02'
# 高德地图key 建议放入环境变量中,避免泄露
VITE_GCJ02_KEY_GD='8e302fe1be5f4db62bc734db23dca149'
VITE_GCJ02_JS_CODE_GD='09534b3534d8da53968529a9ce164118'
# 天地图key 建议放入环境变量中,避免泄露
VITE_TIANDITU_KEY='f71689f9e22158947ebf64ad95e0a595'
# 是否在打包时开启压缩,支持 gzip 和 brotli
# VITE_BUILD_COMPRESS = gzip
VITE_BUILD_COMPRESS = gzip
VITE_APP_PORT = 80
@@ -55,4 +39,4 @@ VITE_APP_CLIENT_ID='e5cd7e4891bf95d1d19206ce24a7b32e'
VITE_APP_WEBSOCKET = false
# sse 开关
VITE_APP_SSE=true
VITE_APP_SSE = false

21
.gitignore vendored
View File

@@ -2,23 +2,6 @@
.history
node_modules/
dist/
.env
.git
.idea
.vscode
.gitignore
.npmrc
.yarn
.yarnrc
.pnp.js
.pnp.lock.json
.pnp
.yarn.lock
.bat
dist.zip
.zip
npm-debug.log*
yarn-debug.log*
yarn-error.log*
@@ -29,6 +12,8 @@ tests/e2e/reports
selenium-debug.log
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
@@ -42,5 +27,3 @@ pnpm-lock.yaml
# 编译生成的文件
auto-imports.d.ts
components.d.ts

12
bin/build.bat Normal file
View File

@@ -0,0 +1,12 @@
@echo off
echo.
echo [信息] 打包Web工程生成dist文件。
echo.
%~d0
cd %~dp0
cd ..
yarn build:prod
pause

12
bin/package.bat Normal file
View File

@@ -0,0 +1,12 @@
@echo off
echo.
echo [信息] 安装Web工程生成node_modules文件。
echo.
%~d0
cd %~dp0
cd ..
yarn --registry=https://registry.npmmirror.com
pause

12
bin/run-web.bat Normal file
View File

@@ -0,0 +1,12 @@
@echo off
echo.
echo [信息] 使用 Vite 命令运行 Web 工程。
echo.
%~d0
cd %~dp0
cd ..
yarn dev
pause

View File

@@ -30,18 +30,16 @@
"@vueuse/core": "14.2.1",
"animate.css": "4.1.1",
"await-to-js": "3.0.0",
"axios": "1.15.2",
"big.js": "^7.0.1",
"axios": "1.13.6",
"crypto-js": "4.2.0",
"echarts": "6.0.0",
"element-china-area-data": "^6.1.0",
"element-plus": "2.13.5",
"file-saver": "^2.0.5",
"file-saver": "2.0.5",
"highlight.js": "11.11.1",
"image-conversion": "2.1.1",
"js-cookie": "3.0.5",
"jsencrypt": "3.5.4",
"jszip": "^3.10.1",
"nprogress": "0.2.0",
"pinia": "3.0.4",
"pinia-plugin-persistedstate": "^4.7.1",
@@ -52,20 +50,16 @@
"vue-json-pretty": "2.6.0",
"vue-router": "5.0.3",
"vue-types": "6.0.0",
"vue3-print-nb": "^0.1.4",
"vuedraggable": "^4.1.0",
"vxe-table": "4.18.1",
"xlsx-js-style": "^1.2.0"
"vxe-table": "4.18.1"
},
"devDependencies": {
"@iconify/json": "^2.2.448",
"@types/big.js": "^7.0.0",
"@types/crypto-js": "4.2.2",
"@types/file-saver": "^2.0.7",
"@types/file-saver": "2.0.7",
"@types/js-cookie": "3.0.6",
"@types/node": "^25.4.0",
"@types/nprogress": "0.2.3",
"@types/xlsx": "^0.0.35",
"@unocss/preset-attributify": "66.6.6",
"@unocss/preset-icons": "66.6.6",
"@unocss/preset-uno": "66.6.6",
@@ -88,10 +82,9 @@
"unplugin-icons": "23.0.1",
"unplugin-vue-components": "31.0.0",
"unplugin-vue-setup-extend-plus": "1.0.1",
"vite": "8.0.5",
"vite": "7.3.1",
"vite-plugin-svg-icons-ng": "^1.5.2",
"vite-plugin-vue-devtools": "8.0.7",
"vite-plugin-zip-pack": "^1.2.4",
"vitest": "4.0.18",
"vue-tsc": "^3.2.5"
},

View File

@@ -1,6 +1,6 @@
export default {
plugins: {
// autoprefixer: {},
autoprefixer: {},
'postcss-pxtorem': {
rootValue: 16, // 基准根节点字体大小
propList: ['*'], // 所有属性都转换

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

View File

@@ -8,6 +8,7 @@
import { useSettingsStore } from '@/store/modules/settings';
import { handleThemeStyle } from '@/utils/theme';
import { useAppStore } from '@/store/modules/app';
import { useDictStore } from './store/modules/dict';
const appStore = useAppStore();
onMounted(() => {

View File

@@ -80,7 +80,7 @@ export function getCodeImg(): AxiosPromise<VerifyCodeResult> {
/**
* 第三方登录
*/
export function callback(data: LoginData) {
export function callback(data: LoginData): AxiosPromise<any> {
const LoginData = {
...data,
clientId: clientId,

View File

@@ -1,26 +1,38 @@
export interface ActivityVO {
'id': string;
'villageId': string;
'title': string;
'author': string;
'content': string;
'status': string;
'pageViews': number;
'createName': string;
'coverImage': string;
'startTime': string;
'endTime': string;
'applyDeadline': string;
'signinStartTime': string;
'signinEndTime': string;
'address': string;
'quota': number;
'appliedCount': number;
'organizer': string;
'contactName': string;
'contactPhone': string;
'pointsReward': number;
'requirements': string;
/**
* 活动管理表id
*/
id: string | number;
/**
* 标题
*/
title: string;
/**
* 作者
*/
author: string;
/**
* 内容
*/
content: string;
/**
* 发布状态 0未发布 1已发布
*/
status: string;
/**
* 浏览量
*/
pageViews: number;
/**
* 创建者姓名
*/
createName: string;
}
export interface ActivityForm extends BaseEntity {

View File

@@ -61,19 +61,3 @@ export const delBanner = (id: string | number | Array<string | number>) => {
method: 'delete'
});
};
/**
* 改变Banner图管理 状态
* @param id
* @param status
*/
export const switchBanner = (id: string, status: string) => {
return request({
url: '/banner/changeStatus',
method: 'GET',
params: {
id,
status
}
});
};

View File

@@ -17,9 +17,9 @@ export interface BannerVO {
/**
* 排序
*/
order: number;
url: string;
byOrder: number;
link: string;
jump_link: string;
/**
* 小区id
*/
@@ -45,8 +45,12 @@ export interface BannerForm extends BaseEntity {
/**
* 排序
*/
byOrder?: number;
link: string;
order?: number;
/**
* 小区id
*/
villageId?: string;
}
export interface BannerQuery extends PageQuery {
@@ -63,8 +67,8 @@ export interface BannerQuery extends PageQuery {
/**
* 排序
*/
byOrder: number;
link: string;
order?: number;
/**
* 小区id
*/

View File

@@ -1,6 +1,6 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { ChargeTypeVO, ChargeTypeForm, ChargeTypeQuery, ChargeTypeRelationQuery } from './type';
import { ChargeTypeVO, ChargeTypeForm, ChargeTypeQuery } from './type';
/**
* 查询收费类型列表
@@ -61,37 +61,3 @@ export const delChargeType = (id: string | number | Array<string | number>) => {
method: 'delete'
});
};
/**
* 查询收费类型关联列表
* @param query
*/
export const getChargeTypeRelation = (query?: ChargeTypeRelationQuery) => {
return request({
url: '/chargeType/relation/list',
method: 'get'
});
};
/**
* 新增收费类型关联
* @param data
*/
export const addChargeTypeRelation = (data: ChargeTypeRelationQuery) => {
return request({
url: '/chargeType/relation',
method: 'POST',
data: data
});
};
/**
* 新增收费类型关联
* @param data
*/
export const editChargeTypeRelation = (data: ChargeTypeRelationQuery) => {
return request({
url: '/chargeType/relation',
method: 'PUT',
data: data
});
};

View File

@@ -2,7 +2,7 @@ export interface ChargeTypeVO {
/**
* 收费类型表id
*/
id: string;
id: string | number;
/**
* 收费类型名称
@@ -64,20 +64,3 @@ export interface ChargeType2Query extends PageQuery {
*/
params?: any;
}
export interface ChargeTypeRelationQuery {
/**
* 主收费类型表id
*/
masterTypeId?: string;
/**
* 子收费类型表id
*/
slaveTypeIds?: string;
id?: string;
// 状态 0启用 1停用
status?: string;
}

View File

@@ -2,7 +2,7 @@ export interface ComplaintTypeVO {
/**
* 投诉类型管理表id
*/
id: string;
id: string | number;
/**
* 投诉类型名称
@@ -13,21 +13,43 @@ export interface ComplaintTypeVO {
* 状态 0 启用 1停用
*/
status: string;
/**
* 创建人名称
*/
createNam: string;
/**
* 创建时间
*/
creaateTime: string;
}
export interface ComplaintTypeForm extends BaseEntity {
/**
* 投诉类型管理表id
*/
id?: string;
/**
* 状态 0 启用 1停用
*/
status?: string;
id?: string | number;
/**
* 投诉类型名称
*/
name?: string;
/**
* 状态 0 启用 1停用
*/
status?: string;
/**
* 创建人名称
*/
createNam?: string;
/**
* 创建时间
*/
creaateTime?: string;
}
export interface ComplaintTypeQuery extends PageQuery {
@@ -40,4 +62,19 @@ export interface ComplaintTypeQuery extends PageQuery {
* 状态 0 启用 1停用
*/
status?: string;
/**
* 创建人名称
*/
createNam?: string;
/**
* 创建时间
*/
creaateTime?: string;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -20,7 +20,7 @@ export const listComplaint = (query?: ComplaintQuery): AxiosPromise<ComplaintVO[
* 查询投诉管理详细
* @param id
*/
export const getComplaint = (id: string): AxiosPromise<ComplaintVO> => {
export const getComplaint = (id: string | number): AxiosPromise<ComplaintVO> => {
return request({
url: '/complaint/' + id,
method: 'get'

View File

@@ -30,7 +30,7 @@ export interface ComplaintVO {
problemIamgeUrl: string;
/**
* 投诉状态 0 待处理 1 已处理
* 投诉状态 0待处理 1处理中 2已处理
*/
status: string;
@@ -48,8 +48,6 @@ export interface ComplaintVO {
* 处理描述
*/
handleContent: string;
problemImageUrl: string;
}
export interface ComplaintForm extends BaseEntity {
@@ -81,7 +79,7 @@ export interface ComplaintForm extends BaseEntity {
/**
* 问题照片url
*/
problemImageUrl?: string;
problemIamgeUrl?: string;
/**
* 投诉状态 0待处理 1处理中 2已处理
@@ -128,7 +126,7 @@ export interface ComplaintQuery extends PageQuery {
/**
* 问题照片url
*/
problemImageUrl?: string;
problemIamgeUrl?: string;
/**
* 投诉状态 0待处理 1处理中 2已处理

View File

@@ -13,8 +13,7 @@ export interface DecorationVO {
* 所属房屋id
*/
houseId: string | number;
buildingId: string;
unitNoId: string;
/**
* 申请人姓名
*/
@@ -61,12 +60,12 @@ export interface DecorationForm extends BaseEntity {
* 所属小区id
*/
villageId?: string;
villageName?: string;
/**
* 所属房屋id
*/
houseId?: string | number;
houseName?: string;
/**
* 申请人姓名
*/

View File

@@ -61,10 +61,3 @@ export const delHandleLog = (id: string | number | Array<string | number>) => {
method: 'delete'
});
};
export const uploadAttachments = (files: FormData) => {
return request({
url: '/handleLog/uploadAttachments',
method: 'post',
data: files
});
};

View File

@@ -28,28 +28,6 @@ export interface HandleLogVO {
* 办事地点
*/
handlePosition: string;
handleLogFileList: FileVO[];
}
export interface FileVO {
/**
* 文件id
*/
id: string | number;
/**
* 文件名
*/
fileName: string;
/**
* 文件路径
*/
filePath: string;
'handleLogId': string;
'ossId': string;
}
export interface HandleLogForm extends BaseEntity {

View File

@@ -80,49 +80,3 @@ export const list_statapi = (query?: { taskTimeBegin: string; taskTimeEnd: strin
params: query
});
};
export type exportPageApiQuery = {
/**
* 数据类型1-日报 / 2-周报 / 3-月报
*/
dataType?: string;
/**
* 页码
*/
pageNum: number;
/**
* 每页条数
*/
pageSize: number;
/**
* 查询开始日期
*/
queryDateBegin?: string;
/**
* 查询结束日期
*/
queryDateEnd?: string;
/**
* 日期
*/
statDate?: string;
};
type exportAllApiQuery = Omit<exportPageApiQuery, 'pageSize' | 'pageNum'>;
/** 导出当前页 数据api */
export const exportPageApi = (data: exportPageApiQuery): AxiosPromise<any[]> => {
return request({
url: '/inspection/data/export/page',
method: 'POST',
data
});
};
/** 导出 所有 数据api */
export const exportAllApi = (data: exportAllApiQuery): AxiosPromise<any[]> => {
return request({
url: '/inspection/data/export',
method: 'POST',
data
});
};

View File

@@ -8,7 +8,7 @@ import { PlanVO, PlanForm, PlanQuery } from '@/api/system/InspectionPlan/type';
* @returns {*}
*/
export const listPlan = (query: PlanQuery | {} = {}): AxiosPromise<PlanVO[]> => {
export const listPlan = (query?: PlanQuery): AxiosPromise<PlanVO[]> => {
return request({
url: '/inspection/plan/list',
method: 'get',
@@ -61,15 +61,3 @@ export const delPlan = (id: string | number | Array<string | number>) => {
method: 'delete'
});
};
/**
* 改变巡检计划状态
* @param id
* @param status
*/
export const changePlanStatus = (id: string, status: string) => {
return request({
url: '/inspection/plan/changeStatus',
method: 'put',
params: { id, status }
});
};

View File

@@ -3,12 +3,17 @@ export interface PlanVO {
* 主键ID
*/
id: string | number;
inspectorIds: string;
/**
* 巡检计划名称
*/
planName: string;
/**
* 巡检人员ID多个用逗号分隔
*/
inspectorIds: string;
/**
* 执行周期,如:开始日期-结束日期
*/
@@ -27,12 +32,7 @@ export interface PlanVO {
/**
* 巡检设置0-必须拍照1-可以跳检
*/
inspectSetting: number;
inspectSettingDict: {
dictLabel: string;
dictValue: string;
listClass: string;
};
inspectSetting: string;
/**
* 计划路线,多个用逗号分隔
@@ -53,11 +53,7 @@ export interface PlanVO {
* 执行周期具体日期
*/
executeDay: string;
executeDayList: {
dictLabel: string;
dictValue: string;
listClass: string;
}[];
/** 巡检人员信息 */
inspectorList: {
'userId': string;
@@ -110,7 +106,7 @@ export interface PlanForm extends BaseEntity {
/**
* 巡检设置0-必须拍照1-可以跳检
*/
inspectSetting?: number;
inspectSetting?: string;
/**
* 计划路线,多个用逗号分隔

View File

@@ -8,7 +8,7 @@ import { PointVO, PointForm, PointQuery } from '@/api/system/InspectionPoint/typ
* @returns {*}
*/
export const listPoint = (query?: PointQuery | {}): AxiosPromise<PointVO[]> => {
export const listPoint = (query?: PointQuery): AxiosPromise<PointVO[]> => {
return request({
url: '/inspection/point/list',
method: 'get',
@@ -61,14 +61,3 @@ export const delPoint = (id: string | number | Array<string | number>) => {
method: 'delete'
});
};
/**
* 修改巡检点状态
* @param id
* @param status
*/
export const changePointStatus = (id: string, status: string) => {
return request({
url: '/inspection/point/changeStatus?id=' + id + '&status=' + status,
method: 'PUT'
});
};

View File

@@ -2,7 +2,7 @@ export interface PointVO {
/**
* 主键ID
*/
id: string;
id: string | number;
/**
* 巡检点名称
@@ -17,7 +17,7 @@ export interface PointVO {
/**
* 所属路线ID
*/
routeId: string;
routeId: string | number;
/**
* 巡检点位置(经纬度),格式:经度,纬度

View File

@@ -19,15 +19,11 @@ export const listRecord = (query?: RecordQuery): AxiosPromise<RecordVO[]> => {
/**
* 查询巡检记录主详细
* @param id
* @param date
*/
export const getRecord = (id: string, date?: string): AxiosPromise<RecordVO> => {
export const getRecord = (id: string | number): AxiosPromise<RecordVO> => {
return request({
url: '/inspection/record/' + id,
method: 'get',
params: {
date
}
method: 'get'
});
};

View File

@@ -1,18 +1,18 @@
export interface RecordVO {
actualEndTime?: string;
actualStartTime?: string;
createByName?: string;
actualEndTime?: null;
actualStartTime?: null;
createByName?: null;
createTime?: string;
details?: DetailsVo[];
details?: null;
id?: string;
inspectorId?: number;
inspectorName?: string;
planId?: string;
planName?: string;
remark?: string;
remark?: null;
routeId?: string;
routeName?: string;
status?: string;
status?: number;
statusLabel?: null;
taskName?: string;
taskTime?: string;
@@ -82,19 +82,3 @@ export interface RecordQuery extends PageQuery {
*/
taskName?: string;
}
export interface DetailsVo {
'id': string;
'taskId': string;
'pointId': string;
'pointName': string;
'location': string;
'checkTime': string;
'checkResult': string;
'photos': string;
'sortNo': string;
'remark': string;
'imgUrl': string;
'status': string;
photoslist?: string[];
}

View File

@@ -8,7 +8,7 @@ import { RouteVO, RouteForm, RouteQuery } from './type';
* @returns {*}
*/
export const listRoute = (query: RouteQuery | {} = {}): AxiosPromise<RouteVO[]> => {
export const listRoute = (query?: RouteQuery): AxiosPromise<RouteVO[]> => {
return request({
url: '/inspection/route/list',
method: 'get',
@@ -20,7 +20,7 @@ export const listRoute = (query: RouteQuery | {} = {}): AxiosPromise<RouteVO[]>
* 查询巡检路线详细
* @param id
*/
export const getRoute = (id: string): AxiosPromise<RouteVO> => {
export const getRoute = (id: string | number): AxiosPromise<RouteVO> => {
return request({
url: '/inspection/route/' + id,
method: 'get'
@@ -61,11 +61,3 @@ export const delRoute = (id: string | number | Array<string | number>) => {
method: 'delete'
});
};
export const changeStatusRoute = (id: string, status: string) => {
return request({
url: '/inspection/route/changeStatus',
method: 'put',
params: { id, status }
});
};

View File

@@ -4,7 +4,7 @@ export interface RouteVO {
/**
* 主键ID
*/
id: string;
id: string | number;
/**
* 巡检路线名称
@@ -26,8 +26,6 @@ export interface RouteVO {
*/
estimatedTime: number;
items: { itemName: string }[];
PointsName: string;
/**
* 备注
*/
@@ -70,7 +68,7 @@ export interface RouteForm extends BaseEntity {
/**
* 主键ID
*/
id?: string;
id?: string | number;
/**
* 巡检路线名称

View File

@@ -22,12 +22,12 @@ export interface NoticeVO {
/**
* 紧急程度 0=普通 1=紧急 2=非常紧急
*/
urgencyLevel: number;
urgencyLevel: string;
/**
* 发布状态 0=草稿 1=已发布
*/
publishStatus: number;
publishStatus: string;
/**
* 发布人
@@ -64,12 +64,12 @@ export interface NoticeForm extends BaseEntity {
/**
* 紧急程度 0=普通 1=紧急 2=非常紧急
*/
urgencyLevel?: number;
urgencyLevel?: string;
/**
* 发布状态 0=草稿 1=已发布
*/
publishStatus?: number;
publishStatus?: string;
/**
* 发布人
@@ -101,12 +101,12 @@ export interface NoticeQuery extends PageQuery {
/**
* 紧急程度 0=普通 1=紧急 2=非常紧急
*/
urgencyLevel?: number;
urgencyLevel?: string;
/**
* 发布状态 0=草稿 1=已发布
*/
publishStatus?: number;
publishStatus?: string;
/**
* 发布人

View File

@@ -1,40 +0,0 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
export interface NotificationVo {
'id': 'string';
'title': 'string';
'item': 'string';
'content': 'string';
'manageIsCheck': 'string';
'repairIsCheck': 'string';
}
/**
* 查询消息通知列表
* @param query
* @returns {*}
*/
export const getNotificationList = (query): AxiosPromise<NotificationVo[]> => {
return request({
url: '/notification/list',
method: 'get',
params: query
});
};
/**
* 消息通知 已读
* @returns {*}
* @param ids
*/
export const ReadNotificationByID = (ids: string[]) => {
return request({
url: '/notification/read',
method: 'POST',
data: {
id: ids
}
});
};

View File

@@ -61,61 +61,3 @@ export const delParkingCost = (id: string | number | Array<string | number>) =>
method: 'delete'
});
};
export type Request = {
/**
* 区域id
*/
areaId?: string;
/**
* 0 审核中 1 审核通过 2 审核不通过
*/
checkStatus?: string;
/**
* 添加者姓名sys_user nickname
*/
createName?: string;
/**
* id车位管理表
*/
id?: string;
/**
* 车位面积(单位㎡)
*/
parkingArea?: number;
/**
* 车位编号
*/
parkingCode?: string;
/**
* 车位楼层
*/
parkingFloor?: string;
/**
* 车位状态 0 闲置 1自用 2出租
*/
parkingStatus?: string;
/**
* 备注
*/
remark?: string;
/**
* 住户id
*/
residentId?: string;
/**
* 所属小区id
*/
villageId?: string;
};
/**
* 查询停车缴费 车位列表
* @param {Request} queryParams
*/
export const getParkingCostCarAreaApi = (queryParams: Request) => {
return request({
url: '/parkingCost/parkingList',
method: 'get',
params: queryParams
});
};

View File

@@ -12,7 +12,7 @@ export interface ParkingCostVO {
/**
* 车位id
*/
parkingId: string;
parkingId: string | number;
/**
* 收费项目 0临时停车
@@ -79,7 +79,7 @@ export interface ParkingCostForm extends BaseEntity {
/**
* 车位id
*/
parkingId?: string;
parkingId?: string | number;
/**
* 收费项目 0临时停车
@@ -141,7 +141,7 @@ export interface ParkingCostQuery extends PageQuery {
/**
* 车位id
*/
parkingId?: string;
parkingId?: string | number;
/**
* 收费项目 0临时停车

View File

@@ -1,159 +0,0 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
/**
* 获取缴费方式,种类占比
* @param query
* @returns {*}
*/
export type IncomeStatsResponse = {
'totalDue': string;
'totalPaid': string;
'totalUnpaid': string;
'paidPercentage': string;
'payWx': number;
'payZfb': number;
'payOffline': number;
'totalPay': number;
'feeTypeStats': feeTypeStats[];
'dailyStats': {
'statDate': string;
'totalDue': string;
'totalPaid': string;
'totalUnpaid': string;
}[];
};
export type feeTypeStats = {
'feeType': number;
'feeName': string;
'totalDue': string;
'totalPaid': string;
'totalUnpaid': string;
'paidPercentage': string;
};
export const income_statsApi = (datetime?: string): AxiosPromise<IncomeStatsResponse> => {
return request({
url: '/api/analysis/income/stats',
method: 'get',
params: {
startDate: datetime
}
});
};
export interface sourceType {
'totalPayable': string;
'totalReceived': string;
'totalPending': string;
'parkingFee': string;
'parkingFeePercent': string;
'propertyFee': string;
'propertyFeePercent': string;
'utilityFee': string;
'utilityFeePercent': string;
'shopRent': string;
'shopRentPercent': string;
'repairFee': string;
'repairFeePercent': string;
'garbageFee': string;
'garbageFeePercent': string;
}
// 收入来源
export const income_scourcApi = (datetime?: string): AxiosPromise<sourceType> => {
return request({
url: '/api/analysis/income/source',
method: 'get',
params: {
date: datetime
}
});
};
export interface PayMentMethod {
'wechatAmount': string;
'wechatPercent': string;
'alipayAmount': string;
'alipayPercent': string;
'yidangAmount': string;
'yidangPercent': string;
'cashAmount': string;
'cashPercent': string;
'unionPayAmount': string;
'unionPayPercent': string;
'transferAmount': string;
'transferPercent': string;
'depositOffsetAmount': string;
'depositOffsetAmountPercent': string;
'propertyOffsetAmount': string;
'propertyOffsetAmountPercent': string;
}
// 缴费方式
export const payment_methodApi = (datetime?: string): AxiosPromise<PayMentMethod> => {
return request({
url: '/api/analysis/income/payment_method',
method: 'get',
params: {
date: datetime
}
});
};
export interface Arrears_distrubution {
month: number;
amount: string;
}
// 欠费分布
export const arrears_distributionApi = (
datetime?: string
): AxiosPromise<{
items: Arrears_distrubution[];
}> => {
return request({
url: '/api/analysis/income/arrears_distribution',
method: 'get',
params: {
date: datetime
}
});
};
export interface payment_sourceType {
'miniProgramAmount': string;
'miniProgramPercent': string;
'mobileAppAmount': string;
'mobileAppPercent': string;
'offlineAmount': string;
'offlinePercent': string;
}
// 缴费来源分析
export const payment_sourceApi = (datetime?: string): AxiosPromise<payment_sourceType> => {
return request({
url: '/api/analysis/income/payment_source',
method: 'get',
params: {
date: datetime
}
});
};
export interface payment_trendType {
'date': string;
'paidAmount': string;
'unpaidAmount': string;
}
// 缴费走势分析
export const payment_trendApi = (
startDate?: string,
endDate?: string
): AxiosPromise<{
items: payment_trendType[];
}> => {
return request({
url: '/api/analysis/income/payment_trend',
method: 'get',
params: {
startDate,
endDate
}
});
};

View File

@@ -1,111 +0,0 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
/**
* 查询入住情况
* @param query
* @returns {*}
*/
export const user_movein_list = (query?: {
dateTime: string;
}): AxiosPromise<{
'villageId': string;
'villageName': string;
'totalHouse': number;
'occupiedHouse': number;
'occupancyRate': string;
'occupancyCount': number;
}> => {
return request({
url: '/api/analysis/occupancy/stats',
method: 'get',
params: query
});
};
/**
* 查询居住人类型列表
* @param query
* @returns {*}
*/
export const get_movein_user_type = (query?: {
dateTime: string;
}): Promise<{
'owner': string;
'ownerRate': string;
'tenant': string;
'tenantRate': string;
'relatives': string;
'relativeRate': string;
'otherType': string;
'otherRate': string;
'totalResident': string;
}> => {
return request({
url: '/residentType/selectTotal',
method: 'get',
params: query
});
};
/**
* 查询住户性别比例
* @param query
* @returns {*}
*/
export const get_movein_user_sex = (query?: {
dateTime: string;
}): Promise<{
'man': number;
'woman': number;
'total': number;
'manRate': string;
'womanRate': string;
}> => {
return request({
url: '/gender/overview',
method: 'get',
params: query
});
};
/**
* 获取迁入迁出趋势图
* @param query
* @returns {*}
*/
export const get_movein_moveout_list = (query?: {
date: string;
}): AxiosPromise<
{
'date': string;
'moveInCount': number;
'moveOutCount': number;
'totalCount': number;
}[]
> => {
return request({
url: '/api/analysis/resident/moveInOutStats',
method: 'get',
params: query
});
};
export const get_person_age = (query?: {
dateTime: string;
}): AxiosPromise<
{
'date': string;
'moveInCount': number;
'moveOutCount': number;
'totalCount': number;
}[]
> => {
return request({
url: '/gender/personAge',
method: 'get',
params: query
});
};

View File

@@ -53,47 +53,11 @@ export const updateQuestionnaire = (data: QuestionnaireForm) => {
/**
* 删除问卷调查
* @param ids
* @param vailid
* @param ids
* @param vailid
* @param id
*/
export const delQuestionnaire = (ids: string | string[], vailid: boolean = true) => {
export const delQuestionnaire = (id: string | number | Array<string | number>) => {
return request({
url: '/questionnaire/' + ids + '?isValid=' + vailid,
method: 'delete',
headers: {
silentError: 'true'
}
});
};
/**
* 查询问卷调查回答列表
*/
export const getQuestionnaireAnswer = (
{
pageSize,
pageNum,
questionnaireId
}
) => {
return request({
url: '/questionnaireAnswer/list',
method: 'GET',
params: {
pageSize,
pageNum,
questionnaireId,
answerStatus: '1'
}
});
};
/**
* 查询问卷调查回答详情
*/
export const getQuestionnaireAnswerMain = (id: string) => {
return request({
url: '/questionnaireAnswer/' + id,
method: 'GET'
url: '/questionnaire/' + id,
method: 'delete'
});
};

View File

@@ -37,9 +37,7 @@ export interface QuestionnaireVO {
/**
* 部分业主串 ”,“号隔开
*/
residents: string;
startTime: string;
endTime: string;
residents: string | number;
/**
* 备注
@@ -51,7 +49,7 @@ export interface QuestionnaireForm extends BaseEntity {
/**
* 问卷ID
*/
id?: string;
id?: string | number;
/**
* 所属小区id
@@ -71,7 +69,7 @@ export interface QuestionnaireForm extends BaseEntity {
/**
* 问卷题目结构JSON数组
*/
content?: string | QuestionComponentItem[];
content?: string;
/**
* 状态0-草稿 1-已发布 2-已结束
@@ -154,13 +152,12 @@ export interface QuestionComponentItem {
type: string;
title: string;
required: boolean;
options: QuestionComponentOption[];
}
export interface QuestionComponentnaireForm {
id?: string;
id?: string | number | null;
title: string;
description?: string;
description: string;
content: QuestionComponentItem[];
}

View File

@@ -1,32 +1,65 @@
export interface RepairVO {
'id': string;
'houseId': string;
'maintenanceItemId': number;
'maintenanceItemName': number;
'problem': string;
'residentId': string;
'residentName': string;
'phone': string;
'orderDate': string;
'problemImageUrl': string;
'problemStatus': string;
'repairDes': string;
'repairImageUrl': string;
'repairId': string;
'repairName': string;
'houseName': string;
'item': string;
'projectType': number;
'updateTime': string;
'projectTypeStr': string;
'repairIsCheck': string;
'manageIsCheck': string;
'isCheckStr': number;
'repairPhone': number;
'repairRoleName': number;
'repairStatus': string;
repairUserId: string;
'createTime': string;
/**
* 报修管理表id
*/
id: string | number;
/**
* 关联房屋id
*/
houseId: string | number;
/**
* 维修项目id
*/
maintenanceItemId: string | number;
/**
* 问题描述
*/
problem: string;
/**
* 报修人id(住户表id)
*/
residentId: string | number;
/**
* 手机号码
*/
phone: number;
/**
* 预约日期
*/
orderDate: string;
/**
* 问题图片地址
*/
problemImageUrl: string;
/**
* 0 已提交 1已分配 2维修中 3维修完成
*/
problemStatus: string;
/**
* 维修描述
*/
repairDes: string;
/**
* 维修图片url
*/
repairImageUrl: string;
/**
* 维修人员id
*/
repairId: string | number;
/** 名称(小区名-楼栋名-单元号-房间号) */
name?: string;
}
export interface RepairForm extends BaseEntity {
@@ -53,12 +86,12 @@ export interface RepairForm extends BaseEntity {
/**
* 报修人id(住户表id)
*/
residentId?: string;
residentId?: string | number;
/**
* 手机号码
*/
phone?: string;
phone?: number;
/**
* 预约日期
@@ -130,12 +163,12 @@ export interface RepairQuery extends PageQuery {
/**
* 报修人id(住户表id)
*/
residentId?: string;
residentId?: string | number;
/**
* 手机号码
*/
phone?: string;
phone?: number;
/**
* 预约日期

View File

@@ -2,7 +2,7 @@ export interface RepairProjectVO {
/**
* 维修项目表id
*/
id: string;
id: string | number;
/**
* 维修项目名
@@ -12,7 +12,7 @@ export interface RepairProjectVO {
/**
* 父级项目id
*/
parentId: string;
parentId: string | number;
/**
* 项目类型 0公共报修 1个人报修
@@ -23,7 +23,7 @@ export interface RepairProjectVO {
* 项目层级 01
*/
projectLevel: number;
children?: RepairProjectVO[];
/**
* 排序 (数越小越靠前)
*/
@@ -33,16 +33,13 @@ export interface RepairProjectVO {
* 状态 0启用 1停用
*/
status: string;
disabled?: boolean;
// children?: RepairProjectVO[];
}
export interface RepairProjectForm extends BaseEntity {
/**
* 维修项目表id
*/
id?: string;
id?: string | number;
/**
* 维修项目名
@@ -52,7 +49,7 @@ export interface RepairProjectForm extends BaseEntity {
/**
* 父级项目id
*/
parentId?: string;
parentId?: string | number;
/**
* 项目类型 0公共报修 1个人报修
@@ -73,6 +70,26 @@ export interface RepairProjectForm extends BaseEntity {
* 状态 0启用 1停用
*/
status?: string;
/**
* 创建时间
*/
cretaeTime?: string;
/**
* 创建者
*/
createBy?: number;
/**
* 更新时间
*/
updateTime?: string;
/**
* 更新者
*/
updateBy?: number;
}
export interface RepairProjectQuery extends PageQuery {
@@ -84,7 +101,7 @@ export interface RepairProjectQuery extends PageQuery {
/**
* 父级项目id
*/
parentId?: string;
parentId?: string | number;
/**
* 项目类型 0公共报修 1个人报修
@@ -105,4 +122,9 @@ export interface RepairProjectQuery extends PageQuery {
* 状态 0启用 1停用
*/
status?: string;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -62,10 +62,9 @@ export const delBill = (id: string | number | Array<string | number>) => {
});
};
// ! =---------------=================================== 组件
export interface BillHouse {
'buildingName': string;
'houseId': string;
'houseId': number;
'unitNo': number;
'houseNo': string;
'floorNo': number;
@@ -83,50 +82,3 @@ export const listBillHouse = (query: { pageNum: number; pageSize: number }): Axi
params: query
});
};
// ! =---------------
export type BillUserlist = {
'gender': string;
'phone': string;
'house_name': string;
'residentName': string;
'houseNo': string;
'residentId': string;
'buildingId': string;
'parkingId': string;
};
/**
* 查询业主列表
* @param query
* @param query
*/
export const queryResidentList_holder = (query: { pageNum: number; pageSize: number }): AxiosPromise<BillUserlist[]> => {
return request({
url: '/bill/getResidentList',
method: 'GET',
params: query
});
};
/**
* 查询车位业主列表
* @param query
* @param query
*/
export const queryResidentList_Cars = (query: { pageNum: number; pageSize: number }): AxiosPromise<BillUserlist[]> => {
return request({
url: '/bill/getParkingList',
method: 'GET',
params: query
});
};
/**
* 生成账单
*/
export const manualGenerateApi = (data: { billId: string; chargePeriod: string; yearMonths?: string[]; year?: string[] }) => {
return request({
url: '/bill/manualGenerate',
method: 'POST',
data
});
};

View File

@@ -3,7 +3,6 @@ export interface BillVO {
* 账单管理表id
*/
id: string;
billName: string;
/**
* 账单编号
@@ -14,19 +13,14 @@ export interface BillVO {
* 收费项目id
*/
chargeItemId: string;
residentIds: string[];
/**
* 收费范围 0全体业主 1部分业主
*/
chargeScope: string;
/**
* 按季度收费时,指定季度起始年月列表,格式 "yyyy-MM",如 ["2026-01", "2026-04", "2026-07"]
*/
periodCalcType: string;
/**
* 收费周期 0年 1月 2日 3 季度 4永久为空时取账单配置
* 收费周期 0年 1月 2日
*/
chargePeriod: string;
@@ -54,8 +48,6 @@ export interface BillVO {
* 创建时间
*/
cerateTime: string;
parkingIds: string[];
}
export interface BillForm extends BaseEntity {
@@ -111,7 +103,7 @@ export interface BillForm extends BaseEntity {
/**
* 创建时间
*/
createTime?: string;
cerateTime?: string;
}
export interface BillQuery extends PageQuery {
@@ -125,8 +117,6 @@ export interface BillQuery extends PageQuery {
*/
chargeItemId?: string | number;
// type: string;
/**
* 收费范围 0全体业主 1部分业主
*/

View File

@@ -1,130 +0,0 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
export type cashlist = {
'residentId': string;
'residentName': string;
'houseName': string;
'phone': string;
};
/**
* 查询住户列表
* @returns {*}
* @param data
*/
export const cashQuery = (data: { residentName?: string; queryType: number }): AxiosPromise<cashlist[]> => {
return request({
url: '/cash/residentList',
method: 'post',
data: data
});
};
export type billlistType = {
needPayAmount: string; // 需要支付金额
actualAccount: string; // 实际支付金额
singleDiscountAmount: string; // 单笔优惠金额
'villageId': string;
'residentId': string;
'houseId': string;
'detailsId': string;
'houseName': string;
'parkingId': string;
'parkingName': string;
'billId': string;
'chargeTypeName': string;
'chargeItemName': string;
'billingType': string;
'formula': string;
'fixedPrice': string;
'startDate': string;
'endDate': string;
'money': string;
'payStatus': string;
'remark': string;
amount: string;
residentName: string;
};
/**
* 查询账单列表
* @returns {*}
* @param data
*/
export const billQuery = (data: { residentId?: string; payStatus: '0' | '1' }): AxiosPromise<billlistType[]> => {
return request({
url: '/cash/billList',
method: 'post',
data: data
});
};
export const billEdit = (data: { 'detailsId': string[]; 'payType': string; 'payStatus': string }): AxiosPromise<billlistType[]> => {
return request({
url: '/cash/billEdit',
method: 'post',
data: data
});
};
// 打印票据
export const billPrint = (data: { 'detailsIds': string[]; 'residentId': string }): AxiosPromise<BillPrintType> => {
return request({
url: '/cash/print',
method: 'post',
data: data
});
};
// 查询所有账单总金额
export const getAllAccount = (
data = {}
): AxiosPromise<{
/** 总金额 */
'receivableAmount': string;
/** 总实收金额 */
'receivedAmount': string;
/** 总优惠金额 */
'discountAmount': string;
/** 未收金额 */
'unpaidAmount': string;
}> => {
return request({
url: '/cash/billAmountSummary',
method: 'post',
data: data
});
};
// 删除账单
export const billDelete = (ids: string | string[]) => {
return request({
url: `/cash/bill/${ids}`,
method: 'DELETE'
});
};
export type BillPrintType = {
'totalAccount': string;
'residentName': string;
'payTypeSummary': {
'payType': string;
'payAmount': string;
}[];
'detailsList': {
'detailsId': string;
'chargeItemName': string;
'billName': string;
'detailsTime': string;
'useCount': string;
'account': string;
'payType': string;
'singleDiscountAmount': string;
'actualAccount': string;
'remark': string;
}[];
'printDate': string;
totalDiscountAmount: string;
totalActualAccount: string;
'HouseName': string;
'title': string;
};

View File

@@ -8,7 +8,7 @@ import { ChargeItemVO, ChargeItemForm, ChargeItemQuery } from './type';
* @returns {*}
*/
export const listChargeItem = (query?: ChargeItemQuery | {}): AxiosPromise<ChargeItemVO[]> => {
export const listChargeItem = (query?: ChargeItemQuery): AxiosPromise<ChargeItemVO[]> => {
return request({
url: '/chargeItem/list',
method: 'get',
@@ -64,7 +64,7 @@ export const delChargeItem = (id: string | number | Array<string | number>) => {
/**
* 启停 收费项目
* @param data
* @param id
*/
export const changChargeItem = (data: { id: string; status: string }) => {
return request({

View File

@@ -12,7 +12,6 @@ export interface ChargeItemVO {
* 收费类型
*/
typeId: string;
itemName: string;
/**
* 计费方式 0单次收费 1周期收费 2仪表收费
@@ -53,10 +52,6 @@ export interface ChargeItemVO {
* 小区id
*/
villageId: string;
/**
* 状态 0正常 1停用
*/
status: string;
}
export interface ChargeItemForm extends BaseEntity {

View File

@@ -64,11 +64,11 @@ export const delElectricityDevice = (id: string | number | Array<string | number
/**
* 生成条形码
* @param data
* @param id
*/
export const ElectricityDeviceMakerQrcode = (data: { deviceCode: string; id: string }[]) => {
return request({
url: '/electricityDevice/generateBarCode',
url: '/electricityDevice/generateBarCodee',
method: 'POST',
data: data
});
@@ -76,7 +76,7 @@ export const ElectricityDeviceMakerQrcode = (data: { deviceCode: string; id: str
/**
* 获取设备指定时间段的用电量
* @param data
* @param id
*/
export const getElectricityDeviceTimeRangeUsedWater = (data: { deviceCode: string; 'startTime': string; 'endTime': string }) => {
return request({
@@ -85,14 +85,3 @@ export const getElectricityDeviceTimeRangeUsedWater = (data: { deviceCode: strin
data
});
};
/**
* 电表解绑房屋
* @param { string } deviceCode
*/
export const ElectricityDeviceUnbind = (deviceCode: string) => {
return request({
url: `/electricityDevice/unbind/${deviceCode}`,
method: 'PUT'
});
};

View File

@@ -61,45 +61,3 @@ export const delTopupRecord = (id: string | number | Array<string | number>) =>
method: 'delete'
});
};
export type TopupRecordList = {
'id': string;
'rechargeTime': string;
'villageName': string;
'residentName': string;
'houseName': string;
'fixedPriceUnit': string;
'fixedPrice': string;
'unit': string;
'deviceCode': string;
'orderId': string;
'rechargeAmount': string;
'topUpType': string;
};
/** 查询所有设备充值记录 */
export const getTopupRecordByDate = (query: {
startTime?: string;
endTime?: string;
pageSize: number;
pageNum: number;
}): AxiosPromise<TopupRecordList[]> => {
return request({
url: '/topupRecord/water/list',
method: 'get',
params: query
});
};
/** 查询所有电表充值记录 */
export const getElectricityTopupRecordByDate = (query: {
startTime?: string;
endTime?: string;
pageSize: number;
pageNum: number;
}): AxiosPromise<TopupRecordList[]> => {
return request({
url: '/topupRecord/electricity/list',
method: 'get',
params: query
});
};

View File

@@ -64,7 +64,7 @@ export const delWaterDevice = (id: string | number | Array<string | number>) =>
/**
* 获取设备指定时间段的用水量
* @param data
* @param id
*/
export const getWaterDeviceTimeRangeUsedWater = (data: { deviceCode: string; 'startTime': string; 'endTime': string }) => {
return request({
@@ -76,7 +76,7 @@ export const getWaterDeviceTimeRangeUsedWater = (data: { deviceCode: string; 'st
/**
* 生成条形码
* @param data
* @param id
*/
export const WaterDeviceMakerQrcode = (data: { deviceCode: string; id: string }[]) => {
return request({
@@ -87,7 +87,7 @@ export const WaterDeviceMakerQrcode = (data: { deviceCode: string; id: string }[
};
/**
* 更新固件
* @param data
* @param id
*/
export const WaterDeviceUpdateBin = (data: { deviceCodes: string[]; urlA: string; urlB: string }) => {
return request({
@@ -96,25 +96,3 @@ export const WaterDeviceUpdateBin = (data: { deviceCodes: string[]; urlA: string
data: data
});
};
/**
* 获取设备最新的抄表记录
* @param deviceCodes
*/
export const latestRecord = (deviceCodes: string) => {
return request({
url: `/waterDevice/latestRecord/${deviceCodes}`,
method: 'GET'
});
};
/**
* 解绑设备绑定的房屋
* @param deviceCode
*/
export const waterDeviceUnbind = (deviceCode: string) => {
return request({
url: `/waterDevice/unbind/${deviceCode}`,
method: 'PUT'
});
};

View File

@@ -17,8 +17,8 @@ export const listStock = (query?: any): AxiosPromise<any[]> => {
/**
* 查询 库存查询 详情
* @param query
* @returns {*}
* @param id
*/
export const listStockMain = (id?: string): AxiosPromise<any[]> => {

View File

@@ -8,7 +8,7 @@ import { SupplierVO, SupplierForm, SupplierQuery } from './type';
* @returns {*}
*/
export const listSupplier = (query: SupplierQuery | {} = {}): AxiosPromise<SupplierVO[]> => {
export const listSupplier = (query?: SupplierQuery): AxiosPromise<SupplierVO[]> => {
return request({
url: '/warehouse/supplier/list',
method: 'get',

View File

@@ -2,7 +2,7 @@ export interface WarehouseVO {
/**
* 仓库ID
*/
id: string;
id: string | number;
/**
* 仓库名称*
@@ -12,7 +12,7 @@ export interface WarehouseVO {
/**
* 仓库归属id*关联com_village
*/
villageId: string;
villageId: number;
/**
* 联系人*
@@ -44,7 +44,7 @@ export interface WarehouseForm extends BaseEntity {
/**
* 仓库ID
*/
id?: string;
id?: string | number;
/**
* 仓库名称*
@@ -88,6 +88,11 @@ export interface WarehouseQuery extends PageQuery {
*/
warehouseName?: string;
/**
* 仓库归属id*关联com_village
*/
villageId?: string;
/**
* 联系人*
*/

View File

@@ -8,7 +8,7 @@ import { AreaVO, AreaForm, AreaQuery } from '@/api/system/carArea/type';
* @returns {*}
*/
export const listArea = (query: AreaQuery | {} = {}): AxiosPromise<AreaVO[]> => {
export const listArea = (query?: AreaQuery): AxiosPromise<AreaVO[]> => {
return request({
url: '/area/list',
method: 'get',

View File

@@ -64,28 +64,12 @@ export const delCar = (id: string | number | Array<string | number>) => {
/**
* 删除车辆图片
* @param format
* @param id
*/
export const uploadCar = (format: FormData) => {
export const uploadCar = (formdata: FormData) => {
return request({
url: '/car/uploadImage',
method: 'POST',
data: format
});
};
export interface AppUserList {
'user_id': string;
'user_name': string;
'user_phone': string;
}
/**
* 获取用户端app-用户
* */
export const getAppUser = (data): AxiosPromise<AppUserList[]> => {
return request({
url: '/car/getAppUserList',
method: 'GET',
params: data
data: formdata
});
};

View File

@@ -2,22 +2,22 @@ export interface CarVO {
/**
* 车辆管理表id
*/
id: string;
id: string | number;
/**
* 区域id
*/
areaId: string;
areaId: string | number;
/**
* 车位id
*/
parkingId: string;
parkingId: string | number;
/**
* 持有人id(住户表id)
*/
residentId: string;
residentId: string | number;
/**
* 车牌号

View File

@@ -4,9 +4,9 @@ export interface communitylist_rows_type {
villageCode: string;
address: string;
houseUse: number | null;
villageArea: string;
villageArea: number;
remark: string;
parkingSpaceCount: string;
parkingSpaceCount: number;
villageImageUrl: string;
city: string;
status: '0' | '1';

View File

@@ -1,6 +1,6 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { DeptForm, DeptQuery, DeptVO } from './types';
import { DeptForm, DeptQuery, DeptTreeVO, DeptVO } from './types';
// 查询部门列表
export const listDept = (query?: DeptQuery) => {

View File

@@ -12,7 +12,7 @@ export interface DeviceCategoryVO {
/**
* 状态 0正常 1停用
*/
status: number;
status: string;
/**
* 备注
@@ -34,7 +34,7 @@ export interface DeviceCategoryForm extends BaseEntity {
/**
* 状态 0正常 1停用
*/
status?: number;
status?: string;
/**
* 备注
@@ -51,7 +51,7 @@ export interface DeviceCategoryQuery extends PageQuery {
/**
* 状态 0正常 1停用
*/
status?: number;
status?: string;
/**
* 日期范围参数

View File

@@ -1,5 +1,4 @@
export interface DeviceVO {
categoryName: string;
/**
* 主键ID
*/
@@ -19,7 +18,6 @@ export interface DeviceVO {
* 设备编号
*/
deviceCode: string;
shelfLife: string;
/**
* 设备型号

View File

@@ -5,19 +5,20 @@ import { addBuildingType, addHouseType, BuildingUnit, BuildingVo } from './type'
// 楼栋---------------------------------------------------------------------------------------
/** 根据 小区id 和 类型 查询楼栋信息 */
export function getBuildinglistAPI(query = {}): AxiosPromise<BuildingVo[]> {
export function getBuildinglistAPI(buildingUse: string): AxiosPromise<BuildingVo[]> {
return request({
url: '/building/byVillage',
method: 'get',
params: query
params: {
buildingUse: buildingUse
}
});
}
/** 获取所有楼栋 */
export function getBuildinglists(query = {}): AxiosPromise<BuildingVo[]> {
export function getBuildinglists(): AxiosPromise<BuildingVo[]> {
return request({
url: '/building/list',
method: 'get',
params: query
method: 'get'
});
}
/** 获取单一楼栋 */
@@ -45,7 +46,7 @@ export function editBuildingApi(data: addBuildingType & { id: string }) {
});
}
/** 删除楼栋 */
export function deleteBuildingApi(id: string) {
export function deleteBuildingApi(id: number) {
return request({
url: `/building/${id}`,
method: 'DELETE'
@@ -54,9 +55,9 @@ export function deleteBuildingApi(id: string) {
// 房屋----------------------------------------------------------------------------------------------
/** 根据 楼栋id 查询房屋信息 */
export function getHouselistAPI(buildingId: string, houseName: string = '', houseUseTypeId: string = ''): AxiosPromise<BuildingUnit> {
export function getHouselistAPI(buildingId: string): AxiosPromise<BuildingUnit> {
return request({
url: `/house/groupByUnitTree/${buildingId}?houseName=${houseName}&houseUseTypeId=${houseUseTypeId}`,
url: `/house/groupByUnitTree/${buildingId}`,
method: 'get'
});
}
@@ -99,89 +100,3 @@ export function getVillageTree(id: string) {
method: 'GET'
});
}
/** 根据小区id获取当前小区的树状结构 */
export function getHouseMain(id: string): Promise<Response> {
return request({
url: `/house/ByIdList?houseId=` + id,
method: 'GET'
});
}
export interface Response {
code: number;
data: Data;
msg: string;
}
export interface Data {
billResidentList: BillResidentList[];
chargeItemList: string[];
house: House;
parkingList: Parking[];
residentList: ResidentList[];
storeroom: Storeroom;
}
export interface BillResidentList {
billCode: string;
billName: string;
chargeItemId: string;
chargeTypeName: string;
money: string;
payStatus: string;
useCount: string;
}
export interface House {
buildingName: string;
floorNo: number;
houseArea: string;
houseId: number;
houseNo: string;
houseType: string;
internalArea: string;
shareArea: string;
unitNoName: string;
villageName: string;
}
export interface ResidentList {
gender: string;
ownerRelationship: string;
phone: string;
residentId: string;
residentName: string;
residentStatus: string;
residentType: string;
}
export interface Storeroom {
buildingName: string;
houseArea: string;
internalArea: string;
shareArea: string;
storeroomId: number;
storeroomNo: string;
remark: string;
unitNoId: string;
unitNo: number;
unitNoName: string;
}
export interface Parking {
'parkingArea': number;
'areaName': string;
'createTime': string;
'parkingId': string;
'parkingStatus': string;
'remark': string;
'parkingFloor': string;
'type': string;
'villageId': number;
'parkingCode': string;
'residentName': string;
'residentId': string;
'createName': string;
}

View File

@@ -47,15 +47,14 @@ export interface BuildingUnit {
buildingId: number;
buildingName: string;
floorCount: number;
unitCount: number;
units: BuildingUnitlist[];
}
// 单元
export interface BuildingUnitlist {
floors: FloorsType[];
unitNoName: string;
unitNoId: string;
unitNo: number;
}
// 楼层
export interface FloorsType {
floorNo: string;
@@ -81,15 +80,11 @@ export interface addHouseType {
'houseId'?: string;
'buildingId'?: string;
'villageId'?: string;
'houseUseTypeId': string;
'unitNoId': string;
'unitNo': string;
'floorNo': string;
'houseNo': string;
'houseArea': string;
'internalArea': string;
'shareArea': string;
'houseType': string;
'storeroomId': string;
'parkingId'?: string;
'parkingIds': string[];
}

View File

@@ -1,6 +1,6 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { HouseRentalVO, HouseRentalForm, HouseRentalQuery, HouseRentalSigningVO } from '@/api/system/houseRental/type';
import { HouseRentalVO, HouseRentalForm, HouseRentalQuery } from '@/api/system/houseRental/type';
/**
* 查询房屋租赁管理列表
@@ -74,52 +74,10 @@ interface uploadHouseImagetype {
}[];
'error': string[];
}
export const uploadHouseImage = (formData: FormData): AxiosPromise<uploadHouseImagetype> => {
export const uploadHouseImage = (formdata: FormData): AxiosPromise<uploadHouseImagetype> => {
return request({
url: '/houseRental/uploadImages',
method: 'POST',
data: formData
});
};
export const getHouseOwnUser = (houseId: string): AxiosPromise<uploadHouseImagetype> => {
return request({
url: `/houseRental/ownerName/${houseId}`,
method: 'GET'
});
};
/**
* 房屋租赁管理 改变状态 0下架 1上架
* @param houseId
* */
export const changeHouseRedientStatus = (houseId: string): AxiosPromise<uploadHouseImagetype> => {
return request({
url: `/houseRental/changeStatus/${houseId}`,
method: 'PUT'
});
};
/**
* 房屋租赁管理 签约
* @param data
*/
export const HouseRedientSign = (data: HouseRentalSigningVO): AxiosPromise<uploadHouseImagetype> => {
return request({
url: `/houseRental/sign`,
method: 'POST',
data: data
});
};
/**
* 房屋租赁管理 签约上传
* @param url
* @param data
*/
export const HouseRedientSignUpload = (url: string, data: FormData) => {
return request({
url: url,
method: 'POST',
data: data
data: formdata
});
};

View File

@@ -2,7 +2,7 @@ export interface HouseRentalVO {
/**
* id 房屋租赁表id
*/
id: string;
id?: string | number;
/**
* 租户姓名
@@ -57,7 +57,7 @@ export interface HouseRentalVO {
/**
* 手机号
*/
phone: string;
phone: number;
/**
* 微信
@@ -72,7 +72,7 @@ export interface HouseRentalVO {
/**
* 房屋id
*/
houseId: string;
houseId: number;
/**
* 房屋用途
*/
@@ -88,60 +88,14 @@ export interface HouseRentalVO {
pubTime: string;
houseImageUrls: string[];
facilitieslist: string[];
signingList?: HouseRentalSigningVO[];
}
export interface HouseRentalForm extends BaseEntity {
id: string;
houseId: string;
rentalName: string; // 租户姓名
rent: string; // 租金
houseFace: string; // 房屋朝向
rentalType: string; // 整租合租
phone: string; //手机号
houseArea: number; // 房屋面积
floorNo: number; //楼层号
inTime: string; //入住时间
facilities: string; //房屋设施
houseImageUrl: string; //房屋图片
supInfo: string; //补充租房信息
vx: string; //微信
houseUse?: string; //房屋用途
rentalStatus: number; //租赁状态
buildingId: string; //楼栋id
unitNoId: string; //单元id
email: string; //邮箱
/**
* 小区id
* id 房屋租赁表id
*/
villageId?: string;
}
export interface HouseRentalSigningVO {
rentAmount: string | number;
depositAmount: string | number;
'id': string;
'rentalId': string;
'contractNo': string;
'tenantName': string;
'tenantPhone': string;
'chargeMode': string;
'chargeStandard': string;
'contractName': string;
'contractStatus': string;
'leaseStartDate': string;
'leaseEndDate': string;
'houseId': string;
contractUrl: string;
'villageId': string;
'remark': string;
'createTime': string;
}
id?: string | number;
export interface HouseRentalQuery extends PageQuery {
/**
* 房屋用途
*/
houseUse?: string;
/**
* 租户姓名
*/
@@ -155,7 +109,83 @@ export interface HouseRentalQuery extends PageQuery {
/**
* 0 整租 1 合租
*/
rentalType?: string;
rentalType?: number;
/**
* 房屋朝向
*/
houseFace?: string;
/**
* 房屋面积
*/
houseArea?: number;
/**
* 楼层号
*/
floorNo?: number;
/**
* 入住时间
*/
inTime?: string;
/**
* 房屋设施(“,”隔开)
*/
facilities?: string;
/**
* 房屋照片url( "," 隔开)
*/
houseImageUrl?: string;
/**
* 补充租房信息
*/
supInfo?: string;
/**
* 手机号
*/
phone?: number;
/**
* 微信
*/
vx?: string;
/**
* 邮箱
*/
email?: string;
/**
* 房屋id
*/
houseId?: string | number;
}
export interface HouseRentalQuery extends PageQuery {
/**
* 房屋用途
*/
houseUse?: number;
/**
* 租户姓名
*/
rentalName?: string;
/**
* 租金 单位元
*/
rent?: number;
/**
* 0 整租 1 合租
*/
rentalType?: number;
/**
* 房屋朝向

View File

@@ -1,76 +0,0 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { UnitNoVO, UnitNoForm, UnitNoQuery } from './type';
/**
* 查询单元列表
* @param query
* @returns {*}
*/
export const listUnitNo = (query?: UnitNoQuery): AxiosPromise<UnitNoVO[]> => {
return request({
url: '/unitNo/list',
method: 'get',
params: query
});
};
/**
* 查询单元详细
* @param id
*/
export const getUnitNo = (id: string | number): AxiosPromise<UnitNoVO> => {
return request({
url: '/unitNo/' + id,
method: 'get'
});
};
/**
* 新增单元
* @param data
*/
export const addUnitNo = (data: UnitNoForm) => {
return request({
url: '/unitNo',
method: 'post',
data: data
});
};
/**
* 修改单元
* @param data
*/
export const updateUnitNo = (data: UnitNoForm) => {
return request({
url: '/unitNo',
method: 'put',
data: data
});
};
/**
* 删除单元
* @param id
*/
export const delUnitNo = (id: string | number | Array<string | number>) => {
return request({
url: '/unitNo/' + id,
method: 'delete'
});
};
/**
* 根据 楼栋id 获取单元
* @param id
*/
export const getByBUildingidtoUnitNo = (id: string) => {
return request({
url: '/unitNo/byBuildingList',
method: 'GET',
params: {
buildingId: id
}
});
};

View File

@@ -1,65 +0,0 @@
export interface UnitNoVO {
/**
* 单元表id
*/
id: string | number;
/**
* 单元名称
*/
name: string;
/**
* 小区id
*/
villageId: string | number;
/**
* 楼栋id
*/
buildingId: string | number;
}
export interface UnitNoForm extends BaseEntity {
/**
* 单元表id
*/
id?: string | number;
/**
* 单元名称
*/
name?: string;
/**
* 小区id
*/
villageId?: string | number;
/**
* 楼栋id
*/
buildingId?: string | number;
}
export interface UnitNoQuery extends PageQuery {
/**
* 单元名称
*/
name?: string;
/**
* 小区id
*/
villageId?: string | number;
/**
* 楼栋id
*/
buildingId?: string | number;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -1,70 +0,0 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { HouseUseTypeVO, HouseUseTypeForm, HouseUseTypeQuery } from './type';
/**
* 查询房屋类型列表
* @param query
* @returns {*}
*/
export const listHouseUseType = (query?: HouseUseTypeQuery): AxiosPromise<HouseUseTypeVO[]> => {
return request({
url: '/houseUseType/list',
method: 'get',
params: query
});
};
export const listHouseUseType_add_house = (query?: HouseUseTypeQuery | {}): AxiosPromise<HouseUseTypeVO[]> => {
return request({
url: '/houseUseType/getList',
method: 'get',
params: query
});
};
/**
* 查询房屋类型详细
* @param id
*/
export const getHouseUseType = (id: string | number): AxiosPromise<HouseUseTypeVO> => {
return request({
url: '/houseUseType/' + id,
method: 'get'
});
};
/**
* 新增房屋类型
* @param data
*/
export const addHouseUseType = (data: HouseUseTypeForm) => {
return request({
url: '/houseUseType',
method: 'post',
data: data
});
};
/**
* 修改房屋类型
* @param data
*/
export const updateHouseUseType = (data: HouseUseTypeForm) => {
return request({
url: '/houseUseType',
method: 'put',
data: data
});
};
/**
* 删除房屋类型
* @param id
*/
export const delHouseUseType = (id: string | number | Array<string | number>) => {
return request({
url: '/houseUseType/' + id,
method: 'delete'
});
};

View File

@@ -1,35 +0,0 @@
export interface HouseUseTypeVO {
/**
* 房屋类型id
*/
id: string | number;
/**
* 用途名称
*/
name: string;
}
export interface HouseUseTypeForm extends BaseEntity {
/**
* 房屋类型id
*/
id?: string | number;
/**
* 用途名称
*/
name?: string;
}
export interface HouseUseTypeQuery extends PageQuery {
/**
* 用途名称
*/
name?: string;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -12,7 +12,7 @@ export function listOss(query: OssQuery): AxiosPromise<OssVO[]> {
}
// 查询OSS对象基于id串
export function listByIds(ossId: string): AxiosPromise<OssVO[]> {
export function listByIds(ossId: string | number): AxiosPromise<OssVO[]> {
return request({
url: '/resource/oss/listByIds/' + ossId,
method: 'get'

View File

@@ -61,66 +61,3 @@ export const delParking = (id: string | number | Array<string | number>) => {
method: 'delete'
});
};
/**
* 改变车位审核装填
* @param data
*/
export const getParkingReview = (data: { id: string; propertyReviewFeedback: string; propertyStatus: number }) => {
return request({
url: '/parkingReview/checkStatus',
method: 'POST',
data
});
};
/**
* 获取车位审核信息
* @param id
*/
export const getParkingReviewInfo = (id: string) => {
return request({
url: '/parking/checkInfo',
method: 'POST',
data: {
id
}
});
};
/**
* 查询小区内车位列表
* @param { string } villageid
* @param houseId
* @returns {*}
*/
export const GetVillageListParking = (villageid: string, houseId: string = undefined): AxiosPromise<ParkingVO[]> => {
return request({
url: `/parking/getList`,
method: 'POST',
data: {
villageId: villageid,
houseId: houseId
}
});
};
/**
* 查询 车位持有人信息
* @returns {*}
* @param residentId
*/
export const getParkingResidentInfo = (
residentId: string
): AxiosPromise<{
id: '';
name: '';
type: '';
status: '';
idCard: '';
phone: '';
houseName: '';
}> => {
return request({
url: `/car/holder/${residentId}`,
method: 'GET'
});
};

View File

@@ -32,7 +32,7 @@ export interface ParkingVO {
/**
* 住户id
*/
residentId: string;
residentId: string | number;
/**
* 添加时间
@@ -88,7 +88,7 @@ export interface ParkingForm extends BaseEntity {
/**
* 住户id
*/
residentId?: string;
residentId?: string | number;
/**
* 添加时间
@@ -160,7 +160,7 @@ export interface ParkingQuery extends PageQuery {
/**
* 住户id
*/
residentId?: string;
residentId?: string | number;
/**
* 添加时间

View File

@@ -1,20 +0,0 @@
import request from '@/utils/request';
import {
leaseManagementDetailChargeTypesResponse,
leaseManagementDetailRequest,
leaseManagementDetailResponse
} from '@/api/system/report/LeaseManagementDetails/type';
export const getLeaseManagementDetailList = (data?: leaseManagementDetailRequest): Promise<leaseManagementDetailResponse> => {
return request({
url: '/leaseManagementDetail/list',
method: 'POST',
data: data
});
};
export const getLeaseManagementDetailChargeTypesList = (): Promise<leaseManagementDetailChargeTypesResponse> => {
return request({
url: '/leaseManagementDetail/chargeTypes',
method: 'POST'
});
};

View File

@@ -1,203 +0,0 @@
export type leaseManagementDetailRequest = {
/**
* 面积
*/
areaSize?: string;
/**
* 收费模式多选
*/
chargeModes?: string[];
/**
* 收费标准多选
*/
chargeStandards?: string[];
/**
* 按收费类型筛选应收/已收/未收金额区间
*/
chargeTypeFilters?: ChargeTypeFilter[];
/**
* 租赁起始日-开始
*/
leaseStartDateBegin?: string;
/**
* 租赁起始日-结束
*/
leaseStartDateEnd?: string;
/**
* 承租方
*/
lessee?: string;
/**
* 当前页码
*/
pageNum: number;
/**
* 每页条数
*/
pageSize: number;
/**
* 手机号
*/
phone?: string;
/**
* 房号
*/
roomNumber?: string;
/**
* 小区多选
*/
villageIds?: number[];
leaseEndDateBegin?: string;
leaseEndDateEnd?: string;
};
export type ChargeTypeFilter = {
/**
* 收费类型名称
*/
chargeTypeName?: string;
/**
* 收费类型ID
*/
chargeTypeId?: string;
/**
* 应收上限
*/
receivableMax?: string;
/**
* 应收下限
*/
receivableMin?: string;
/**
* 已收上限
*/
receivedMax: string;
/**
* 已收下限
*/
receivedMin: string;
/**
* 未收上限
*/
uncollectedMax: string;
/**
* 未收下限
*/
uncollectedMin: string;
};
export type leaseManagementDetailResponse = {
/**
* 收费类型
*/
chargeItems: ChargeItem[];
code: number;
msg: string;
/**
* 当前页明细行数据
*/
rows: Row[];
/**
* 总记录数
*/
total: number;
};
export type ChargeItem = {
/**
* 收费类型ID
*/
chargeTypeId: string;
/**
* 收费类型名称
*/
chargeTypeName: string;
};
export type Row = {
/**
* 小区名称
*/
area: string;
/**
* 面积(㎡)
*/
areaSize: string;
/**
* 小区ID
*/
buildingId: string;
/**
* 收费模式
*/
chargeMode: string;
/**
* 收费标准
*/
chargeStandard: string;
/**
* 房屋ID
*/
houseId: string;
/**
* 签约记录ID
*/
id: string;
/**
* 租赁终止日
*/
leaseEndDate: string;
/**
* 租赁起始日
*/
leaseStartDate: string;
/**
* 承租方
*/
lessee: string;
/**
* 电话
*/
phone: string;
/**
* 各收费类型应收
*/
receivableAmounts: { [key: string]: any };
/**
* 各收费类型已收
*/
receivedAmounts: { [key: string]: any };
/**
* 房号
*/
roomNumber: string;
/**
* 各收费类型未收
*/
uncollectedAmounts: { [key: string]: any };
[property: string]: any;
};
export type leaseManagementDetailChargeTypesResponse = {
code: number;
data: Datum[];
msg: string;
};
export type Datum = {
chargeTypeId: string;
chargeTypeName: string;
};
// 0000000000000000
export interface queryParamsType extends leaseManagementDetailRequest {
chargeTypeFilters: chargeTypeFiltersType[];
}
export interface chargeTypeFiltersType extends ChargeTypeFilter {
receivable?: string;
uncollected?: string;
received?: string;
chargeTypeName?: string;
}

View File

@@ -1,20 +0,0 @@
import request from '@/utils/request';
import { AgingListResponse, OwnerArrearsDetailVo } from '@/api/system/report/aging/type';
import { AxiosPromise } from 'axios';
export const getAgingList = (query): Promise<AgingListResponse> => {
return request({
url: '/agingAnalysis/summary',
method: 'get',
params: query
});
};
export const getDetailList = (query): Promise<AgingListResponse> => {
return request({
url: '/agingAnalysis/detail',
method: 'get',
params: query
});
};

View File

@@ -1,74 +0,0 @@
export interface AgingListResponse {
total: number;
rows: AgingSummary[];
summary: AgingSummary;
code: number;
msg: string;
}
export interface AgingSummary {
amountLe6: string;
amountM6To12: string;
amountOver5: string;
amountY1To2: string;
amountY2To3: string;
amountY3To4: string;
amountY4To5: string;
cutoffPeriod: string;
houseTypeName: string;
totalAmount: string;
villageName: string;
}
// 明细 ---------------------------------
/**
* 业主欠费明细视图对象
*
* OwnerArrearsDetailVo
*/
export type OwnerArrearsDetailVo = {
/**
* 区域(小区名称)
*/
area?: string;
/**
* 欠费月数
*/
arrearsMonths?: number;
/**
* 应账账期20170101-20171231
*/
billPeriod?: string;
/**
* 客户(业主姓名)
*/
customerName?: string;
/**
* 垃圾清运费
*/
garbageFee?: number;
/**
* 房号
*/
houseNo?: string;
/**
* 其他费用合计
*/
otherFee?: number;
/**
* 联系电话
*/
phone?: string;
/**
* 物业费
*/
propertyFee?: number;
/**
* 序号
*/
serialNumber?: number;
/**
* 金额合计
*/
totalAmount?: number;
[property: string]: any;
};

View File

@@ -1,18 +0,0 @@
import request from '@/utils/request';
import { ArrearsDetailQuery, ArrearsListResponse, ArrearsQuery, OwnerArrearsDetailVo } from '@/api/system/report/arrears/type';
import { AxiosPromise } from 'axios';
export const getArrearsList = (query?: ArrearsQuery): Promise<ArrearsListResponse> => {
return request({
url: '/outstandingFeeSummary/list',
method: 'get',
params: query
});
};
export const getArrearsDetails = (query?: ArrearsDetailQuery): AxiosPromise<OwnerArrearsDetailVo[]> => {
return request({
url: '/outstandingFeeSummary/ownerArrearsDetail',
method: 'get',
params: query
});
};

View File

@@ -1,113 +0,0 @@
export interface ArrearsQuery extends PageQuery {
/**
* 视图类型:
* 1 - 维度一(收费类型为行)
* 2 - 维度二(房屋类型为行)
* */
viewType: number;
chargeItemId?: string;
houseUseId?: string;
villageId?: string;
}
export interface ArrearsListResponse {
code: number;
msg: string;
data: ArrearsVO[];
}
export interface ArrearsVO extends ArrearsType1, ArrearsType2 {
'villageName': string;
'totalAmount': string;
}
export interface ArrearsType1 {
'chargeItemName'?: string;
'houseTypeAmounts'?: {
[key: string]: string;
};
}
export interface ArrearsType2 {
'houseTypeName'?: string;
'chargeItemAmounts'?: {
[key: string]: string;
};
}
export interface ArrearsDetailQuery extends PageQuery {
/**
* 客户姓名(模糊查询)
*/
customerName?: string;
/**
* 结束时间
*/
endTime?: string;
/**
* 房号(模糊查询)
*/
houseNo?: string;
/**
* 联系电话(模糊查询)
*/
phone?: string;
/**
* 开始时间
*/
startTime?: string;
}
/**
* 业主欠费明细视图对象
*
* OwnerArrearsDetailVo
*/
export type OwnerArrearsDetailVo = {
/**
* 区域(小区名称)
*/
area?: string;
/**
* 欠费月数
*/
arrearsMonths?: number;
/**
* 应账账期20170101-20171231
*/
billPeriod?: string;
/**
* 各收费类型金额key: 收费类型名称, value: 金额)
*/
chargeItemAmounts?: MapBigDecimal;
/**
* 客户(业主姓名)
*/
customerName?: string;
/**
* 房号
*/
houseNo?: string;
/**
* 联系电话
*/
phone?: string;
/**
* 序号
*/
serialNumber?: number | string;
/**
* 金额合计
*/
totalAmount?: number;
};
/**
* 各收费类型金额key: 收费类型名称, value: 金额)
*
* MapBigDecimal
*/
export type MapBigDecimal = {
[property: string]: number;
};

View File

@@ -1,9 +0,0 @@
import request from '@/utils/request';
export const getArrearsTend = (query) => {
return request({
url: '/propertyFeeTrend/arrearsTrend',
method: 'get',
params: query
});
};

View File

@@ -1,54 +0,0 @@
import request from '@/utils/request';
import { Response } from '@/api/system/report/businessDailyReport/type';
/**
* 按小区统计
* @param query
* @returns
* */
export const getBusinessDailyReport = (query): Promise<Response> => {
return request({
url: '/businessDailyReport/village',
method: 'get',
params: query
});
};
/**
* 按小区统计导出
* @param query
* @returns
* */
export const getBusinessDailyReportExport = (query): Promise<Response> => {
return request({
url: '/businessDailyReport/village/export',
method: 'get',
params: query
});
};
/**
* 按收费项目统计
* @param query
* @returns
* */
export const getBusinessDailyReportChargeItem = (query): Promise<Response> => {
return request({
url: '/businessDailyReport/chargeItem',
method: 'get',
params: query
});
};
/**
* 按收费项目统计导出
* @param query
* @returns
* */
export const getBusinessDailyReportChargeItemExport = (query): Promise<Response> => {
return request({
url: '/businessDailyReport/chargeItem/export',
method: 'get',
params: query
});
};

View File

@@ -1,77 +0,0 @@
export type Response = {
code: number;
msg: string;
/**
* 支付方式
*/
payTypes: PayType[];
/**
* 数据列表
*/
rows: RowsType[];
/**
* 合计行
*/
summary: Summary;
total: number;
};
export type RowsType = Row | RowVillage;
export type Row = {
/**
* 收费项目ID
*/
chargeItemId: string;
/**
* 收费项目名称
*/
chargeItemName: string;
/**
* 各支付方式金额
*/
payAmounts: { [key: string]: string };
/**
* 合计金额
*/
totalAmount: string;
};
export type RowVillage = {
/**
* 各支付方式金额
*/
payAmounts?: { [key: string]: string };
/**
* 合计金额
*/
totalAmount?: number;
/**
* 小区ID
*/
villageId?: number;
/**
* 小区名称
*/
villageName?: string;
};
export type PayType = {
/**
* 支付方式编码
*/
payType: string;
/**
* 支付方式名称
*/
payTypeName: string;
};
/**
* 合计行
*/
export type Summary = {
chargeItemId: null;
chargeItemName: string;
payAmounts: { [key: string]: string };
totalAmount: string;
};

View File

@@ -1,9 +0,0 @@
import request from '@/utils/request';
export const getChargeTend = (query)=> {
return request({
url: '/propertyFeeTrend/chargeTrend',
method: 'get',
params: query
});
};

View File

@@ -1,18 +0,0 @@
import request from '@/utils/request';
import { FilterResponse, Response } from '@/api/system/report/dailyFeeReport/type';
export const getDailyFeeReportList = (data = {}): Promise<Response> => {
return request({
url: '/dailyFeeReport/list',
method: 'POST',
data: data
});
};
// 获取动态查询数据
export const getDailyFeeReportDynamicList = (data = {}): Promise<FilterResponse> => {
return request({
url: '/dailyFeeReport/filters',
method: 'GET',
data: data
});
};

View File

@@ -1,44 +0,0 @@
export type Response = {
code: number;
rows: Datum[];
total: number;
msg: string;
};
export type Datum = {
alipayAmount: string;
cashAmount: string;
chargeTypeAmounts: ChargeTypeAmounts;
deposit: string;
depositAmount: string;
discountAmount: string;
electricFee: string;
handler: null | string;
houseName: string;
payTime: string;
propertyOffsetAmount: string;
remark: null;
residentName: string;
transferAmount: string;
unionPayAmount: string;
waterFee: string;
wechatAmount: string;
yiDangFuAmount: string;
};
export type ChargeTypeAmounts = {
[property: string]: {
amount?: string;
endDate?: string;
startDate?: string;
};
};
export type FilterResponse = {
code: number;
data: {
'chargeTypeId': string;
'chargeTypeName': string;
}[];
msg: string;
};

View File

@@ -1,10 +0,0 @@
import request from '@/utils/request';
import { MonthFeeReportQueryForm, Response } from '@/api/system/report/monthFeeReport/type';
export const getMonthFeeReportList = (data: MonthFeeReportQueryForm = {}): Promise<Response> => {
return request({
url: '/chargeMonthlyReport/list',
method: 'GET',
params: data
});
};

View File

@@ -1,75 +0,0 @@
export type MonthFeeReportQueryForm = {
/**
* 房屋用途类型
*/
buildingIds?: string;
/**
* 月收费率区间
*/
monthRate?: string;
/**
* 本月应收区间
*/
monthReceivable?: string;
/**
* 本月未收区间
*/
monthUnpaid?: string;
/**
* 当前页码
*/
pageNum?: number;
/**
* 每页条数
*/
pageSize?: number;
/**
* 综合欠收区间
*/
totalArrears?: string;
/**
* 综合预收区间
*/
totalPrepaid?: string;
/**
* 小区ID
*/
villageId?: string;
/**
* 年收费率区间
*/
yearRate?: string;
/**
* 本年应收区间
*/
yearReceivable?: string;
/**
* 本年未收区间
*/
yearUnpaid?: string;
};
export type Response = {
code: number;
msg: string;
rows: Row[];
total: number;
};
export type Row = {
buildingId: BuildingId;
buildingName: string;
monthRate: string;
monthReceivable: string;
monthReceived: string;
monthUnpaid: string;
totalArrears: string;
totalPrepaid: string;
yearRate: string;
yearReceivable: string;
yearReceived: string;
yearUnpaid: string;
[property: string]: any;
};
export type BuildingId = number | string;

View File

@@ -1,10 +0,0 @@
import request from '@/utils/request';
import { Response } from '@/api/system/report/paidInExpensesReceivable/type';
export const getPaidInExpensesList = (data): Promise<Response> => {
return request({
url: '/paidInExpenses/list',
method: 'POST',
data: data
});
};

View File

@@ -1,29 +0,0 @@
export type Response = {
code: number;
data: Data;
msg: string;
};
export type Data = {
chargeTypes: string[];
details: Detail[];
total: Total;
};
export type Detail = {
amounts: DetailAmounts;
name: string;
sequence: string;
total: string;
};
export type DetailAmounts = {
[property: string]: string;
};
export type Total = {
amounts: DetailAmounts;
name: string;
sequence: string;
total: string;
};

View File

@@ -1,10 +0,0 @@
import request from '@/utils/request';
import { Response } from '@/api/system/report/paidInExpensesReceivable/type';
export const getPaidInExpensesReceivableList = (data): Promise<Response> => {
return request({
url: '/paidInExpenses/receivable/list',
method: 'POST',
data: data
});
};

View File

@@ -1,29 +0,0 @@
export type Response = {
code: number;
data: Data;
msg: string;
};
export type Data = {
chargeTypes: string[];
details: Detail[];
total: Total;
};
export type Detail = {
amounts: DetailAmounts;
name: string;
sequence: string;
total: string;
};
export type DetailAmounts = {
[property: string]: string;
};
export type Total = {
amounts: DetailAmounts;
name: string;
sequence: string;
total: string;
};

View File

@@ -1,10 +0,0 @@
import request from '@/utils/request';
import { Request, Response } from '@/api/system/report/prepaidBalance/type';
export const getPrepaidBalanceList = (query: Request): Promise<Response> => {
return request({
url: '/prepaidBalance/summary',
method: 'GET',
params: query
});
};

View File

@@ -1,83 +0,0 @@
export type Request = {
/**
* 收费类型ID
*/
chargeTypeId?: string;
/**
* 房屋类型ID
*/
houseUseTypeId?: string;
/**
* 当前页数
*/
pageNum?: number;
/**
* 分页大小
*/
pageSize?: number;
/**
* 小区ID
*/
villageId?: string;
};
export type Response = {
/**
* 动态收费项目列头
*/
chargeItems: ChargeItem[];
code: number;
msg: string;
/**
* 汇总数据行列表
*/
rows: Row[];
/**
* 全部合计行
*/
summary: Summary;
/**
* 总记录数
*/
total: number;
};
export type ChargeItem = {
/**
* 收费项目名称
*/
chargeItemName: string;
/**
* 收费类型ID
*/
chargeTypeId: number;
};
export type Row = {
/**
* 各收费项目预收余额
*/
chargeItemAmounts?: { [key: string]: any };
/**
* 房屋类型名称
*/
houseTypeName?: string;
/**
* 合计金额
*/
totalAmount?: number;
/**
* 小区名称
*/
villageName?: string;
};
/**
* 全部合计行
*/
export type Summary = {
chargeItemAmounts: { [key: string]: string };
houseTypeName: string;
totalAmount: number;
villageName: string;
};

View File

@@ -1,10 +0,0 @@
import request from '@/utils/request';
import { Request, Response } from '@/api/system/report/prepaidBalance/type';
export const getPrepaidBalanceDetailList = (query: Request): Promise<Response> => {
return request({
url: '/prepaidBalance/detail',
method: 'GET',
params: query
});
};

View File

@@ -1,83 +0,0 @@
export type Request = {
/**
* 收费类型ID
*/
chargeTypeId?: string;
/**
* 房屋类型ID
*/
houseUseTypeId?: string;
/**
* 当前页数
*/
pageNum?: number;
/**
* 分页大小
*/
pageSize?: number;
/**
* 小区ID
*/
villageId?: string;
};
export type Response = {
/**
* 动态收费项目列头
*/
chargeItems: ChargeItem[];
code: number;
msg: string;
/**
* 汇总数据行列表
*/
rows: Row[];
/**
* 全部合计行
*/
summary: Summary;
/**
* 总记录数
*/
total: number;
};
export type ChargeItem = {
/**
* 收费项目名称
*/
chargeItemName: string;
/**
* 收费类型ID
*/
chargeTypeId: number;
};
export type Row = {
/**
* 各收费项目预收余额
*/
chargeItemAmounts?: { [key: string]: any };
/**
* 房屋类型名称
*/
houseTypeName?: string;
/**
* 合计金额
*/
totalAmount?: number;
/**
* 小区名称
*/
villageName?: string;
};
/**
* 全部合计行
*/
export type Summary = {
chargeItemAmounts: { [key: string]: string };
houseTypeName: string;
totalAmount: number;
villageName: string;
};

View File

@@ -1,13 +1,14 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { ResidentVO, ResidentForm, ResidentQuery } from '@/api/system/residentReviewProcess/resident/type';
import { ResidentVO, ResidentForm, ResidentQuery } from '@/api/system/resident/type';
/**
*
* @param query
* @returns {*}
*/
export const listResident = (query?: ResidentQuery | {}): AxiosPromise<ResidentVO[]> => {
export const listResident = (query?: ResidentQuery): AxiosPromise<ResidentVO[]> => {
return request({
url: '/resident/list',
method: 'get',
@@ -63,6 +64,7 @@ export const delResident = (id: string | number | Array<string | number>) => {
/**
* -
* @param id
*/
export const UploadidCardApi = () => {
return request({

View File

@@ -2,10 +2,8 @@ export interface ResidentVO {
/**
* id
*/
userId: string;
userId: string | number;
id: string;
unitNoId: string;
idCardType: string;
/**
*
*/
@@ -15,7 +13,6 @@ export interface ResidentVO {
*
*/
name: string;
nickName: string;
/**
* 0 1
@@ -25,12 +22,12 @@ export interface ResidentVO {
/**
* 0 1
*/
gender: string;
gender: number;
/**
*
*/
idCard: string;
idCard: string | number;
/**
*
@@ -45,7 +42,7 @@ export interface ResidentVO {
/**
* id
*/
buildingId: string;
buildingId: string | number;
/**
* id
@@ -77,22 +74,11 @@ export interface ResidentVO {
}
export interface ResidentForm extends BaseEntity {
/**
*
*/
age?: number;
/**
* id
*/
userId?: string;
unitNoId?: string;
/**
*
* 0
* 1
* 2
*/
idCardType?: string;
userId?: string | number;
/**
*
*/
@@ -104,22 +90,19 @@ export interface ResidentForm extends BaseEntity {
name?: string;
/**
* 0
* 1
* 2
* 3
* 0 1
*/
ownerRelationship?: string;
type?: string;
/**
* 0 1
*/
gender?: string;
gender?: number;
/**
*
*/
idCard?: string;
idCard?: string | number;
/**
*
@@ -134,7 +117,7 @@ export interface ResidentForm extends BaseEntity {
/**
* id
*/
buildingId?: string;
buildingId?: string | number;
/**
* id
@@ -167,21 +150,12 @@ export interface ResidentQuery extends PageQuery {
*
*/
date?: any;
/**
*
*
* 0 1
*/
houseName?: string;
/**
*
*/
name?: string;
/**
* 0
* 1
* 2
* 3
*/
ownerRelationship?: string;
type?: string;
/**
*
* 0 1
@@ -191,5 +165,5 @@ export interface ResidentQuery extends PageQuery {
houseId?: number;
villageId?: string;
buildingId?: number;
unitNoId?: number;
unitNo?: number;
}

View File

@@ -0,0 +1,140 @@
export interface ResidentReviewProcessVO {
/**
* 住户审核表
*/
id: string | number;
/**
* 住户表id
*/
residentId: string | number;
/**
* 提交时间
*/
submitTime: string;
/**
* 提交状态 0未提交 1已提交
*/
submitStatus: number;
/**
* 物业审核时间
*/
propertyTime: string;
/**
* 物业审核状态 0 待审核 1审核通过 2审核未通过
*/
propertyStatus: number;
/**
* 物业审核意见
*/
propertyReviewFeedback: string;
/**
* 认证时间
*/
certificationTime: string;
/**
* 认证状态 0未认证 1已认证
*/
certificationStatus: number;
}
export interface ResidentReviewProcessForm extends BaseEntity {
/**
* 住户审核表
*/
id?: string | number;
/**
* 住户表id
*/
residentId?: string | number;
/**
* 提交时间
*/
submitTime?: string;
/**
* 提交状态 0未提交 1已提交
*/
submitStatus?: number;
/**
* 物业审核时间
*/
propertyTime?: string;
/**
* 物业审核状态 0 待审核 1审核通过 2审核未通过
*/
propertyStatus?: number;
/**
* 物业审核意见
*/
propertyReviewFeedback?: string;
/**
* 认证时间
*/
certificationTime?: string;
/**
* 认证状态 0未认证 1已认证
*/
certificationStatus?: number;
}
export interface ResidentReviewProcessQuery extends PageQuery {
/**
* 住户表id
*/
residentId?: string | number;
/**
* 提交时间
*/
submitTime?: string;
/**
* 提交状态 0未提交 1已提交
*/
submitStatus?: number;
/**
* 物业审核时间
*/
propertyTime?: string;
/**
* 物业审核状态 0 待审核 1审核通过 2审核未通过
*/
propertyStatus?: number;
/**
* 物业审核意见
*/
propertyReviewFeedback?: string;
/**
* 认证时间
*/
certificationTime?: string;
/**
* 认证状态 0未认证 1已认证
*/
certificationStatus?: number;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -1,63 +0,0 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { RevenueNoticeVO, RevenueNoticeForm, RevenueNoticeQuery } from './type';
/**
* 查询公区收益通知列表
* @param query
* @returns {*}
*/
export const listRevenueNotice = (query?: RevenueNoticeQuery): AxiosPromise<RevenueNoticeVO[]> => {
return request({
url: '/revenueNotice/list',
method: 'get',
params: query
});
};
/**
* 查询公区收益通知详细
* @param noticeId
*/
export const getRevenueNotice = (noticeId: string | number): AxiosPromise<RevenueNoticeVO> => {
return request({
url: '/revenueNotice/' + noticeId,
method: 'get'
});
};
/**
* 新增公区收益通知
* @param data
*/
export const addRevenueNotice = (data: RevenueNoticeForm) => {
return request({
url: '/revenueNotice',
method: 'post',
data: data
});
};
/**
* 修改公区收益通知
* @param data
*/
export const updateRevenueNotice = (data: RevenueNoticeForm) => {
return request({
url: '/revenueNotice',
method: 'put',
data: data
});
};
/**
* 删除公区收益通知
* @param noticeId
*/
export const delRevenueNotice = (noticeId: string | number | Array<string | number>) => {
return request({
url: '/revenueNotice/' + noticeId,
method: 'delete'
});
};

View File

@@ -1,140 +0,0 @@
export interface RevenueNoticeVO {
/**
* 公告ID
*/
noticeId: string | number;
/**
* 公告标题
*/
noticeTitle: string;
/**
* 公告内容
*/
noticeContent: string;
/**
* 作者
*/
author: string;
/**
* 紧急程度 0=普通 1=紧急 2=非常紧急
*/
urgencyLevel: number;
/**
* 发布状态 0=草稿 1=已发布
*/
publishStatus: number;
/**
* 发布人
*/
publishBy: string;
/**
* 发布日期
*/
publishTime: string;
/**
* 所属小区id
*/
villageId: string | number;
}
export interface RevenueNoticeForm extends BaseEntity {
/**
* 公告ID
*/
noticeId?: string | number;
/**
* 公告标题
*/
noticeTitle?: string;
/**
* 公告内容
*/
noticeContent?: string;
/**
* 作者
*/
author?: string;
/**
* 紧急程度 0=普通 1=紧急 2=非常紧急
*/
urgencyLevel?: number;
/**
* 发布状态 0=草稿 1=已发布
*/
publishStatus?: number;
/**
* 发布人
*/
publishBy?: string;
/**
* 发布日期
*/
publishTime?: string;
/**
* 所属小区id
*/
villageId?: string | number;
}
export interface RevenueNoticeQuery extends PageQuery {
/**
* 公告标题
*/
noticeTitle?: string;
/**
* 公告内容
*/
noticeContent?: string;
/**
* 作者
*/
author?: string;
/**
* 紧急程度 0=普通 1=紧急 2=非常紧急
*/
urgencyLevel?: number;
/**
* 发布状态 0=草稿 1=已发布
*/
publishStatus?: number;
/**
* 发布人
*/
publishBy?: string;
/**
* 发布日期
*/
publishTime?: string;
/**
* 所属小区id
*/
villageId?: string | number;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -61,28 +61,3 @@ export const delStoreroom = (id: string | number | Array<string | number>) => {
method: 'delete'
});
};
/**
* 查询小区内储藏室管理列表
* @returns {*}
* @param data
*/
export const GetVillagelistStoreroom = (
data: { villageid: string; unitNoId: string; houseId?: string; buildingId: string } = {
villageid: null,
buildingId: null,
houseId: null,
unitNoId: null
}
): AxiosPromise<StoreroomVO[]> => {
return request({
url: `/storeroom/getList`,
method: 'POST',
data: {
villageId: data.villageid,
buildingId: data.buildingId,
unitNoId: data.unitNoId,
houseId: data.houseId
}
});
};

Some files were not shown because too many files have changed in this diff Show More