diff --git a/.env.development b/.env.development index 18f601a..60fa452 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 页面标题 -VITE_APP_TITLE=智慧物业后台管理系统 +VITE_APP_TITLE=太阳城水电表管理平台 -VITE_APP_LOGO_TITLE=智慧物业后台管理系统 +VITE_APP_LOGO_TITLE=太阳城水电表管理平台 # 开发环境配置 VITE_APP_ENV='development' @@ -9,7 +9,7 @@ VITE_APP_ENV='development' # 开发环境 VITE_APP_BASE_API='/dev-api' # # 开发环境 接口代理地址 -VITE_APP_PROXY_API='http://192.168.0.222:8080' +VITE_APP_PROXY_API='http://192.168.0.199:8080' # 开发环境 接口代理地址 #VITE_APP_PROXY_API='http://192.168.0.199:8080' # 图片基础地址 diff --git a/src/api/system/Activity/index.ts b/src/api/system/Activity/index.ts deleted file mode 100644 index 1cd5a75..0000000 --- a/src/api/system/Activity/index.ts +++ /dev/null @@ -1,63 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { ActivityVO, ActivityForm, ActivityQuery } from '@/api/system/Activity/type'; - -/** - * 查询活动管理列表 - * @param query - * @returns {*} - */ - -export const listActivity = (query?: ActivityQuery): AxiosPromise => { - return request({ - url: '/activity/list', - method: 'get', - params: query - }); -}; - -/** - * 查询活动管理详细 - * @param id - */ -export const getActivity = (id: string | number): AxiosPromise => { - return request({ - url: '/activity/' + id, - method: 'get' - }); -}; - -/** - * 新增活动管理 - * @param data - */ -export const addActivity = (data: ActivityForm) => { - return request({ - url: '/activity', - method: 'post', - data: data - }); -}; - -/** - * 修改活动管理 - * @param data - */ -export const updateActivity = (data: ActivityForm) => { - return request({ - url: '/activity', - method: 'put', - data: data - }); -}; - -/** - * 删除活动管理 - * @param id - */ -export const delActivity = (id: string | number | Array) => { - return request({ - url: '/activity/' + id, - method: 'delete' - }); -}; diff --git a/src/api/system/Activity/type.ts b/src/api/system/Activity/type.ts deleted file mode 100644 index b057394..0000000 --- a/src/api/system/Activity/type.ts +++ /dev/null @@ -1,98 +0,0 @@ -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; -} - -export interface ActivityForm extends BaseEntity { - /** - * 活动管理表id - */ - id?: string | number; - - /** - * 标题 - */ - title?: string; - - /** - * 作者 - */ - author?: string; - - /** - * 内容 - */ - content?: string; - - /** - * 发布状态 0未发布 1已发布 - */ - status?: string; - - /** - * 浏览量 - */ - pageViews?: number; - - /** - * 创建者姓名 - */ - createName?: string; -} - -export interface ActivityQuery extends PageQuery { - /** - * 标题 - */ - title?: string; - - /** - * 作者 - */ - author?: string; - - /** - * 内容 - */ - content?: string; - - /** - * 发布状态 0未发布 1已发布 - */ - status?: string; - - /** - * 浏览量 - */ - pageViews?: number; - - /** - * 创建者姓名 - */ - createName?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/Banner/index.ts b/src/api/system/Banner/index.ts deleted file mode 100644 index 8544b35..0000000 --- a/src/api/system/Banner/index.ts +++ /dev/null @@ -1,79 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { BannerVO, BannerForm, BannerQuery } from './type'; - -/** - * 查询Banner图管理列表 - * @param query - * @returns {*} - */ - -export const listBanner = (query?: BannerQuery): AxiosPromise => { - return request({ - url: '/banner/list', - method: 'get', - params: query - }); -}; - -/** - * 查询Banner图管理详细 - * @param id - */ -export const getBanner = (id: string | number): AxiosPromise => { - return request({ - url: '/banner/' + id, - method: 'get' - }); -}; - -/** - * 新增Banner图管理 - * @param data - */ -export const addBanner = (data: BannerForm) => { - return request({ - url: '/banner', - method: 'post', - data: data - }); -}; - -/** - * 修改Banner图管理 - * @param data - */ -export const updateBanner = (data: BannerForm) => { - return request({ - url: '/banner', - method: 'put', - data: data - }); -}; - -/** - * 删除Banner图管理 - * @param id - */ -export const delBanner = (id: string | number | Array) => { - return request({ - url: '/banner/' + id, - method: 'delete' - }); -}; - -/** - * 改变Banner图管理 状态 - * @param id - * @param status - */ -export const switchBanner = (id: string, status: string) => { - return request({ - url: '/banner/changeStatus', - method: 'GET', - params: { - id, - status - } - }); -}; diff --git a/src/api/system/Banner/type.ts b/src/api/system/Banner/type.ts deleted file mode 100644 index d80a7e9..0000000 --- a/src/api/system/Banner/type.ts +++ /dev/null @@ -1,77 +0,0 @@ -export interface BannerVO { - /** - * Banner图管理表id - */ - id: string | number; - - /** - * 名称 - */ - name: string; - - /** - * 状态 0启用 1停用 - */ - status: string; - - /** - * 排序 - */ - url: string; - byOrder: number; - link: string; - /** - * 小区id - */ - villageId: string; -} - -export interface BannerForm extends BaseEntity { - /** - * Banner图管理表id - */ - id?: string; - - /** - * 名称 - */ - name?: string; - - /** - * 状态 0启用 1停用 - */ - status?: string; - - /** - * 排序 - */ - byOrder?: number; - link: string; -} - -export interface BannerQuery extends PageQuery { - /** - * 名称 - */ - name?: string; - - /** - * 状态 0启用 1停用 - */ - status?: string; - - /** - * 排序 - */ - byOrder: number; - link: string; - /** - * 小区id - */ - villageId?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/ComplainType/index.ts b/src/api/system/ComplainType/index.ts deleted file mode 100644 index 16b7414..0000000 --- a/src/api/system/ComplainType/index.ts +++ /dev/null @@ -1,63 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { ComplaintTypeVO, ComplaintTypeForm, ComplaintTypeQuery } from '@/api/system/ComplainType/type'; - -/** - * 查询投诉类型管理列表 - * @param query - * @returns {*} - */ - -export const listComplaintType = (query?: ComplaintTypeQuery): AxiosPromise => { - return request({ - url: '/complaintType/list', - method: 'get', - params: query - }); -}; - -/** - * 查询投诉类型管理详细 - * @param id - */ -export const getComplaintType = (id: string | number): AxiosPromise => { - return request({ - url: '/complaintType/' + id, - method: 'get' - }); -}; - -/** - * 新增投诉类型管理 - * @param data - */ -export const addComplaintType = (data: ComplaintTypeForm) => { - return request({ - url: '/complaintType', - method: 'post', - data: data - }); -}; - -/** - * 修改投诉类型管理 - * @param data - */ -export const updateComplaintType = (data: ComplaintTypeForm) => { - return request({ - url: '/complaintType', - method: 'put', - data: data - }); -}; - -/** - * 删除投诉类型管理 - * @param id - */ -export const delComplaintType = (id: string | number | Array) => { - return request({ - url: '/complaintType/' + id, - method: 'delete' - }); -}; diff --git a/src/api/system/ComplainType/type.ts b/src/api/system/ComplainType/type.ts deleted file mode 100644 index 7ff88d5..0000000 --- a/src/api/system/ComplainType/type.ts +++ /dev/null @@ -1,43 +0,0 @@ -export interface ComplaintTypeVO { - /** - * 投诉类型管理表id - */ - id: string; - - /** - * 投诉类型名称 - */ - name: string; - - /** - * 状态 0 启用 1停用 - */ - status: string; -} - -export interface ComplaintTypeForm extends BaseEntity { - /** - * 投诉类型管理表id - */ - id?: string; - /** - * 状态 0 启用 1停用 - */ - status?: string; - /** - * 投诉类型名称 - */ - name?: string; -} - -export interface ComplaintTypeQuery extends PageQuery { - /** - * 投诉类型名称 - */ - name?: string; - - /** - * 状态 0 启用 1停用 - */ - status?: string; -} diff --git a/src/api/system/Complaint/index.ts b/src/api/system/Complaint/index.ts deleted file mode 100644 index 7e2a793..0000000 --- a/src/api/system/Complaint/index.ts +++ /dev/null @@ -1,63 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { ComplaintVO, ComplaintForm, ComplaintQuery } from '@/api/system/Complaint/type'; - -/** - * 查询投诉管理列表 - * @param query - * @returns {*} - */ - -export const listComplaint = (query?: ComplaintQuery): AxiosPromise => { - return request({ - url: '/complaint/list', - method: 'get', - params: query - }); -}; - -/** - * 查询投诉管理详细 - * @param id - */ -export const getComplaint = (id: string): AxiosPromise => { - return request({ - url: '/complaint/' + id, - method: 'get' - }); -}; - -/** - * 新增投诉管理 - * @param data - */ -export const addComplaint = (data: ComplaintForm) => { - return request({ - url: '/complaint', - method: 'post', - data: data - }); -}; - -/** - * 修改投诉管理 - * @param data - */ -export const updateComplaint = (data: ComplaintForm) => { - return request({ - url: '/complaint', - method: 'put', - data: data - }); -}; - -/** - * 删除投诉管理 - * @param id - */ -export const delComplaint = (id: string | number | Array) => { - return request({ - url: '/complaint/' + id, - method: 'delete' - }); -}; diff --git a/src/api/system/Complaint/type.ts b/src/api/system/Complaint/type.ts deleted file mode 100644 index 55ccd15..0000000 --- a/src/api/system/Complaint/type.ts +++ /dev/null @@ -1,157 +0,0 @@ -export interface ComplaintVO { - /** - * 投诉管理表id - */ - id: string | number; - - /** - * 投诉类型id - */ - typeId: string | number; - - /** - * 问题描述 - */ - problemDes: string; - - /** - * 投诉人姓名 - */ - complaintName: string; - - /** - * 手机号 - */ - phone: string; - - /** - * 问题照片url - */ - problemIamgeUrl: string; - - /** - * 投诉状态 0 待处理 1 已处理 - */ - status: string; - - /** - * 处理人员id - */ - handleId: string; - - /** - * 处理人员姓名 - */ - handleName: string; - - /** - * 处理描述 - */ - handleContent: string; - - problemImageUrl: string; -} - -export interface ComplaintForm extends BaseEntity { - /** - * 投诉管理表id - */ - id?: string | number; - - /** - * 投诉类型id - */ - typeId?: string | number; - - /** - * 问题描述 - */ - problemDes?: string; - - /** - * 投诉人姓名 - */ - complaintName?: string; - - /** - * 手机号 - */ - phone?: string; - - /** - * 问题照片url - */ - problemImageUrl?: string; - - /** - * 投诉状态 0待处理 1处理中 2已处理 - */ - status?: string; - - /** - * 处理人员id - */ - handleId?: string; - - /** - * 处理人员姓名 - */ - handleName?: string; - - /** - * 处理描述 - */ - handleContent?: string; -} - -export interface ComplaintQuery extends PageQuery { - /** - * 投诉类型id - */ - typeId?: string | number; - - /** - * 问题描述 - */ - problemDes?: string; - - /** - * 投诉人姓名 - */ - complaintName?: string; - - /** - * 手机号 - */ - phone?: string; - - /** - * 问题照片url - */ - problemImageUrl?: string; - - /** - * 投诉状态 0待处理 1处理中 2已处理 - */ - status?: string; - - /** - * 处理人员id - */ - handleId?: string; - - /** - * 处理人员姓名 - */ - handleName?: string; - - /** - * 处理描述 - */ - handleContent?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/Decoration/index.ts b/src/api/system/Decoration/index.ts deleted file mode 100644 index 49126aa..0000000 --- a/src/api/system/Decoration/index.ts +++ /dev/null @@ -1,63 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { DecorationVO, DecorationForm, DecorationQuery } from '@/api/system/Decoration/type'; - -/** - * 查询装修管理列表 - * @param query - * @returns {*} - */ - -export const listDecoration = (query?: DecorationQuery): AxiosPromise => { - return request({ - url: '/decoration/list', - method: 'get', - params: query - }); -}; - -/** - * 查询装修管理详细 - * @param id - */ -export const getDecoration = (id: string | number): AxiosPromise => { - return request({ - url: '/decoration/' + id, - method: 'get' - }); -}; - -/** - * 新增装修管理 - * @param data - */ -export const addDecoration = (data: DecorationForm) => { - return request({ - url: '/decoration', - method: 'post', - data: data - }); -}; - -/** - * 修改装修管理 - * @param data - */ -export const updateDecoration = (data: DecorationForm) => { - return request({ - url: '/decoration', - method: 'put', - data: data - }); -}; - -/** - * 删除装修管理 - * @param id - */ -export const delDecoration = (id: string | number | Array) => { - return request({ - url: '/decoration/' + id, - method: 'delete' - }); -}; diff --git a/src/api/system/Decoration/type.ts b/src/api/system/Decoration/type.ts deleted file mode 100644 index 3ba2a8f..0000000 --- a/src/api/system/Decoration/type.ts +++ /dev/null @@ -1,151 +0,0 @@ -export interface DecorationVO { - /** - * 装修管理表id - */ - id: string | number; - - /** - * 所属小区id - */ - villageId: string; - - /** - * 所属房屋id - */ - houseId: string | number; - buildingId: string; - unitNoId: string; - /** - * 申请人姓名 - */ - applyName: string; - - /** - * 装修公司 - */ - decorationCompany: string; - - /** - * 装修内容 - */ - decorationContent: string; - - /** - * 装修押金 - */ - decorationDeposit: number; - - /** - * 装修验收结果 0通过 1未通过 - */ - inspectionResult: string; - - /** - * 备注 - */ - remark: string; - - /** - * 验收人 - */ - inspectionName: string; -} - -export interface DecorationForm extends BaseEntity { - /** - * 装修管理表id - */ - id?: string | number; - - /** - * 所属小区id - */ - villageId?: string; - villageName?: string; - /** - * 所属房屋id - */ - houseId?: string | number; - houseName?: string; - /** - * 申请人姓名 - */ - applyName?: string; - - /** - * 装修公司 - */ - decorationCompany?: string; - - /** - * 装修内容 - */ - decorationContent?: string; - - /** - * 装修押金 - */ - decorationDeposit?: number; - - /** - * 装修验收结果 0通过 1未通过 - */ - inspectionResult?: string; - - /** - * 备注 - */ - remark?: string; - - /** - * 验收人 - */ - inspectionName?: string; -} - -export interface DecorationQuery extends PageQuery { - /** - * 所属小区id - */ - villageId?: string; - - /** - * 所属房屋id - */ - houseId?: string | number; - - /** - * 申请人姓名 - */ - applyName?: string; - - /** - * 装修公司 - */ - decorationCompany?: string; - - /** - * 装修内容 - */ - decorationContent?: string; - - /** - * 装修押金 - */ - decorationDeposit?: number; - - /** - * 装修验收结果 0通过 1未通过 - */ - inspectionResult?: string; - - /** - * 验收人 - */ - inspectionName?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/Inspection/index.ts b/src/api/system/Inspection/index.ts deleted file mode 100644 index ed13830..0000000 --- a/src/api/system/Inspection/index.ts +++ /dev/null @@ -1,135 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; - -/** - * 查询巡检数据 概况 - * @param query - * @returns {*} - */ - -export const listItem = (query?: Request): AxiosPromise => { - return request({ - url: '/inspection/data/list', - method: 'get', - params: query - }); -}; -export const overview = (query?: Request): AxiosPromise => { - return request({ - url: '/inspection/data/generate/overview', - method: 'POST', - params: query - }); -}; -export interface Request { - /** - * 进行中的任务数 - */ - activeTask?: string; - /** - * 按时完成任务数 - */ - completedTask?: string; - /** - * 创建时间 - */ - createTime?: string; - /** - * 详细数据 - */ - dataContent?: string; - /** - * 数据类型:0-概况/1-日报/2-周报/3-月报/4-统计 - */ - dataType?: string; - /** - * 巡检人员id - */ - inspectorId?: string; - /** - * 完成率 - */ - onTimeRate?: string; - /** - * 超时完成数 - */ - outCompletedTasks?: string; - /** - * 超时未完成数 - */ - outUncompletedTasks?: string; - /** - * 未开始的任务数 - */ - pendingTask?: string; - statDate?: string; - /** - * 总任务数 - */ - totalTasks?: string; - /** - * 更新时间 - */ - updateTime?: string; - [property: string]: any; -} - -/** - * 查询 巡检业务统计 - * @param query - * @returns {*} - */ - -export const list_statapi = (query?: { queryDateBegin: string; queryDateEnd: string }): AxiosPromise => { - return request({ - url: '/inspection/data/role/stat', - method: 'get', - params: query - }); -}; - -export type exportPageApiQuery = { - /** - * 数据类型:1-日报 / 2-周报 / 3-月报 - */ - dataType?: string; - /** - * 页码 - */ - pageNum: number; - /** - * 每页条数 - */ - pageSize: number; - /** - * 查询开始日期 - */ - queryDateBegin?: string; - /** - * 查询结束日期 - */ - queryDateEnd?: string; - /** - * 日期 - */ - statDate?: string; -}; - -type exportAllApiQuery = Omit; -/** 导出当前页 数据api */ -export const exportPageApi = (data: exportPageApiQuery): AxiosPromise => { - return request({ - url: '/inspection/data/export/page', - method: 'POST', - data - }); -}; - -/** 导出 所有 数据api */ -export const exportAllApi = (data: exportAllApiQuery): AxiosPromise => { - return request({ - url: '/inspection/data/export', - method: 'POST', - data - }); -}; diff --git a/src/api/system/InspectionItem/index.ts b/src/api/system/InspectionItem/index.ts deleted file mode 100644 index 38007ba..0000000 --- a/src/api/system/InspectionItem/index.ts +++ /dev/null @@ -1,74 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { ItemVO, ItemForm, ItemQuery } from './type'; - -/** - * 查询巡检项目列表 - * @param query - * @returns {*} - */ - -export const listItem = (query?: ItemQuery): AxiosPromise => { - return request({ - url: '/inspection/item/list', - method: 'get', - params: query - }); -}; - -/** - * 查询巡检项目详细 - * @param id - */ -export const getItem = (id: string | number): AxiosPromise => { - return request({ - url: '/inspection/item/' + id, - method: 'get' - }); -}; - -/** - * 新增巡检项目 - * @param data - */ -export const addItem = (data: ItemForm) => { - return request({ - url: '/inspection/item', - method: 'post', - data: data - }); -}; - -/** - * 修改巡检项目 - * @param data - */ -export const updateItem = (data: ItemForm) => { - return request({ - url: '/inspection/item/updateItem', - method: 'PUT', - data: data - }); -}; - -/** - * 修改巡检项目 状态 - * @param data - */ -export const updateItemStatus = (data: { id: string; status: string }) => { - return request({ - url: `/inspection/item/changeStatus?id=${data.id}&status=${data.status}`, - method: 'PUT' - }); -}; - -/** - * 删除巡检项目 - * @param id - */ -export const delItem = (id: string | number | Array) => { - return request({ - url: '/inspection/item/' + id, - method: 'delete' - }); -}; diff --git a/src/api/system/InspectionItem/type.ts b/src/api/system/InspectionItem/type.ts deleted file mode 100644 index 4e5318e..0000000 --- a/src/api/system/InspectionItem/type.ts +++ /dev/null @@ -1,180 +0,0 @@ -export interface ItemVO { - /** - * 主键ID - */ - id: string | number; - - /** - * 项目名称 - */ - itemName: string; - - /** - * 项目编号 - */ - itemCode: string; - - /** - * 巡检标准 - */ - inspectionStandard: string; - - /** - * 项目类别 - */ - category: string; - - /** - * 项目描述 - */ - description: string; - - /** - * 默认值 - */ - defaultValue: string; - - /** - * 输入类型:text/select/radio/checkbox - */ - inputType: string; - - /** - * 选项,多个用逗号分隔 - */ - options: string; - - /** - * 是否必填:0-否,1-是 - */ - isRequired: number; - - /** - * 状态:0-开启,1-关闭 - */ - status: string; - - /** - * 备注 - */ - remark: string; -} - -export interface ItemForm extends BaseEntity { - /** - * 主键ID - */ - id?: string | number; - - /** - * 项目名称 - */ - itemName?: string; - - /** - * 项目编号 - */ - itemCode?: string; - - /** - * 巡检标准 - */ - inspectionStandard?: string; - - /** - * 项目类别 - */ - category?: string; - - /** - * 项目描述 - */ - description?: string; - - /** - * 默认值 - */ - defaultValue?: string; - - /** - * 输入类型:text/select/radio/checkbox - */ - inputType?: string; - - /** - * 选项,多个用逗号分隔 - */ - options?: string; - - /** - * 是否必填:0-否,1-是 - */ - isRequired?: number; - - /** - * 状态:0-开启,1-关闭 - */ - status?: string; - - /** - * 备注 - */ - remark?: string; -} - -export interface ItemQuery extends PageQuery { - /** - * 项目名称 - */ - itemName?: string; - - /** - * 项目编号 - */ - itemCode?: string; - - /** - * 巡检标准 - */ - inspectionStandard?: string; - - /** - * 项目类别 - */ - category?: string; - - /** - * 项目描述 - */ - description?: string; - - /** - * 默认值 - */ - defaultValue?: string; - - /** - * 输入类型:text/select/radio/checkbox - */ - inputType?: string; - - /** - * 选项,多个用逗号分隔 - */ - options?: string; - - /** - * 是否必填:0-否,1-是 - */ - isRequired?: number; - - /** - * 状态:0-开启,1-关闭 - */ - status?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/InspectionPlan/index.ts b/src/api/system/InspectionPlan/index.ts deleted file mode 100644 index 7d7fed3..0000000 --- a/src/api/system/InspectionPlan/index.ts +++ /dev/null @@ -1,75 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { PlanVO, PlanForm, PlanQuery } from '@/api/system/InspectionPlan/type'; - -/** - * 查询巡检计划列表 - * @param query - * @returns {*} - */ - -export const listPlan = (query: PlanQuery | {} = {}): AxiosPromise => { - return request({ - url: '/inspection/plan/list', - method: 'get', - params: query - }); -}; - -/** - * 查询巡检计划详细 - * @param id - */ -export const getPlan = (id: string | number): AxiosPromise => { - return request({ - url: '/inspection/plan/' + id, - method: 'get' - }); -}; - -/** - * 新增巡检计划 - * @param data - */ -export const addPlan = (data: PlanForm) => { - return request({ - url: '/inspection/plan', - method: 'post', - data: data - }); -}; - -/** - * 修改巡检计划 - * @param data - */ -export const updatePlan = (data: PlanForm) => { - return request({ - url: '/inspection/plan', - method: 'put', - data: data - }); -}; - -/** - * 删除巡检计划 - * @param id - */ -export const delPlan = (id: string | number | Array) => { - return request({ - url: '/inspection/plan/' + id, - method: 'delete' - }); -}; -/** - * 改变巡检计划状态 - * @param id - * @param status - */ -export const changePlanStatus = (id: string, status: string) => { - return request({ - url: '/inspection/plan/changeStatus', - method: 'put', - params: { id, status } - }); -}; diff --git a/src/api/system/InspectionPlan/type.ts b/src/api/system/InspectionPlan/type.ts deleted file mode 100644 index 6eb4b9d..0000000 --- a/src/api/system/InspectionPlan/type.ts +++ /dev/null @@ -1,186 +0,0 @@ -export interface PlanVO { - /** - * 主键ID - */ - id: string | number; - inspectorIds: string; - /** - * 巡检计划名称 - */ - planName: string; - - /** - * 执行周期,如:开始日期-结束日期 - */ - executeCycle: string; - - /** - * 任务时间 - */ - taskTime: string; - - /** - * 提醒时间 - */ - remindTime: string; - - /** - * 巡检设置:0-必须拍照,1-可以跳检 - */ - inspectSetting: number; - inspectSettingDict: { - dictLabel: string; - dictValue: string; - listClass: string; - }; - - /** - * 计划路线,多个用逗号分隔 - */ - routeIds: string; - - /** - * 状态:0-关闭,1-开启 - */ - status: number; - - /** - * 备注 - */ - remark: string; - - /** - * 执行周期具体日期 - */ - executeDay: string; - executeDayList: { - dictLabel: string; - dictValue: string; - listClass: string; - }[]; - /** 巡检人员信息 */ - inspectorList: { - 'userId': string; - 'userName': string; - 'nickName': string; - 'phonenumber': number; - }[]; - /** 巡检路线 */ - routeList: { - 'id': string; - 'routeName': string; - 'description': string; - 'totalPoints': string; - 'estimatedTime': number; - 'routeStatus': string; - }[]; -} - -export interface PlanForm extends BaseEntity { - /** - * 主键ID - */ - id?: string | number; - - /** - * 巡检计划名称 - */ - planName?: string; - - /** - * 巡检人员ID,多个用逗号分隔 - */ - inspectorIds?: string; - - /** - * 执行周期,如:开始日期-结束日期 - */ - executeCycle?: string; - - /** - * 任务时间 - */ - taskTime?: string; - - /** - * 提醒时间 - */ - remindTime?: string; - - /** - * 巡检设置:0-必须拍照,1-可以跳检 - */ - inspectSetting?: number; - - /** - * 计划路线,多个用逗号分隔 - */ - routeIds?: string; - - /** - * 状态:0-关闭,1-开启 - */ - status?: number; - - /** - * 备注 - */ - remark?: string; - - /** - * 执行周期具体日期 - */ - executeDay?: string; -} - -export interface PlanQuery extends PageQuery { - /** - * 巡检计划名称 - */ - planName?: string; - - /** - * 巡检人员ID,多个用逗号分隔 - */ - inspectorIds?: string; - - /** - * 执行周期,如:开始日期-结束日期 - */ - executeCycle?: string; - - /** - * 任务时间 - */ - taskTime?: string; - - /** - * 提醒时间 - */ - remindTime?: string; - - /** - * 巡检设置:0-必须拍照,1-可以跳检 - */ - inspectSetting?: string; - - /** - * 计划路线,多个用逗号分隔 - */ - routeIds?: string; - - /** - * 状态:0-关闭,1-开启 - */ - status?: number; - - /** - * 执行周期具体日期 - */ - executeDay?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/InspectionPoint/index.ts b/src/api/system/InspectionPoint/index.ts deleted file mode 100644 index a873c36..0000000 --- a/src/api/system/InspectionPoint/index.ts +++ /dev/null @@ -1,74 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { PointVO, PointForm, PointQuery } from '@/api/system/InspectionPoint/type'; - -/** - * 查询巡检点列表 - * @param query - * @returns {*} - */ - -export const listPoint = (query?: PointQuery | {}): AxiosPromise => { - return request({ - url: '/inspection/point/list', - method: 'get', - params: query - }); -}; - -/** - * 查询巡检点详细 - * @param id - */ -export const getPoint = (id: string | number): AxiosPromise => { - return request({ - url: '/inspection/point/' + id, - method: 'get' - }); -}; - -/** - * 新增巡检点 - * @param data - */ -export const addPoint = (data: PointForm) => { - return request({ - url: '/inspection/point', - method: 'post', - data: data - }); -}; - -/** - * 修改巡检点 - * @param data - */ -export const updatePoint = (data: PointForm) => { - return request({ - url: '/inspection/point', - method: 'put', - data: data - }); -}; - -/** - * 删除巡检点 - * @param id - */ -export const delPoint = (id: string | number | Array) => { - return request({ - url: '/inspection/point/' + id, - 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' - }); -}; diff --git a/src/api/system/InspectionPoint/type.ts b/src/api/system/InspectionPoint/type.ts deleted file mode 100644 index 36ed7bc..0000000 --- a/src/api/system/InspectionPoint/type.ts +++ /dev/null @@ -1,150 +0,0 @@ -export interface PointVO { - /** - * 主键ID - */ - id: string; - - /** - * 巡检点名称 - */ - pointName: string; - - /** - * 巡检项目id - */ - itemId: string; - - /** - * 所属路线ID - */ - routeId: string; - - /** - * 巡检点位置(经纬度),格式:经度,纬度 - */ - location: string; - - /** - * 打卡方式:9999定位打卡、9998蓝牙打卡、9997NFC打卡 - */ - checkMode: string; - - /** - * 状态:0-开启,1-关闭 - */ - status: string; - - /** - * 备注 - */ - remark: string; - - /** - * 点位编号 - */ - pointCode: string; - - /** - * 是否打卡 0:已打卡 1:未打卡 - */ - isCheck: string; -} - -export interface PointForm extends BaseEntity { - /** - * 主键ID - */ - id?: string | number; - - /** - * 巡检点名称 - */ - pointName?: string; - - /** - * 巡检项目id - */ - itemId?: string; - - /** - * 所属路线ID - */ - routeId?: string | number; - - /** - * 巡检点位置(经纬度),格式:经度,纬度 - */ - location?: string; - - /** - * 打卡方式:9999定位打卡、9998蓝牙打卡、9997NFC打卡 - */ - checkMode?: string; - - /** - * 状态:0-开启,1-关闭 - */ - status?: string; - - /** - * 备注 - */ - remark?: string; - - /** - * 点位编号 - */ - pointCode?: string; - - /** - * 是否打卡 0:已打卡 1:未打卡 - */ - isCheck?: string; -} - -export interface PointQuery extends PageQuery { - /** - * 巡检点名称 - */ - pointName?: string; - - /** - * 巡检项目id - */ - itemId?: string; - - /** - * 所属路线ID - */ - routeId?: string | number; - - /** - * 巡检点位置(经纬度),格式:经度,纬度 - */ - location?: string; - - /** - * 打卡方式:9999定位打卡、9998蓝牙打卡、9997NFC打卡 - */ - checkMode?: string; - - /** - * 状态:0-开启,1-关闭 - */ - status?: string; - - /** - * 点位编号 - */ - pointCode?: string; - - /** - * 是否打卡 0:已打卡 1:未打卡 - */ - isCheck?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/InspectionRecord/index.ts b/src/api/system/InspectionRecord/index.ts deleted file mode 100644 index e5cd56f..0000000 --- a/src/api/system/InspectionRecord/index.ts +++ /dev/null @@ -1,67 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { RecordVO, RecordForm, RecordQuery } from '@/api/system/InspectionRecord/type'; - -/** - * 查询巡检记录主列表 - * @param query - * @returns {*} - */ - -export const listRecord = (query?: RecordQuery): AxiosPromise => { - return request({ - url: '/inspection/record/list', - method: 'get', - params: query - }); -}; - -/** - * 查询巡检记录主详细 - * @param id - * @param date - */ -export const getRecord = (id: string, date?: string): AxiosPromise => { - return request({ - url: '/inspection/record/' + id, - method: 'get', - params: { - date - } - }); -}; - -/** - * 新增巡检记录主 - * @param data - */ -export const addRecord = (data: RecordForm) => { - return request({ - url: '/inspection/record', - method: 'post', - data: data - }); -}; - -/** - * 修改巡检记录主 - * @param data - */ -export const updateRecord = (data: RecordForm) => { - return request({ - url: '/inspection/record', - method: 'put', - data: data - }); -}; - -/** - * 删除巡检记录主 - * @param id - */ -export const delRecord = (id: string | number | Array) => { - return request({ - url: '/inspection/record/' + id, - method: 'delete' - }); -}; diff --git a/src/api/system/InspectionRecord/type.ts b/src/api/system/InspectionRecord/type.ts deleted file mode 100644 index d6de531..0000000 --- a/src/api/system/InspectionRecord/type.ts +++ /dev/null @@ -1,103 +0,0 @@ -export interface RecordVO { - actualEndTime?: string; - actualStartTime?: string; - createByName?: string; - createTime?: string; - details?: DetailsVo[]; - id?: string; - inspectorId?: number; - inspectorName?: string; - planId?: string; - planName?: string; - remark?: string; - routeId?: string; - routeName?: string; - status?: string; - statusLabel?: null; - taskName?: string; - taskTime?: string; - updateTime?: string; -} - -export interface RecordForm extends BaseEntity { - /** - * 主键ID - */ - id?: string | number; - - /** - * 关联巡检任务ID - */ - taskId?: string | number; - - /** - * 关联巡检计划ID - */ - planId?: string | number; - - /** - * 巡检人员ID - */ - inspectorId?: string | number; - - /** - * 巡检路线ID - */ - routeId?: string | number; - - /** - * 任务开始时间 - */ - startTime?: string; - - /** - * 任务结束时间 - */ - endTime?: string; - - /** - * 执行状态(字典:inspection_exec_status 0-按时完成 1-超时完成 2-未完成) - */ - execStatus?: number; - - /** - * 备注 - */ - remark?: string; -} - -export interface RecordQuery extends PageQuery { - /** - * 执行状态(字典:inspection_exec_status 0-按时完成 1-超时完成 2-未完成) - */ - status?: string; - - /** - * 日期范围参数 - */ - taskTime?: string; - - /** - * 任务名称 - */ - taskName?: string; - - taskTimeBegin?: string; - taskTimeEnd?: 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[]; -} diff --git a/src/api/system/InspectionRoute/index.ts b/src/api/system/InspectionRoute/index.ts deleted file mode 100644 index 88d1c11..0000000 --- a/src/api/system/InspectionRoute/index.ts +++ /dev/null @@ -1,71 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { RouteVO, RouteForm, RouteQuery } from './type'; - -/** - * 查询巡检路线列表 - * @param query - * @returns {*} - */ - -export const listRoute = (query: RouteQuery | {} = {}): AxiosPromise => { - return request({ - url: '/inspection/route/list', - method: 'get', - params: query - }); -}; - -/** - * 查询巡检路线详细 - * @param id - */ -export const getRoute = (id: string): AxiosPromise => { - return request({ - url: '/inspection/route/' + id, - method: 'get' - }); -}; - -/** - * 新增巡检路线 - * @param data - */ -export const addRoute = (data: RouteForm) => { - return request({ - url: '/inspection/route', - method: 'post', - data: data - }); -}; - -/** - * 修改巡检路线 - * @param data - */ -export const updateRoute = (data: RouteForm) => { - return request({ - url: '/inspection/route', - method: 'put', - data: data - }); -}; - -/** - * 删除巡检路线 - * @param id - */ -export const delRoute = (id: string | number | Array) => { - return request({ - url: '/inspection/route/' + id, - method: 'delete' - }); -}; - -export const changeStatusRoute = (id: string, status: string) => { - return request({ - url: '/inspection/route/changeStatus', - method: 'put', - params: { id, status } - }); -}; diff --git a/src/api/system/InspectionRoute/type.ts b/src/api/system/InspectionRoute/type.ts deleted file mode 100644 index 47e4f95..0000000 --- a/src/api/system/InspectionRoute/type.ts +++ /dev/null @@ -1,180 +0,0 @@ -import { PointVO } from '../InspectionPoint/type'; - -export interface RouteVO { - /** - * 主键ID - */ - id: string; - - /** - * 巡检路线名称 - */ - routeName: string; - - /** - * 路线描述 - */ - description: string; - - /** - * 巡检点 - */ - totalPoints: string; - - /** - * 预计巡检时长(分钟) - */ - estimatedTime: number; - - items: { itemName: string }[]; - PointsName: string; - /** - * 备注 - */ - remark: string; - - /** - * 巡检路线状态 0开启 1关闭 - - */ - routeStatus: string; - - /** - * 起点经度 - */ - startLng: string; - - /** - * 起点纬度 - */ - startLat: string; - - /** - * 终点经度 - */ - endLng: string; - - /** - * 终点纬度 - */ - endLat: string; - /** 路线经纬度 二维数组 */ - pathPoints: string; - /** 巡检点 数组 */ - points?: PointVO[]; -} - -export interface RouteForm extends BaseEntity { - /** 路线经纬度 二维数组 */ - pathPoints: string; - /** - * 主键ID - */ - id?: string; - - /** - * 巡检路线名称 - */ - routeName?: string; - - /** - * 路线描述 - */ - description?: string; - - /** - * 巡检点 - */ - totalPoints?: string; - - /** - * 预计巡检时长(分钟) - */ - estimatedTime?: number; - - /** - * 备注 - */ - remark?: string; - - /** - * 巡检路线状态 0开启 1关闭 - - */ - routeStatus?: string; - - /** - * 起点经度 - */ - startLng?: string; - - /** - * 起点纬度 - */ - startLat?: string; - - /** - * 终点经度 - */ - endLng?: string; - - /** - * 终点纬度 - */ - endLat?: string; -} - -export interface RouteQuery extends PageQuery { - /** 路线经纬度 二维数组 */ - pathPoints: string; - /** - * 巡检路线名称 - */ - routeName?: string; - - /** - * 路线描述 - */ - description?: string; - - /** - * 巡检点 - */ - totalPoints?: string; - - /** - * 预计巡检时长(分钟) - */ - estimatedTime?: number; - - /** - * 巡检路线状态 0开启 1关闭 - - */ - routeStatus?: string; - - /** - * 起点经度 - */ - startLng?: string; - - /** - * 起点纬度 - */ - startLat?: string; - - /** - * 终点经度 - */ - endLng?: string; - - /** - * 终点纬度 - */ - endLat?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/InspectionTask/index.ts b/src/api/system/InspectionTask/index.ts deleted file mode 100644 index f279c63..0000000 --- a/src/api/system/InspectionTask/index.ts +++ /dev/null @@ -1,62 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { TaskVO, TaskForm, TaskQuery } from './type'; -/** - * 查询巡检任务列表 - * @param query - * @returns {*} - */ - -export const listTask = (query?: TaskQuery): AxiosPromise => { - return request({ - url: '/inspection/task/list', - method: 'get', - params: query - }); -}; - -/** - * 查询巡检任务详细 - * @param id - */ -export const getTask = (id: string | number): AxiosPromise => { - return request({ - url: '/inspection/task/' + id, - method: 'get' - }); -}; - -/** - * 新增巡检任务 - * @param data - */ -export const addTask = (data: TaskForm) => { - return request({ - url: '/inspection/task', - method: 'post', - data: data - }); -}; - -/** - * 修改巡检任务 - * @param data - */ -export const updateTask = (data: TaskForm) => { - return request({ - url: '/inspection/task', - method: 'put', - data: data - }); -}; - -/** - * 删除巡检任务 - * @param id - */ -export const delTask = (id: string | number | Array) => { - return request({ - url: '/inspection/task/' + id, - method: 'delete' - }); -}; diff --git a/src/api/system/InspectionTask/type.ts b/src/api/system/InspectionTask/type.ts deleted file mode 100644 index a48d5c4..0000000 --- a/src/api/system/InspectionTask/type.ts +++ /dev/null @@ -1,151 +0,0 @@ -export interface TaskVO { - /** - * 主键ID - */ - id: string | number; - - /** - * 巡检任务名称 - */ - taskName: string; - - /** - * 关联巡检计划ID - */ - planId: string; - - /** - * 巡检人员ID - */ - inspectorId: string; - - /** - * 巡检路线ID - */ - routeId: string; - - /** - * 起止日期 - */ - taskTime: string; - - /** - * 状态:0-待执行,1-执行中,2-已完成,3-已超时 - */ - status: string; - - /** 巡检人员信息 */ - inspectorInfo: { - 'userId': string; - 'userName': string; - 'nickName': string; - 'phonenumber': ''; - 'avatar': string; - }[]; - - /** - * 备注 - */ - remark: string; - - /** - * 提醒时间 - */ - remindTime: string; -} - -export interface TaskForm extends BaseEntity { - /** - * 主键ID - */ - id?: string | number; - - /** - * 巡检任务名称 - */ - taskName?: string; - - /** - * 关联巡检计划ID - */ - planId?: string; - - /** - * 巡检人员ID - */ - inspectorId?: string; - - /** - * 巡检路线ID - */ - routeId?: string; - - /** - * 起止日期 - */ - taskTime?: string; - - /** - * 状态:0-待执行,1-执行中,2-已完成,3-已超时 - */ - status?: string; - - /** - * 备注 - */ - remark?: string; - - /** - * 提醒时间 - */ - remindTime?: string; -} - -export interface TaskQuery extends PageQuery { - /** - * 巡检任务名称 - */ - taskName?: string; - taskTimeBegin?: string; - taskTimeEnd?: string; - - /** - * 关联巡检计划ID - */ - planId?: string; - - /** - * 巡检人员ID - */ - inspectorId?: string; - - /** - * 巡检路线ID - */ - routeId?: string; - - /** - * 起止日期 - */ - taskTime?: string; - - /** - * 费用单位 - */ - costUnit?: string; - - /** - * 状态:0-待执行,1-执行中,2-已完成,3-已超时 - */ - status?: string; - - /** - * 提醒时间 - */ - remindTime?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/MonthCard/index.ts b/src/api/system/MonthCard/index.ts deleted file mode 100644 index df59129..0000000 --- a/src/api/system/MonthCard/index.ts +++ /dev/null @@ -1,63 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { MonthCardVO, MonthCardForm, MonthCardQuery } from '@/api/system/MonthCard/type'; - -/** - * 查询月卡管理列表 - * @param query - * @returns {*} - */ - -export const listMonthCard = (query?: MonthCardQuery): AxiosPromise => { - return request({ - url: '/monthCard/list', - method: 'get', - params: query - }); -}; - -/** - * 查询月卡管理详细 - * @param id - */ -export const getMonthCard = (id: string | number): AxiosPromise => { - return request({ - url: '/monthCard/' + id, - method: 'get' - }); -}; - -/** - * 新增月卡管理 - * @param data - */ -export const addMonthCard = (data: MonthCardForm) => { - return request({ - url: '/monthCard', - method: 'post', - data: data - }); -}; - -/** - * 修改月卡管理 - * @param data - */ -export const updateMonthCard = (data: MonthCardForm) => { - return request({ - url: '/monthCard', - method: 'put', - data: data - }); -}; - -/** - * 删除月卡管理 - * @param id - */ -export const delMonthCard = (id: string | number | Array) => { - return request({ - url: '/monthCard/' + id, - method: 'delete' - }); -}; diff --git a/src/api/system/MonthCard/type.ts b/src/api/system/MonthCard/type.ts deleted file mode 100644 index bbb8444..0000000 --- a/src/api/system/MonthCard/type.ts +++ /dev/null @@ -1,180 +0,0 @@ -export interface MonthCardVO { - /** - * 月卡管理表id - */ - id: string | number; - - /** - * 办理时间 - */ - handleTime: string; - - /** - * 持卡人姓名 - */ - cardName: string; - - /** - * 手机号码 - */ - phone: string; - - /** - * 绑定车牌号 - */ - carNum: string; - - /** - * 办理人姓名 - */ - handleName: string; - - /** - * 月卡编号 - */ - cardCode: string; - - /** - * 费用/元 - */ - cost: number; - - /** - * 支付方式 0微信 1支付宝 2线下缴费 - */ - payMethod: string; - - /** - * 备注 - */ - remark: string; - - /** - * 开始日期 - */ - startTime: string; - - /** - * 结束日期 - */ - endTime: string; -} - -export interface MonthCardForm extends BaseEntity { - /** - * 月卡管理表id - */ - id?: string | number; - - /** - * 办理时间 - */ - handleTime?: string; - - /** - * 持卡人姓名 - */ - cardName?: string; - - /** - * 手机号码 - */ - phone?: string; - - /** - * 绑定车牌号 - */ - carNum?: string; - - /** - * 办理人姓名 - */ - handleName?: string; - - /** - * 月卡编号 - */ - cardCode?: string; - - /** - * 费用/元 - */ - cost?: number; - - /** - * 支付方式 0微信 1支付宝 2线下缴费 - */ - payMethod?: string; - - /** - * 备注 - */ - remark?: string; - - /** - * 开始日期 - */ - startTime?: string; - - /** - * 结束日期 - */ - endTime?: string; -} - -export interface MonthCardQuery extends PageQuery { - /** - * 办理时间 - */ - handleTime?: string; - - /** - * 持卡人姓名 - */ - cardName?: string; - - /** - * 手机号码 - */ - phone?: string; - - /** - * 绑定车牌号 - */ - carNum?: string; - - /** - * 办理人姓名 - */ - handleName?: string; - - /** - * 月卡编号 - */ - cardCode?: string; - - /** - * 费用/元 - */ - cost?: number; - - /** - * 支付方式 0微信 1支付宝 2线下缴费 - */ - payMethod?: string; - - /** - * 开始日期 - */ - startTime?: string; - - /** - * 结束日期 - */ - endTime?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/NoticePc/index.ts b/src/api/system/NoticePc/index.ts deleted file mode 100644 index 6e5e57a..0000000 --- a/src/api/system/NoticePc/index.ts +++ /dev/null @@ -1,63 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { NoticeVO, NoticeForm, NoticeQuery } from '@/api/system/NoticePc/type'; - -/** - * 查询公告信息列表 - * @param query - * @returns {*} - */ - -export const listNotice = (query?: NoticeQuery): AxiosPromise => { - return request({ - url: '/notice/list', - method: 'get', - params: query - }); -}; - -/** - * 查询公告信息详细 - * @param noticeId - */ -export const getNotice = (noticeId: string | number): AxiosPromise => { - return request({ - url: '/notice/' + noticeId, - method: 'get' - }); -}; - -/** - * 新增公告信息 - * @param data - */ -export const addNotice = (data: NoticeForm) => { - return request({ - url: '/notice', - method: 'post', - data: data - }); -}; - -/** - * 修改公告信息 - * @param data - */ -export const updateNotice = (data: NoticeForm) => { - return request({ - url: '/notice', - method: 'put', - data: data - }); -}; - -/** - * 删除公告信息 - * @param noticeId - */ -export const delNotice = (noticeId: string | number | Array) => { - return request({ - url: '/notice/' + noticeId, - method: 'delete' - }); -}; diff --git a/src/api/system/NoticePc/type.ts b/src/api/system/NoticePc/type.ts deleted file mode 100644 index ba83b1d..0000000 --- a/src/api/system/NoticePc/type.ts +++ /dev/null @@ -1,125 +0,0 @@ -export interface NoticeVO { - /** - * 公告ID - */ - noticeId: string | number; - - /** - * 公告标题 - */ - noticeTitle: string; - - /** - * 公告内容 - */ - noticeContent: string; - - /** - * 作者 - */ - author: string; - - /** - * 紧急程度 0=普通 1=紧急 2=非常紧急 - */ - urgencyLevel: number; - - /** - * 发布状态 0=草稿 1=已发布 - */ - publishStatus: number; - - /** - * 发布人 - */ - publishBy: string; - - /** - * 发布日期 - */ - publishTime: string; -} - -export interface NoticeForm 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; -} - -export interface NoticeQuery extends PageQuery { - /** - * 公告标题 - */ - noticeTitle?: string; - - /** - * 公告内容 - */ - noticeContent?: string; - - /** - * 作者 - */ - author?: string; - - /** - * 紧急程度 0=普通 1=紧急 2=非常紧急 - */ - urgencyLevel?: number; - - /** - * 发布状态 0=草稿 1=已发布 - */ - publishStatus?: number; - - /** - * 发布人 - */ - publishBy?: string; - - /** - * 发布日期 - */ - publishTime?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/Notification/index.ts b/src/api/system/Notification/index.ts deleted file mode 100644 index 0e11779..0000000 --- a/src/api/system/Notification/index.ts +++ /dev/null @@ -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 => { - 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 - } - }); -}; diff --git a/src/api/system/ParkingCost/index.ts b/src/api/system/ParkingCost/index.ts deleted file mode 100644 index d0f573e..0000000 --- a/src/api/system/ParkingCost/index.ts +++ /dev/null @@ -1,121 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { ParkingCostVO, ParkingCostForm, ParkingCostQuery } from './type'; - -/** - * 查询停车缴费管理列表 - * @param query - * @returns {*} - */ - -export const listParkingCost = (query?: ParkingCostQuery): AxiosPromise => { - return request({ - url: '/parkingCost/list', - method: 'get', - params: query - }); -}; - -/** - * 查询停车缴费管理详细 - * @param id - */ -export const getParkingCost = (id: string | number): AxiosPromise => { - return request({ - url: '/parkingCost/' + id, - method: 'get' - }); -}; - -/** - * 新增停车缴费管理 - * @param data - */ -export const addParkingCost = (data: ParkingCostForm) => { - return request({ - url: '/parkingCost', - method: 'post', - data: data - }); -}; - -/** - * 修改停车缴费管理 - * @param data - */ -export const updateParkingCost = (data: ParkingCostForm) => { - return request({ - url: '/parkingCost', - method: 'put', - data: data - }); -}; - -/** - * 删除停车缴费管理 - * @param id - */ -export const delParkingCost = (id: string | number | Array) => { - return request({ - url: '/parkingCost/' + id, - 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 - }); -}; diff --git a/src/api/system/ParkingCost/type.ts b/src/api/system/ParkingCost/type.ts deleted file mode 100644 index 79943ba..0000000 --- a/src/api/system/ParkingCost/type.ts +++ /dev/null @@ -1,195 +0,0 @@ -export interface ParkingCostVO { - /** - * 停车缴费表id - */ - id: string | number; - - /** - * 区域id - */ - areaId: string | number; - - /** - * 车位id - */ - parkingId: string; - - /** - * 收费项目 0临时停车 - */ - chargeItem: string; - - /** - * 缴纳人姓名 - */ - payerName: string; - - /** - * 车牌号 - */ - carNum: string; - - /** - * 开始时间 - */ - startTime: string; - - /** - * 结束时间 - */ - endTime: string; - - /** - * 费用/元 - */ - cost: number; - - /** - * 缴纳状态 0待缴纳 1已缴纳 - */ - payerStatus: string; - - /** - * 支付方式 0微信 1支付宝 2线下缴费 - */ - payMethod: string; - - /** - * 备注 - */ - remark: string; - - /** - * 所属小区id - */ - villageId: string; -} - -export interface ParkingCostForm extends BaseEntity { - /** - * 停车缴费表id - */ - id?: string | number; - - /** - * 区域id - */ - areaId?: string | number; - - /** - * 车位id - */ - parkingId?: string; - - /** - * 收费项目 0临时停车 - */ - chargeItem?: string; - - /** - * 缴纳人姓名 - */ - payerName?: string; - - /** - * 车牌号 - */ - carNum?: string; - - /** - * 开始时间 - */ - startTime?: string; - - /** - * 结束时间 - */ - endTime?: string; - - /** - * 费用/元 - */ - cost?: number; - - /** - * 缴纳状态 0待缴纳 1已缴纳 - */ - payerStatus?: string; - - /** - * 支付方式 0微信 1支付宝 2线下缴费 - */ - payMethod?: string; - - /** - * 备注 - */ - remark?: string; - - /** - * 所属小区id - */ - villageId?: string; -} - -export interface ParkingCostQuery extends PageQuery { - /** - * 区域id - */ - areaId?: string | number; - - /** - * 车位id - */ - parkingId?: string; - - /** - * 收费项目 0临时停车 - */ - chargeItem?: string; - - /** - * 缴纳人姓名 - */ - payerName?: string; - - /** - * 车牌号 - */ - carNum?: string; - - /** - * 开始时间 - */ - startTime?: string; - - /** - * 结束时间 - */ - endTime?: string; - - /** - * 费用/元 - */ - cost?: number; - - /** - * 缴纳状态 0待缴纳 1已缴纳 - */ - payerStatus?: string; - - /** - * 支付方式 0微信 1支付宝 2线下缴费 - */ - payMethod?: string; - - /** - * 所属小区id - */ - villageId?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/Payment/index.ts b/src/api/system/Payment/index.ts deleted file mode 100644 index 85ef163..0000000 --- a/src/api/system/Payment/index.ts +++ /dev/null @@ -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 => { - 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 => { - 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 => { - 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 => { - 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 - } - }); -}; diff --git a/src/api/system/Personnel/index.ts b/src/api/system/Personnel/index.ts deleted file mode 100644 index 421a309..0000000 --- a/src/api/system/Personnel/index.ts +++ /dev/null @@ -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 - }); -}; diff --git a/src/api/system/Questionnaire/index.ts b/src/api/system/Questionnaire/index.ts deleted file mode 100644 index f87bde7..0000000 --- a/src/api/system/Questionnaire/index.ts +++ /dev/null @@ -1,99 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { QuestionnaireVO, QuestionnaireForm, QuestionnaireQuery } from '@/api/system/Questionnaire/type'; - -/** - * 查询问卷调查列表 - * @param query - * @returns {*} - */ - -export const listQuestionnaire = (query?: QuestionnaireQuery): AxiosPromise => { - return request({ - url: '/questionnaire/list', - method: 'get', - params: query - }); -}; - -/** - * 查询问卷调查详细 - * @param id - */ -export const getQuestionnaire = (id: string | number): AxiosPromise => { - return request({ - url: '/questionnaire/' + id, - method: 'get' - }); -}; - -/** - * 新增问卷调查 - * @param data - */ -export const addQuestionnaire = (data: QuestionnaireForm) => { - return request({ - url: '/questionnaire', - method: 'post', - data: data - }); -}; - -/** - * 修改问卷调查 - * @param data - */ -export const updateQuestionnaire = (data: QuestionnaireForm) => { - return request({ - url: '/questionnaire', - method: 'put', - data: data - }); -}; - -/** - * 删除问卷调查 - * @param ids - * @param vailid - * @param ids - * @param vailid - */ -export const delQuestionnaire = (ids: string | string[], vailid: boolean = true) => { - 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' - }); -}; diff --git a/src/api/system/Questionnaire/type.ts b/src/api/system/Questionnaire/type.ts deleted file mode 100644 index 35a897a..0000000 --- a/src/api/system/Questionnaire/type.ts +++ /dev/null @@ -1,165 +0,0 @@ -export interface QuestionnaireVO { - /** - * 问卷ID - */ - id: string; - - /** - * 所属小区id - */ - villageId: string; - - /** - * 问卷标题 - */ - title: string; - - /** - * 问卷描述 - */ - description: string; - - /** - * 问卷题目结构(JSON数组) - */ - content: string | QuestionComponentItem[]; - - /** - * 状态:0-草稿 1-已发布 2-已结束 - */ - status: string; - - /** - * 参与范围 0全体业主 1部分业主 - */ - scope: string; - - /** - * 部分业主串 ”,“号隔开 - */ - residents: string; - startTime: string; - endTime: string; - - /** - * 备注 - */ - remark: string; -} - -export interface QuestionnaireForm extends BaseEntity { - /** - * 问卷ID - */ - id?: string; - - /** - * 所属小区id - */ - villageId?: string; - - /** - * 问卷标题 - */ - title?: string; - - /** - * 问卷描述 - */ - description?: string; - - /** - * 问卷题目结构(JSON数组) - */ - content?: string | QuestionComponentItem[]; - - /** - * 状态:0-草稿 1-已发布 2-已结束 - */ - status?: string; - - /** - * 参与范围 0全体业主 1部分业主 - */ - scope?: string; - - /** - * 部分业主串 ”,“号隔开 - */ - residents?: string; - - startTime: string; - endTime: string; - /** - * 备注 - */ - remark?: string; -} - -export interface QuestionnaireQuery extends PageQuery { - /** - * 所属小区id - */ - villageId?: string; - - /** - * 问卷标题 - */ - title?: string; - - /** - * 问卷描述 - */ - description?: string; - - /** - * 问卷题目结构(JSON数组) - */ - content?: string | QuestionComponentItem[]; - - /** - * 状态:0-草稿 1-已发布 2-已结束 - */ - status?: string; - - /** - * 参与范围 0全体业主 1部分业主 - */ - scope?: string; - - /** - * 部分业主串 ”,“号隔开 - */ - residents?: string | number; - - /** - * 日期范围参数 - */ - params?: any; -} - -// ==================== 调卷 类型定义 ==================== -export interface ComponentItem { - type: string; - label: string; - icon: any; -} - -export interface QuestionComponentOption { - label: string; -} - -export interface QuestionComponentItem { - cid: number; - type: string; - title: string; - required: boolean; - options: QuestionComponentOption[]; -} - -export interface QuestionComponentnaireForm { - id?: string; - title: string; - description?: string; - content: QuestionComponentItem[]; -} diff --git a/src/api/system/Repair/index.ts b/src/api/system/Repair/index.ts deleted file mode 100644 index 398aef8..0000000 --- a/src/api/system/Repair/index.ts +++ /dev/null @@ -1,74 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { RepairVO, RepairForm, RepairQuery } from '@/api/system/Repair/type'; - -/** - * 查询报修管理列表 - * @param query - * @returns {*} - */ - -export const listRepair = (query?: RepairQuery): AxiosPromise => { - return request({ - url: '/repair/list', - method: 'get', - params: query - }); -}; - -/** - * 查询报修管理详细 - * @param id - */ -export const getRepair = (id: string | number): AxiosPromise => { - return request({ - url: '/repair/' + id, - method: 'get' - }); -}; - -/** - * 新增报修管理 - * @param data - */ -export const addRepair = (data: RepairForm) => { - return request({ - url: '/repair', - method: 'post', - data: data - }); -}; - -/** - * 修改报修管理 - * @param data - */ -export const updateRepair = (data: RepairForm) => { - return request({ - url: '/repair', - method: 'put', - data: data - }); -}; - -/** - * 删除报修管理 - * @param id - */ -export const delRepair = (id: string | number | Array) => { - return request({ - url: '/repair/' + id, - method: 'delete' - }); -}; -/** - * 上传报修图片 - * @param { formdata } formdata - */ -export const uploadRepairImages = (formdata: FormData) => { - return request({ - url: '/repair/uploadImages', - method: 'POST', - data: formdata - }); -}; diff --git a/src/api/system/Repair/type.ts b/src/api/system/Repair/type.ts deleted file mode 100644 index 03a49b4..0000000 --- a/src/api/system/Repair/type.ts +++ /dev/null @@ -1,174 +0,0 @@ -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; -} - -export interface RepairForm extends BaseEntity { - /** - * 报修管理表id - */ - id?: string | number; - - /** - * 关联房屋id - */ - houseId?: string | number; - - /** - * 维修项目id - */ - maintenanceItemId?: string | number; - - /** - * 问题描述 - */ - problem?: string; - - /** - * 报修人id(住户表id) - */ - residentId?: string; - - /** - * 手机号码 - */ - phone?: string; - - /** - * 预约日期 - */ - orderDate?: string; - - /** - * 问题图片地址 - */ - problemImageUrl?: string; - - /** - * 创建者 - */ - createBy?: number; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新者 - */ - updateBy?: number; - - /** - * 更新时间 - */ - updateTime?: string; - - /** - * 0 已提交 1已分配 2维修中 3维修完成 - */ - problemStatus?: string; - - /** - * 维修描述 - */ - repairDes?: string; - - /** - * 维修图片url - */ - repairImageUrl?: string; - - /** - * 维修人员id - */ - repairId?: string | number; -} - -export interface RepairQuery extends PageQuery { - /** - * 关联房屋id - */ - houseId?: string | number; - - /** - * 维修项目id - */ - maintenanceItemId?: string | number; - - /** - * 问题描述 - */ - problem?: string; - - /** - * 报修人id(住户表id) - */ - residentId?: string; - - /** - * 手机号码 - */ - phone?: string; - - /** - * 预约日期 - */ - orderDate?: string; - - /** - * 问题图片地址 - */ - problemImageUrl?: string; - - /** - * 0 已提交 1已分配 2维修中 3维修完成 - */ - problemStatus?: string; - - /** - * 维修描述 - */ - repairDes?: string; - - /** - * 维修图片url - */ - repairImageUrl?: string; - - /** - * 维修人员id - */ - repairId?: string | number; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/RepairProject/index.ts b/src/api/system/RepairProject/index.ts deleted file mode 100644 index 78f4363..0000000 --- a/src/api/system/RepairProject/index.ts +++ /dev/null @@ -1,76 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { RepairProjectVO, RepairProjectForm, RepairProjectQuery, RepairProjectQueryNoPage } from './type'; - -/** - * 查询报修维修项目管理列表 - * @param query - * @returns {*} - */ - -export const listRepairProject = (query?: RepairProjectQuery): AxiosPromise => { - return request({ - url: '/repairProject/list', - method: 'get', - params: query - }); -}; - -/** - * 查询报修维修项目管理详细 - * @param id - */ -export const getRepairProject = (id: string | number): AxiosPromise => { - return request({ - url: '/repairProject/' + id, - method: 'get' - }); -}; - -/** - * 新增报修维修项目管理 - * @param data - */ -export const addRepairProject = (data: RepairProjectForm) => { - return request({ - url: '/repairProject', - method: 'post', - data: data - }); -}; - -/** - * 修改报修维修项目管理 - * @param data - */ -export const updateRepairProject = (data: RepairProjectForm) => { - return request({ - url: '/repairProject', - method: 'put', - data: data - }); -}; - -/** - * 删除报修维修项目管理 - * @param id - */ -export const delRepairProject = (id: string | number | Array) => { - return request({ - url: '/repairProject/' + id, - method: 'delete' - }); -}; -/** - * 查询报修维修项目tree管理列表 - * @param query - * @returns {*} - */ - -export const gettreelistRepairProject = (query?: RepairProjectQueryNoPage): AxiosPromise => { - return request({ - url: '/repairProject/treeList', - method: 'get', - params: query - }); -}; diff --git a/src/api/system/RepairProject/type.ts b/src/api/system/RepairProject/type.ts deleted file mode 100644 index 7afb096..0000000 --- a/src/api/system/RepairProject/type.ts +++ /dev/null @@ -1,139 +0,0 @@ -export interface RepairProjectVO { - /** - * 维修项目表id - */ - id: string; - - /** - * 维修项目名 - */ - projectName: string; - - /** - * 父级项目id - */ - parentId: string; - - /** - * 项目类型 0公共报修 1个人报修 - */ - projectType: string; - - /** - * 项目层级 0,1 - */ - projectLevel: number; - children?: RepairProjectVO[]; - /** - * 排序 (数越小越靠前) - */ - sortOrder: number; - - /** - * 状态 0启用 1停用 - */ - status: string; - - disabled?: boolean; - // children?: RepairProjectVO[]; -} - -export interface RepairProjectForm extends BaseEntity { - /** - * 维修项目表id - */ - id?: string; - - /** - * 维修项目名 - */ - projectName?: string; - - /** - * 父级项目id - */ - parentId?: string; - - /** - * 项目类型 0公共报修 1个人报修 - */ - projectType?: string; - - /** - * 项目层级 0,1 - */ - projectLevel?: number; - - /** - * 排序 (数越小越靠前) - */ - sortOrder?: number; - - /** - * 状态 0启用 1停用 - */ - status?: string; -} - -export interface RepairProjectQuery extends PageQuery { - /** - * 维修项目名 - */ - projectName?: string; - - /** - * 父级项目id - */ - parentId?: string; - - /** - * 项目类型 0公共报修 1个人报修 - */ - projectType?: string; - - /** - * 项目层级 0,1 - */ - projectLevel?: number; - - /** - * 排序 (数越小越靠前) - */ - sortOrder?: number; - - /** - * 状态 0启用 1停用 - */ - status?: string; -} -export interface RepairProjectQueryNoPage { - /** - * 维修项目名 - */ - projectName?: string; - - /** - * 父级项目id - */ - parentId?: string; - - /** - * 项目类型 0公共报修 1个人报修 - */ - projectType?: string; - - /** - * 项目层级 0,1 - */ - projectLevel?: number; - - /** - * 排序 (数越小越靠前) - */ - sortOrder?: number; - - /** - * 状态 0启用 1停用 - */ - status?: string; -} diff --git a/src/api/system/TPurchaseIn/index.ts b/src/api/system/TPurchaseIn/index.ts deleted file mode 100644 index c5fcac7..0000000 --- a/src/api/system/TPurchaseIn/index.ts +++ /dev/null @@ -1,63 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { StockInVO, StockInForm, StockInQuery } from './type'; - -/** - * 查询入库主列表 - * @param query - * @returns {*} - */ - -export const listStockIn = (query?: StockInQuery): AxiosPromise => { - return request({ - url: '/stockIn/list', - method: 'get', - params: query - }); -}; - -/** - * 查询入库主详细 - * @param id - */ -export const getStockIn = (id: string | number): AxiosPromise => { - return request({ - url: '/stockIn/' + id, - method: 'get' - }); -}; - -/** - * 新增入库主 - * @param data - */ -export const addStockIn = (data: StockInForm) => { - return request({ - url: '/stockIn', - method: 'post', - data: data - }); -}; - -/** - * 修改入库主 - * @param data - */ -export const updateStockIn = (data: StockInForm) => { - return request({ - url: '/stockIn', - method: 'put', - data: data - }); -}; - -/** - * 删除入库主 - * @param id - */ -export const delStockIn = (id: string | number | Array) => { - return request({ - url: '/stockIn/' + id, - method: 'delete' - }); -}; diff --git a/src/api/system/TPurchaseIn/type.ts b/src/api/system/TPurchaseIn/type.ts deleted file mode 100644 index f6a06f2..0000000 --- a/src/api/system/TPurchaseIn/type.ts +++ /dev/null @@ -1,128 +0,0 @@ -import { MaterialVO } from '../Tmaterial/type'; - -export interface StockInVO { - /** - * 主键 - */ - id: string | number; - - /** - * 入库单号* - */ - inNo: string; - - /** - * 入库日期* - */ - inDate: string; - totalAmount: string; - /** - * 供应商id* - */ - supplierId: string; - - /** - * 入库仓库id* - */ - warehouseId: string; - - /** - * 操作状态 入库/未入库 - */ - operateStatus: string; - - /** - * 负责人 - */ - leader: string; - - /** - * 备注 - */ - remark: string; - - items: MaterialVO[]; - - warehouseName: string; - supplierName: string; - createTime: string; -} - -export interface StockInForm extends BaseEntity { - /** - * 主键 - */ - id?: string | number; - - /** - * 入库单号* - */ - inNo?: string; - - /** - * 入库日期* - */ - inDate?: string; - - /** - * 供应商id* - */ - supplierId?: string; - - /** - * 入库仓库id* - */ - warehouseId?: string; - - /** - * 操作状态 入库/未入库 - */ - operateStatus?: string; - - /** - * 负责人 - */ - leader?: string; - - /** - * 备注 - */ - remark?: string; -} - -export interface StockInQuery extends PageQuery { - /** - * 入库单号* - */ - inNo?: string; - - /** - * 入库日期* - */ - inDate?: string; - - /** - * 供应商id* - */ - supplierId?: string; - - /** - * 入库仓库id* - */ - warehouseId?: string; - - /** - * 操作状态 入库/未入库 - */ - operateStatus?: string; - - /** - * 负责人 - */ - leader?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/TissueOut/index.ts b/src/api/system/TissueOut/index.ts deleted file mode 100644 index 2ccfeec..0000000 --- a/src/api/system/TissueOut/index.ts +++ /dev/null @@ -1,63 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { StockOutVO, StockOutForm, StockOutQuery } from './type'; - -/** - * 查询出库主列表 - * @param query - * @returns {*} - */ - -export const listStockOut = (query?: StockOutQuery): AxiosPromise => { - return request({ - url: '/stockOut/list', - method: 'get', - params: query - }); -}; - -/** - * 查询出库主详细 - * @param id - */ -export const getStockOut = (id: string | number): AxiosPromise => { - return request({ - url: '/stockOut/' + id, - method: 'get' - }); -}; - -/** - * 新增出库主 - * @param data - */ -export const addStockOut = (data: StockOutForm) => { - return request({ - url: '/stockOut', - method: 'post', - data: data - }); -}; - -/** - * 修改出库主 - * @param data - */ -export const updateStockOut = (data: StockOutForm) => { - return request({ - url: '/stockOut', - method: 'put', - data: data - }); -}; - -/** - * 删除出库主 - * @param id - */ -export const delStockOut = (id: string | number | Array) => { - return request({ - url: '/stockOut/' + id, - method: 'delete' - }); -}; diff --git a/src/api/system/TissueOut/type.ts b/src/api/system/TissueOut/type.ts deleted file mode 100644 index 657f70f..0000000 --- a/src/api/system/TissueOut/type.ts +++ /dev/null @@ -1,127 +0,0 @@ -import { MaterialVO } from '../Tmaterial/type'; - -export interface StockOutVO { - /** - * 主键 - */ - id: string; - - /** - * 出库单号* - */ - outNo: string; - - /** - * 出库日期* - */ - outDate: string; - totalAmount: string; - /** - * 领用人(供应商id)* - */ - supplierId: string; - - /** - * 出库仓库id* - */ - warehouseId: string; - - /** - * 操作状态 未出库/出库 - */ - operateStatus: string; - - /** - * 负责人 - */ - leader: string; - - /** - * 备注 - */ - remark: string; - items: MaterialVO[]; - - warehouseName: string; - supplierName: string; - createTime: string; -} - -export interface StockOutForm extends BaseEntity { - /** - * 主键 - */ - id?: string; - - /** - * 出库单号* - */ - outNo?: string; - - /** - * 出库日期* - */ - outDate?: string; - - /** - * 领用人(供应商id)* - */ - supplierId?: string; - - /** - * 出库仓库id* - */ - warehouseId?: string; - - /** - * 操作状态 未出库/出库 - */ - operateStatus?: string; - - /** - * 负责人 - */ - leader?: string; - - /** - * 备注 - */ - remark?: string; -} - -export interface StockOutQuery extends PageQuery { - /** - * 出库单号* - */ - outNo?: string; - - /** - * 出库日期* - */ - outDate?: string; - - /** - * 领用人(供应商id)* - */ - supplierId?: string; - - /** - * 出库仓库id* - */ - warehouseId?: string; - - /** - * 操作状态 未出库/出库 - */ - operateStatus?: string; - - /** - * 负责人 - */ - leader?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/Tmaterial/index.ts b/src/api/system/Tmaterial/index.ts deleted file mode 100644 index 53e5f68..0000000 --- a/src/api/system/Tmaterial/index.ts +++ /dev/null @@ -1,63 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { MaterialVO, MaterialForm, MaterialQuery } from './type'; - -/** - * 查询物料列表 - * @param query - * @returns {*} - */ - -export const listMaterial = (query?: MaterialQuery): AxiosPromise => { - return request({ - url: '/warehouse/material/list', - method: 'get', - params: query - }); -}; - -/** - * 查询物料详细 - * @param id - */ -export const getMaterial = (id: string | number): AxiosPromise => { - return request({ - url: '/warehouse/material/' + id, - method: 'get' - }); -}; - -/** - * 新增物料 - * @param data - */ -export const addMaterial = (data: MaterialForm) => { - return request({ - url: '/warehouse/material', - method: 'post', - data: data - }); -}; - -/** - * 修改物料 - * @param data - */ -export const updateMaterial = (data: MaterialForm) => { - return request({ - url: '/warehouse/material', - method: 'put', - data: data - }); -}; - -/** - * 删除物料 - * @param id - */ -export const delMaterial = (id: string | number | Array) => { - return request({ - url: '/warehouse/material/' + id, - method: 'delete' - }); -}; diff --git a/src/api/system/Tmaterial/type.ts b/src/api/system/Tmaterial/type.ts deleted file mode 100644 index ca29f5d..0000000 --- a/src/api/system/Tmaterial/type.ts +++ /dev/null @@ -1,91 +0,0 @@ -export interface MaterialVO { - /** - * 物料ID - */ - id: string; - - /** - * 物料名称* - */ - materialName: string; - materialId: string; - /** - * 品牌* - */ - brand: string; - - /** - * 规格型号* - */ - model: string; - villageId: string; - - /** - * 计量单位 - */ - unit: string; - - /** - * 备注 - */ - remark: string; -} - -export interface MaterialForm extends BaseEntity { - /** - * 物料ID - */ - id?: string; - - /** - * 物料名称* - */ - materialName?: string; - - /** - * 品牌* - */ - brand?: string; - - /** - * 规格型号* - */ - model?: string; - - /** - * 计量单位 - */ - unit?: string; - - /** - * 备注 - */ - remark?: string; -} - -export interface MaterialQuery extends PageQuery { - /** - * 物料名称* - */ - materialName?: string; - - /** - * 品牌* - */ - brand?: string; - - /** - * 规格型号* - */ - model?: string; - - /** - * 计量单位 - */ - unit?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/Tstock/index.ts b/src/api/system/Tstock/index.ts deleted file mode 100644 index d223051..0000000 --- a/src/api/system/Tstock/index.ts +++ /dev/null @@ -1,56 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; - -/** - * 查询 库存查询列表 - * @param query - * @returns {*} - */ - -export const listStock = (query?: any): AxiosPromise => { - return request({ - url: '/stock/list', - method: 'get', - params: query - }); -}; - -/** - * 查询 库存查询 详情 - * @returns {*} - * @param id - */ - -export const listStockMain = (id?: string): AxiosPromise => { - return request({ - url: '/stock/detail/' + id, - method: 'get' - }); -}; - -export type StockUpdate = { - materialId: string; // 物料id - materialName: string; // 物料名称 - brand: string; // 型号 - model: string; // 品牌 - unit: string; // 单位 - costPrice: string; // 成本价 - stockNum: string; // 库存数量 -}; -type StockUpdateForm = { - materialId: string; // 物料id - costPrice: string; // 成本价 - stockNum: string; // 库存数量 -}; - -/** - * 更新库存信息 - * @param data - 库存更新表单数据,可选参数 - * @returns 返回一个 Axios Promise,解析为任意类型的数组 - */ -export const listStockUpdate = (data?: StockUpdateForm): AxiosPromise => { - return request({ - url: '/stock/update?materialId=' + data?.materialId + '&stockNum=' + data?.stockNum, - method: 'PUT' - }); -}; diff --git a/src/api/system/Tsupplier/index.ts b/src/api/system/Tsupplier/index.ts deleted file mode 100644 index 85884dd..0000000 --- a/src/api/system/Tsupplier/index.ts +++ /dev/null @@ -1,63 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { SupplierVO, SupplierForm, SupplierQuery } from './type'; - -/** - * 查询供应商列表 - * @param query - * @returns {*} - */ - -export const listSupplier = (query: SupplierQuery | {} = {}): AxiosPromise => { - return request({ - url: '/warehouse/supplier/list', - method: 'get', - params: query - }); -}; - -/** - * 查询供应商详细 - * @param id - */ -export const getSupplier = (id: string | number): AxiosPromise => { - return request({ - url: '/warehouse/supplier/' + id, - method: 'get' - }); -}; - -/** - * 新增供应商 - * @param data - */ -export const addSupplier = (data: SupplierForm) => { - return request({ - url: '/warehouse/supplier', - method: 'post', - data: data - }); -}; - -/** - * 修改供应商 - * @param data - */ -export const updateSupplier = (data: SupplierForm) => { - return request({ - url: '/warehouse/supplier', - method: 'put', - data: data - }); -}; - -/** - * 删除供应商 - * @param id - */ -export const delSupplier = (id: string | number | Array) => { - return request({ - url: '/warehouse/supplier/' + id, - method: 'delete' - }); -}; diff --git a/src/api/system/Tsupplier/type.ts b/src/api/system/Tsupplier/type.ts deleted file mode 100644 index b3346a8..0000000 --- a/src/api/system/Tsupplier/type.ts +++ /dev/null @@ -1,106 +0,0 @@ -export interface SupplierVO { - /** - * 主键ID - */ - id: string | number; - - /** - * 供应商名称* - */ - supplierName: string; - - /** - * 联系人* - */ - contactPerson: string; - - /** - * 联系电话* - */ - contactPhone: string; - - /** - * 邮箱 - */ - email: string; - - /** - * 地址 - */ - address: string; - - /** - * 备注 - */ - remark: string; - villageId: string; -} - -export interface SupplierForm extends BaseEntity { - /** - * 主键ID - */ - id?: string | number; - - /** - * 供应商名称* - */ - supplierName?: string; - - /** - * 联系人* - */ - contactPerson?: string; - - /** - * 联系电话* - */ - contactPhone?: string; - - /** - * 邮箱 - */ - email?: string; - - /** - * 地址 - */ - address?: string; - - /** - * 备注 - */ - remark?: string; -} - -export interface SupplierQuery extends PageQuery { - /** - * 供应商名称* - */ - supplierName?: string; - - /** - * 联系人* - */ - contactPerson?: string; - - /** - * 联系电话* - */ - contactPhone?: string; - - /** - * 邮箱 - */ - email?: string; - - /** - * 地址 - */ - address?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/Twarehouse/index.ts b/src/api/system/Twarehouse/index.ts deleted file mode 100644 index 3e8179f..0000000 --- a/src/api/system/Twarehouse/index.ts +++ /dev/null @@ -1,63 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { WarehouseVO, WarehouseForm, WarehouseQuery } from './type'; - -/** - * 查询仓库列表 - * @param query - * @returns {*} - */ - -export const listWarehouse = (query?: WarehouseQuery): AxiosPromise => { - return request({ - url: '/warehouse/list', - method: 'get', - params: query - }); -}; - -/** - * 查询仓库详细 - * @param id - */ -export const getWarehouse = (id: string | number): AxiosPromise => { - return request({ - url: '/warehouse/' + id, - method: 'get' - }); -}; - -/** - * 新增仓库 - * @param data - */ -export const addWarehouse = (data: WarehouseForm) => { - return request({ - url: '/warehouse', - method: 'post', - data: data - }); -}; - -/** - * 修改仓库 - * @param data - */ -export const updateWarehouse = (data: WarehouseForm) => { - return request({ - url: '/warehouse', - method: 'put', - data: data - }); -}; - -/** - * 删除仓库 - * @param id - */ -export const delWarehouse = (id: string | number | Array) => { - return request({ - url: '/warehouse/' + id, - method: 'delete' - }); -}; diff --git a/src/api/system/Twarehouse/type.ts b/src/api/system/Twarehouse/type.ts deleted file mode 100644 index 4a2373f..0000000 --- a/src/api/system/Twarehouse/type.ts +++ /dev/null @@ -1,115 +0,0 @@ -export interface WarehouseVO { - /** - * 仓库ID - */ - id: string; - - /** - * 仓库名称* - */ - warehouseName: string; - - /** - * 仓库归属id*(关联com_village) - */ - villageId: string; - - /** - * 联系人* - */ - contactPerson: string; - - /** - * 联系电话* - */ - contactPhone: string; - - /** - * 地址 - */ - address: string; - - /** - * 状态 0-启用 1-禁用 - */ - status: string; - - /** - * 备注 - */ - remark: string; -} - -export interface WarehouseForm extends BaseEntity { - /** - * 仓库ID - */ - id?: string; - - /** - * 仓库名称* - */ - warehouseName?: string; - - /** - * 仓库归属id*(关联com_village) - */ - villageId?: string; - - /** - * 联系人* - */ - contactPerson?: string; - - /** - * 联系电话* - */ - contactPhone?: string; - - /** - * 地址 - */ - address?: string; - - /** - * 状态 0-启用 1-禁用 - */ - status?: string; - - /** - * 备注 - */ - remark?: string; -} - -export interface WarehouseQuery extends PageQuery { - /** - * 仓库名称* - */ - warehouseName?: string; - - /** - * 联系人* - */ - contactPerson?: string; - - /** - * 联系电话* - */ - contactPhone?: string; - - /** - * 地址 - */ - address?: string; - - /** - * 状态 0-启用 1-禁用 - */ - status?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/Visitor/index.ts b/src/api/system/Visitor/index.ts deleted file mode 100644 index d8655b2..0000000 --- a/src/api/system/Visitor/index.ts +++ /dev/null @@ -1,63 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { VisitorVO, VisitorForm, VisitorQuery } from '@/api/system/Visitor/type'; - -/** - * 查询访客管理列表 - * @param query - * @returns {*} - */ - -export const listVisitor = (query?: VisitorQuery): AxiosPromise => { - return request({ - url: '/visitor/list', - method: 'get', - params: query - }); -}; - -/** - * 查询访客管理详细 - * @param id - */ -export const getVisitor = (id: string | number): AxiosPromise => { - return request({ - url: '/visitor/' + id, - method: 'get' - }); -}; - -/** - * 新增访客管理 - * @param data - */ -export const addVisitor = (data: VisitorForm) => { - return request({ - url: '/visitor', - method: 'post', - data: data - }); -}; - -/** - * 修改访客管理 - * @param data - */ -export const updateVisitor = (data: VisitorForm) => { - return request({ - url: '/visitor', - method: 'put', - data: data - }); -}; - -/** - * 删除访客管理 - * @param id - */ -export const delVisitor = (id: string | number | Array) => { - return request({ - url: '/visitor/' + id, - method: 'delete' - }); -}; diff --git a/src/api/system/Visitor/type.ts b/src/api/system/Visitor/type.ts deleted file mode 100644 index b104c52..0000000 --- a/src/api/system/Visitor/type.ts +++ /dev/null @@ -1,180 +0,0 @@ -export interface VisitorVO { - /** - * 访客管理表id - */ - id: string | number; - - /** - * 访问房屋id - */ - houseId: string | number; - - /** - * 访客姓名 - */ - visitorName: string; - - /** - * 访客性别 0男 1女 3未知 - */ - visitorGender: string; - - /** - * 访客联系方式 - */ - visitorPhone: string; - - /** - * 车牌号 - */ - carNum: string; - - /** - * 随行人数 - */ - visitorNum: number; - - /** - * 来访时间 - */ - startTime: string; - - /** - * 离开时间 - */ - endTime: string; - - /** - * 来访方式 0车辆来访 1人员来访 - */ - type: string; - - /** - * 访客状态 0等待来访 1已到访 - */ - status: string; -} - -export interface VisitorForm extends BaseEntity { - /** - * 访客管理表id - */ - id?: string | number; - - /** - * 访问房屋id - */ - houseId?: string | number; - - /** - * 访客姓名 - */ - visitorName?: string; - - /** - * 访客性别 0男 1女 3未知 - */ - visitorGender?: string; - - /** - * 访客联系方式 - */ - visitorPhone?: string; - - /** - * 车牌号 - */ - carNum?: string; - - /** - * 随行人数 - */ - visitorNum?: number; - - /** - * 来访时间 - */ - startTime?: string; - - /** - * 离开时间 - */ - endTime?: string; - - /** - * 来访方式 0车辆来访 1人员来访 - */ - type?: string; - - /** - * 访客状态 0等待来访 1已到访 - */ - status?: string; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 创建者(住户id) - */ - createId?: string | number; -} - -export interface VisitorQuery extends PageQuery { - /** - * 访问房屋id - */ - houseId?: string | number; - - /** - * 访客姓名 - */ - visitorName?: string; - - /** - * 访客性别 0男 1女 3未知 - */ - visitorGender?: string; - - /** - * 访客联系方式 - */ - visitorPhone?: string; - - /** - * 车牌号 - */ - carNum?: string; - - /** - * 随行人数 - */ - visitorNum?: number; - - /** - * 来访时间 - */ - startTime?: string; - - /** - * 离开时间 - */ - endTime?: string; - - /** - * 来访方式 0车辆来访 1人员来访 - */ - type?: string; - - /** - * 访客状态 0等待来访 1已到访 - */ - status?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/carArea/index.ts b/src/api/system/carArea/index.ts deleted file mode 100644 index 3ce13c2..0000000 --- a/src/api/system/carArea/index.ts +++ /dev/null @@ -1,63 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { AreaVO, AreaForm, AreaQuery } from '@/api/system/carArea/type'; - -/** - * 查询车位区域管理列表 - * @param query - * @returns {*} - */ - -export const listArea = (query: AreaQuery | {} = {}): AxiosPromise => { - return request({ - url: '/area/list', - method: 'get', - params: query - }); -}; - -/** - * 查询车位区域管理详细 - * @param id - */ -export const getArea = (id: string | number): AxiosPromise => { - return request({ - url: '/area/' + id, - method: 'get' - }); -}; - -/** - * 新增车位区域管理 - * @param data - */ -export const addArea = (data: AreaForm) => { - return request({ - url: '/area', - method: 'post', - data: data - }); -}; - -/** - * 修改车位区域管理 - * @param data - */ -export const updateArea = (data: AreaForm) => { - return request({ - url: '/area', - method: 'put', - data: data - }); -}; - -/** - * 删除车位区域管理 - * @param id - */ -export const delArea = (id: string | number | Array) => { - return request({ - url: '/area/' + id, - method: 'delete' - }); -}; diff --git a/src/api/system/carArea/type.ts b/src/api/system/carArea/type.ts deleted file mode 100644 index 1b96bd1..0000000 --- a/src/api/system/carArea/type.ts +++ /dev/null @@ -1,110 +0,0 @@ -export interface AreaVO { - /** - * 区域管理表id - */ - id: string | number; - - /** - * 区域名称 - */ - areaName: string; - - /** - * 区域编号 - */ - areaCode: string; - - /** - * 面积(单位㎡) - */ - area: number; - - /** - * 车位数量 - */ - parkingCount: number; - - /** - * 备注 - */ - remark: string; -} - -export interface AreaForm extends BaseEntity { - /** - * 区域管理表id - */ - id?: string | number; - - /** - * 区域名称 - */ - areaName?: string; - - /** - * 区域编号 - */ - areaCode?: string; - - /** - * 面积(单位㎡) - */ - area?: number; - - /** - * 车位数量 - */ - parkingCount?: number; - - /** - * 备注 - */ - remark?: string; - - /** - * 创建者 - */ - createBy?: number; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 修改者 - */ - updateBy?: number; - - /** - * 修改时间 - */ - updateTime?: string; -} - -export interface AreaQuery extends PageQuery { - /** - * 区域名称 - */ - areaName?: string; - - /** - * 区域编号 - */ - areaCode?: string; - - /** - * 面积(单位㎡) - */ - area?: number; - - /** - * 车位数量 - */ - parkingCount?: number; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/cars/index.ts b/src/api/system/cars/index.ts deleted file mode 100644 index 9f1ed1a..0000000 --- a/src/api/system/cars/index.ts +++ /dev/null @@ -1,91 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { CarVO, CarForm, CarQuery } from '@/api/system/cars/type'; - -/** - * 查询车辆管理列表 - * @param query - * @returns {*} - */ - -export const listCar = (query?: CarQuery): AxiosPromise => { - return request({ - url: '/car/list', - method: 'get', - params: query - }); -}; - -/** - * 查询车辆管理详细 - * @param id - */ -export const getCar = (id: string | number): AxiosPromise => { - return request({ - url: '/car/' + id, - method: 'get' - }); -}; - -/** - * 新增车辆管理 - * @param data - */ -export const addCar = (data: CarForm) => { - return request({ - url: '/car', - method: 'post', - data: data - }); -}; - -/** - * 修改车辆管理 - * @param data - */ -export const updateCar = (data: CarForm) => { - return request({ - url: '/car', - method: 'put', - data: data - }); -}; - -/** - * 删除车辆管理 - * @param id - */ -export const delCar = (id: string | number | Array) => { - return request({ - url: '/car/' + id, - method: 'delete' - }); -}; - -/** - * 删除车辆图片 - * @param format - */ -export const uploadCar = (format: 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 => { - return request({ - url: '/car/getAppUserList', - method: 'GET', - params: data - }); -}; diff --git a/src/api/system/cars/type.ts b/src/api/system/cars/type.ts deleted file mode 100644 index 8f86f61..0000000 --- a/src/api/system/cars/type.ts +++ /dev/null @@ -1,170 +0,0 @@ -export interface CarVO { - /** - * 车辆管理表id - */ - id: string; - - /** - * 区域id - */ - areaId: string; - - /** - * 车位id - */ - parkingId: string; - - /** - * 持有人id(住户表id) - */ - residentId: string; - - /** - * 车牌号 - */ - carNum: string; - - /** - * 车辆品牌 - */ - carBrand: string; - - /** - * 车辆型号 - */ - carModel: string; - - /** - * 车身颜色 - */ - carColor: string; - - /** - * 备注 - */ - remark: string; - - /** - * 车辆图片url - */ - carImageUrl: string; -} - -export interface CarForm extends BaseEntity { - /** - * 车辆管理表id - */ - id?: string | number; - - /** - * 区域id - */ - areaId?: string | number; - - /** - * 车位id - */ - parkingId?: string | number; - - /** - * 持有人id(住户表id) - */ - residentId?: string | number; - - /** - * 车牌号 - */ - carNum?: string; - - /** - * 车辆品牌 - */ - carBrand?: string; - - /** - * 车辆型号 - */ - carModel?: string; - - /** - * 车身颜色 - */ - carColor?: string; - - /** - * 备注 - */ - remark?: string; - - /** - * 车辆图片url - */ - carImageUrl?: string; - - /** - * 创建者 - */ - createBy?: number; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 修改者 - */ - updateBy?: number; - - /** - * 修改时间 - */ - updateTime?: string; -} - -export interface CarQuery extends PageQuery { - /** - * 区域id - */ - areaId?: string | number; - - /** - * 车位id - */ - parkingId?: string | number; - - /** - * 持有人id(住户表id) - */ - residentId?: string | number; - - /** - * 车牌号 - */ - carNum?: string; - - /** - * 车辆品牌 - */ - carBrand?: string; - - /** - * 车辆型号 - */ - carModel?: string; - - /** - * 车身颜色 - */ - carColor?: string; - - /** - * 车辆图片url - */ - carImageUrl?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/community/index.ts b/src/api/system/community/index.ts index c69fb54..b9b90ad 100644 --- a/src/api/system/community/index.ts +++ b/src/api/system/community/index.ts @@ -16,53 +16,3 @@ export function getVillageByIdAPI(id: string): AxiosPromise { - return request({ - url: `/village/${id}`, - method: 'delete' - }); -} - -type uploadResponseType = { - 'success': { - 'url': string; - 'fileName': string; - 'ossId': string; - }[]; - 'error': string[]; -}; -/** 上传小区图片 */ -export function uploadVillageImageAPI(formdata: FormData): AxiosPromise { - return request({ - url: `/village/uploadImages`, - method: 'post', - headers: { - 'Content-Type': 'multipart/form-data' - }, - data: formdata - }); -} -/** 添加小区 */ -export function addVillageAPI(data: T) { - return request({ - url: `/village`, - method: 'post', - data: data - }); -} -/** 添加小区 */ -export function editVillageAPI(data: T) { - return request({ - url: `/village`, - method: 'put', - data: data - }); -} -/**切换小区 */ -export function switchVillageAPI(villageId: string) { - return request({ - url: `/village/switchVillage/${villageId}`, - method: 'POST' - }); -} diff --git a/src/api/system/notice/index.ts b/src/api/system/notice/index.ts deleted file mode 100644 index 285d1f4..0000000 --- a/src/api/system/notice/index.ts +++ /dev/null @@ -1,45 +0,0 @@ -import request from '@/utils/request'; -import { NoticeForm, NoticeQuery, NoticeVO } from './types'; -import { AxiosPromise } from 'axios'; -// 查询公告列表 -export function listNotice(query: NoticeQuery): AxiosPromise { - return request({ - url: '/system/notice/list', - method: 'get', - params: query - }); -} - -// 查询公告详细 -export function getNotice(noticeId: string | number): AxiosPromise { - return request({ - url: '/system/notice/' + noticeId, - method: 'get' - }); -} - -// 新增公告 -export function addNotice(data: NoticeForm) { - return request({ - url: '/system/notice', - method: 'post', - data: data - }); -} - -// 修改公告 -export function updateNotice(data: NoticeForm) { - return request({ - url: '/system/notice', - method: 'put', - data: data - }); -} - -// 删除公告 -export function delNotice(noticeId: string | number | Array) { - return request({ - url: '/system/notice/' + noticeId, - method: 'delete' - }); -} diff --git a/src/api/system/notice/types.ts b/src/api/system/notice/types.ts deleted file mode 100644 index abfd5b2..0000000 --- a/src/api/system/notice/types.ts +++ /dev/null @@ -1,26 +0,0 @@ -export interface NoticeVO extends BaseEntity { - noticeId: number; - noticeTitle: string; - noticeType: string; - noticeContent: string; - status: string; - remark: string; - createByName: string; -} - -export interface NoticeQuery extends PageQuery { - noticeTitle: string; - createByName: string; - status: string; - noticeType: string; -} - -export interface NoticeForm { - noticeId: number | string | undefined; - noticeTitle: string; - noticeType: string; - noticeContent: string; - status: string; - remark: string; - createByName: string; -} diff --git a/src/api/system/repairProcess/index.ts b/src/api/system/repairProcess/index.ts deleted file mode 100644 index 2678b27..0000000 --- a/src/api/system/repairProcess/index.ts +++ /dev/null @@ -1,63 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { RepairProcessVO, RepairProcessForm, RepairProcessQuery } from '@/api/system/repairProcess/type'; - -/** - * 查询报修维修流程列表 - * @param query - * @returns {*} - */ - -export const listRepairProcess = (query?: RepairProcessQuery): AxiosPromise => { - return request({ - url: '/repairProcess/list', - method: 'get', - params: query - }); -}; - -/** - * 查询报修维修流程详细 - * @param id - */ -export const getRepairProcess = (id: string | number): AxiosPromise => { - return request({ - url: '/repairProcess/' + id, - method: 'get' - }); -}; - -/** - * 新增报修维修流程 - * @param data - */ -export const addRepairProcess = (data: RepairProcessForm) => { - return request({ - url: '/repairProcess', - method: 'post', - data: data - }); -}; - -/** - * 修改报修维修流程 - * @param data - */ -export const updateRepairProcess = (data: RepairProcessForm) => { - return request({ - url: '/repairProcess', - method: 'put', - data: data - }); -}; - -/** - * 删除报修维修流程 - * @param id - */ -export const delRepairProcess = (id: string | number | Array) => { - return request({ - url: '/repairProcess/' + id, - method: 'delete' - }); -}; diff --git a/src/api/system/repairProcess/type.ts b/src/api/system/repairProcess/type.ts deleted file mode 100644 index f728035..0000000 --- a/src/api/system/repairProcess/type.ts +++ /dev/null @@ -1,125 +0,0 @@ -export interface RepairProcessVO { - /** - * 维修流程表id - */ - id: string; - - /** - * 所属报修id - */ - repairId: string; - - /** - * 提交时间 - */ - submitTime: string; - - /** - * 提交状态 0未提交 1已提交 - */ - submitStatus: string; - - /** - * 分配时间 - */ - allocateTime: string; - - /** - * 分配状态 0 待分配 1已分配 - */ - allocateStatus: string; - - /** - * 完成时间 - */ - completeTime: string; - - /** - * 完成状态 0进行中 1已完成 - */ - completeStatus: string; -} - -export interface RepairProcessForm extends BaseEntity { - /** - * 维修流程表id - */ - id?: string; - - /** - * 所属报修id - */ - repairId?: string; - - /** - * 提交时间 - */ - submitTime?: string; - - /** - * 提交状态 0未提交 1已提交 - */ - submitStatus?: string; - - /** - * 分配时间 - */ - allocateTime?: string; - - /** - * 分配状态 0 待分配 1已分配 - */ - allocateStatus?: string; - - /** - * 完成时间 - */ - completeTime?: string; - - /** - * 完成状态 0进行中 1已完成 - */ - completeStatus?: string; -} - -export interface RepairProcessQuery extends PageQuery { - /** - * 所属报修id - */ - repairId?: string | number; - - /** - * 提交时间 - */ - submitTime?: string; - - /** - * 提交状态 0未提交 1已提交 - */ - submitStatus?: string; - - /** - * 分配时间 - */ - allocateTime?: string; - - /** - * 分配状态 0 待分配 1已分配 - */ - allocateStatus?: string; - - /** - * 完成时间 - */ - completeTime?: string; - - /** - * 完成状态 0进行中 1已完成 - */ - completeStatus?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/src/api/system/revenueNotice/index.ts b/src/api/system/revenueNotice/index.ts deleted file mode 100644 index 18b189b..0000000 --- a/src/api/system/revenueNotice/index.ts +++ /dev/null @@ -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 => { - return request({ - url: '/revenueNotice/list', - method: 'get', - params: query - }); -}; - -/** - * 查询公区收益通知详细 - * @param noticeId - */ -export const getRevenueNotice = (noticeId: string | number): AxiosPromise => { - 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) => { - return request({ - url: '/revenueNotice/' + noticeId, - method: 'delete' - }); -}; diff --git a/src/api/system/revenueNotice/type.ts b/src/api/system/revenueNotice/type.ts deleted file mode 100644 index 1f3c8c6..0000000 --- a/src/api/system/revenueNotice/type.ts +++ /dev/null @@ -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; -} diff --git a/src/api/types.ts b/src/api/types.ts index e8e0f13..68288e7 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -32,6 +32,8 @@ export interface LoginData { */ export interface LoginResult { access_token: string; + /** 后端返回的当前小区(默认小区)id */ + villageId?: string; } /** diff --git a/src/components/Holder/appUser.vue b/src/components/Holder/appUser.vue deleted file mode 100644 index 2364dd7..0000000 --- a/src/components/Holder/appUser.vue +++ /dev/null @@ -1,272 +0,0 @@ - - - - - diff --git a/src/components/Holder/complainUser.vue b/src/components/Holder/complainUser.vue deleted file mode 100644 index fb09510..0000000 --- a/src/components/Holder/complainUser.vue +++ /dev/null @@ -1,316 +0,0 @@ - - - - - diff --git a/src/components/Holder/material.vue b/src/components/Holder/material.vue deleted file mode 100644 index 8b1f6ad..0000000 --- a/src/components/Holder/material.vue +++ /dev/null @@ -1,335 +0,0 @@ - - - - - diff --git a/src/components/Map/GD.vue b/src/components/Map/GD.vue deleted file mode 100644 index a8d1669..0000000 --- a/src/components/Map/GD.vue +++ /dev/null @@ -1,369 +0,0 @@ - - - - - diff --git a/src/components/Map/TDT.vue b/src/components/Map/TDT.vue deleted file mode 100644 index 0173c5c..0000000 --- a/src/components/Map/TDT.vue +++ /dev/null @@ -1,330 +0,0 @@ - - - - - diff --git a/src/components/Map/index.vue b/src/components/Map/index.vue deleted file mode 100644 index cd4b752..0000000 --- a/src/components/Map/index.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - diff --git a/src/components/Map/type.ts b/src/components/Map/type.ts deleted file mode 100644 index 963960e..0000000 --- a/src/components/Map/type.ts +++ /dev/null @@ -1,30 +0,0 @@ -// src/types/map.ts -export type LngLat = [number, number]; - -// 统一对外暴露的地图方法类型 -export interface IMapInstance { - // 单点标记 - addMarker_only(lnglat: LngLat, pointName: string): void; - clearLocation(): void; - // 多点可删除标记 - addMarker_more(lnglat: LngLat, pointName: string, pointId: string): void; - // 绘制路线 - getAllDrawLines(): LngLat[] | []; - renderSavedPath(pathStr: string): void; - clearAll(): void; - // 全局清空覆盖物 - clearMapMarker(): void; -} - -// 统一Props -export interface MapBaseProps { - /** 禁用功能,只做展示 */ - disabled?: boolean; - /** true 标注点 false 路线*/ - clickOrDraw?: boolean; -} - -// 统一事件 -export type MapEmits = { - clickPoint: [lnglat: LngLat]; -}; diff --git a/src/lang/en_US.ts b/src/lang/en_US.ts index 56b6aea..b090d3e 100644 --- a/src/lang/en_US.ts +++ b/src/lang/en_US.ts @@ -80,7 +80,6 @@ export default { selectTenant: 'Select Tenant', layoutSetting: 'Layout Setting', personalCenter: 'Personal Center', - logout: 'Logout', - community: 'Switching communities' + logout: 'Logout' } }; diff --git a/src/lang/zh_CN.ts b/src/lang/zh_CN.ts index a53c583..3cc9872 100644 --- a/src/lang/zh_CN.ts +++ b/src/lang/zh_CN.ts @@ -80,7 +80,6 @@ export default { selectTenant: '选择租户', layoutSetting: '布局设置', personalCenter: '个人中心', - logout: '退出登录', - community: '切换小区' + logout: '退出登录' } }; diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 6f0bdd6..99dc446 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -35,13 +35,10 @@ 权限字符 diff --git a/src/views/system/statistics/Payment/compontents/RingProgress.vue b/src/views/system/statistics/Payment/compontents/RingProgress.vue deleted file mode 100644 index 83b2b1a..0000000 --- a/src/views/system/statistics/Payment/compontents/RingProgress.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - - - diff --git a/src/views/system/statistics/Payment/index.vue b/src/views/system/statistics/Payment/index.vue deleted file mode 100644 index 772c114..0000000 --- a/src/views/system/statistics/Payment/index.vue +++ /dev/null @@ -1,811 +0,0 @@ - - - - - diff --git a/src/views/system/statistics/Personnel/index.vue b/src/views/system/statistics/Personnel/index.vue deleted file mode 100644 index 9bd1117..0000000 --- a/src/views/system/statistics/Personnel/index.vue +++ /dev/null @@ -1,699 +0,0 @@ - - - - - diff --git a/src/views/system/test/Questionnaire.vue b/src/views/system/test/Questionnaire.vue deleted file mode 100644 index 7c8e069..0000000 --- a/src/views/system/test/Questionnaire.vue +++ /dev/null @@ -1,234 +0,0 @@ - - - - - diff --git a/src/views/system/test/QuestionnaireEdit.vue b/src/views/system/test/QuestionnaireEdit.vue deleted file mode 100644 index 786459a..0000000 --- a/src/views/system/test/QuestionnaireEdit.vue +++ /dev/null @@ -1,310 +0,0 @@ - - - - - diff --git a/src/views/system/test/api.ts b/src/views/system/test/api.ts deleted file mode 100644 index 46bdc8f..0000000 --- a/src/views/system/test/api.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { QuestionnaireVO } from '@/api/system/Questionnaire/type'; -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; - -// 查询问卷列表 -export function listQuestionnaire(query): AxiosPromise { - return request({ - url: '/questionnaire/list', - method: 'get', - params: query - }); -} - -// 查询问卷详细 -export function getQuestionnaire(id) { - return request({ - url: '/questionnaire/' + id, - method: 'get' - }); -} - -// 新增问卷 -export function addQuestionnaire(data) { - return request({ - url: '/questionnaire', - method: 'post', - data: data - }); -} - -// 修改问卷 -export function updateQuestionnaire(data) { - return request({ - url: '/questionnaire', - method: 'put', - data: data - }); -} - -// 删除问卷 -export function delQuestionnaire(id) { - return request({ - url: '/questionnaire/' + id, - method: 'delete' - }); -} diff --git a/src/views/system/warehouse/Inventory/editInventory.vue b/src/views/system/warehouse/Inventory/editInventory.vue deleted file mode 100644 index 24c4a40..0000000 --- a/src/views/system/warehouse/Inventory/editInventory.vue +++ /dev/null @@ -1,133 +0,0 @@ - - - - - diff --git a/src/views/system/warehouse/Inventory/index.vue b/src/views/system/warehouse/Inventory/index.vue deleted file mode 100644 index 445e27a..0000000 --- a/src/views/system/warehouse/Inventory/index.vue +++ /dev/null @@ -1,150 +0,0 @@ - - - - - diff --git a/src/views/system/warehouse/IssueOut/Main.vue b/src/views/system/warehouse/IssueOut/Main.vue deleted file mode 100644 index ade9f9b..0000000 --- a/src/views/system/warehouse/IssueOut/Main.vue +++ /dev/null @@ -1,176 +0,0 @@ - - - - - diff --git a/src/views/system/warehouse/IssueOut/add.vue b/src/views/system/warehouse/IssueOut/add.vue deleted file mode 100644 index 0cd415f..0000000 --- a/src/views/system/warehouse/IssueOut/add.vue +++ /dev/null @@ -1,297 +0,0 @@ - - - - - diff --git a/src/views/system/warehouse/IssueOut/index.vue b/src/views/system/warehouse/IssueOut/index.vue deleted file mode 100644 index ee1ac1f..0000000 --- a/src/views/system/warehouse/IssueOut/index.vue +++ /dev/null @@ -1,192 +0,0 @@ - - - - - diff --git a/src/views/system/warehouse/Material/addMaterial.vue b/src/views/system/warehouse/Material/addMaterial.vue deleted file mode 100644 index 93741dc..0000000 --- a/src/views/system/warehouse/Material/addMaterial.vue +++ /dev/null @@ -1,143 +0,0 @@ - - - - - diff --git a/src/views/system/warehouse/Material/index.vue b/src/views/system/warehouse/Material/index.vue deleted file mode 100644 index 54cfe93..0000000 --- a/src/views/system/warehouse/Material/index.vue +++ /dev/null @@ -1,227 +0,0 @@ - - - - - diff --git a/src/views/system/warehouse/PurchaseIn/Main.vue b/src/views/system/warehouse/PurchaseIn/Main.vue deleted file mode 100644 index f2be480..0000000 --- a/src/views/system/warehouse/PurchaseIn/Main.vue +++ /dev/null @@ -1,178 +0,0 @@ - - - - - diff --git a/src/views/system/warehouse/PurchaseIn/add.vue b/src/views/system/warehouse/PurchaseIn/add.vue deleted file mode 100644 index 1c89b3e..0000000 --- a/src/views/system/warehouse/PurchaseIn/add.vue +++ /dev/null @@ -1,309 +0,0 @@ - - - - - diff --git a/src/views/system/warehouse/PurchaseIn/index.vue b/src/views/system/warehouse/PurchaseIn/index.vue deleted file mode 100644 index 82cef8c..0000000 --- a/src/views/system/warehouse/PurchaseIn/index.vue +++ /dev/null @@ -1,242 +0,0 @@ - - - - - diff --git a/src/views/system/warehouse/Supplier/addSupplier.vue b/src/views/system/warehouse/Supplier/addSupplier.vue deleted file mode 100644 index 9cad05c..0000000 --- a/src/views/system/warehouse/Supplier/addSupplier.vue +++ /dev/null @@ -1,168 +0,0 @@ - - - - - diff --git a/src/views/system/warehouse/Supplier/index.vue b/src/views/system/warehouse/Supplier/index.vue deleted file mode 100644 index 753f1ee..0000000 --- a/src/views/system/warehouse/Supplier/index.vue +++ /dev/null @@ -1,236 +0,0 @@ - - - - - diff --git a/src/views/system/warehouse/Warehouse/addWarehouse.vue b/src/views/system/warehouse/Warehouse/addWarehouse.vue deleted file mode 100644 index 0c86c6b..0000000 --- a/src/views/system/warehouse/Warehouse/addWarehouse.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - - diff --git a/src/views/system/warehouse/Warehouse/index.vue b/src/views/system/warehouse/Warehouse/index.vue deleted file mode 100644 index ed00535..0000000 --- a/src/views/system/warehouse/Warehouse/index.vue +++ /dev/null @@ -1,263 +0,0 @@ - - - - - diff --git a/src/views/workbench/index2.vue b/src/views/workbench/index2.vue index 345dde4..7172656 100644 --- a/src/views/workbench/index2.vue +++ b/src/views/workbench/index2.vue @@ -125,6 +125,8 @@ function getVillageInfo() { // }; // }); houseStore.updateVilageinfo(res.data); + // 工作台是登录后的落地页,顺带刷新当前小区信息(问卷/活动/收银等页面直接读这个本地缓存) + localStorage.setItem('villageInfo', JSON.stringify(res.data)); }); } getVillageInfo();