Compare commits
345 Commits
1ed923c969
...
prod
Author | SHA1 | Date | |
---|---|---|---|
![]() |
263ce25007 | ||
5516e79b5d | |||
e8d2650f9a | |||
5646112e44 | |||
82e971d98f | |||
29c20f6403 | |||
d6da044b48 | |||
8c062feef0 | |||
90b9b2b7a9 | |||
bc59c2c22f | |||
90eceb508a | |||
f794f6a8a9 | |||
6cc969e56a | |||
6ca27444e0 | |||
2f2f8fb798 | |||
1de539ddde | |||
67b80d7687 | |||
b44fa6ee7f | |||
559bd55153 | |||
cc24027880 | |||
66b7cc44e9 | |||
5f3ae86698 | |||
84ff3d21b4 | |||
e88b8b41d8 | |||
48ea62150d | |||
5975d1b94d | |||
faababd9a4 | |||
c7f52fa107 | |||
28018815b7 | |||
bad1423acd | |||
f6f258c9b7 | |||
559e46dc41 | |||
67b7e64600 | |||
5c40b534f2 | |||
99b02c16eb | |||
c761c8ba0c | |||
882e1f7452 | |||
553a915027 | |||
ff5963b01d | |||
850b18d34c | |||
2afef1f33d | |||
29adc052c7 | |||
418a0a4e54 | |||
3d934e2e51 | |||
18c23a21a0 | |||
91f5b33e68 | |||
c8bcf9a28d | |||
69d17e29ff | |||
cb0a15e5fb | |||
b153c88cd5 | |||
7c55152cc3 | |||
3cad95d185 | |||
060fd5485e | |||
5fa41f6d85 | |||
a599e72a6b | |||
06a710d1f8 | |||
7b2c8e47dd | |||
a43cb1b390 | |||
ee9b7017f4 | |||
29df30ee82 | |||
76fa9960e0 | |||
e750414f02 | |||
006471bb1e | |||
c4d503f9b8 | |||
81fc3bf2ca | |||
3d1681e811 | |||
4b3ed5c2d5 | |||
28d6a77848 | |||
4139af5673 | |||
fc08c5525c | |||
5c7080a3da | |||
c090779319 | |||
36f93721ad | |||
957827e0e4 | |||
87fc96500a | |||
1a9927e60a | |||
bf13cbfbb7 | |||
ca4f180e7e | |||
6ed8a24745 | |||
5ff3cd67d0 | |||
7d15ff713c | |||
93be4f1891 | |||
79e7a20bd1 | |||
![]() |
79d650adb4 | ||
![]() |
69f0d4adb4 | ||
![]() |
4bc18e0e4c | ||
c75663a5c7 | |||
a025dc2321 | |||
2c6f431ba1 | |||
7aff23d72c | |||
ae46c42daa | |||
bff5b254c2 | |||
1aedec1270 | |||
0c2c709647 | |||
b0c29a6dd4 | |||
97dc93f3aa | |||
7edbeca307 | |||
65b13aced2 | |||
2b7b455f40 | |||
3cff90a31a | |||
023127fa78 | |||
d0b4d00f4b | |||
7529565364 | |||
81de99b015 | |||
78ff0f0c3d | |||
575ee16a87 | |||
fcd4051e90 | |||
f24ec168bf | |||
2cdbc64250 | |||
578aa61082 | |||
1db3c351e5 | |||
8da35d2d4b | |||
13f79986f8 | |||
d9b096c8ed | |||
8cf6df683d | |||
963c1ac9c0 | |||
12be6eb03b | |||
938bb0a52a | |||
09f850fccd | |||
1d1afb0162 | |||
bc73f02c47 | |||
f7462c254e | |||
931bdfcddd | |||
0a77934d8b | |||
![]() |
0d8bae5406 | ||
![]() |
b4f24df882 | ||
![]() |
489ec29184 | ||
899cefb73a | |||
5494d206d4 | |||
![]() |
c3f43f6e71 | ||
![]() |
73232037cc | ||
effcb9ef86 | |||
1e4c74230f | |||
ac30c32fcc | |||
ed8fa0f5b4 | |||
09db75ae58 | |||
e82a42b6a9 | |||
e0cf2f99f9 | |||
cf64e5fa19 | |||
![]() |
80d3739fb7 | ||
d9afe03c53 | |||
8bb861ca31 | |||
a048f3627e | |||
63d23bc447 | |||
3bb04f80eb | |||
117b574410 | |||
f4278ee9f1 | |||
cf17b814a8 | |||
f7e341bf08 | |||
01a71ea4c3 | |||
84140dc7e3 | |||
65e371d16e | |||
ee8e459aed | |||
6d6646ed3b | |||
fe2069a2e8 | |||
8bc05afd6d | |||
90531f1598 | |||
34b6f8e738 | |||
2beb771185 | |||
febe532404 | |||
0c9576039b | |||
e0a64edc14 | |||
8209630370 | |||
17c7bc0512 | |||
98d6dd0d9b | |||
28295b283e | |||
7ad4613fc8 | |||
523810a1da | |||
14d70b22d1 | |||
6f7c26a569 | |||
d9856230e6 | |||
cb32660b7b | |||
c847bd29e1 | |||
1b4124b913 | |||
0e38ea68fe | |||
b1fa25daf1 | |||
b7df7e350b | |||
3b51a615ed | |||
d722c62f49 | |||
988ce1d7c4 | |||
46ee986a9a | |||
b7ecd38f59 | |||
ea9eda3973 | |||
8f6dc2ba11 | |||
48f0011e78 | |||
e0d55b6ab4 | |||
52106d7eeb | |||
ea667a76be | |||
64a01a3d6f | |||
e08cbdf345 | |||
b7e2d1894e | |||
04b6fd0194 | |||
62f1d43ac5 | |||
4f156a3f58 | |||
9acceacdf0 | |||
84cade81df | |||
9cb6d99e90 | |||
71a7619f3a | |||
b912ca5aa5 | |||
ce445ae088 | |||
fb537fdc00 | |||
feb2eb68be | |||
90c803dfa3 | |||
cc9ad36328 | |||
fe78f7ad25 | |||
ba538a2227 | |||
13e2163c66 | |||
1b207e2a17 | |||
63499beb8b | |||
375dcc0114 | |||
7f542de90b | |||
fcbe3b2e78 | |||
ca43557416 | |||
289839651d | |||
68bb70ee72 | |||
a1d711017a | |||
8af8a60bee | |||
3d7ddf3ed8 | |||
d84904e20c | |||
08b738f0f4 | |||
dfe7138438 | |||
d0473366a0 | |||
e6d4141c3b | |||
b9ae686c1f | |||
af61574154 | |||
54ed694271 | |||
ba1deb7b4e | |||
d7f982949a | |||
532869a4a3 | |||
53f5640f02 | |||
4be281fd5f | |||
241bf03b1a | |||
5fbf10b139 | |||
805902ca84 | |||
1695f017b0 | |||
d96d906392 | |||
44e2c1fd4a | |||
9131eb0e44 | |||
007bda30bc | |||
85e021b5ac | |||
15ccb7f0b9 | |||
1b522f2bbf | |||
3749f4bbb9 | |||
4ff469f0ae | |||
189d5ccd14 | |||
f6da015fb7 | |||
9d75dd2168 | |||
447ad7f004 | |||
8d20a262eb | |||
ae098aa1e0 | |||
db8186d055 | |||
beb4bf470d | |||
0e14adaa54 | |||
6dc435ff6c | |||
187f10bdc0 | |||
d91cfeb388 | |||
dc7bb19fd6 | |||
d03743f996 | |||
fefce85997 | |||
0d6259e335 | |||
2ad20e8ccb | |||
3008b88629 | |||
93b1b2476a | |||
1881c22cd3 | |||
c13ec26951 | |||
bd8a8a91f8 | |||
5627819db9 | |||
9796a46ba1 | |||
b94c6c9268 | |||
34d50c58af | |||
420335d7be | |||
65b9e5cb6a | |||
49cbf6ffe5 | |||
60007098a4 | |||
09343106c8 | |||
5c78f808b0 | |||
8c36ddceee | |||
3f19c3852f | |||
e229a1ad1c | |||
a74b2516c7 | |||
33f2e117f6 | |||
b74cde4531 | |||
bc36b98f9a | |||
524b0df0e3 | |||
![]() |
f250bbf9ab | ||
![]() |
ee1365cd4c | ||
29fd557eac | |||
31c260c8ca | |||
9a14f9bc77 | |||
d9621a0416 | |||
5d8ba35a66 | |||
42434c127c | |||
171ed8a087 | |||
96da6a9764 | |||
5ac8aca6df | |||
0deef13b8d | |||
fdbb8366b1 | |||
f18b3ae03e | |||
34fa7a1c1a | |||
485200cd42 | |||
ad2c9aed05 | |||
97f298d8c7 | |||
9135ee31b9 | |||
62e45c3e94 | |||
ec50545e4b | |||
a7a52d9313 | |||
5be03ab8c5 | |||
18aca4254d | |||
89b1c527fa | |||
2684133491 | |||
e10f22a4d0 | |||
![]() |
2bb661e32b | ||
5f19bb22a8 | |||
a03b3b906a | |||
b81c30696b | |||
a5f93c3a6c | |||
8c606397df | |||
1798de7d52 | |||
a5a657a96c | |||
355d14ab9e | |||
06e72f6e51 | |||
0b5938fe13 | |||
ae9bbbb17c | |||
3389a864d1 | |||
0effa0b48f | |||
01da009de8 | |||
5ac6cc8946 | |||
cef7871eba | |||
2e491a3832 | |||
637f184387 | |||
32b38257d1 | |||
26ba202977 | |||
56440da41b | |||
8c69441190 | |||
72ddc3d5f3 | |||
37324d04e6 | |||
a6cc9b783e | |||
aad204ae85 | |||
fa30efb031 | |||
8052d3d63d | |||
0c71c9193b | |||
b6ea9bc5bb | |||
e590eaf58d | |||
bd762452f8 | |||
8e361c6b59 |
@@ -1,37 +1,44 @@
|
||||
name: Gitea Actions Demo
|
||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||
on: [push]
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- prod
|
||||
jobs:
|
||||
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu
|
||||
steps:
|
||||
|
||||
- name: Checkout code
|
||||
uses: http://47.109.37.87:3000/bichangxiong/checkout@v4 # 使用 Gitea 镜像
|
||||
- name: 拉取代码仓库
|
||||
uses: http://git.missmoc.top/mocheng/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1 # 只拉取最新一次提交
|
||||
|
||||
- name: Set up Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
fetch-depth: 0 # 只拉取最新的1个提交(浅克隆)
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: http://git.missmoc.top/mocheng/setup-node@v3
|
||||
with:
|
||||
node-version: 20.x
|
||||
- name: pnpm
|
||||
|
||||
- name: 安装pnpm
|
||||
run: npm i pnpm -g
|
||||
- name: node
|
||||
run: pnpm i
|
||||
- name: Build
|
||||
|
||||
- name: 安装依赖
|
||||
run: pnpm install
|
||||
continue-on-error: false # 依赖安装失败则终止工作流
|
||||
|
||||
- name: 构建项目
|
||||
run: pnpm build:antd
|
||||
- name: copy file via ssh password
|
||||
uses: appleboy/scp-action@v0.1.7
|
||||
with:
|
||||
host: 192.168.1.3
|
||||
username: root
|
||||
password: by@2025!
|
||||
port: 22
|
||||
source: "./apps/web-antd/dist"
|
||||
target: "/project/wl/web/dist"
|
||||
|
||||
continue-on-error: false # 构建失败则终止工作流
|
||||
|
||||
- name: 检查构建结果
|
||||
run: |
|
||||
if [ ! -d "./apps/web-antd/dist" ]; then
|
||||
echo "构建目录不存在,构建失败"
|
||||
exit 1
|
||||
fi
|
||||
if [ -z "$(ls -A ./apps/web-antd/dist)" ]; then
|
||||
echo "构建目录为空,构建失败"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
- name: 通过SSH复制文件
|
||||
run: cp -rf ./apps/web-antd/dist/* /www/wwwroot/183.230.235.66_11010/property
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -52,3 +52,4 @@ vite.config.ts.*
|
||||
# 排除自动生成的类型文件
|
||||
apps/web-antd/types/components.d.ts
|
||||
.history
|
||||
apps/web-antd/vite.config.mts
|
||||
|
@@ -1,22 +1,24 @@
|
||||
<!doctype html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="renderer" content="webkit" />
|
||||
<meta name="description" content="A Modern Back-end Management System" />
|
||||
<meta name="keywords" content="Vben Admin Vue3 Vite" />
|
||||
<meta name="author" content="Vben" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
|
||||
/>
|
||||
<!-- 由 vite 注入 VITE_APP_TITLE 变量,在 .env 文件内配置 -->
|
||||
<title><%= VITE_APP_TITLE %></title>
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
||||
<meta name="renderer" content="webkit"/>
|
||||
<meta name="description" content="A Modern Back-end Management System"/>
|
||||
<meta name="keywords" content="Vben Admin Vue3 Vite"/>
|
||||
<meta name="author" content="Vben"/>
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
|
||||
/>
|
||||
<!-- 由 vite 注入 VITE_APP_TITLE 变量,在 .env 文件内配置 -->
|
||||
<title><%= VITE_APP_TITLE %></title>
|
||||
<link rel="icon" href="/favicon.ico"/>
|
||||
<script type="text/javascript"
|
||||
src="https://api.map.baidu.com/api?v=3.0&ak=5GUquqE2yrgMo3BPIGcn89dU8uMhnbxG"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -27,6 +27,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@ant-design/icons-vue": "^7.0.1",
|
||||
"@dataview/datav-vue3": "0.0.0-test.1672506674342",
|
||||
"@jiaminghi/charts": "^0.2.18",
|
||||
"@jiaminghi/data-view": "^2.10.0",
|
||||
"@tinymce/tinymce-vue": "^6.0.1",
|
||||
"@vben/access": "workspace:*",
|
||||
"@vben/common-ui": "workspace:*",
|
||||
@@ -51,6 +54,7 @@
|
||||
"echarts-gl": "^2.0.9",
|
||||
"jsencrypt": "^3.3.2",
|
||||
"lodash-es": "^4.17.21",
|
||||
"mpegts.js": "^1.8.0",
|
||||
"pinia": "catalog:",
|
||||
"tinymce": "^7.3.0",
|
||||
"unplugin-vue-components": "^0.27.3",
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 15 KiB |
48
apps/web-antd/src/api/cockpit/cockpit.ts
Normal file
48
apps/web-antd/src/api/cockpit/cockpit.ts
Normal file
@@ -0,0 +1,48 @@
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 大屏接口
|
||||
*/
|
||||
|
||||
/**
|
||||
* 访客
|
||||
*/
|
||||
export function visitir() {
|
||||
return requestClient.get('/property/cockpit/visitor');
|
||||
}
|
||||
|
||||
/**
|
||||
*费用
|
||||
*/
|
||||
export function expenses() {
|
||||
return requestClient.get('/property/cockpit/expenses');
|
||||
}
|
||||
|
||||
/**
|
||||
* 物业人员配置
|
||||
*/
|
||||
export function propertyPerson() {
|
||||
return requestClient.get('/property/cockpit/propertyperson');
|
||||
}
|
||||
|
||||
/**
|
||||
* sos报警
|
||||
*/
|
||||
export function sos() {
|
||||
return requestClient.get('/property/cockpit/sos');
|
||||
}
|
||||
|
||||
/**
|
||||
* sos报警记录
|
||||
*/
|
||||
export function soslist() {
|
||||
return requestClient.get('/property/cockpit/soslist');
|
||||
}
|
||||
|
||||
/**
|
||||
* 工单
|
||||
*/
|
||||
export function workcount() {
|
||||
return requestClient.get('/property/cockpit/workcount');
|
||||
}
|
11
apps/web-antd/src/api/common.d.ts
vendored
11
apps/web-antd/src/api/common.d.ts
vendored
@@ -1,3 +1,5 @@
|
||||
import type { DataNode } from 'ant-design-vue/es/tree';
|
||||
|
||||
export type ID = number | string;
|
||||
export type IDS = (number | string)[];
|
||||
|
||||
@@ -42,15 +44,12 @@ export interface PageQuery {
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
export interface TreeNode<T = any> {
|
||||
export interface TreeNode<T = any> extends DataNode {
|
||||
level: number;
|
||||
code: T;
|
||||
ParentCode: T;
|
||||
label: string;
|
||||
children: TreeNode<T>;
|
||||
|
||||
title?: string;
|
||||
key?:any
|
||||
disabled: boolean
|
||||
|
||||
data?: [];
|
||||
disabled: boolean;
|
||||
}
|
||||
|
@@ -42,6 +42,14 @@ export function applicationAdd(data: ApplicationForm) {
|
||||
return requestClient.postWithMsg<void>('/property/application', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 领用审核
|
||||
* @param data
|
||||
*/
|
||||
export function applicationVerified(data: ApplicationForm) {
|
||||
return requestClient.postWithMsg<void>('/property/application/verified', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新资产领用
|
||||
* @param data
|
||||
|
@@ -59,7 +59,7 @@ export interface AssetVO {
|
||||
/**
|
||||
* 固定资产类型
|
||||
*/
|
||||
type: number;
|
||||
type: string;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
|
@@ -0,0 +1,76 @@
|
||||
import type {
|
||||
ProcurementApplicationVO,
|
||||
ProcurementApplicationForm,
|
||||
ProcurementApplicationQuery,
|
||||
} from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询资产申请列表
|
||||
* @param params
|
||||
* @returns 资产申请列表
|
||||
*/
|
||||
export function procurementApplicationList(
|
||||
params?: ProcurementApplicationQuery,
|
||||
) {
|
||||
return requestClient.get<PageResult<ProcurementApplicationVO>>(
|
||||
'/property/capitalApplication/list',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出资产申请列表
|
||||
* @param params
|
||||
* @returns 资产申请列表
|
||||
*/
|
||||
export function procurementApplicationExport(
|
||||
params?: ProcurementApplicationQuery,
|
||||
) {
|
||||
return commonExport('/property/capitalApplication/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询资产申请详情
|
||||
* @param id id
|
||||
* @returns 资产申请详情
|
||||
*/
|
||||
export function procurementApplicationInfo(id: ID) {
|
||||
return requestClient.get<ProcurementApplicationVO>(
|
||||
`/property/capitalApplication/${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增资产申请
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function procurementApplicationAdd(data: ProcurementApplicationForm) {
|
||||
return requestClient.postWithMsg<void>('/property/capitalApplication', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新资产申请
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function procurementApplicationUpdate(data: ProcurementApplicationForm) {
|
||||
return requestClient.putWithMsg<void>('/property/capitalApplication', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除资产申请
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function procurementApplicationRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(
|
||||
`/property/capitalApplication/${id}`,
|
||||
);
|
||||
}
|
213
apps/web-antd/src/api/property/assetManage/procurementApplication/model.d.ts
vendored
Normal file
213
apps/web-antd/src/api/property/assetManage/procurementApplication/model.d.ts
vendored
Normal file
@@ -0,0 +1,213 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface ProcurementApplicationVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* 申请人id
|
||||
*/
|
||||
applicat: number;
|
||||
|
||||
/**
|
||||
* 申请人手机号
|
||||
*/
|
||||
phone: string;
|
||||
|
||||
/**
|
||||
* 供应商id
|
||||
*/
|
||||
supplier: number;
|
||||
|
||||
/**
|
||||
* 资产id
|
||||
*/
|
||||
capitalId: string | number;
|
||||
|
||||
/**
|
||||
* 采购方式
|
||||
*/
|
||||
buyType: string;
|
||||
|
||||
/**
|
||||
* 采购单价
|
||||
*/
|
||||
buyUnitPrice: number;
|
||||
|
||||
/**
|
||||
* 采购金额
|
||||
*/
|
||||
buyAmount: number;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state: string;
|
||||
|
||||
/**
|
||||
* 审核意见
|
||||
*/
|
||||
auditOpinion?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 申请时间
|
||||
*/
|
||||
applicationTime: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
/**
|
||||
* 资产信息
|
||||
*/
|
||||
capitalInfoVoList: any[];
|
||||
}
|
||||
|
||||
export interface ProcurementApplicationForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 申请人id
|
||||
*/
|
||||
applicat?: number;
|
||||
|
||||
/**
|
||||
* 申请人手机号
|
||||
*/
|
||||
phone?: string;
|
||||
|
||||
/**
|
||||
* 供应商id
|
||||
*/
|
||||
supplier?: number;
|
||||
|
||||
/**
|
||||
* 资产id
|
||||
*/
|
||||
capitalId?: string | number;
|
||||
|
||||
/**
|
||||
* 采购方式
|
||||
*/
|
||||
buyType?: string;
|
||||
|
||||
/**
|
||||
* 采购单价
|
||||
*/
|
||||
buyUnitPrice?: number;
|
||||
|
||||
/**
|
||||
* 采购金额
|
||||
*/
|
||||
buyAmount?: number;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 审核意见
|
||||
*/
|
||||
auditOpinion?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 申请时间
|
||||
*/
|
||||
applicationTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
capitalInfoBolist?: any;
|
||||
}
|
||||
|
||||
export interface ProcurementApplicationQuery extends PageQuery {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 申请人id
|
||||
*/
|
||||
applicat?: number;
|
||||
|
||||
/**
|
||||
* 申请人手机号
|
||||
*/
|
||||
phone?: string;
|
||||
|
||||
/**
|
||||
* 供应商id
|
||||
*/
|
||||
supplier?: number;
|
||||
|
||||
/**
|
||||
* 资产id
|
||||
*/
|
||||
capitalId?: string | number;
|
||||
|
||||
/**
|
||||
* 采购方式
|
||||
*/
|
||||
buyType?: string;
|
||||
|
||||
/**
|
||||
* 采购单价
|
||||
*/
|
||||
buyUnitPrice?: number;
|
||||
|
||||
/**
|
||||
* 采购金额
|
||||
*/
|
||||
buyAmount?: number;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 申请时间
|
||||
*/
|
||||
applicationTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,106 @@
|
||||
import type {
|
||||
ArrangementForm,
|
||||
ArrangementQuery,
|
||||
ArrangementVO,
|
||||
arrangmentListQuery,
|
||||
AttendanceUserGroup,
|
||||
} from './model';
|
||||
|
||||
import type { ID, IDS, PageResult } from '#/api/common';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 分页查询排班列表
|
||||
* @param params
|
||||
* @returns 排班列表
|
||||
*/
|
||||
export function arrangementList(params?: ArrangementQuery) {
|
||||
return requestClient.get<PageResult<ArrangementVO>>(
|
||||
'/property/arrangement/list',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据月份查询排班列表
|
||||
* @param params
|
||||
* @returns 排班列表
|
||||
*/
|
||||
export function arrangementCalender(params?: ArrangementQuery) {
|
||||
return requestClient.get<any>('/property/arrangement/explore', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询排班详情
|
||||
* @param id id
|
||||
* @returns 排班详情
|
||||
*/
|
||||
export function arrangementInfo(id: ID) {
|
||||
return requestClient.get<ArrangementVO>(`/property/arrangement/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增排班
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function arrangementAdd(data: ArrangementForm) {
|
||||
return requestClient.postWithMsg<void>('/property/arrangement', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新排班
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function arrangementUpdate(data: ArrangementForm) {
|
||||
return requestClient.putWithMsg<void>('/property/arrangement', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除排班
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function arrangementRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/arrangement/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询某天排班详情列表
|
||||
* @param params
|
||||
* @returns 排班列表
|
||||
*/
|
||||
|
||||
export function arrangmentList(params?: arrangmentListQuery) {
|
||||
return requestClient.get<PageResult<ArrangementVO>>(
|
||||
'/property/arrangement/list',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询某天排班人员详情列表(班表视图)
|
||||
* @param params
|
||||
* @returns 排班列表
|
||||
*/
|
||||
|
||||
export function queryScheduleView(params?: arrangmentListQuery) {
|
||||
return requestClient.get<PageResult<AttendanceUserGroup>>(
|
||||
'/property/AttendanceUserGroup/queryScheduleView',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询某天排班人员详情列表
|
||||
* @param params
|
||||
* @returns 排班列表
|
||||
*/
|
||||
|
||||
export function queryCurrentSchedu() {
|
||||
return requestClient.get<AttendanceUserGroup[]>(
|
||||
'/property/AttendanceUserGroup/query/currentDay',
|
||||
);
|
||||
}
|
150
apps/web-antd/src/api/property/attendanceManagement/arrangement/model.d.ts
vendored
Normal file
150
apps/web-antd/src/api/property/attendanceManagement/arrangement/model.d.ts
vendored
Normal file
@@ -0,0 +1,150 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface ArrangementVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 排班名称
|
||||
*/
|
||||
scheduleName?: string;
|
||||
|
||||
/**
|
||||
* 考勤组ID
|
||||
*/
|
||||
groupId?: string | number;
|
||||
|
||||
/**
|
||||
* 排班类型:1-固定班制,2-排班制
|
||||
*/
|
||||
scheduleType?: number;
|
||||
|
||||
/**
|
||||
* 日期类型:1-单个日期,2-长期有效,3-期间有效
|
||||
*/
|
||||
dateType?: number;
|
||||
|
||||
/**
|
||||
* 开始日期
|
||||
*/
|
||||
startDate?: string;
|
||||
|
||||
/**
|
||||
* 结束日期(仅date_type=3时有效)
|
||||
*/
|
||||
endDate?: string;
|
||||
|
||||
/**
|
||||
* 状态:0-未生效,1-已生效
|
||||
*/
|
||||
status?: number;
|
||||
userGroupList?: any[];
|
||||
attendanceGroup?: any;
|
||||
dateType?: number;
|
||||
areaList: any[]; //区域
|
||||
}
|
||||
|
||||
export interface ArrangementForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 排班名称
|
||||
*/
|
||||
scheduleName?: string;
|
||||
|
||||
/**
|
||||
* 考勤组ID
|
||||
*/
|
||||
groupId?: string | number;
|
||||
|
||||
/**
|
||||
* 排班类型:1-固定班制,2-排班制
|
||||
*/
|
||||
scheduleType?: number;
|
||||
|
||||
/**
|
||||
* 日期类型:1-单个日期,2-长期有效,3-期间有效
|
||||
*/
|
||||
dateType?: number;
|
||||
|
||||
/**
|
||||
* 开始日期
|
||||
*/
|
||||
startDate?: string;
|
||||
|
||||
/**
|
||||
* 结束日期(仅date_type=3时有效)
|
||||
*/
|
||||
endDate?: string;
|
||||
|
||||
/**
|
||||
* 状态:0-未生效,1-已生效
|
||||
*/
|
||||
status?: number;
|
||||
/**
|
||||
* 排班人员详情
|
||||
*/
|
||||
userGroupList: any[];
|
||||
/**
|
||||
* 排班id
|
||||
*/
|
||||
scheduleId?: string | number;
|
||||
}
|
||||
|
||||
export interface ArrangementQuery extends PageQuery {
|
||||
/**
|
||||
* 排班名称
|
||||
*/
|
||||
scheduleName?: string;
|
||||
|
||||
/**
|
||||
* 考勤组ID
|
||||
*/
|
||||
groupId?: string | number;
|
||||
|
||||
/**
|
||||
* 排班类型:1-固定班制,2-排班制
|
||||
*/
|
||||
scheduleType?: number;
|
||||
|
||||
/**
|
||||
* 日期类型:1-单个日期,2-长期有效,3-期间有效
|
||||
*/
|
||||
dateType?: number;
|
||||
|
||||
/**
|
||||
* 开始日期
|
||||
*/
|
||||
startDate?: string;
|
||||
|
||||
/**
|
||||
* 结束日期(仅date_type=3时有效)
|
||||
*/
|
||||
endDate?: string;
|
||||
|
||||
/**
|
||||
* 状态:0-未生效,1-已生效
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
|
||||
/**
|
||||
* 月份
|
||||
*/
|
||||
month?: string;
|
||||
}
|
||||
export interface arrangmentListQuery extends PageQuery {
|
||||
currentDate: string; //某天的日期
|
||||
}
|
||||
export interface AttendanceUserGroup extends PageQuery {
|
||||
currentDate: string; //某天的日期
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { AttendanceAreaVO, AttendanceAreaForm, AttendanceAreaQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询区域区域管理列表
|
||||
* @param params
|
||||
* @returns 区域区域管理列表
|
||||
*/
|
||||
export function attendanceAreaList(params?: AttendanceAreaQuery) {
|
||||
return requestClient.get<PageResult<AttendanceAreaVO>>('/property/attendanceArea/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出区域区域管理列表
|
||||
* @param params
|
||||
* @returns 区域区域管理列表
|
||||
*/
|
||||
export function attendanceAreaExport(params?: AttendanceAreaQuery) {
|
||||
return commonExport('/property/attendanceArea/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询区域区域管理详情
|
||||
* @param id id
|
||||
* @returns 区域区域管理详情
|
||||
*/
|
||||
export function attendanceAreaInfo(id: ID) {
|
||||
return requestClient.get<AttendanceAreaVO>(`/property/attendanceArea/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增区域区域管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function attendanceAreaAdd(data: AttendanceAreaForm) {
|
||||
return requestClient.postWithMsg<void>('/property/attendanceArea', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新区域区域管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function attendanceAreaUpdate(data: AttendanceAreaForm) {
|
||||
return requestClient.putWithMsg<void>('/property/attendanceArea', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除区域区域管理
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function attendanceAreaRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/attendanceArea/${id}`);
|
||||
}
|
68
apps/web-antd/src/api/property/attendanceManagement/attendanceArea/model.d.ts
vendored
Normal file
68
apps/web-antd/src/api/property/attendanceManagement/attendanceArea/model.d.ts
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface AttendanceAreaVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 摄像机列表
|
||||
*/
|
||||
deviceManageId: any[];
|
||||
|
||||
/**
|
||||
* 区域
|
||||
*/
|
||||
area: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
reamark: string;
|
||||
areaDevice?: any[];
|
||||
}
|
||||
|
||||
export interface AttendanceAreaForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 摄像机id
|
||||
*/
|
||||
deviceManageId?: string | number;
|
||||
|
||||
/**
|
||||
* 区域
|
||||
*/
|
||||
area?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
reamark?: string;
|
||||
}
|
||||
|
||||
export interface AttendanceAreaQuery extends PageQuery {
|
||||
/**
|
||||
* 摄像机id
|
||||
*/
|
||||
deviceManageId?: string | number;
|
||||
|
||||
/**
|
||||
* 区域
|
||||
*/
|
||||
area?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
reamark?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,74 @@
|
||||
import type { GroupVO, GroupForm, GroupQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询考勤组基本信息列表
|
||||
* @param params
|
||||
* @returns 考勤组基本信息列表
|
||||
*/
|
||||
export function groupList(params?: GroupQuery) {
|
||||
return requestClient.get<PageResult<GroupVO>>('/property/group/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出考勤组基本信息列表
|
||||
* @param params
|
||||
* @returns 考勤组基本信息列表
|
||||
*/
|
||||
export function groupExport(params?: GroupQuery) {
|
||||
return commonExport('/property/group/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询考勤组基本信息详情
|
||||
* @param id id
|
||||
* @param attendanceType 类型
|
||||
* @returns 考勤组基本信息详情
|
||||
*/
|
||||
export function groupInfo(id: ID,attendanceType:string) {
|
||||
let params={attendanceType}
|
||||
return requestClient.get<GroupVO>(`/property/group/${id}`,{params});
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增考勤组基本信息
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function groupAdd(data: GroupForm) {
|
||||
return requestClient.postWithMsg<void>('/property/group', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新考勤组基本信息
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function groupUpdate(data: GroupForm) {
|
||||
return requestClient.putWithMsg<void>('/property/group', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除考勤组基本信息
|
||||
* @param id id
|
||||
* @param attendanceType 类型
|
||||
* @returns void
|
||||
*/
|
||||
export function groupRemove(id: ID | IDS,attendanceType:string) {
|
||||
let params={attendanceType}
|
||||
return requestClient.deleteWithMsg<void>(`/property/group/${id}`,{params});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取节假日数据
|
||||
* @param year
|
||||
*/
|
||||
export async function getHoliday(year: string) {
|
||||
const response = await fetch(`https://timor.tech/api/holiday/year/${year}`);
|
||||
return response.json();
|
||||
}
|
88
apps/web-antd/src/api/property/attendanceManagement/attendanceGroupSettings/model.d.ts
vendored
Normal file
88
apps/web-antd/src/api/property/attendanceManagement/attendanceGroupSettings/model.d.ts
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
import type {PageQuery, BaseEntity} from '#/api/common';
|
||||
|
||||
export interface GroupVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 考勤组名称
|
||||
*/
|
||||
groupName: string;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,0:禁用)
|
||||
*/
|
||||
status: number;
|
||||
|
||||
/**
|
||||
* 考勤类型(0:固定班制,1:排班制)
|
||||
*/
|
||||
attendanceType: number| string;
|
||||
|
||||
isAutomatic: boolean;
|
||||
|
||||
clockDateList: any[];
|
||||
|
||||
weekList: any[];
|
||||
|
||||
attendanceList:any[];
|
||||
|
||||
scheduleCycleList:any[];
|
||||
|
||||
}
|
||||
|
||||
export interface GroupForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 考勤组名称
|
||||
*/
|
||||
groupName?: string;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,0:禁用)
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 考勤类型(0:固定班制,1:排班制)
|
||||
*/
|
||||
attendanceType?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface GroupQuery extends PageQuery {
|
||||
/**
|
||||
* 考勤组名称
|
||||
*/
|
||||
groupName?: string;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,0:禁用)
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 考勤类型(0:固定班制,1:排班制)
|
||||
*/
|
||||
attendanceType?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 假期
|
||||
*/
|
||||
export interface Holiday {
|
||||
holiday: boolean;
|
||||
name: string;
|
||||
date: string;
|
||||
}
|
@@ -0,0 +1,59 @@
|
||||
import type { ShiftVO, ShiftForm, ShiftQuery } from './model';
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询班次表列表
|
||||
* @param params
|
||||
* @returns 班次表列表
|
||||
*/
|
||||
export function shiftList(params?: ShiftQuery) {
|
||||
return requestClient.get<PageResult<ShiftVO>>('/property/shift/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出班次表列表
|
||||
* @param params
|
||||
* @returns 班次表列表
|
||||
*/
|
||||
export function shiftExport(params?: ShiftQuery) {
|
||||
return commonExport('/property/shift/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询班次表详情
|
||||
* @param id id
|
||||
* @returns 班次表详情
|
||||
*/
|
||||
export function shiftInfo(id: ID) {
|
||||
return requestClient.get<ShiftVO>(`/property/shift/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增班次表
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function shiftAdd(data: ShiftForm) {
|
||||
return requestClient.postWithMsg<void>('/property/shift', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新班次表
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function shiftUpdate(data: ShiftForm) {
|
||||
return requestClient.putWithMsg<void>('/property/shift', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除班次表
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function shiftRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/shift/${id}`);
|
||||
}
|
131
apps/web-antd/src/api/property/attendanceManagement/shiftSetting/model.d.ts
vendored
Normal file
131
apps/web-antd/src/api/property/attendanceManagement/shiftSetting/model.d.ts
vendored
Normal file
@@ -0,0 +1,131 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
import {isArray} from "lodash-es";
|
||||
|
||||
export interface ShiftVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* 班次名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 考勤开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 考勤结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 状态(0:off,1:on)
|
||||
*/
|
||||
status: string | number;
|
||||
|
||||
/**
|
||||
* 是否休息(0:不休息,1:休息)
|
||||
*/
|
||||
isRest: number;
|
||||
|
||||
/**
|
||||
* 休息开始时间
|
||||
*/
|
||||
restStartTime: string;
|
||||
|
||||
/**
|
||||
* 休息结束时间
|
||||
*/
|
||||
restEndTime: string;
|
||||
|
||||
attendanceTimeRange: [any,any];
|
||||
restTimeRange: [any,any];
|
||||
}
|
||||
|
||||
export interface ShiftForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 班次名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 考勤开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 考勤结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 状态(0:off,1:on)
|
||||
*/
|
||||
status?: string | number;
|
||||
|
||||
/**
|
||||
* 是否休息(0:不休息,1:休息)
|
||||
*/
|
||||
isRest?: number;
|
||||
|
||||
/**
|
||||
* 休息开始时间
|
||||
*/
|
||||
restStartTime?: string;
|
||||
|
||||
/**
|
||||
* 休息结束时间
|
||||
*/
|
||||
restEndTime?: string;
|
||||
}
|
||||
|
||||
export interface ShiftQuery extends PageQuery {
|
||||
/**
|
||||
* 班次名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 考勤开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 考勤结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 状态(0:off,1:on)
|
||||
*/
|
||||
status?: string | number;
|
||||
|
||||
/**
|
||||
* 是否休息(0:不休息,1:休息)
|
||||
*/
|
||||
isRest?: number;
|
||||
|
||||
/**
|
||||
* 休息开始时间
|
||||
*/
|
||||
restStartTime?: string;
|
||||
|
||||
/**
|
||||
* 休息结束时间
|
||||
*/
|
||||
restEndTime?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -29,7 +29,7 @@ export interface BuildingVO {
|
||||
/**
|
||||
* 建筑类型('1:住宅','2:商业','3:混合')
|
||||
*/
|
||||
buildType: number;
|
||||
buildType: string;
|
||||
|
||||
/**
|
||||
* 电梯数量
|
||||
|
@@ -59,3 +59,19 @@ export function workOrdersUpdate(data: WorkOrdersForm) {
|
||||
export function workOrdersRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/workOrders/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 派单
|
||||
* @param data
|
||||
*/
|
||||
export function workOrdersDispatch(data: WorkOrdersForm) {
|
||||
return requestClient.putWithMsg<void>('/property/workOrders/dispatch', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 抢单
|
||||
* @param data
|
||||
*/
|
||||
export function workOrdersGrab(data: WorkOrdersForm) {
|
||||
return requestClient.putWithMsg<void>('/property/workOrders/grab', data);
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
import type {PageQuery, BaseEntity} from '#/api/common';
|
||||
|
||||
export interface WorkOrdersVO {
|
||||
/**
|
||||
@@ -64,15 +64,59 @@ export interface WorkOrdersVO {
|
||||
/**
|
||||
* 评价
|
||||
*/
|
||||
serviceEvalua: string;
|
||||
serviceEvalua: number;
|
||||
|
||||
/**
|
||||
* 是否超时
|
||||
*/
|
||||
isTimeOut: number;
|
||||
|
||||
workOrdersRecordVoList: HandleRecords[];
|
||||
|
||||
typeName: string;
|
||||
|
||||
initiatorPeople: string;
|
||||
|
||||
handlerText: string;
|
||||
/**
|
||||
* 评价图片
|
||||
*/
|
||||
imgUrl: string;
|
||||
|
||||
evaluateImgPath: string[];
|
||||
/**
|
||||
* 评价内容
|
||||
*/
|
||||
serviceEvaluaText: string;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
/**
|
||||
* 图片
|
||||
*/
|
||||
orderImgUrl: string;
|
||||
|
||||
orderImgPath: string[];
|
||||
|
||||
reportingType: string;
|
||||
|
||||
processingWeight: string;
|
||||
|
||||
}
|
||||
|
||||
export interface HandleRecords {
|
||||
status: string;
|
||||
createTime: string;
|
||||
handlerName: string;
|
||||
initiatorPeople: string;
|
||||
}
|
||||
|
||||
|
||||
export interface WorkOrdersForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
@@ -213,7 +257,7 @@ export interface WorkOrdersQuery extends PageQuery {
|
||||
isTimeOut?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
@@ -12,6 +12,22 @@ import { requestClient } from '#/api/request';
|
||||
export function workOrdersTypeList(params?: WorkOrdersTypeQuery) {
|
||||
return requestClient.get<PageResult<WorkOrdersTypeVO>>('/property/workOrdersType/list', { params });
|
||||
}
|
||||
/**
|
||||
* 查询工单类型不分页
|
||||
* @param params
|
||||
* @returns 工单类型管理列表
|
||||
*/
|
||||
export function workOrdersTypeListAll(params?: WorkOrdersTypeQuery) {
|
||||
return requestClient.get<WorkOrdersTypeVO[]>('/property/workOrdersType/queryList', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询工单类型树结构
|
||||
* @param params
|
||||
*/
|
||||
export function workOrdersTypeTree(params?: WorkOrdersTypeQuery) {
|
||||
return requestClient.get<WorkOrdersTypeVO[]>('/property/workOrdersType/typeTree', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出工单类型管理列表
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
import type {PageQuery, BaseEntity} from '#/api/common';
|
||||
|
||||
export interface WorkOrdersTypeVO {
|
||||
/**
|
||||
@@ -34,7 +34,14 @@ export interface WorkOrdersTypeVO {
|
||||
/**
|
||||
* 是否支持转单(0支持,1不支持)
|
||||
*/
|
||||
isTransfers: number;
|
||||
isTransfers: string;
|
||||
|
||||
excludeId: string;
|
||||
/**
|
||||
* 处理优先级
|
||||
*/
|
||||
processingWeight: string;
|
||||
|
||||
}
|
||||
|
||||
export interface WorkOrdersTypeForm extends BaseEntity {
|
||||
@@ -72,6 +79,16 @@ export interface WorkOrdersTypeForm extends BaseEntity {
|
||||
* 是否支持转单(0支持,1不支持)
|
||||
*/
|
||||
isTransfers?: number;
|
||||
|
||||
/**
|
||||
* 上级类型id
|
||||
*/
|
||||
parentId?: string;
|
||||
|
||||
/**
|
||||
* 处理优先级
|
||||
*/
|
||||
processingWeight: string;
|
||||
}
|
||||
|
||||
export interface WorkOrdersTypeQuery extends PageQuery {
|
||||
@@ -106,7 +123,12 @@ export interface WorkOrdersTypeQuery extends PageQuery {
|
||||
isTransfers?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
|
||||
/**
|
||||
* 是否过滤子级
|
||||
*/
|
||||
filterSubNodes?: boolean;
|
||||
}
|
||||
|
65
apps/web-antd/src/api/property/carCharge/index.ts
Normal file
65
apps/web-antd/src/api/property/carCharge/index.ts
Normal file
@@ -0,0 +1,65 @@
|
||||
import type { CarChargeVO, CarChargeForm, CarChargeQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询费用-车辆收费列表
|
||||
* @param params
|
||||
* @returns 费用-车辆收费列表
|
||||
*/
|
||||
export function carChargeList(params?: CarChargeQuery) {
|
||||
return requestClient.get<PageResult<CarChargeVO>>('/property/carCharge/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出费用-车辆收费列表
|
||||
* @param params
|
||||
* @returns 费用-车辆收费列表
|
||||
*/
|
||||
export function carChargeExport(params?: CarChargeQuery) {
|
||||
return commonExport('/property/carCharge/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询费用-车辆收费详情
|
||||
* @param id id
|
||||
* @returns 费用-车辆收费详情
|
||||
*/
|
||||
export function carChargeInfo(id: ID) {
|
||||
return requestClient.get<CarChargeVO>(`/property/carCharge/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增费用-车辆收费
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function carChargeAdd(data: CarChargeForm) {
|
||||
return requestClient.postWithMsg<void>('/property/carCharge', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新费用-车辆收费
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function carChargeUpdate(data: CarChargeForm) {
|
||||
return requestClient.putWithMsg<void>('/property/carCharge', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除费用-车辆收费
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function carChargeRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/carCharge/${id}`);
|
||||
}
|
||||
|
||||
export function carChargeRefund(data: CarChargeForm) {
|
||||
return requestClient.postWithMsg<void>('/property/carCharge/returnFee', data);
|
||||
}
|
176
apps/web-antd/src/api/property/carCharge/model.d.ts
vendored
Normal file
176
apps/web-antd/src/api/property/carCharge/model.d.ts
vendored
Normal file
@@ -0,0 +1,176 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface CarChargeVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 车牌号
|
||||
*/
|
||||
carNumber: string;
|
||||
|
||||
/**
|
||||
* 业主
|
||||
*/
|
||||
personId: string | number;
|
||||
|
||||
chargeItem:string
|
||||
/**
|
||||
* 楼层
|
||||
*/
|
||||
floorId: string | number;
|
||||
|
||||
/**
|
||||
* 车位
|
||||
*/
|
||||
location: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state: string;
|
||||
|
||||
/**
|
||||
* 收费项目
|
||||
*/
|
||||
costItemsId: string | number;
|
||||
|
||||
/**
|
||||
* 计费开始时间
|
||||
*/
|
||||
starTime: string;
|
||||
|
||||
/**
|
||||
* 计费结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
amountReceivable?:any;
|
||||
chargeStatus:any;
|
||||
payType:any;
|
||||
chargeCycle:any
|
||||
|
||||
}
|
||||
|
||||
export interface CarChargeForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 车牌号
|
||||
*/
|
||||
carNumber?: string;
|
||||
|
||||
/**
|
||||
* 业主
|
||||
*/
|
||||
personId?: string | number;
|
||||
|
||||
/**
|
||||
* 楼层
|
||||
*/
|
||||
floorId?: string | number;
|
||||
|
||||
/**
|
||||
* 车位
|
||||
*/
|
||||
location?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 收费项目
|
||||
*/
|
||||
costItemsId?: string | number;
|
||||
|
||||
/**
|
||||
* 计费开始时间
|
||||
*/
|
||||
starTime?: string;
|
||||
|
||||
/**
|
||||
* 计费结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface CarChargeQuery extends PageQuery {
|
||||
/**
|
||||
* 车牌号
|
||||
*/
|
||||
carNumber?: string;
|
||||
|
||||
/**
|
||||
* 业主
|
||||
*/
|
||||
personId?: string | number;
|
||||
|
||||
/**
|
||||
* 楼层
|
||||
*/
|
||||
floorId?: string | number;
|
||||
|
||||
/**
|
||||
* 车位
|
||||
*/
|
||||
location?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 收费项目
|
||||
*/
|
||||
costItemsId?: string | number;
|
||||
|
||||
/**
|
||||
* 计费开始时间
|
||||
*/
|
||||
starTime?: string;
|
||||
|
||||
/**
|
||||
* 计费结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
@@ -144,6 +144,16 @@ export interface Clean_orderForm extends BaseEntity {
|
||||
*/
|
||||
phone?: string;
|
||||
|
||||
/**
|
||||
* 签到图片
|
||||
*/
|
||||
signImgUrl?: string;
|
||||
|
||||
/**
|
||||
* 评价图片
|
||||
*/
|
||||
imgUrl?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface Clean_orderQuery extends PageQuery {
|
||||
|
@@ -0,0 +1,61 @@
|
||||
import type { CostItemSettingVO, CostItemSettingForm, CostItemSettingQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询费用项设置列表
|
||||
* @param params
|
||||
* @returns 费用项设置列表
|
||||
*/
|
||||
export function costItemSettingList(params?: CostItemSettingQuery) {
|
||||
return requestClient.get<PageResult<CostItemSettingVO>>('/property/costItems/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出费用项设置列表
|
||||
* @param params
|
||||
* @returns 费用项设置列表
|
||||
*/
|
||||
export function costItemSettingExport(params?: CostItemSettingQuery) {
|
||||
return commonExport('/property/costItems/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询费用项设置详情
|
||||
* @param id id
|
||||
* @returns 费用项设置详情
|
||||
*/
|
||||
export function costItemSettingInfo(id: ID) {
|
||||
return requestClient.get<CostItemSettingVO>(`/property/costItems/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增费用项设置
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function costItemSettingAdd(data: CostItemSettingForm) {
|
||||
return requestClient.postWithMsg<void>('/property/costItems', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新费用项设置
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function costItemSettingUpdate(data: CostItemSettingForm) {
|
||||
return requestClient.putWithMsg<void>('/property/costItems', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除费用项设置
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function costItemSettingRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/costItems/${id}`);
|
||||
}
|
219
apps/web-antd/src/api/property/costManagement/costItemSetting/model.d.ts
vendored
Normal file
219
apps/web-antd/src/api/property/costManagement/costItemSetting/model.d.ts
vendored
Normal file
@@ -0,0 +1,219 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface CostItemSettingVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 费用类型
|
||||
*/
|
||||
costType: string;
|
||||
|
||||
/**
|
||||
* 收费项目
|
||||
*/
|
||||
chargeItem: string;
|
||||
|
||||
/**
|
||||
* 费用标识
|
||||
*/
|
||||
costMark: string;
|
||||
|
||||
/**
|
||||
* 付费类型
|
||||
*/
|
||||
paymentType: string;
|
||||
|
||||
/**
|
||||
* 缴费周期(月)
|
||||
*/
|
||||
chargeCycle: number;
|
||||
|
||||
/**
|
||||
* 是否手机缴费
|
||||
*/
|
||||
isMobilePay: string;
|
||||
|
||||
/**
|
||||
* 进位方式
|
||||
*/
|
||||
roundingMode: string;
|
||||
|
||||
/**
|
||||
* 保留小数
|
||||
*/
|
||||
currencyDecimals: string;
|
||||
|
||||
/**
|
||||
* 启用状态
|
||||
*/
|
||||
state: string;
|
||||
|
||||
/**
|
||||
* 计算公式
|
||||
*/
|
||||
formula: string;
|
||||
|
||||
/**
|
||||
* 计费单价
|
||||
*/
|
||||
unitPrice: number;
|
||||
|
||||
/**
|
||||
* 附加费
|
||||
*/
|
||||
surcharge: number;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface CostItemSettingForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 费用类型
|
||||
*/
|
||||
costType?: string;
|
||||
|
||||
/**
|
||||
* 收费项目
|
||||
*/
|
||||
chargeItem?: string;
|
||||
|
||||
/**
|
||||
* 费用标识
|
||||
*/
|
||||
costMark?: string;
|
||||
|
||||
/**
|
||||
* 付费类型
|
||||
*/
|
||||
paymentType?: string;
|
||||
|
||||
/**
|
||||
* 缴费周期(月)
|
||||
*/
|
||||
chargeCycle?: number;
|
||||
|
||||
/**
|
||||
* 是否手机缴费
|
||||
*/
|
||||
isMobilePay?: string;
|
||||
|
||||
/**
|
||||
* 进位方式
|
||||
*/
|
||||
roundingMode?: string;
|
||||
|
||||
/**
|
||||
* 保留小数
|
||||
*/
|
||||
currencyDecimals?: string;
|
||||
|
||||
/**
|
||||
* 启用状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 计算公式
|
||||
*/
|
||||
formula?: string;
|
||||
|
||||
/**
|
||||
* 计费单价
|
||||
*/
|
||||
unitPrice?: number;
|
||||
|
||||
/**
|
||||
* 附加费
|
||||
*/
|
||||
surcharge?: number;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface CostItemSettingQuery extends PageQuery {
|
||||
/**
|
||||
* 费用类型
|
||||
*/
|
||||
costType?: string;
|
||||
|
||||
/**
|
||||
* 收费项目
|
||||
*/
|
||||
chargeItem?: string;
|
||||
|
||||
/**
|
||||
* 费用标识
|
||||
*/
|
||||
costMark?: string;
|
||||
|
||||
/**
|
||||
* 付费类型
|
||||
*/
|
||||
paymentType?: string;
|
||||
|
||||
/**
|
||||
* 缴费周期(月)
|
||||
*/
|
||||
chargeCycle?: number;
|
||||
|
||||
/**
|
||||
* 是否手机缴费
|
||||
*/
|
||||
isMobilePay?: string;
|
||||
|
||||
/**
|
||||
* 进位方式
|
||||
*/
|
||||
roundingMode?: string;
|
||||
|
||||
/**
|
||||
* 保留小数
|
||||
*/
|
||||
currencyDecimals?: string;
|
||||
|
||||
/**
|
||||
* 启用状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 计算公式
|
||||
*/
|
||||
formula?: string;
|
||||
|
||||
/**
|
||||
* 计费单价
|
||||
*/
|
||||
unitPrice?: number;
|
||||
|
||||
/**
|
||||
* 附加费
|
||||
*/
|
||||
surcharge?: number;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,65 @@
|
||||
import type { HouseChargeVO, HouseChargeForm, HouseChargeQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询房屋收费列表
|
||||
* @param params
|
||||
* @returns 房屋收费列表
|
||||
*/
|
||||
export function houseChargeList(params?: HouseChargeQuery) {
|
||||
return requestClient.get<PageResult<HouseChargeVO>>('/property/houseCharge/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出房屋收费列表
|
||||
* @param params
|
||||
* @returns 房屋收费列表
|
||||
*/
|
||||
export function houseChargeExport(params?: HouseChargeQuery) {
|
||||
return commonExport('/property/houseCharge/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询房屋收费详情
|
||||
* @param id id
|
||||
* @returns 房屋收费详情
|
||||
*/
|
||||
export function houseChargeInfo(id: ID) {
|
||||
return requestClient.get<HouseChargeVO>(`/property/houseCharge/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增房屋收费
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function houseChargeAdd(data: HouseChargeForm) {
|
||||
return requestClient.postWithMsg<void>('/property/houseCharge', data);
|
||||
}
|
||||
|
||||
export function houseChargeRefund(data: HouseChargeForm) {
|
||||
return requestClient.postWithMsg<void>('/property/houseCharge/returnFee', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新房屋收费
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function houseChargeUpdate(data: HouseChargeForm) {
|
||||
return requestClient.putWithMsg<void>('/property/houseCharge', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除房屋收费
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function houseChargeRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/houseCharge/${id}`);
|
||||
}
|
147
apps/web-antd/src/api/property/costManagement/houseCharge/model.d.ts
vendored
Normal file
147
apps/web-antd/src/api/property/costManagement/houseCharge/model.d.ts
vendored
Normal file
@@ -0,0 +1,147 @@
|
||||
import type {PageQuery, BaseEntity} from '#/api/common';
|
||||
import type {RoomVO} from "#/api/property/room/model";
|
||||
import type {CostItemSettingVO} from "#/api/property/costManagement/costItemSetting/model";
|
||||
|
||||
export interface HouseChargeVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 房屋
|
||||
*/
|
||||
roomId: string | number;
|
||||
|
||||
/**
|
||||
* 收费项目
|
||||
*/
|
||||
costItemsId: string | number;
|
||||
|
||||
/**
|
||||
* 应收金额
|
||||
*/
|
||||
amountReceivable: number;
|
||||
|
||||
/**
|
||||
* 计费开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 计费结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state: string;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
chargeTime: any[];
|
||||
/**
|
||||
* 缴费周期
|
||||
*/
|
||||
chargeCycle: number;
|
||||
/**
|
||||
* 支付方式
|
||||
*/
|
||||
payType: string;
|
||||
|
||||
roomVo: RoomVO;
|
||||
|
||||
costItemsVo: CostItemSettingVO;
|
||||
|
||||
chargeStatus: string;
|
||||
|
||||
personId: string;
|
||||
}
|
||||
|
||||
export interface HouseChargeForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 房屋
|
||||
*/
|
||||
roomId?: string | number;
|
||||
|
||||
/**
|
||||
* 收费项目
|
||||
*/
|
||||
costItemsId?: string | number;
|
||||
|
||||
/**
|
||||
* 应收金额
|
||||
*/
|
||||
amountReceivable?: number;
|
||||
|
||||
/**
|
||||
* 计费开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 计费结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 缴费状态
|
||||
*/
|
||||
chargeStatus?: string;
|
||||
}
|
||||
|
||||
export interface HouseChargeQuery extends PageQuery {
|
||||
/**
|
||||
* 房屋
|
||||
*/
|
||||
roomId?: string | number;
|
||||
|
||||
/**
|
||||
* 收费项目
|
||||
*/
|
||||
costItemsId?: string | number;
|
||||
|
||||
/**
|
||||
* 应收金额
|
||||
*/
|
||||
amountReceivable?: number;
|
||||
|
||||
/**
|
||||
* 计费开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 计费结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { MeterReadingTypeVO, MeterReadingTypeForm, MeterReadingTypeQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询抄表类型列表
|
||||
* @param params
|
||||
* @returns 抄表类型列表
|
||||
*/
|
||||
export function meterReadingTypeList(params?: MeterReadingTypeQuery) {
|
||||
return requestClient.get<PageResult<MeterReadingTypeVO>>('/property/meterReadingType/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出抄表类型列表
|
||||
* @param params
|
||||
* @returns 抄表类型列表
|
||||
*/
|
||||
export function meterReadingTypeExport(params?: MeterReadingTypeQuery) {
|
||||
return commonExport('/property/meterReadingType/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询抄表类型详情
|
||||
* @param id id
|
||||
* @returns 抄表类型详情
|
||||
*/
|
||||
export function meterReadingTypeInfo(id: ID) {
|
||||
return requestClient.get<MeterReadingTypeVO>(`/property/meterReadingType/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增抄表类型
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function meterReadingTypeAdd(data: MeterReadingTypeForm) {
|
||||
return requestClient.postWithMsg<void>('/property/meterReadingType', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新抄表类型
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function meterReadingTypeUpdate(data: MeterReadingTypeForm) {
|
||||
return requestClient.putWithMsg<void>('/property/meterReadingType', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除抄表类型
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function meterReadingTypeRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/meterReadingType/${id}`);
|
||||
}
|
79
apps/web-antd/src/api/property/costManagement/meterReadingType/model.d.ts
vendored
Normal file
79
apps/web-antd/src/api/property/costManagement/meterReadingType/model.d.ts
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface MeterReadingTypeVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 抄表类型
|
||||
*/
|
||||
meterType: string;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MeterReadingTypeForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 抄表类型
|
||||
*/
|
||||
meterType?: string;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MeterReadingTypeQuery extends PageQuery {
|
||||
/**
|
||||
* 抄表类型
|
||||
*/
|
||||
meterType?: string;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { PaymentReviewVO, PaymentReviewForm, PaymentReviewQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询缴费审核列表
|
||||
* @param params
|
||||
* @returns 缴费审核列表
|
||||
*/
|
||||
export function paymentReviewList(params?: PaymentReviewQuery) {
|
||||
return requestClient.get<PageResult<PaymentReviewVO>>('/property/payFeeAudit/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出缴费审核列表
|
||||
* @param params
|
||||
* @returns 缴费审核列表
|
||||
*/
|
||||
export function paymentReviewExport(params?: PaymentReviewQuery) {
|
||||
return commonExport('/property/payFeeAudit/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询缴费审核详情
|
||||
* @param id id
|
||||
* @returns 缴费审核详情
|
||||
*/
|
||||
export function paymentReviewInfo(id: ID) {
|
||||
return requestClient.get<PaymentReviewVO>(`/property/payFeeAudit/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增缴费审核
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function paymentReviewAdd(data: PaymentReviewForm) {
|
||||
return requestClient.postWithMsg<void>('/property/payFeeAudit', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新缴费审核
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function paymentReviewUpdate(data: PaymentReviewForm) {
|
||||
return requestClient.putWithMsg<void>('/property/payFeeAudit', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除缴费审核
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function paymentReviewRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/payFeeAudit/${id}`);
|
||||
}
|
175
apps/web-antd/src/api/property/costManagement/paymentReview/model.d.ts
vendored
Normal file
175
apps/web-antd/src/api/property/costManagement/paymentReview/model.d.ts
vendored
Normal file
@@ -0,0 +1,175 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface PaymentReviewVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 房屋收费id
|
||||
*/
|
||||
houseChargeId: string | number;
|
||||
|
||||
/**
|
||||
* 费用项目id
|
||||
*/
|
||||
itemId: string | number;
|
||||
|
||||
/**
|
||||
* 缴费开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 缴费结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 实付金额
|
||||
*/
|
||||
receivedAmount: string;
|
||||
|
||||
/**
|
||||
* 应收金额
|
||||
*/
|
||||
receivableAmount: number;
|
||||
|
||||
/**
|
||||
* 缴费时间
|
||||
|
||||
|
||||
*/
|
||||
payTime: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
state: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface PaymentReviewForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 房屋收费id
|
||||
*/
|
||||
houseChargeId?: string | number;
|
||||
|
||||
/**
|
||||
* 费用项目id
|
||||
*/
|
||||
itemId?: string | number;
|
||||
|
||||
/**
|
||||
* 缴费开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 缴费结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 实付金额
|
||||
*/
|
||||
receivedAmount?: string;
|
||||
|
||||
/**
|
||||
* 应收金额
|
||||
*/
|
||||
receivableAmount?: number;
|
||||
|
||||
/**
|
||||
* 缴费时间
|
||||
|
||||
|
||||
*/
|
||||
payTime?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface PaymentReviewQuery extends PageQuery {
|
||||
/**
|
||||
* 房屋收费id
|
||||
*/
|
||||
houseChargeId?: string | number;
|
||||
|
||||
/**
|
||||
* 费用项目id
|
||||
*/
|
||||
itemId?: string | number;
|
||||
|
||||
/**
|
||||
* 缴费开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 缴费结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 实付金额
|
||||
*/
|
||||
receivedAmount?: string;
|
||||
|
||||
/**
|
||||
* 应收金额
|
||||
*/
|
||||
receivableAmount?: number;
|
||||
|
||||
/**
|
||||
* 缴费时间
|
||||
|
||||
|
||||
*/
|
||||
payTime?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { ReturnPayFeeVO, ReturnPayFeeForm, ReturnPayFeeQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询退费审核列表
|
||||
* @param params
|
||||
* @returns 退费审核列表
|
||||
*/
|
||||
export function returnPayFeeList(params?: ReturnPayFeeQuery) {
|
||||
return requestClient.get<PageResult<ReturnPayFeeVO>>('/property/returnPayFee/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出退费审核列表
|
||||
* @param params
|
||||
* @returns 退费审核列表
|
||||
*/
|
||||
export function returnPayFeeExport(params?: ReturnPayFeeQuery) {
|
||||
return commonExport('/property/returnPayFee/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询退费审核详情
|
||||
* @param id id
|
||||
* @returns 退费审核详情
|
||||
*/
|
||||
export function returnPayFeeInfo(id: ID) {
|
||||
return requestClient.get<ReturnPayFeeVO>(`/property/returnPayFee/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增退费审核
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function returnPayFeeAdd(data: ReturnPayFeeForm) {
|
||||
return requestClient.postWithMsg<void>('/property/returnPayFee', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新退费审核
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function returnPayFeeUpdate(data: ReturnPayFeeForm) {
|
||||
return requestClient.putWithMsg<void>('/property/returnPayFee', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除退费审核
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function returnPayFeeRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/returnPayFee/${id}`);
|
||||
}
|
154
apps/web-antd/src/api/property/costManagement/returnPayFee/model.d.ts
vendored
Normal file
154
apps/web-antd/src/api/property/costManagement/returnPayFee/model.d.ts
vendored
Normal file
@@ -0,0 +1,154 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface ReturnPayFeeVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 退款单号
|
||||
*/
|
||||
returnNo?: string;
|
||||
|
||||
/**
|
||||
* 支付单号
|
||||
*/
|
||||
payNo?: string;
|
||||
|
||||
/**
|
||||
* 退款原因
|
||||
*/
|
||||
reason?: string;
|
||||
|
||||
/**
|
||||
* 费用类型id
|
||||
*/
|
||||
itemId?: string | number;
|
||||
|
||||
/**
|
||||
* 业主id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 支付金额
|
||||
*/
|
||||
payAcount?: number;
|
||||
|
||||
/**
|
||||
* 支付时间
|
||||
*/
|
||||
payTime?: string;
|
||||
|
||||
/**
|
||||
* 退费状态
|
||||
*/
|
||||
state: string;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ReturnPayFeeForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 退款单号
|
||||
*/
|
||||
returnNo?: string;
|
||||
|
||||
/**
|
||||
* 支付单号
|
||||
*/
|
||||
payNo?: string;
|
||||
|
||||
/**
|
||||
* 退款原因
|
||||
*/
|
||||
reason?: string;
|
||||
|
||||
/**
|
||||
* 费用类型id
|
||||
*/
|
||||
itemId?: string | number;
|
||||
|
||||
/**
|
||||
* 业主id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 支付金额
|
||||
*/
|
||||
payAcount?: number;
|
||||
|
||||
/**
|
||||
* 支付时间
|
||||
*/
|
||||
payTime?: string;
|
||||
|
||||
/**
|
||||
* 退费状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ReturnPayFeeQuery extends PageQuery {
|
||||
/**
|
||||
* 退款单号
|
||||
*/
|
||||
returnNo?: string;
|
||||
|
||||
/**
|
||||
* 支付单号
|
||||
*/
|
||||
payNo?: string;
|
||||
|
||||
/**
|
||||
* 退款原因
|
||||
*/
|
||||
reason?: string;
|
||||
|
||||
/**
|
||||
* 费用类型id
|
||||
*/
|
||||
itemId?: string | number;
|
||||
|
||||
/**
|
||||
* 业主id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 支付金额
|
||||
*/
|
||||
payAcount?: number;
|
||||
|
||||
/**
|
||||
* 支付时间
|
||||
*/
|
||||
payTime?: string;
|
||||
|
||||
/**
|
||||
* 退费状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
66
apps/web-antd/src/api/property/costMeterWater/index.ts
Normal file
66
apps/web-antd/src/api/property/costMeterWater/index.ts
Normal file
@@ -0,0 +1,66 @@
|
||||
import type { CostMeterWaterVO, CostMeterWaterForm, CostMeterWaterQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询费用-水电抄列表
|
||||
* @param params
|
||||
* @returns 费用-水电抄列表
|
||||
*/
|
||||
export function costMeterWaterList(params?: CostMeterWaterQuery) {
|
||||
return requestClient.get<PageResult<CostMeterWaterVO>>('/property/meterWater/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出费用-水电抄列表
|
||||
* @param params
|
||||
* @returns 费用-水电抄列表
|
||||
*/
|
||||
export function costMeterWaterExport(params?: CostMeterWaterQuery) {
|
||||
return commonExport('/property/costMeterWater/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询费用-水电抄详情
|
||||
* @param id id
|
||||
* @returns 费用-水电抄详情
|
||||
*/
|
||||
export function costMeterWaterInfo(id: ID) {
|
||||
return requestClient.get<CostMeterWaterVO>(`/property/meterWater/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增费用-水电抄
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function costMeterWaterAdd(data: CostMeterWaterForm) {
|
||||
return requestClient.postWithMsg<void>('/property/meterWater', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新费用-水电抄
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function costMeterWaterUpdate(data: CostMeterWaterForm) {
|
||||
return requestClient.putWithMsg<void>('/property/meterWater', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除费用-水电抄
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function costMeterWaterRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/meterWater/${id}`);
|
||||
}
|
||||
|
||||
// 根据业主id查询
|
||||
export function ultimoWater(id: ID | IDS) {
|
||||
return requestClient.get<any>(`/property/meterWater/ultimoWater/${id}`);
|
||||
}
|
159
apps/web-antd/src/api/property/costMeterWater/model.d.ts
vendored
Normal file
159
apps/web-antd/src/api/property/costMeterWater/model.d.ts
vendored
Normal file
@@ -0,0 +1,159 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface CostMeterWaterVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 费用类型id
|
||||
*/
|
||||
itemId: string | number;
|
||||
|
||||
/**
|
||||
* 抄表类型id
|
||||
*/
|
||||
meterTypeId: string | number;
|
||||
|
||||
/**
|
||||
* 对象名称
|
||||
*/
|
||||
objName: string;
|
||||
|
||||
/**
|
||||
* 本期度数
|
||||
*/
|
||||
curDegrees: string;
|
||||
|
||||
/**
|
||||
* 上期度数
|
||||
*/
|
||||
preDegrees: string;
|
||||
|
||||
/**
|
||||
* 上期读表时间
|
||||
|
||||
*/
|
||||
preReadingTime: string;
|
||||
|
||||
/**
|
||||
* 本期读表时间
|
||||
*/
|
||||
curReadingTime: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
costType:string;
|
||||
userId:string;
|
||||
|
||||
}
|
||||
|
||||
export interface CostMeterWaterForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 费用类型id
|
||||
*/
|
||||
itemId?: string | number;
|
||||
|
||||
/**
|
||||
* 抄表类型id
|
||||
*/
|
||||
meterTypeId?: string | number;
|
||||
|
||||
/**
|
||||
* 对象名称
|
||||
*/
|
||||
objName?: string;
|
||||
|
||||
/**
|
||||
* 本期度数
|
||||
*/
|
||||
curDegrees?: string;
|
||||
|
||||
/**
|
||||
* 上期度数
|
||||
*/
|
||||
preDegrees?: string;
|
||||
|
||||
/**
|
||||
* 上期读表时间
|
||||
|
||||
*/
|
||||
preReadingTime?: string;
|
||||
|
||||
/**
|
||||
* 本期读表时间
|
||||
*/
|
||||
curReadingTime?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface CostMeterWaterQuery extends PageQuery {
|
||||
/**
|
||||
* 费用类型id
|
||||
*/
|
||||
itemId?: string | number;
|
||||
|
||||
/**
|
||||
* 抄表类型id
|
||||
*/
|
||||
meterTypeId?: string | number;
|
||||
|
||||
/**
|
||||
* 对象名称
|
||||
*/
|
||||
objName?: string;
|
||||
|
||||
/**
|
||||
* 本期度数
|
||||
*/
|
||||
curDegrees?: string;
|
||||
|
||||
/**
|
||||
* 上期度数
|
||||
*/
|
||||
preDegrees?: string;
|
||||
|
||||
/**
|
||||
* 上期读表时间
|
||||
|
||||
*/
|
||||
preReadingTime?: string;
|
||||
|
||||
/**
|
||||
* 本期读表时间
|
||||
*/
|
||||
curReadingTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { ActivitiesVO, ActivitiesForm, ActivitiesQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询热门活动列表
|
||||
* @param params
|
||||
* @returns 热门活动列表
|
||||
*/
|
||||
export function activitiesList(params?: ActivitiesQuery) {
|
||||
return requestClient.get<PageResult<ActivitiesVO>>('/property/activities/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出热门活动列表
|
||||
* @param params
|
||||
* @returns 热门活动列表
|
||||
*/
|
||||
export function activitiesExport(params?: ActivitiesQuery) {
|
||||
return commonExport('/property/activities/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询热门活动详情
|
||||
* @param id id
|
||||
* @returns 热门活动详情
|
||||
*/
|
||||
export function activitiesInfo(id: ID) {
|
||||
return requestClient.get<ActivitiesVO>(`/property/activities/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增热门活动
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function activitiesAdd(data: ActivitiesForm) {
|
||||
return requestClient.postWithMsg<void>('/property/activities', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新热门活动
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function activitiesUpdate(data: ActivitiesForm) {
|
||||
return requestClient.putWithMsg<void>('/property/activities', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除热门活动
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function activitiesRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/activities/${id}`);
|
||||
}
|
129
apps/web-antd/src/api/property/customerService/activities/model.d.ts
vendored
Normal file
129
apps/web-antd/src/api/property/customerService/activities/model.d.ts
vendored
Normal file
@@ -0,0 +1,129 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface ActivitiesVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* 头部照片
|
||||
*/
|
||||
headImgUrl: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 活动内容
|
||||
*/
|
||||
activeContent: string;
|
||||
|
||||
/**
|
||||
* 状态(1.未开始 2.进行中 3.已结束)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ActivitiesForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 头部照片
|
||||
*/
|
||||
headImgUrl?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 活动内容
|
||||
*/
|
||||
activeContent?: string;
|
||||
|
||||
/**
|
||||
* 状态(1.未开始 2.进行中 3.已结束)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ActivitiesQuery extends PageQuery {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 头部照片
|
||||
*/
|
||||
headImgUrl?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 活动内容
|
||||
*/
|
||||
activeContent?: string;
|
||||
|
||||
/**
|
||||
* 状态(1.未开始 2.进行中 3.已结束)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询客户服务工单看板统计
|
||||
* @param params
|
||||
* @returns
|
||||
*/
|
||||
export function countsList(params?:any) {
|
||||
return requestClient.get('/property/customerServece/counts', { params });
|
||||
}
|
||||
|
@@ -0,0 +1,61 @@
|
||||
import type { ContingenPlanVO, ContingenPlanForm, ContingenPlanQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询应急预案管理列表
|
||||
* @param params
|
||||
* @returns 应急预案管理列表
|
||||
*/
|
||||
export function contingenPlanList(params?: ContingenPlanQuery) {
|
||||
return requestClient.get<PageResult<ContingenPlanVO>>('/property/contingenPlan/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出应急预案管理列表
|
||||
* @param params
|
||||
* @returns 应急预案管理列表
|
||||
*/
|
||||
export function contingenPlanExport(params?: ContingenPlanQuery) {
|
||||
return commonExport('/property/contingenPlan/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询应急预案管理详情
|
||||
* @param id id
|
||||
* @returns 应急预案管理详情
|
||||
*/
|
||||
export function contingenPlanInfo(id: ID) {
|
||||
return requestClient.get<ContingenPlanVO>(`/property/contingenPlan/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增应急预案管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function contingenPlanAdd(data: ContingenPlanForm) {
|
||||
return requestClient.postWithMsg<void>('/property/contingenPlan', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新应急预案管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function contingenPlanUpdate(data: ContingenPlanForm) {
|
||||
return requestClient.putWithMsg<void>('/property/contingenPlan', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除应急预案管理
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function contingenPlanRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/contingenPlan/${id}`);
|
||||
}
|
159
apps/web-antd/src/api/property/customerService/contingenPlan/model.d.ts
vendored
Normal file
159
apps/web-antd/src/api/property/customerService/contingenPlan/model.d.ts
vendored
Normal file
@@ -0,0 +1,159 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface ContingenPlanVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 预案类型(1.自然灾害,2事故灾难3公共卫生,4社会安全)
|
||||
*/
|
||||
contingenPlanType: string;
|
||||
|
||||
/**
|
||||
* 预案名称
|
||||
*/
|
||||
contingenPlanName: string;
|
||||
|
||||
/**
|
||||
* 预案内容
|
||||
*/
|
||||
contingenPlanContent: string;
|
||||
|
||||
/**
|
||||
* 发起人
|
||||
*/
|
||||
initiat: string;
|
||||
|
||||
/**
|
||||
* 责任人
|
||||
*/
|
||||
dutyPersion: number;
|
||||
|
||||
/**
|
||||
* 风险等级
|
||||
*/
|
||||
grade: number;
|
||||
|
||||
/**
|
||||
* 完成时间
|
||||
*/
|
||||
compleTimes: string;
|
||||
|
||||
/**
|
||||
* 状态(1.待审核2待进行3已完成)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ContingenPlanForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 预案类型(1.自然灾害,2事故灾难3公共卫生,4社会安全)
|
||||
*/
|
||||
contingenPlanType?: string;
|
||||
|
||||
/**
|
||||
* 预案名称
|
||||
*/
|
||||
contingenPlanName?: string;
|
||||
|
||||
/**
|
||||
* 预案内容
|
||||
*/
|
||||
contingenPlanContent?: string;
|
||||
|
||||
/**
|
||||
* 发起人
|
||||
*/
|
||||
initiat?: string;
|
||||
|
||||
/**
|
||||
* 责任人
|
||||
*/
|
||||
dutyPersion?: number;
|
||||
|
||||
/**
|
||||
* 风险等级
|
||||
*/
|
||||
grade?: number;
|
||||
|
||||
/**
|
||||
* 完成时间
|
||||
*/
|
||||
compleTimes?: string;
|
||||
|
||||
/**
|
||||
* 状态(1.待审核2待进行3已完成)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ContingenPlanQuery extends PageQuery {
|
||||
/**
|
||||
* 预案类型(1.自然灾害,2事故灾难3公共卫生,4社会安全)
|
||||
*/
|
||||
contingenPlanType?: string;
|
||||
|
||||
/**
|
||||
* 预案名称
|
||||
*/
|
||||
contingenPlanName?: string;
|
||||
|
||||
/**
|
||||
* 预案内容
|
||||
*/
|
||||
contingenPlanContent?: string;
|
||||
|
||||
/**
|
||||
* 发起人
|
||||
*/
|
||||
initiat?: string;
|
||||
|
||||
/**
|
||||
* 责任人
|
||||
*/
|
||||
dutyPersion?: number;
|
||||
|
||||
/**
|
||||
* 风险等级
|
||||
*/
|
||||
grade?: number;
|
||||
|
||||
/**
|
||||
* 完成时间
|
||||
*/
|
||||
compleTimes?: string;
|
||||
|
||||
/**
|
||||
* 状态(1.待审核2待进行3已完成)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { FaqManagementVO, FaqManagementForm, FaqManagementQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询常见问题管理列表
|
||||
* @param params
|
||||
* @returns 常见问题管理列表
|
||||
*/
|
||||
export function faqManagementList(params?: FaqManagementQuery) {
|
||||
return requestClient.get<PageResult<FaqManagementVO>>('/property/faqManagement/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出常见问题管理列表
|
||||
* @param params
|
||||
* @returns 常见问题管理列表
|
||||
*/
|
||||
export function faqManagementExport(params?: FaqManagementQuery) {
|
||||
return commonExport('/property/faqManagement/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询常见问题管理详情
|
||||
* @param id id
|
||||
* @returns 常见问题管理详情
|
||||
*/
|
||||
export function faqManagementInfo(id: ID) {
|
||||
return requestClient.get<FaqManagementVO>(`/property/faqManagement/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增常见问题管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function faqManagementAdd(data: FaqManagementForm) {
|
||||
return requestClient.postWithMsg<void>('/property/faqManagement', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新常见问题管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function faqManagementUpdate(data: FaqManagementForm) {
|
||||
return requestClient.putWithMsg<void>('/property/faqManagement', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除常见问题管理
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function faqManagementRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/faqManagement/${id}`);
|
||||
}
|
114
apps/web-antd/src/api/property/customerService/faqManagement/model.d.ts
vendored
Normal file
114
apps/web-antd/src/api/property/customerService/faqManagement/model.d.ts
vendored
Normal file
@@ -0,0 +1,114 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface FaqManagementVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head: string;
|
||||
|
||||
/**
|
||||
* 分类
|
||||
*/
|
||||
type: string;
|
||||
|
||||
/**
|
||||
* 浏览量
|
||||
*/
|
||||
pageView: number;
|
||||
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
contents: string;
|
||||
|
||||
/**
|
||||
* 状态(1草稿 2已发布)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface FaqManagementForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head?: string;
|
||||
|
||||
/**
|
||||
* 分类
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* 浏览量
|
||||
*/
|
||||
pageView?: number;
|
||||
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
contents?: string;
|
||||
|
||||
/**
|
||||
* 状态(1草稿 2已发布)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface FaqManagementQuery extends PageQuery {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head?: string;
|
||||
|
||||
/**
|
||||
* 分类
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* 浏览量
|
||||
*/
|
||||
pageView?: number;
|
||||
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
contents?: string;
|
||||
|
||||
/**
|
||||
* 状态(1草稿 2已发布)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { FeedbacksVO, FeedbacksForm, FeedbacksQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询意见反馈列表
|
||||
* @param params
|
||||
* @returns 意见反馈列表
|
||||
*/
|
||||
export function feedbacksList(params?: FeedbacksQuery) {
|
||||
return requestClient.get<PageResult<FeedbacksVO>>('/property/feedbacks/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出意见反馈列表
|
||||
* @param params
|
||||
* @returns 意见反馈列表
|
||||
*/
|
||||
export function feedbacksExport(params?: FeedbacksQuery) {
|
||||
return commonExport('/property/feedbacks/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询意见反馈详情
|
||||
* @param id id
|
||||
* @returns 意见反馈详情
|
||||
*/
|
||||
export function feedbacksInfo(id: ID) {
|
||||
return requestClient.get<FeedbacksVO>(`/property/feedbacks/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增意见反馈
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function feedbacksAdd(data: FeedbacksForm) {
|
||||
return requestClient.postWithMsg<void>('/property/feedbacks', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新意见反馈
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function feedbacksUpdate(data: FeedbacksForm) {
|
||||
return requestClient.putWithMsg<void>('/property/feedbacks', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除意见反馈
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function feedbacksRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/feedbacks/${id}`);
|
||||
}
|
174
apps/web-antd/src/api/property/customerService/feedbacks/model.d.ts
vendored
Normal file
174
apps/web-antd/src/api/property/customerService/feedbacks/model.d.ts
vendored
Normal file
@@ -0,0 +1,174 @@
|
||||
import type {PageQuery, BaseEntity} from '#/api/common';
|
||||
|
||||
export interface FeedbacksVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 反馈类型(0保修1保洁2会议)
|
||||
*/
|
||||
feedbackType: string;
|
||||
feedbackTypeName: string;
|
||||
|
||||
/**
|
||||
* 反馈人
|
||||
*/
|
||||
feedbackPersion: number;
|
||||
|
||||
/**
|
||||
* 反馈人电话
|
||||
*/
|
||||
feedbackPersionPhone: string;
|
||||
|
||||
/**
|
||||
* 反馈人名称
|
||||
*/
|
||||
feedbackPersionName: string;
|
||||
|
||||
/**
|
||||
* 反馈内容
|
||||
*/
|
||||
feedbackContent: string;
|
||||
|
||||
/**
|
||||
* 反馈位置
|
||||
*/
|
||||
feedbackLocation: string;
|
||||
|
||||
/**
|
||||
* 反馈图片
|
||||
*/
|
||||
feedbackImg: string;
|
||||
|
||||
/**
|
||||
* 是否转至工单
|
||||
*/
|
||||
isWorkOrder: string;
|
||||
|
||||
/**
|
||||
* 状态(1待处理2处理中3处理完成)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 客服电话
|
||||
*/
|
||||
serviceName: string;
|
||||
/**
|
||||
* 工单id
|
||||
*/
|
||||
orderId: string;
|
||||
|
||||
}
|
||||
|
||||
export interface FeedbacksForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 反馈类型(0保修1保洁2会议)
|
||||
*/
|
||||
feedbackType?: string;
|
||||
|
||||
/**
|
||||
* 反馈人
|
||||
*/
|
||||
feedbackPersion?: number;
|
||||
|
||||
/**
|
||||
* 反馈人电话
|
||||
*/
|
||||
feedbackPersionPhone?: string;
|
||||
|
||||
/**
|
||||
* 反馈内容
|
||||
*/
|
||||
feedbackContent?: string;
|
||||
|
||||
/**
|
||||
* 反馈位置
|
||||
*/
|
||||
feedbackLocation?: string;
|
||||
|
||||
/**
|
||||
* 反馈图片
|
||||
*/
|
||||
feedbackImg?: string;
|
||||
|
||||
/**
|
||||
* 是否转至工单
|
||||
*/
|
||||
isWorkOrder?: string;
|
||||
|
||||
/**
|
||||
* 状态(1待处理2处理中3处理完成)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 客服电话
|
||||
*/
|
||||
serviceName?: string;
|
||||
|
||||
/**
|
||||
* 工单id
|
||||
*/
|
||||
orderId?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface FeedbacksQuery extends PageQuery {
|
||||
/**
|
||||
* 反馈类型(0保修1保洁2会议)
|
||||
*/
|
||||
feedbackType?: string;
|
||||
|
||||
/**
|
||||
* 反馈人
|
||||
*/
|
||||
feedbackPersion?: number;
|
||||
|
||||
/**
|
||||
* 反馈人电话
|
||||
*/
|
||||
feedbackPersionPhone?: string;
|
||||
|
||||
/**
|
||||
* 反馈内容
|
||||
*/
|
||||
feedbackContent?: string;
|
||||
|
||||
/**
|
||||
* 反馈位置
|
||||
*/
|
||||
feedbackLocation?: string;
|
||||
|
||||
/**
|
||||
* 反馈图片
|
||||
*/
|
||||
feedbackImg?: string;
|
||||
|
||||
/**
|
||||
* 是否转至工单
|
||||
*/
|
||||
isWorkOrder?: string;
|
||||
|
||||
/**
|
||||
* 状态(1待处理2处理中3处理完成)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 客服电话
|
||||
*/
|
||||
serviceName?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { NoticesVO, NoticesForm, NoticesQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询客户服务-通知公告列表
|
||||
* @param params
|
||||
* @returns 客户服务-通知公告列表
|
||||
*/
|
||||
export function noticesList(params?: NoticesQuery) {
|
||||
return requestClient.get<PageResult<NoticesVO>>('/property/notices/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出客户服务-通知公告列表
|
||||
* @param params
|
||||
* @returns 客户服务-通知公告列表
|
||||
*/
|
||||
export function noticesExport(params?: NoticesQuery) {
|
||||
return commonExport('/property/notices/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询客户服务-通知公告详情
|
||||
* @param id id
|
||||
* @returns 客户服务-通知公告详情
|
||||
*/
|
||||
export function noticesInfo(id: ID) {
|
||||
return requestClient.get<NoticesVO>(`/property/notices/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增客户服务-通知公告
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function noticesAdd(data: NoticesForm) {
|
||||
return requestClient.postWithMsg<void>('/property/notices', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新客户服务-通知公告
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function noticesUpdate(data: NoticesForm) {
|
||||
return requestClient.putWithMsg<void>('/property/notices', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除客户服务-通知公告
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function noticesRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/notices/${id}`);
|
||||
}
|
139
apps/web-antd/src/api/property/customerService/notices/model.d.ts
vendored
Normal file
139
apps/web-antd/src/api/property/customerService/notices/model.d.ts
vendored
Normal file
@@ -0,0 +1,139 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface NoticesVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
type: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 是否全小区公告
|
||||
*/
|
||||
isAll: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 公告内容
|
||||
*/
|
||||
afficheContent: string;
|
||||
|
||||
/**
|
||||
* 发布人
|
||||
*/
|
||||
issuers: number;
|
||||
|
||||
}
|
||||
|
||||
export interface NoticesForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 是否全小区公告
|
||||
*/
|
||||
isAll?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 公告内容
|
||||
*/
|
||||
afficheContent?: string;
|
||||
|
||||
/**
|
||||
* 发布人
|
||||
*/
|
||||
issuers?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface NoticesQuery extends PageQuery {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* 是否全小区公告
|
||||
*/
|
||||
isAll?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 公告内容
|
||||
*/
|
||||
afficheContent?: string;
|
||||
|
||||
/**
|
||||
* 发布人
|
||||
*/
|
||||
issuers?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { QuestionVO, QuestionForm, QuestionQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询调查问卷问题列表
|
||||
* @param params
|
||||
* @returns 调查问卷问题列表
|
||||
*/
|
||||
export function questionList(params?: QuestionQuery) {
|
||||
return requestClient.get<PageResult<QuestionVO>>('/property/question/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出调查问卷问题列表
|
||||
* @param params
|
||||
* @returns 调查问卷问题列表
|
||||
*/
|
||||
export function questionExport(params?: QuestionQuery) {
|
||||
return commonExport('/property/question/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询调查问卷问题详情
|
||||
* @param id id
|
||||
* @returns 调查问卷问题详情
|
||||
*/
|
||||
export function questionInfo(id: ID) {
|
||||
return requestClient.get<QuestionVO>(`/property/question/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增调查问卷问题
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function questionAdd(data: QuestionForm) {
|
||||
return requestClient.postWithMsg<void>('/property/question', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新调查问卷问题
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function questionUpdate(data: QuestionForm) {
|
||||
return requestClient.putWithMsg<void>('/property/question', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除调查问卷问题
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function questionRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/question/${id}`);
|
||||
}
|
145
apps/web-antd/src/api/property/customerService/questionnaire/question/model.d.ts
vendored
Normal file
145
apps/web-antd/src/api/property/customerService/questionnaire/question/model.d.ts
vendored
Normal file
@@ -0,0 +1,145 @@
|
||||
import type {PageQuery, BaseEntity} from '#/api/common';
|
||||
import type {
|
||||
QuestionItemForm, QuestionItemVO
|
||||
} from "#/api/property/customerService/questionnaire/questionItem/model";
|
||||
|
||||
export interface QuestionVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 调查问卷id
|
||||
*/
|
||||
questionnaireId: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head: string;
|
||||
|
||||
/**
|
||||
* 问题类型(1单行文本2多行文本3单选题4多选题5评分题6日期选择)
|
||||
*/
|
||||
type: string;
|
||||
|
||||
/**
|
||||
* 是否必填(1不必填2必填)
|
||||
*/
|
||||
isRequired: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort: number;
|
||||
|
||||
/**
|
||||
* 问题选项
|
||||
*/
|
||||
questionnaireQuestionItemVos: QuestionItemVO[];
|
||||
|
||||
options: string[];
|
||||
|
||||
answer: string;
|
||||
|
||||
rate:number;
|
||||
|
||||
checked:string[];
|
||||
|
||||
}
|
||||
|
||||
export interface QuestionForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 调查问卷id
|
||||
*/
|
||||
questionnaireId?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head?: string;
|
||||
|
||||
/**
|
||||
* 问题类型(1单行文本2多行文本3单选题4多选题5评分题6日期选择)
|
||||
*/
|
||||
type: string;
|
||||
|
||||
/**
|
||||
* 是否必填(1不必填2必填)
|
||||
*/
|
||||
isRequired?: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict?: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort?: number;
|
||||
|
||||
/**
|
||||
* 选项
|
||||
*/
|
||||
questionnaireQuestionItems: QuestionItemForm[]
|
||||
|
||||
/**
|
||||
* 评分预览
|
||||
*/
|
||||
rate?: number;
|
||||
|
||||
/**
|
||||
* 时间预览
|
||||
*/
|
||||
dateTime?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface QuestionQuery extends PageQuery {
|
||||
/**
|
||||
* 调查问卷id
|
||||
*/
|
||||
questionnaireId?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head?: string;
|
||||
|
||||
/**
|
||||
* 问题类型(1单行文本2多行文本3单选题4多选题5评分题6日期选择)
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* 是否必填(1不必填2必填)
|
||||
*/
|
||||
isRequired?: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict?: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { QuestionItemVO, QuestionItemForm, QuestionItemQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询调查问卷问题选项列表
|
||||
* @param params
|
||||
* @returns 调查问卷问题选项列表
|
||||
*/
|
||||
export function questionItemList(params?: QuestionItemQuery) {
|
||||
return requestClient.get<PageResult<QuestionItemVO>>('/property/questionItem/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出调查问卷问题选项列表
|
||||
* @param params
|
||||
* @returns 调查问卷问题选项列表
|
||||
*/
|
||||
export function questionItemExport(params?: QuestionItemQuery) {
|
||||
return commonExport('/property/questionItem/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询调查问卷问题选项详情
|
||||
* @param id id
|
||||
* @returns 调查问卷问题选项详情
|
||||
*/
|
||||
export function questionItemInfo(id: ID) {
|
||||
return requestClient.get<QuestionItemVO>(`/property/questionItem/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增调查问卷问题选项
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function questionItemAdd(data: QuestionItemForm) {
|
||||
return requestClient.postWithMsg<void>('/property/questionItem', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新调查问卷问题选项
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function questionItemUpdate(data: QuestionItemForm) {
|
||||
return requestClient.putWithMsg<void>('/property/questionItem', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除调查问卷问题选项
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function questionItemRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/questionItem/${id}`);
|
||||
}
|
79
apps/web-antd/src/api/property/customerService/questionnaire/questionItem/model.d.ts
vendored
Normal file
79
apps/web-antd/src/api/property/customerService/questionnaire/questionItem/model.d.ts
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface QuestionItemVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 问题id
|
||||
*/
|
||||
questionId: string | number;
|
||||
|
||||
/**
|
||||
* 选项内容
|
||||
*/
|
||||
itemContent: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface QuestionItemForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 问题id
|
||||
*/
|
||||
questionId?: string | number;
|
||||
|
||||
/**
|
||||
* 选项内容
|
||||
*/
|
||||
itemContent?: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface QuestionItemQuery extends PageQuery {
|
||||
/**
|
||||
* 问题id
|
||||
*/
|
||||
questionId?: string | number;
|
||||
|
||||
/**
|
||||
* 选项内容
|
||||
*/
|
||||
itemContent?: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { QuestionnaireVO, QuestionnaireForm, QuestionnaireQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询调查问卷列表
|
||||
* @param params
|
||||
* @returns 调查问卷列表
|
||||
*/
|
||||
export function questionnaireList(params?: QuestionnaireQuery) {
|
||||
return requestClient.get<PageResult<QuestionnaireVO>>('/property/questionnaire/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出调查问卷列表
|
||||
* @param params
|
||||
* @returns 调查问卷列表
|
||||
*/
|
||||
export function questionnaireExport(params?: QuestionnaireQuery) {
|
||||
return commonExport('/property/questionnaire/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询调查问卷详情
|
||||
* @param id id
|
||||
* @returns 调查问卷详情
|
||||
*/
|
||||
export function questionnaireInfo(id: ID) {
|
||||
return requestClient.get<QuestionnaireVO>(`/property/questionnaire/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增调查问卷
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function questionnaireAdd(data: QuestionnaireForm) {
|
||||
return requestClient.postWithMsg<void>('/property/questionnaire', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新调查问卷
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function questionnaireUpdate(data: QuestionnaireForm) {
|
||||
return requestClient.putWithMsg<void>('/property/questionnaire', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除调查问卷
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function questionnaireRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/questionnaire/${id}`);
|
||||
}
|
126
apps/web-antd/src/api/property/customerService/questionnaire/questionnaire/model.d.ts
vendored
Normal file
126
apps/web-antd/src/api/property/customerService/questionnaire/questionnaire/model.d.ts
vendored
Normal file
@@ -0,0 +1,126 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
import type {
|
||||
QuestionForm,
|
||||
QuestionVO
|
||||
} from "#/api/property/customerService/questionnaire/question/model";
|
||||
|
||||
export interface QuestionnaireVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict: string;
|
||||
|
||||
/**
|
||||
* 是否匿名收集
|
||||
*/
|
||||
isAnonyCollec: string;
|
||||
|
||||
/**
|
||||
* 是否多次提交
|
||||
*/
|
||||
isCommit: string;
|
||||
|
||||
/**
|
||||
* 截止日期
|
||||
*/
|
||||
deadline: string;
|
||||
|
||||
/**
|
||||
* 状态(1草稿2已发布3未发布)
|
||||
*/
|
||||
status: string;
|
||||
/**
|
||||
* 问题
|
||||
*/
|
||||
questionnaireQuestionVos:QuestionVO[];
|
||||
}
|
||||
|
||||
export interface QuestionnaireForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head?: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict?: string;
|
||||
|
||||
/**
|
||||
* 是否匿名收集
|
||||
*/
|
||||
isAnonyCollec?: string;
|
||||
|
||||
/**
|
||||
* 是否多次提交
|
||||
*/
|
||||
isCommit?: string;
|
||||
|
||||
/**
|
||||
* 截止日期
|
||||
*/
|
||||
deadline?: string;
|
||||
|
||||
/**
|
||||
* 状态(1草稿2已发布3未发布)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 问题
|
||||
*/
|
||||
questionnaireQuestions:QuestionForm[];
|
||||
|
||||
}
|
||||
|
||||
export interface QuestionnaireQuery extends PageQuery {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head?: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict?: string;
|
||||
|
||||
/**
|
||||
* 是否匿名收集
|
||||
*/
|
||||
isAnonyCollec?: string;
|
||||
|
||||
/**
|
||||
* 是否多次提交
|
||||
*/
|
||||
isCommit?: string;
|
||||
|
||||
/**
|
||||
* 截止日期
|
||||
*/
|
||||
deadline?: string;
|
||||
|
||||
/**
|
||||
* 状态(1草稿2已发布3未发布)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,79 @@
|
||||
import type { LightInfoVO, LightInfoForm, LightInfoQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询灯控开关信息列表
|
||||
* @param params
|
||||
* @returns 灯控开关信息列表
|
||||
*/
|
||||
export function lightInfoList(params?: LightInfoQuery) {
|
||||
return requestClient.get<PageResult<LightInfoVO>>('/property/lightInfo/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出灯控开关信息列表
|
||||
* @param params
|
||||
* @returns 灯控开关信息列表
|
||||
*/
|
||||
export function lightInfoExport(params?: LightInfoQuery) {
|
||||
return commonExport('/property/lightInfo/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询灯控开关信息详情
|
||||
* @param id id
|
||||
* @returns 灯控开关信息详情
|
||||
*/
|
||||
export function lightInfoInfo(id: ID) {
|
||||
return requestClient.get<LightInfoVO>(`/property/lightInfo/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增灯控开关信息
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function lightInfoAdd(data: LightInfoForm) {
|
||||
return requestClient.postWithMsg<void>('/property/lightInfo', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新灯控开关信息
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function lightInfoUpdate(data: LightInfoForm) {
|
||||
return requestClient.putWithMsg<void>('/property/lightInfo', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除灯控开关信息
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function lightInfoRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/lightInfo/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新灯控开关状态
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function switchSingleLight(data: LightInfoForm) {
|
||||
return requestClient.postWithMsg<void>('/property/lightInfo/switch', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量更新灯控开关状态
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function switchBatchLight(data: LightInfoForm) {
|
||||
return requestClient.postWithMsg<void>('/property/lightInfo/switch', data);
|
||||
}
|
134
apps/web-antd/src/api/property/energyManagement/lightInfo/model.d.ts
vendored
Normal file
134
apps/web-antd/src/api/property/energyManagement/lightInfo/model.d.ts
vendored
Normal file
@@ -0,0 +1,134 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface LightInfoVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 位置描述
|
||||
*/
|
||||
locationRemark: string;
|
||||
|
||||
/**
|
||||
* 开关状态(0:关,1:开)
|
||||
*/
|
||||
isOn: boolean;
|
||||
|
||||
/**
|
||||
* 灯控模块编码
|
||||
*/
|
||||
code: number;
|
||||
|
||||
/**
|
||||
* 园区编码
|
||||
*/
|
||||
communityId: string | number;
|
||||
|
||||
/**
|
||||
* 建筑名称
|
||||
*/
|
||||
buildingId: string | number;
|
||||
|
||||
/**
|
||||
* 单元编码
|
||||
*/
|
||||
unitId: string | number;
|
||||
|
||||
/**
|
||||
* 所属楼层ID
|
||||
*/
|
||||
floorId: string | number;
|
||||
|
||||
/**
|
||||
* 楼层
|
||||
*/
|
||||
floorName: string;
|
||||
|
||||
}
|
||||
|
||||
export interface LightInfoForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 位置描述
|
||||
*/
|
||||
locationRemark?: string;
|
||||
|
||||
/**
|
||||
* 开关状态(0:关,1:开)
|
||||
*/
|
||||
isOn: boolean;
|
||||
|
||||
/**
|
||||
* 灯控模块编码
|
||||
*/
|
||||
code?: number;
|
||||
|
||||
/**
|
||||
* 园区编码
|
||||
*/
|
||||
communityId?: string | number;
|
||||
|
||||
/**
|
||||
* 建筑名称
|
||||
*/
|
||||
buildingId?: string | number;
|
||||
|
||||
/**
|
||||
* 单元编码
|
||||
*/
|
||||
unitId?: string | number;
|
||||
|
||||
/**
|
||||
* 所属楼层ID
|
||||
*/
|
||||
floorId?: string | number;
|
||||
|
||||
}
|
||||
|
||||
export interface LightInfoQuery extends PageQuery {
|
||||
/**
|
||||
* 位置描述
|
||||
*/
|
||||
locationRemark?: string;
|
||||
|
||||
/**
|
||||
* 开关状态(0:关,1:开)
|
||||
*/
|
||||
isOn?: number;
|
||||
|
||||
/**
|
||||
* 灯控模块编码
|
||||
*/
|
||||
code?: number;
|
||||
|
||||
/**
|
||||
* 园区编码
|
||||
*/
|
||||
communityId?: string | number;
|
||||
|
||||
/**
|
||||
* 建筑名称
|
||||
*/
|
||||
buildingId?: string | number;
|
||||
|
||||
/**
|
||||
* 单元编码
|
||||
*/
|
||||
unitId?: string | number;
|
||||
|
||||
/**
|
||||
* 所属楼层ID
|
||||
*/
|
||||
floorId?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { MeterInfoVO, MeterInfoForm, MeterInfoQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询水电气列表
|
||||
* @param params
|
||||
* @returns 水电气列表
|
||||
*/
|
||||
export function meterInfoList(params?: MeterInfoQuery) {
|
||||
return requestClient.get<PageResult<MeterInfoVO>>('/property/meterInfo/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出水电气列表
|
||||
* @param params
|
||||
* @returns 水电气列表
|
||||
*/
|
||||
export function meterInfoExport(params?: MeterInfoQuery) {
|
||||
return commonExport('/property/meterInfo/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询水电气详情
|
||||
* @param id id
|
||||
* @returns 水电气详情
|
||||
*/
|
||||
export function meterInfoInfo(id: ID) {
|
||||
return requestClient.get<MeterInfoVO>(`/property/meterInfo/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增水电气
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function meterInfoAdd(data: MeterInfoForm) {
|
||||
return requestClient.postWithMsg<void>('/property/meterInfo', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新水电气
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function meterInfoUpdate(data: MeterInfoForm) {
|
||||
return requestClient.putWithMsg<void>('/property/meterInfo', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除水电气
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function meterInfoRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/meterInfo/${id}`);
|
||||
}
|
189
apps/web-antd/src/api/property/energyManagement/meterInfo/model.d.ts
vendored
Normal file
189
apps/web-antd/src/api/property/energyManagement/meterInfo/model.d.ts
vendored
Normal file
@@ -0,0 +1,189 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common'
|
||||
|
||||
export interface MeterInfoVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number
|
||||
|
||||
/**
|
||||
* 仪表名称
|
||||
*/
|
||||
meterName: string
|
||||
|
||||
/**
|
||||
* 仪表编码
|
||||
*/
|
||||
meterCode: string
|
||||
|
||||
/**
|
||||
* 设备厂商
|
||||
*/
|
||||
factoryNo: string
|
||||
|
||||
/**
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
meterType: number | String
|
||||
|
||||
/**
|
||||
* 计量单位(1-度,2-吨,3-立方米)
|
||||
*/
|
||||
meterUnit: number | String
|
||||
|
||||
/**
|
||||
* 安装位置
|
||||
*/
|
||||
installLocation: string
|
||||
|
||||
/**
|
||||
* 初始读数
|
||||
*/
|
||||
initReading: number
|
||||
|
||||
/**
|
||||
* 最大量程
|
||||
*/
|
||||
maxRang: number
|
||||
|
||||
/**
|
||||
* 通信状态
|
||||
*/
|
||||
communicationState: number | String
|
||||
|
||||
/**
|
||||
* 运行状态
|
||||
*/
|
||||
runningState: number | String
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string
|
||||
|
||||
}
|
||||
|
||||
export interface MeterInfoForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number
|
||||
|
||||
/**
|
||||
* 仪表名称
|
||||
*/
|
||||
meterName?: string
|
||||
|
||||
/**
|
||||
* 仪表编码
|
||||
*/
|
||||
meterCode?: string
|
||||
|
||||
/**
|
||||
* 设备厂商
|
||||
*/
|
||||
factoryNo?: string
|
||||
|
||||
/**
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
meterType?: number
|
||||
|
||||
/**
|
||||
* 计量单位(1-度,2-吨,3-立方米)
|
||||
*/
|
||||
meterUnit?: number
|
||||
|
||||
/**
|
||||
* 安装位置
|
||||
*/
|
||||
installLocation?: string
|
||||
|
||||
/**
|
||||
* 初始读数
|
||||
*/
|
||||
initReading?: number
|
||||
|
||||
/**
|
||||
* 最大量程
|
||||
*/
|
||||
maxRang?: number
|
||||
|
||||
/**
|
||||
* 通信状态
|
||||
*/
|
||||
communicationState?: number
|
||||
|
||||
/**
|
||||
* 运行状态
|
||||
*/
|
||||
runningState?: number
|
||||
|
||||
/**
|
||||
* 采集器IP
|
||||
*/
|
||||
hostIp?: string
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string
|
||||
|
||||
}
|
||||
|
||||
export interface MeterInfoQuery extends PageQuery {
|
||||
/**
|
||||
* 仪表名称
|
||||
*/
|
||||
meterName?: string
|
||||
|
||||
/**
|
||||
* 仪表编码
|
||||
*/
|
||||
meterCode?: string
|
||||
|
||||
/**
|
||||
* 设备厂商
|
||||
*/
|
||||
factoryNo?: string
|
||||
|
||||
/**
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
meterType?: number
|
||||
|
||||
/**
|
||||
* 计量单位(1-度,2-吨,3-立方米)
|
||||
*/
|
||||
meterUnit?: number
|
||||
|
||||
/**
|
||||
* 安装位置
|
||||
*/
|
||||
installLocation?: string
|
||||
|
||||
/**
|
||||
* 初始读数
|
||||
*/
|
||||
initReading?: number
|
||||
|
||||
/**
|
||||
* 最大量程
|
||||
*/
|
||||
maxRang?: number
|
||||
|
||||
/**
|
||||
* 通信状态
|
||||
*/
|
||||
communicationState?: number
|
||||
|
||||
/**
|
||||
* 运行状态
|
||||
*/
|
||||
runningState?: number
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { MeterRecordVO, MeterRecordForm, MeterRecordQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询抄表记录列表
|
||||
* @param params
|
||||
* @returns 抄表记录列表
|
||||
*/
|
||||
export function meterRecordList(params?: MeterRecordQuery) {
|
||||
return requestClient.get<PageResult<MeterRecordVO>>('/property/meterRecord/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出抄表记录列表
|
||||
* @param params
|
||||
* @returns 抄表记录列表
|
||||
*/
|
||||
export function meterRecordExport(params?: MeterRecordQuery) {
|
||||
return commonExport('/property/meterRecord/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询抄表记录详情
|
||||
* @param id id
|
||||
* @returns 抄表记录详情
|
||||
*/
|
||||
export function meterRecordInfo(id: ID) {
|
||||
return requestClient.get<MeterRecordVO>(`/property/meterRecord/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增抄表记录
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function meterRecordAdd(data: MeterRecordForm) {
|
||||
return requestClient.postWithMsg<void>('/property/meterRecord', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新抄表记录
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function meterRecordUpdate(data: MeterRecordForm) {
|
||||
return requestClient.putWithMsg<void>('/property/meterRecord', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除抄表记录
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function meterRecordRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/meterRecord/${id}`);
|
||||
}
|
149
apps/web-antd/src/api/property/energyManagement/meterRecord/model.d.ts
vendored
Normal file
149
apps/web-antd/src/api/property/energyManagement/meterRecord/model.d.ts
vendored
Normal file
@@ -0,0 +1,149 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common'
|
||||
|
||||
export interface MeterRecordVO {
|
||||
/**
|
||||
* 记录ID
|
||||
*/
|
||||
id: string | number
|
||||
|
||||
/**
|
||||
* 仪表编号
|
||||
*/
|
||||
meterId: string | number
|
||||
|
||||
/**
|
||||
* 仪表类型
|
||||
*/
|
||||
meterType: string | number
|
||||
|
||||
/**
|
||||
* 抄表员ID
|
||||
*/
|
||||
readerId: string | number
|
||||
|
||||
/**
|
||||
* 抄表时间
|
||||
*/
|
||||
readingTime: string
|
||||
|
||||
/**
|
||||
* 当前读数
|
||||
*/
|
||||
currentReading: number
|
||||
|
||||
/**
|
||||
* 上次读数
|
||||
*/
|
||||
previousReading: number
|
||||
|
||||
/**
|
||||
* 用量
|
||||
*/
|
||||
consumption: number
|
||||
|
||||
/**
|
||||
* 抄表方式(1手动 2自动 3用户上报)
|
||||
*/
|
||||
readingMethod: number
|
||||
|
||||
/**
|
||||
* 抄表照片
|
||||
*/
|
||||
imgOssid: string | number
|
||||
|
||||
}
|
||||
|
||||
export interface MeterRecordForm extends BaseEntity {
|
||||
/**
|
||||
* 记录ID
|
||||
*/
|
||||
id?: string | number
|
||||
|
||||
/**
|
||||
* 仪表编号
|
||||
*/
|
||||
meterId?: string | number
|
||||
|
||||
/**
|
||||
* 抄表员ID
|
||||
*/
|
||||
readerId?: string | number
|
||||
|
||||
/**
|
||||
* 抄表时间
|
||||
*/
|
||||
readingTime?: string
|
||||
|
||||
/**
|
||||
* 当前读数
|
||||
*/
|
||||
currentReading?: number
|
||||
|
||||
/**
|
||||
* 上次读数
|
||||
*/
|
||||
previousReading?: number
|
||||
|
||||
/**
|
||||
* 用量
|
||||
*/
|
||||
consumption?: number
|
||||
|
||||
/**
|
||||
* 抄表方式(1手动 2自动 3用户上报)
|
||||
*/
|
||||
readingMethod?: number
|
||||
|
||||
/**
|
||||
* 抄表照片
|
||||
*/
|
||||
imgOssid?: string | number
|
||||
|
||||
}
|
||||
|
||||
export interface MeterRecordQuery extends PageQuery {
|
||||
/**
|
||||
* 仪表编号
|
||||
*/
|
||||
meterId?: string | number
|
||||
|
||||
/**
|
||||
* 抄表员ID
|
||||
*/
|
||||
readerId?: string | number
|
||||
|
||||
/**
|
||||
* 抄表时间
|
||||
*/
|
||||
readingTime?: string
|
||||
|
||||
/**
|
||||
* 当前读数
|
||||
*/
|
||||
currentReading?: number
|
||||
|
||||
/**
|
||||
* 上次读数
|
||||
*/
|
||||
previousReading?: number
|
||||
|
||||
/**
|
||||
* 用量
|
||||
*/
|
||||
consumption?: number
|
||||
|
||||
/**
|
||||
* 抄表方式(1手动 2自动 3用户上报)
|
||||
*/
|
||||
readingMethod?: number
|
||||
|
||||
/**
|
||||
* 抄表照片
|
||||
*/
|
||||
imgOssid?: string | number
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { DeviceLocationVO, DeviceLocationForm, DeviceLocationQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询设备位置列表
|
||||
* @param params
|
||||
* @returns 设备位置列表
|
||||
*/
|
||||
export function deviceLocationList(params?: DeviceLocationQuery) {
|
||||
return requestClient.get<PageResult<DeviceLocationVO>>('/property/deviceLocation/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出设备位置列表
|
||||
* @param params
|
||||
* @returns 设备位置列表
|
||||
*/
|
||||
export function deviceLocationExport(params?: DeviceLocationQuery) {
|
||||
return commonExport('/property/deviceLocation/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备位置详情
|
||||
* @param id id
|
||||
* @returns 设备位置详情
|
||||
*/
|
||||
export function deviceLocationInfo(id: ID) {
|
||||
return requestClient.get<DeviceLocationVO>(`/property/deviceLocation/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备位置
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function deviceLocationAdd(data: DeviceLocationForm) {
|
||||
return requestClient.postWithMsg<void>('/property/deviceLocation', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新设备位置
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function deviceLocationUpdate(data: DeviceLocationForm) {
|
||||
return requestClient.putWithMsg<void>('/property/deviceLocation', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备位置
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function deviceLocationRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/deviceLocation/${id}`);
|
||||
}
|
94
apps/web-antd/src/api/property/equipmentManagement/deviceLocation/model.d.ts
vendored
Normal file
94
apps/web-antd/src/api/property/equipmentManagement/deviceLocation/model.d.ts
vendored
Normal file
@@ -0,0 +1,94 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface DeviceLocationVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 位置名称
|
||||
*/
|
||||
locationName: string;
|
||||
|
||||
/**
|
||||
* 位置编号
|
||||
*/
|
||||
locationCode: string;
|
||||
|
||||
/**
|
||||
* 位置类型
|
||||
*/
|
||||
locationType: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
/**
|
||||
* 位置类型
|
||||
*/
|
||||
locationObjName: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface DeviceLocationForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 位置名称
|
||||
*/
|
||||
locationName?: string;
|
||||
|
||||
/**
|
||||
* 位置编号
|
||||
*/
|
||||
locationCode?: string;
|
||||
|
||||
/**
|
||||
* 位置类型
|
||||
*/
|
||||
locationType?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface DeviceLocationQuery extends PageQuery {
|
||||
/**
|
||||
* 位置名称
|
||||
*/
|
||||
locationName?: string;
|
||||
|
||||
/**
|
||||
* 位置编号
|
||||
*/
|
||||
locationCode?: string;
|
||||
|
||||
/**
|
||||
* 位置类型
|
||||
*/
|
||||
locationType?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { MachineVO, MachineForm, MachineQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询设备列表列表
|
||||
* @param params
|
||||
* @returns 设备列表列表
|
||||
*/
|
||||
export function machineList(params?: MachineQuery) {
|
||||
return requestClient.get<PageResult<MachineVO>>('/property/machine/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出设备列表列表
|
||||
* @param params
|
||||
* @returns 设备列表列表
|
||||
*/
|
||||
export function machineExport(params?: MachineQuery) {
|
||||
return commonExport('/property/machine/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备列表详情
|
||||
* @param id id
|
||||
* @returns 设备列表详情
|
||||
*/
|
||||
export function machineInfo(id: ID) {
|
||||
return requestClient.get<MachineVO>(`/property/machine/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备列表
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function machineAdd(data: MachineForm) {
|
||||
return requestClient.postWithMsg<void>('/property/machine', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新设备列表
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function machineUpdate(data: MachineForm) {
|
||||
return requestClient.putWithMsg<void>('/property/machine', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备列表
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function machineRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/machine/${id}`);
|
||||
}
|
204
apps/web-antd/src/api/property/equipmentManagement/machine/model.d.ts
vendored
Normal file
204
apps/web-antd/src/api/property/equipmentManagement/machine/model.d.ts
vendored
Normal file
@@ -0,0 +1,204 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface MachineVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
machineName: string;
|
||||
|
||||
/**
|
||||
* 设备编码
|
||||
*/
|
||||
machineCode: string;
|
||||
|
||||
/**
|
||||
* 设备品牌
|
||||
*/
|
||||
machineBrand: string;
|
||||
|
||||
/**
|
||||
* 设备类型
|
||||
*/
|
||||
machineTypeId: string | number;
|
||||
|
||||
/**
|
||||
* 位置详情
|
||||
*/
|
||||
locationId: string | number;
|
||||
|
||||
/**
|
||||
* 采购价格
|
||||
*/
|
||||
purchasePrice: number;
|
||||
|
||||
/**
|
||||
* 启用时间
|
||||
*/
|
||||
activationTime: string;
|
||||
|
||||
/**
|
||||
* 保修截至时间
|
||||
*/
|
||||
deadline: string;
|
||||
|
||||
/**
|
||||
* 使用年限(年)
|
||||
*/
|
||||
serviceLife: number;
|
||||
|
||||
/**
|
||||
* 保修周期
|
||||
*/
|
||||
maintenanceCycle: string;
|
||||
|
||||
/**
|
||||
* 使用状态
|
||||
*/
|
||||
state: string;
|
||||
|
||||
/**
|
||||
* 责任人
|
||||
*/
|
||||
personId: string | number;
|
||||
|
||||
}
|
||||
|
||||
export interface MachineForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
machineName?: string;
|
||||
|
||||
/**
|
||||
* 设备编码
|
||||
*/
|
||||
machineCode?: string;
|
||||
|
||||
/**
|
||||
* 设备品牌
|
||||
*/
|
||||
machineBrand?: string;
|
||||
|
||||
/**
|
||||
* 设备类型
|
||||
*/
|
||||
machineTypeId?: string | number;
|
||||
|
||||
/**
|
||||
* 位置详情
|
||||
*/
|
||||
locationId?: string | number;
|
||||
|
||||
/**
|
||||
* 采购价格
|
||||
*/
|
||||
purchasePrice?: number;
|
||||
|
||||
/**
|
||||
* 启用时间
|
||||
*/
|
||||
activationTime?: string;
|
||||
|
||||
/**
|
||||
* 保修截至时间
|
||||
*/
|
||||
deadline?: string;
|
||||
|
||||
/**
|
||||
* 使用年限(年)
|
||||
*/
|
||||
serviceLife?: number;
|
||||
|
||||
/**
|
||||
* 保修周期
|
||||
*/
|
||||
maintenanceCycle?: string;
|
||||
|
||||
/**
|
||||
* 使用状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 责任人
|
||||
*/
|
||||
personId?: string | number;
|
||||
|
||||
}
|
||||
|
||||
export interface MachineQuery extends PageQuery {
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
machineName?: string;
|
||||
|
||||
/**
|
||||
* 设备编码
|
||||
*/
|
||||
machineCode?: string;
|
||||
|
||||
/**
|
||||
* 设备品牌
|
||||
*/
|
||||
machineBrand?: string;
|
||||
|
||||
/**
|
||||
* 设备类型
|
||||
*/
|
||||
machineTypeId?: string | number;
|
||||
|
||||
/**
|
||||
* 位置详情
|
||||
*/
|
||||
locationId?: string | number;
|
||||
|
||||
/**
|
||||
* 采购价格
|
||||
*/
|
||||
purchasePrice?: number;
|
||||
|
||||
/**
|
||||
* 启用时间
|
||||
*/
|
||||
activationTime?: string;
|
||||
|
||||
/**
|
||||
* 保修截至时间
|
||||
*/
|
||||
deadline?: string;
|
||||
|
||||
/**
|
||||
* 使用年限(年)
|
||||
*/
|
||||
serviceLife?: number;
|
||||
|
||||
/**
|
||||
* 保修周期
|
||||
*/
|
||||
maintenanceCycle?: string;
|
||||
|
||||
/**
|
||||
* 使用状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 责任人
|
||||
*/
|
||||
personId?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { MaintainPlanVO, MaintainPlanForm, MaintainPlanQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询保养计划列表
|
||||
* @param params
|
||||
* @returns 保养计划列表
|
||||
*/
|
||||
export function maintainPlanList(params?: MaintainPlanQuery) {
|
||||
return requestClient.get<PageResult<MaintainPlanVO>>('/property/maintainPlan/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出保养计划列表
|
||||
* @param params
|
||||
* @returns 保养计划列表
|
||||
*/
|
||||
export function maintainPlanExport(params?: MaintainPlanQuery) {
|
||||
return commonExport('/property/maintainPlan/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询保养计划详情
|
||||
* @param id id
|
||||
* @returns 保养计划详情
|
||||
*/
|
||||
export function maintainPlanInfo(id: ID) {
|
||||
return requestClient.get<MaintainPlanVO>(`/property/maintainPlan/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保养计划
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function maintainPlanAdd(data: MaintainPlanForm) {
|
||||
return requestClient.postWithMsg<void>('/property/maintainPlan', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新保养计划
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function maintainPlanUpdate(data: MaintainPlanForm) {
|
||||
return requestClient.putWithMsg<void>('/property/maintainPlan', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除保养计划
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function maintainPlanRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/maintainPlan/${id}`);
|
||||
}
|
181
apps/web-antd/src/api/property/equipmentManagement/maintainPlan/model.d.ts
vendored
Normal file
181
apps/web-antd/src/api/property/equipmentManagement/maintainPlan/model.d.ts
vendored
Normal file
@@ -0,0 +1,181 @@
|
||||
import type {PageQuery, BaseEntity} from '#/api/common';
|
||||
|
||||
export interface MaintainPlanVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 计划名称
|
||||
*/
|
||||
planName: string;
|
||||
|
||||
/**
|
||||
* 计划编号
|
||||
*/
|
||||
planNo: string;
|
||||
|
||||
/**
|
||||
* 保养周期(1月/天2.固定天)
|
||||
*/
|
||||
planPeriod: string;
|
||||
|
||||
/**
|
||||
* 保养设备类型id
|
||||
*/
|
||||
machineTypeId: string | number;
|
||||
|
||||
/**
|
||||
* 保养天
|
||||
*/
|
||||
maintainDay: string;
|
||||
|
||||
/**
|
||||
* 保养月
|
||||
*/
|
||||
maintainMonth: string;
|
||||
|
||||
/**
|
||||
* 固定天
|
||||
*/
|
||||
maintainEveryday: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startDate: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endDate: string;
|
||||
|
||||
/**
|
||||
* 状态(0启用,1停用)
|
||||
*/
|
||||
state: string;
|
||||
|
||||
planDate: any[]
|
||||
|
||||
userId: string[];
|
||||
|
||||
machineMaintainPlanStaffBoList:any[];
|
||||
|
||||
machineMaintainPlanStaffVos:any[];
|
||||
}
|
||||
|
||||
export interface MaintainPlanForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 计划名称
|
||||
*/
|
||||
planName?: string;
|
||||
|
||||
/**
|
||||
* 计划编号
|
||||
*/
|
||||
planNo?: string;
|
||||
|
||||
/**
|
||||
* 保养周期(1月/天2.固定天)
|
||||
*/
|
||||
planPeriod?: string;
|
||||
|
||||
/**
|
||||
* 保养设备类型id
|
||||
*/
|
||||
machineTypeId?: string | number;
|
||||
|
||||
/**
|
||||
* 保养天
|
||||
*/
|
||||
maintainDay?: string;
|
||||
|
||||
/**
|
||||
* 保养月
|
||||
*/
|
||||
maintainMonth?: string;
|
||||
|
||||
/**
|
||||
* 固定天
|
||||
*/
|
||||
maintainEveryday?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startDate?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endDate?: string;
|
||||
|
||||
/**
|
||||
* 状态(0启用,1停用)
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MaintainPlanQuery extends PageQuery {
|
||||
/**
|
||||
* 计划名称
|
||||
*/
|
||||
planName?: string;
|
||||
|
||||
/**
|
||||
* 计划编号
|
||||
*/
|
||||
planNo?: string;
|
||||
|
||||
/**
|
||||
* 保养周期(1月/天2.固定天)
|
||||
*/
|
||||
planPeriod?: string;
|
||||
|
||||
/**
|
||||
* 保养设备类型id
|
||||
*/
|
||||
machineTypeId?: string | number;
|
||||
|
||||
/**
|
||||
* 保养天
|
||||
*/
|
||||
maintainDay?: string;
|
||||
|
||||
/**
|
||||
* 保养月
|
||||
*/
|
||||
maintainMonth?: string;
|
||||
|
||||
/**
|
||||
* 固定天
|
||||
*/
|
||||
maintainEveryday?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startDate?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endDate?: string;
|
||||
|
||||
/**
|
||||
* 状态(0启用,1停用)
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -59,3 +59,11 @@ export function floorUpdate(data: FloorForm) {
|
||||
export function floorRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/floor/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据楼层ID查询楼层
|
||||
* @param id id
|
||||
*/
|
||||
export function queryByBuildingId(id: ID | IDS) {
|
||||
return requestClient.get<FloorVO[]>(`/property/floor/queryByBuildingId/${id}`);
|
||||
}
|
||||
|
@@ -0,0 +1,61 @@
|
||||
import type { TaskDetailVO, TaskDetailForm, TaskDetailQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询巡检明细列表
|
||||
* @param params
|
||||
* @returns 巡检明细列表
|
||||
*/
|
||||
export function taskDetailList(params?: TaskDetailQuery) {
|
||||
return requestClient.get<PageResult<TaskDetailVO>>('/property/taskDetail/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出巡检明细列表
|
||||
* @param params
|
||||
* @returns 巡检明细列表
|
||||
*/
|
||||
export function taskDetailExport(params?: TaskDetailQuery) {
|
||||
return commonExport('/property/taskDetail/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询巡检明细详情
|
||||
* @param id id
|
||||
* @returns 巡检明细详情
|
||||
*/
|
||||
export function taskDetailInfo(id: ID) {
|
||||
return requestClient.get<TaskDetailVO>(`/property/taskDetail/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增巡检明细
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function taskDetailAdd(data: TaskDetailForm) {
|
||||
return requestClient.postWithMsg<void>('/property/taskDetail', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新巡检明细
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function taskDetailUpdate(data: TaskDetailForm) {
|
||||
return requestClient.putWithMsg<void>('/property/taskDetail', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除巡检明细
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function taskDetailRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/taskDetail/${id}`);
|
||||
}
|
334
apps/web-antd/src/api/property/inspectionManagement/inspectionDetail/model.d.ts
vendored
Normal file
334
apps/web-antd/src/api/property/inspectionManagement/inspectionDetail/model.d.ts
vendored
Normal file
@@ -0,0 +1,334 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface TaskDetailVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
taskId: string | number;
|
||||
|
||||
/**
|
||||
* 路线id
|
||||
*/
|
||||
routeId: string | number;
|
||||
|
||||
/**
|
||||
* 巡检计划id
|
||||
*/
|
||||
planId: string | number;
|
||||
|
||||
/**
|
||||
* 巡检点id
|
||||
*/
|
||||
pointId: string | number;
|
||||
|
||||
/**
|
||||
* 巡检方式
|
||||
*/
|
||||
patrolType: string;
|
||||
|
||||
/**
|
||||
* 签到类型(1.现场拍照、2.摄像头签到、3.现场扫码)
|
||||
*/
|
||||
signType: string;
|
||||
|
||||
/**
|
||||
* 实际巡检时间
|
||||
*/
|
||||
actualInspectionTime: string;
|
||||
|
||||
/**
|
||||
* 实际签到状态(1已签到2.未签到)
|
||||
*/
|
||||
actualSignState: string;
|
||||
|
||||
/**
|
||||
* 巡检状态(0未完成,1已完成)
|
||||
*/
|
||||
inspectionState: string;
|
||||
|
||||
/**
|
||||
* 巡检图片
|
||||
*/
|
||||
inspectionImage: string;
|
||||
|
||||
/**
|
||||
* 计划巡检人
|
||||
*/
|
||||
planInspectionPerson: string;
|
||||
|
||||
/**
|
||||
* 实际巡检人
|
||||
*/
|
||||
actualInspectionPerson: string;
|
||||
|
||||
/**
|
||||
* 任务状态
|
||||
*/
|
||||
taskStatus: string;
|
||||
|
||||
/**
|
||||
* 巡检结果
|
||||
*/
|
||||
inspectionResults: string;
|
||||
|
||||
/**
|
||||
* 巡检描述
|
||||
*/
|
||||
inspectionDesc: string;
|
||||
|
||||
/**
|
||||
* 巡检位置
|
||||
*/
|
||||
inspectionLocation: string;
|
||||
|
||||
/**
|
||||
* 实际巡检时间
|
||||
*/
|
||||
inspectionTime: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 点开始时间
|
||||
*/
|
||||
pointStartTime: string;
|
||||
|
||||
/**
|
||||
* 点结束时间
|
||||
*/
|
||||
pointEndTime: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface TaskDetailForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
taskId?: string | number;
|
||||
|
||||
/**
|
||||
* 路线id
|
||||
*/
|
||||
routeId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检计划id
|
||||
*/
|
||||
planId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检点id
|
||||
*/
|
||||
pointId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检方式
|
||||
*/
|
||||
patrolType?: string;
|
||||
|
||||
/**
|
||||
* 签到类型(1.现场拍照、2.摄像头签到、3.现场扫码)
|
||||
*/
|
||||
signType?: string;
|
||||
|
||||
/**
|
||||
* 实际巡检时间
|
||||
*/
|
||||
actualInspectionTime?: string;
|
||||
|
||||
/**
|
||||
* 实际签到状态(1已签到2.未签到)
|
||||
*/
|
||||
actualSignState?: string;
|
||||
|
||||
/**
|
||||
* 巡检状态(0未完成,1已完成)
|
||||
*/
|
||||
inspectionState?: string;
|
||||
|
||||
/**
|
||||
* 巡检图片
|
||||
*/
|
||||
inspectionImage?: string;
|
||||
|
||||
/**
|
||||
* 计划巡检人
|
||||
*/
|
||||
planInspectionPerson?: string;
|
||||
|
||||
/**
|
||||
* 实际巡检人
|
||||
*/
|
||||
actualInspectionPerson?: string;
|
||||
|
||||
/**
|
||||
* 任务状态
|
||||
*/
|
||||
taskStatus?: string;
|
||||
|
||||
/**
|
||||
* 巡检结果
|
||||
*/
|
||||
inspectionResults?: string;
|
||||
|
||||
/**
|
||||
* 巡检描述
|
||||
*/
|
||||
inspectionDesc?: string;
|
||||
|
||||
/**
|
||||
* 巡检位置
|
||||
*/
|
||||
inspectionLocation?: string;
|
||||
|
||||
/**
|
||||
* 实际巡检时间
|
||||
*/
|
||||
inspectionTime?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 点开始时间
|
||||
*/
|
||||
pointStartTime?: string;
|
||||
|
||||
/**
|
||||
* 点结束时间
|
||||
*/
|
||||
pointEndTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface TaskDetailQuery extends PageQuery {
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
taskId?: string | number;
|
||||
|
||||
/**
|
||||
* 路线id
|
||||
*/
|
||||
routeId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检计划id
|
||||
*/
|
||||
planId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检点id
|
||||
*/
|
||||
pointId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检方式
|
||||
*/
|
||||
patrolType?: string;
|
||||
|
||||
/**
|
||||
* 签到类型(1.现场拍照、2.摄像头签到、3.现场扫码)
|
||||
*/
|
||||
signType?: string;
|
||||
|
||||
/**
|
||||
* 实际巡检时间
|
||||
*/
|
||||
actualInspectionTime?: string;
|
||||
|
||||
/**
|
||||
* 实际签到状态(1已签到2.未签到)
|
||||
*/
|
||||
actualSignState?: string;
|
||||
|
||||
/**
|
||||
* 巡检状态(0未完成,1已完成)
|
||||
*/
|
||||
inspectionState?: string;
|
||||
|
||||
/**
|
||||
* 巡检图片
|
||||
*/
|
||||
inspectionImage?: string;
|
||||
|
||||
/**
|
||||
* 计划巡检人
|
||||
*/
|
||||
planInspectionPerson?: string;
|
||||
|
||||
/**
|
||||
* 实际巡检人
|
||||
*/
|
||||
actualInspectionPerson?: string;
|
||||
|
||||
/**
|
||||
* 任务状态
|
||||
*/
|
||||
taskStatus?: string;
|
||||
|
||||
/**
|
||||
* 巡检结果
|
||||
*/
|
||||
inspectionResults?: string;
|
||||
|
||||
/**
|
||||
* 巡检描述
|
||||
*/
|
||||
inspectionDesc?: string;
|
||||
|
||||
/**
|
||||
* 巡检位置
|
||||
*/
|
||||
inspectionLocation?: string;
|
||||
|
||||
/**
|
||||
* 实际巡检时间
|
||||
*/
|
||||
inspectionTime?: string;
|
||||
|
||||
/**
|
||||
* 点开始时间
|
||||
*/
|
||||
pointStartTime?: string;
|
||||
|
||||
/**
|
||||
* 点结束时间
|
||||
*/
|
||||
pointEndTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -19,7 +19,7 @@ export interface InspectionPlanVO {
|
||||
/**
|
||||
* 巡检周期
|
||||
*/
|
||||
inspectionPlanPeriod: number;
|
||||
inspectionPlanPeriod: string;
|
||||
|
||||
/**
|
||||
* 任务提前分组
|
||||
@@ -59,7 +59,7 @@ export interface InspectionPlanVO {
|
||||
/**
|
||||
* 选择员工
|
||||
*/
|
||||
userId: string | number;
|
||||
userId: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
@@ -74,21 +74,22 @@ export interface InspectionPlanVO {
|
||||
/**
|
||||
* 巡检月
|
||||
*/
|
||||
inspectionMonth?:string;
|
||||
inspectionMonth?: string;
|
||||
/**
|
||||
* 巡检日
|
||||
*/
|
||||
inspectionDay?:string;
|
||||
inspectionDay?: string;
|
||||
/**
|
||||
* 巡检周
|
||||
*/
|
||||
inspectionWorkday?:string;
|
||||
inspectionWorkday?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?:string
|
||||
state?: string
|
||||
|
||||
inspectionPlanStaffVoList?: any[]
|
||||
}
|
||||
|
||||
export interface InspectionPlanForm extends BaseEntity {
|
||||
@@ -159,15 +160,15 @@ export interface InspectionPlanForm extends BaseEntity {
|
||||
/**
|
||||
* 巡检月
|
||||
*/
|
||||
inspectionMonth?:string;
|
||||
inspectionMonth?: string;
|
||||
/**
|
||||
* 巡检日
|
||||
*/
|
||||
inspectionDay?:string;
|
||||
inspectionDay?: string;
|
||||
/**
|
||||
* 巡检周
|
||||
*/
|
||||
inspectionWorkday?:string;
|
||||
inspectionWorkday?: string;
|
||||
|
||||
}
|
||||
|
||||
@@ -234,13 +235,13 @@ export interface InspectionPlanQuery extends PageQuery {
|
||||
/**
|
||||
* 巡检月
|
||||
*/
|
||||
inspectionMonth?:string;
|
||||
inspectionMonth?: string;
|
||||
/**
|
||||
* 巡检日
|
||||
*/
|
||||
inspectionDay?:string;
|
||||
inspectionDay?: string;
|
||||
/**
|
||||
* 巡检周
|
||||
*/
|
||||
inspectionWorkday?:string;
|
||||
inspectionWorkday?: string;
|
||||
}
|
||||
|
@@ -46,6 +46,10 @@ export interface InspectionPointVO {
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
itemName: string;
|
||||
|
||||
createTime: string;
|
||||
|
||||
}
|
||||
|
||||
export interface InspectionPointForm extends BaseEntity {
|
||||
|
68
apps/web-antd/src/api/property/machineType/index.ts
Normal file
68
apps/web-antd/src/api/property/machineType/index.ts
Normal file
@@ -0,0 +1,68 @@
|
||||
import type { MachineTypeVO, MachineTypeForm, MachineTypeQuery,MachineTypeTree } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询设备类型列表
|
||||
* @param params
|
||||
* @returns 设备类型列表
|
||||
*/
|
||||
export function machineTypeList(params?: MachineTypeQuery) {
|
||||
return requestClient.get<PageResult<MachineTypeVO>>('/property/machineType/list', { params });
|
||||
}
|
||||
/**
|
||||
* 查询设备类型树
|
||||
* @param params
|
||||
* @returns 设备类型树
|
||||
*/
|
||||
export function getMachineTypeTree() {
|
||||
return requestClient.get<MachineTypeTree[]>('/property/machineType/typeTree');
|
||||
}
|
||||
/**
|
||||
* 导出设备类型列表
|
||||
* @param params
|
||||
* @returns 设备类型列表
|
||||
*/
|
||||
export function machineTypeExport(params?: MachineTypeQuery) {
|
||||
return commonExport('/property/machineType/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备类型详情
|
||||
* @param id id
|
||||
* @returns 设备类型详情
|
||||
*/
|
||||
export function machineTypeInfo(id: ID) {
|
||||
return requestClient.get<MachineTypeVO>(`/property/machineType/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备类型
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function machineTypeAdd(data: MachineTypeForm) {
|
||||
return requestClient.postWithMsg<void>('/property/machineType', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新设备类型
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function machineTypeUpdate(data: MachineTypeForm) {
|
||||
return requestClient.putWithMsg<void>('/property/machineType', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备类型
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function machineTypeRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/machineType/${id}`);
|
||||
}
|
130
apps/web-antd/src/api/property/machineType/model.d.ts
vendored
Normal file
130
apps/web-antd/src/api/property/machineType/model.d.ts
vendored
Normal file
@@ -0,0 +1,130 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface MachineTypeVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 类型名称
|
||||
*/
|
||||
machineTypeName: string;
|
||||
|
||||
/**
|
||||
* 类型编号
|
||||
*/
|
||||
machineTypeCode: string;
|
||||
|
||||
/**
|
||||
* 上级类型
|
||||
*/
|
||||
parentTypeId: string | number;
|
||||
|
||||
/**
|
||||
* 是否启用
|
||||
*/
|
||||
isEnable: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MachineTypeForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 类型名称
|
||||
*/
|
||||
machineTypeName?: string;
|
||||
|
||||
/**
|
||||
* 类型编号
|
||||
*/
|
||||
machineTypeCode?: string;
|
||||
|
||||
/**
|
||||
* 上级类型
|
||||
*/
|
||||
parentTypeId?: string | number;
|
||||
|
||||
/**
|
||||
* 是否启用
|
||||
*/
|
||||
isEnable?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MachineTypeQuery extends PageQuery {
|
||||
/**
|
||||
* 类型名称
|
||||
*/
|
||||
machineTypeName?: string;
|
||||
|
||||
/**
|
||||
* 类型编号
|
||||
*/
|
||||
machineTypeCode?: string;
|
||||
|
||||
/**
|
||||
* 上级类型
|
||||
*/
|
||||
parentTypeId?: string | number;
|
||||
|
||||
/**
|
||||
* 是否启用
|
||||
*/
|
||||
isEnable?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 设备类型树
|
||||
*/
|
||||
export interface MachineTypeTree {
|
||||
id: number;
|
||||
/**
|
||||
* antd组件必须要这个属性 实际是没有这个属性的
|
||||
*/
|
||||
key: string;
|
||||
parentId: number;
|
||||
label: string;
|
||||
weight: number;
|
||||
children?: MachineTypeTree[];
|
||||
}
|
||||
|
||||
export interface MachineTypeTreeData {
|
||||
id: number;
|
||||
label: string;
|
||||
children?: MachineTypeTreeData[];
|
||||
}
|
61
apps/web-antd/src/api/property/maintainTaskDetail/index.ts
Normal file
61
apps/web-antd/src/api/property/maintainTaskDetail/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { MaintainTaskDetailVO, MaintainTaskDetailForm, MaintainTaskDetailQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询保养明细列表
|
||||
* @param params
|
||||
* @returns 保养明细列表
|
||||
*/
|
||||
export function maintainTaskDetailList(params?: MaintainTaskDetailQuery) {
|
||||
return requestClient.get<PageResult<MaintainTaskDetailVO>>('/property/maintainTaskDetail/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出保养明细列表
|
||||
* @param params
|
||||
* @returns 保养明细列表
|
||||
*/
|
||||
export function maintainTaskDetailExport(params?: MaintainTaskDetailQuery) {
|
||||
return commonExport('/property/maintainTaskDetail/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询保养明细详情
|
||||
* @param id id
|
||||
* @returns 保养明细详情
|
||||
*/
|
||||
export function maintainTaskDetailInfo(id: ID) {
|
||||
return requestClient.get<MaintainTaskDetailVO>(`/property/maintainTaskDetail/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保养明细
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function maintainTaskDetailAdd(data: MaintainTaskDetailForm) {
|
||||
return requestClient.postWithMsg<void>('/property/maintainTaskDetail', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新保养明细
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function maintainTaskDetailUpdate(data: MaintainTaskDetailForm) {
|
||||
return requestClient.putWithMsg<void>('/property/maintainTaskDetail', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除保养明细
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function maintainTaskDetailRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/maintainTaskDetail/${id}`);
|
||||
}
|
114
apps/web-antd/src/api/property/maintainTaskDetail/model.d.ts
vendored
Normal file
114
apps/web-antd/src/api/property/maintainTaskDetail/model.d.ts
vendored
Normal file
@@ -0,0 +1,114 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface MaintainTaskDetailVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
taskId: string | number;
|
||||
|
||||
/**
|
||||
* 位置编号
|
||||
*/
|
||||
machineId: string | number;
|
||||
|
||||
/**
|
||||
* 保养情况
|
||||
*/
|
||||
sendFlag: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sortNumber: number;
|
||||
|
||||
/**
|
||||
* 状态(0未开始,1已完成)
|
||||
*/
|
||||
state: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MaintainTaskDetailForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
taskId?: string | number;
|
||||
|
||||
/**
|
||||
* 位置编号
|
||||
*/
|
||||
machineId?: string | number;
|
||||
|
||||
/**
|
||||
* 保养情况
|
||||
*/
|
||||
sendFlag?: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sortNumber?: number;
|
||||
|
||||
/**
|
||||
* 状态(0未开始,1已完成)
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MaintainTaskDetailQuery extends PageQuery {
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
taskId?: string | number;
|
||||
|
||||
/**
|
||||
* 位置编号
|
||||
*/
|
||||
machineId?: string | number;
|
||||
|
||||
/**
|
||||
* 保养情况
|
||||
*/
|
||||
sendFlag?: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sortNumber?: number;
|
||||
|
||||
/**
|
||||
* 状态(0未开始,1已完成)
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { KnowledgeVO, KnowledgeForm, KnowledgeQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询维保知识管理列表
|
||||
* @param params
|
||||
* @returns 维保知识管理列表
|
||||
*/
|
||||
export function knowledgeList(params?: KnowledgeQuery) {
|
||||
return requestClient.get<PageResult<KnowledgeVO>>('/property/knowledge/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出维保知识管理列表
|
||||
* @param params
|
||||
* @returns 维保知识管理列表
|
||||
*/
|
||||
export function knowledgeExport(params?: KnowledgeQuery) {
|
||||
return commonExport('/property/knowledge/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询维保知识管理详情
|
||||
* @param id id
|
||||
* @returns 维保知识管理详情
|
||||
*/
|
||||
export function knowledgeInfo(id: ID) {
|
||||
return requestClient.get<KnowledgeVO>(`/property/knowledge/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增维保知识管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function knowledgeAdd(data: KnowledgeForm) {
|
||||
return requestClient.postWithMsg<void>('/property/knowledge', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新维保知识管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function knowledgeUpdate(data: KnowledgeForm) {
|
||||
return requestClient.putWithMsg<void>('/property/knowledge', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除维保知识管理
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function knowledgeRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/knowledge/${id}`);
|
||||
}
|
131
apps/web-antd/src/api/property/maintenance/knowledge/model.d.ts
vendored
Normal file
131
apps/web-antd/src/api/property/maintenance/knowledge/model.d.ts
vendored
Normal file
@@ -0,0 +1,131 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface KnowledgeVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* 状态(0草稿1状态2已发布)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 封面
|
||||
*/
|
||||
covers: string;
|
||||
|
||||
coversPath: string|undefined;
|
||||
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
content: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict: string;
|
||||
|
||||
/**
|
||||
* 发布时间
|
||||
*/
|
||||
releaseTime: string;
|
||||
|
||||
/**
|
||||
* 位置类型(0操作指引,1处理案例2常见问题)
|
||||
*/
|
||||
type: string;
|
||||
|
||||
}
|
||||
|
||||
export interface KnowledgeForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 状态(0草稿1状态2已发布)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 封面
|
||||
*/
|
||||
covers?: string;
|
||||
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
content?: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict?: string;
|
||||
|
||||
/**
|
||||
* 发布时间
|
||||
*/
|
||||
releaseTime?: string;
|
||||
|
||||
/**
|
||||
* 位置类型(0操作指引,1处理案例2常见问题)
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface KnowledgeQuery extends PageQuery {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 状态(0草稿1状态2已发布)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 封面
|
||||
*/
|
||||
covers?: string;
|
||||
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
content?: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict?: string;
|
||||
|
||||
/**
|
||||
* 发布时间
|
||||
*/
|
||||
releaseTime?: string;
|
||||
|
||||
/**
|
||||
* 位置类型(0操作指引,1处理案例2常见问题)
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { LeaveApplicationVO, LeaveApplicationForm, LeaveApplicationQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询请假申请列表
|
||||
* @param params
|
||||
* @returns 请假申请列表
|
||||
*/
|
||||
export function leaveApplicationList(params?: LeaveApplicationQuery) {
|
||||
return requestClient.get<PageResult<LeaveApplicationVO>>('/property/leaveApplication/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出请假申请列表
|
||||
* @param params
|
||||
* @returns 请假申请列表
|
||||
*/
|
||||
export function leaveApplicationExport(params?: LeaveApplicationQuery) {
|
||||
return commonExport('/property/leaveApplication/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询请假申请详情
|
||||
* @param id id
|
||||
* @returns 请假申请详情
|
||||
*/
|
||||
export function leaveApplicationInfo(id: ID) {
|
||||
return requestClient.get<LeaveApplicationVO>(`/property/leaveApplication/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增请假申请
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function leaveApplicationAdd(data: LeaveApplicationForm) {
|
||||
return requestClient.postWithMsg<void>('/property/leaveApplication', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新请假申请
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function leaveApplicationUpdate(data: LeaveApplicationForm) {
|
||||
return requestClient.putWithMsg<void>('/property/leaveApplication', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除请假申请
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function leaveApplicationRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/leaveApplication/${id}`);
|
||||
}
|
189
apps/web-antd/src/api/property/personalCenter/leaveApplication/model.d.ts
vendored
Normal file
189
apps/web-antd/src/api/property/personalCenter/leaveApplication/model.d.ts
vendored
Normal file
@@ -0,0 +1,189 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface LeaveApplicationVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 用户ID,关联用户表
|
||||
*/
|
||||
userId: string | number;
|
||||
|
||||
/**
|
||||
* 申请人姓名
|
||||
*/
|
||||
username: string;
|
||||
|
||||
/**
|
||||
* 部门ID,关联部门表
|
||||
*/
|
||||
departmentId: string | number;
|
||||
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
departmentName: string;
|
||||
|
||||
/**
|
||||
* 请假类型
|
||||
*/
|
||||
leaveType: number;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 合计时间,如3天5个小时
|
||||
*/
|
||||
totalDuration: string;
|
||||
|
||||
/**
|
||||
* 请假事由
|
||||
*/
|
||||
reason: string;
|
||||
|
||||
/**
|
||||
* 申请状态(1:'草稿',2:'待审批',3:'已批准',4:'已拒绝':5:'已取消')
|
||||
*/
|
||||
status: number;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface LeaveApplicationForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 用户ID,关联用户表
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 申请人姓名
|
||||
*/
|
||||
username?: string;
|
||||
|
||||
/**
|
||||
* 部门ID,关联部门表
|
||||
*/
|
||||
departmentId?: string | number;
|
||||
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
departmentName?: string;
|
||||
|
||||
/**
|
||||
* 请假类型
|
||||
*/
|
||||
leaveType?: number;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 合计时间,如3天5个小时
|
||||
*/
|
||||
totalDuration?: string;
|
||||
|
||||
/**
|
||||
* 请假事由
|
||||
*/
|
||||
reason?: string;
|
||||
|
||||
/**
|
||||
* 申请状态(1:'草稿',2:'待审批',3:'已批准',4:'已拒绝':5:'已取消')
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface LeaveApplicationQuery extends PageQuery {
|
||||
/**
|
||||
* 用户ID,关联用户表
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 申请人姓名
|
||||
*/
|
||||
username?: string;
|
||||
|
||||
/**
|
||||
* 部门ID,关联部门表
|
||||
*/
|
||||
departmentId?: string | number;
|
||||
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
departmentName?: string;
|
||||
|
||||
/**
|
||||
* 请假类型
|
||||
*/
|
||||
leaveType?: number;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 合计时间,如3天5个小时
|
||||
*/
|
||||
totalDuration?: string;
|
||||
|
||||
/**
|
||||
* 请假事由
|
||||
*/
|
||||
reason?: string;
|
||||
|
||||
/**
|
||||
* 申请状态(1:'草稿',2:'待审批',3:'已批准',4:'已拒绝':5:'已取消')
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { WorkflowDefinitionVO, WorkflowDefinitionForm, WorkflowDefinitionQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询流程定义列表
|
||||
* @param params
|
||||
* @returns 流程定义列表
|
||||
*/
|
||||
export function workflowDefinitionList(params?: WorkflowDefinitionQuery) {
|
||||
return requestClient.get<PageResult<WorkflowDefinitionVO>>('/property/workflowDefinition/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出流程定义列表
|
||||
* @param params
|
||||
* @returns 流程定义列表
|
||||
*/
|
||||
export function workflowDefinitionExport(params?: WorkflowDefinitionQuery) {
|
||||
return commonExport('/property/workflowDefinition/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询流程定义详情
|
||||
* @param id id
|
||||
* @returns 流程定义详情
|
||||
*/
|
||||
export function workflowDefinitionInfo(id: ID) {
|
||||
return requestClient.get<WorkflowDefinitionVO>(`/property/workflowDefinition/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增流程定义
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function workflowDefinitionAdd(data: WorkflowDefinitionForm) {
|
||||
return requestClient.postWithMsg<void>('/property/workflowDefinition', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新流程定义
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function workflowDefinitionUpdate(data: WorkflowDefinitionForm) {
|
||||
return requestClient.putWithMsg<void>('/property/workflowDefinition', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除流程定义
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function workflowDefinitionRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/workflowDefinition/${id}`);
|
||||
}
|
129
apps/web-antd/src/api/property/personalCenter/workflowDefinition/model.d.ts
vendored
Normal file
129
apps/web-antd/src/api/property/personalCenter/workflowDefinition/model.d.ts
vendored
Normal file
@@ -0,0 +1,129 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface WorkflowDefinitionVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 流程编号
|
||||
*/
|
||||
code: string;
|
||||
|
||||
/**
|
||||
* 流程名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 流程状态(0:审批不通过,1:审批通过,2:审批中,3已取消)
|
||||
*/
|
||||
status: number;
|
||||
|
||||
/**
|
||||
* 当前审批人
|
||||
*/
|
||||
currentApprover: string;
|
||||
|
||||
/**
|
||||
* 审批建议
|
||||
*/
|
||||
workflowSuggestion: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface WorkflowDefinitionForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 流程编号
|
||||
*/
|
||||
code?: string;
|
||||
|
||||
/**
|
||||
* 流程名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 流程状态(0:审批不通过,1:审批通过,2:审批中,3已取消)
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 当前审批人
|
||||
*/
|
||||
currentApprover?: string;
|
||||
|
||||
/**
|
||||
* 审批建议
|
||||
*/
|
||||
workflowSuggestion?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface WorkflowDefinitionQuery extends PageQuery {
|
||||
/**
|
||||
* 流程编号
|
||||
*/
|
||||
code?: string;
|
||||
|
||||
/**
|
||||
* 流程名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 流程状态(0:审批不通过,1:审批通过,2:审批中,3已取消)
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 当前审批人
|
||||
*/
|
||||
currentApprover?: string;
|
||||
|
||||
/**
|
||||
* 审批建议
|
||||
*/
|
||||
workflowSuggestion?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -26,6 +26,8 @@ export interface PropertyVO {
|
||||
*/
|
||||
imgPath: string;
|
||||
|
||||
plantImg: string;
|
||||
|
||||
/**
|
||||
* 规格
|
||||
*/
|
||||
@@ -102,7 +104,6 @@ export interface PropertyForm extends BaseEntity {
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface PropertyQuery extends PageQuery {
|
||||
@@ -178,6 +179,8 @@ export interface plantsProduct extends BaseEntity {
|
||||
*/
|
||||
imgPath?: string;
|
||||
|
||||
plantImg: string |undefined;
|
||||
|
||||
/**
|
||||
* 规格
|
||||
*/
|
||||
|
@@ -0,0 +1,11 @@
|
||||
import { requestClient } from '#/api/request';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
/**
|
||||
* 通行记录列表
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function getVisitorList(params?: any) {
|
||||
return requestClient.get<PageResult<any>>('/sis/visitor/list', { params });
|
||||
}
|
@@ -1,9 +1,9 @@
|
||||
import type { PersonVO, PersonForm, PersonQuery } from './model';
|
||||
import type { PersonVO, PersonForm, PersonQuery, PerssonImportParam } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { commonExport, ContentTypeEnum } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
@@ -59,3 +59,54 @@ export function personUpdate(data: PersonForm) {
|
||||
export function personRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/person/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 从excel导入用户
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function personImportData(data: PerssonImportParam) {
|
||||
return requestClient.post<{ code: number; msg: string }>(
|
||||
'/property/person/importData',
|
||||
data,
|
||||
{
|
||||
headers: {
|
||||
'Content-Type': ContentTypeEnum.FORM_DATA,
|
||||
},
|
||||
isTransformResponse: false,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入人脸
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function personImportFace(data: PerssonImportParam) {
|
||||
return requestClient.post<{ code: number; msg: string }>(
|
||||
'/property/person/importFace',
|
||||
data,
|
||||
{
|
||||
headers: {
|
||||
'Content-Type': ContentTypeEnum.FORM_DATA,
|
||||
},
|
||||
isTransformResponse: false,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 下载用户导入模板
|
||||
* @returns blob
|
||||
*/
|
||||
export function downloadImportTemplate() {
|
||||
return requestClient.post<Blob>(
|
||||
'/property/person/importTemplate',
|
||||
{},
|
||||
{
|
||||
isTransformResponse: false,
|
||||
responseType: 'blob',
|
||||
},
|
||||
);
|
||||
}
|
||||
|
@@ -1,70 +1,89 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
import type { PageQuery, BaseEntity } from '#/api/common'
|
||||
|
||||
export interface PersonVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
id: string | number
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId: string | number;
|
||||
userId: string | number
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
userName: string;
|
||||
userName: string
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
phone: string;
|
||||
phone: string
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
gender: number;
|
||||
gender: string | number
|
||||
|
||||
/**
|
||||
* 人脸图片
|
||||
*/
|
||||
img: string;
|
||||
img: string
|
||||
|
||||
imgPath?: string
|
||||
|
||||
/**
|
||||
* 所属单位id
|
||||
*/
|
||||
unitId: string | number;
|
||||
unitId: string | number
|
||||
|
||||
/**
|
||||
* 所属单位名称
|
||||
*/
|
||||
unitName: string;
|
||||
unitName: string
|
||||
|
||||
/**
|
||||
* 入驻位置
|
||||
*/
|
||||
locathon: string;
|
||||
locathon: string
|
||||
|
||||
/**
|
||||
* 入驻时间
|
||||
*/
|
||||
time: string;
|
||||
time: string
|
||||
|
||||
/**
|
||||
* 车牌号码
|
||||
*/
|
||||
carNumber: string;
|
||||
carNumber: string
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state: number|string;
|
||||
state: number | string
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
remark: string
|
||||
|
||||
/**
|
||||
* 权限组id
|
||||
*/
|
||||
authGroupId?: string | number
|
||||
|
||||
authBegDate?: string
|
||||
|
||||
authEndDate?: string
|
||||
|
||||
authTime: any[]
|
||||
|
||||
rosterType?: string | number
|
||||
|
||||
email?: string
|
||||
|
||||
idCard?: string
|
||||
|
||||
}
|
||||
|
||||
@@ -72,196 +91,219 @@ export interface PersonForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
id?: string | number
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId?: string | number;
|
||||
userId?: string | number
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
userName?: string;
|
||||
userName?: string
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
phone?: string;
|
||||
phone?: string
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
gender?: number;
|
||||
gender?: number
|
||||
|
||||
/**
|
||||
* 人脸图片
|
||||
*/
|
||||
img?: string;
|
||||
img?: string
|
||||
|
||||
/**
|
||||
* 所属单位id
|
||||
*/
|
||||
unitId?: string | number;
|
||||
unitId?: string | number
|
||||
|
||||
/**
|
||||
* 所属单位名称
|
||||
*/
|
||||
unitName?: string;
|
||||
unitName?: string
|
||||
|
||||
/**
|
||||
* 入驻位置
|
||||
*/
|
||||
locathon?: string;
|
||||
locathon?: string
|
||||
|
||||
/**
|
||||
* 入驻时间
|
||||
*/
|
||||
time?: string;
|
||||
time?: string
|
||||
|
||||
/**
|
||||
* 车牌号码
|
||||
*/
|
||||
carNumber?: string;
|
||||
carNumber?: string
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: number;
|
||||
state?: number
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
remark?: string
|
||||
|
||||
/**
|
||||
* 权限组id
|
||||
*/
|
||||
authGroupId?: string | number
|
||||
|
||||
authBegDate?: string
|
||||
|
||||
authEndDate?: string
|
||||
}
|
||||
|
||||
export interface PersonQuery extends PageQuery {
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId?: string | number;
|
||||
userId?: string | number
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
userName?: string;
|
||||
userName?: string
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
phone?: string;
|
||||
phone?: string
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
gender?: number;
|
||||
gender?: number
|
||||
|
||||
/**
|
||||
* 人脸图片
|
||||
*/
|
||||
img?: string;
|
||||
img?: string
|
||||
|
||||
/**
|
||||
* 所属单位id
|
||||
*/
|
||||
unitId?: string | number;
|
||||
unitId?: string | number
|
||||
|
||||
/**
|
||||
* 所属单位名称
|
||||
*/
|
||||
unitName?: string;
|
||||
unitName?: string
|
||||
|
||||
/**
|
||||
* 入驻位置
|
||||
*/
|
||||
locathon?: string;
|
||||
locathon?: string
|
||||
|
||||
/**
|
||||
* 入驻时间
|
||||
*/
|
||||
time?: string;
|
||||
time?: string
|
||||
|
||||
/**
|
||||
* 车牌号码
|
||||
*/
|
||||
carNumber?: string;
|
||||
carNumber?: string
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: number;
|
||||
state?: number
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
params?: any
|
||||
}
|
||||
|
||||
export interface Person extends BaseEntity{
|
||||
export interface Person extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
id: string | number
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId: string | number;
|
||||
userId: string | number
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
userName: string;
|
||||
userName: string
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
phone: string;
|
||||
phone: string
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
gender: number;
|
||||
gender: number
|
||||
|
||||
/**
|
||||
* 人脸图片
|
||||
*/
|
||||
img: string;
|
||||
img: string
|
||||
|
||||
/**
|
||||
* 所属单位id
|
||||
*/
|
||||
unitId: string | number;
|
||||
unitId: string | number
|
||||
|
||||
/**
|
||||
* 所属单位名称
|
||||
*/
|
||||
unitName: string;
|
||||
unitName: string
|
||||
|
||||
/**
|
||||
* 入驻位置
|
||||
*/
|
||||
locathon: string;
|
||||
locathon: string
|
||||
|
||||
/**
|
||||
* 入驻时间
|
||||
*/
|
||||
time: string;
|
||||
time: string
|
||||
|
||||
/**
|
||||
* 车牌号码
|
||||
*/
|
||||
carNumber: string;
|
||||
carNumber: string
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state: number;
|
||||
state: number
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
remark: string
|
||||
|
||||
idCard: string
|
||||
|
||||
email: string
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 用户导入
|
||||
* @param updateSupport 是否覆盖数据
|
||||
* @param unitId 单位Id
|
||||
* @param file excel文件
|
||||
*/
|
||||
export interface PerssonImportParam {
|
||||
updateSupport: boolean
|
||||
unitId: number
|
||||
file: Blob | File
|
||||
}
|
||||
|
@@ -35,6 +35,7 @@ export interface Resident_unitVO {
|
||||
* 入驻位置
|
||||
*/
|
||||
location: string;
|
||||
locations: string[];
|
||||
|
||||
/**
|
||||
* 入驻时间
|
||||
@@ -56,6 +57,19 @@ export interface Resident_unitVO {
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 权限组id
|
||||
*/
|
||||
authGroupId?: string | number;
|
||||
|
||||
/**
|
||||
* 权限组名称
|
||||
*/
|
||||
authGroupName?: string;
|
||||
// 授权期限
|
||||
authBegDate?:string;//开始
|
||||
authEndDate?:string;//结束
|
||||
|
||||
}
|
||||
|
||||
export interface Resident_unitForm extends BaseEntity {
|
||||
|
15
apps/web-antd/src/api/property/room/model.d.ts
vendored
15
apps/web-antd/src/api/property/room/model.d.ts
vendored
@@ -2,7 +2,7 @@ import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface RoomVO {
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
@@ -19,13 +19,18 @@ export interface RoomVO {
|
||||
/**
|
||||
* 房间类型('住宅','商铺','办公室','设备间','公共区域')
|
||||
*/
|
||||
roomType: number;
|
||||
roomType: string;
|
||||
|
||||
/**
|
||||
* 面积(平方米)
|
||||
* 建筑面积(平方米)
|
||||
*/
|
||||
area: number;
|
||||
|
||||
/**
|
||||
* 套内面积(平方米)
|
||||
*/
|
||||
insideInArea: number;
|
||||
|
||||
/**
|
||||
* 户型(如2室1厅1卫)
|
||||
*/
|
||||
@@ -44,13 +49,13 @@ export interface RoomVO {
|
||||
/**
|
||||
* 状态('空置','已售','已租','自用')
|
||||
*/
|
||||
status: number;
|
||||
status: string;
|
||||
|
||||
}
|
||||
|
||||
export interface RoomForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
|
@@ -40,6 +40,10 @@ export interface AttachVO {
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
|
||||
quantity: number;
|
||||
|
||||
meetAttachId: string;
|
||||
}
|
||||
|
||||
export interface AttachForm extends BaseEntity {
|
||||
|
@@ -61,5 +61,5 @@ export function meetRemove(id: ID | IDS) {
|
||||
}
|
||||
|
||||
export function notlist(params?: MeetBo) {
|
||||
return requestClient.get<PageResult<MeetVO>>('/property/meet/notlist', { params });
|
||||
return requestClient.get<MeetVO[]>('/property/meet/notlist', { params });
|
||||
}
|
||||
|
@@ -67,6 +67,29 @@ export interface MeetVO {
|
||||
* 图片
|
||||
*/
|
||||
picture: string;
|
||||
|
||||
pictureArr: string[];
|
||||
/**
|
||||
* 开放时段开始时间
|
||||
*/
|
||||
openStartHours: string;
|
||||
/**
|
||||
* 开放时段结束时间
|
||||
*/
|
||||
openEndHours: string;
|
||||
|
||||
/**
|
||||
* 会议室类型
|
||||
*/
|
||||
meetingRoomType: string;
|
||||
/**
|
||||
* 位置
|
||||
*/
|
||||
locationName: string;
|
||||
/**
|
||||
* 负责人
|
||||
*/
|
||||
principalsName: string;
|
||||
}
|
||||
|
||||
export interface MeetForm extends BaseEntity {
|
||||
@@ -153,6 +176,17 @@ export interface MeetForm extends BaseEntity {
|
||||
*/
|
||||
picture: string;
|
||||
|
||||
pictureArr: string[];
|
||||
|
||||
/**
|
||||
* 开放时段开始时间
|
||||
*/
|
||||
openStartHours: string;
|
||||
/**
|
||||
* 开放时段结束时间
|
||||
*/
|
||||
openEndHours: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MeetQuery extends PageQuery {
|
||||
@@ -240,7 +274,7 @@ export interface MeetQuery extends PageQuery {
|
||||
picture: string;
|
||||
}
|
||||
|
||||
export interface conferenceSettingsDetail extends BaseEntity {
|
||||
export interface ConferenceSettingsDetail{
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@@ -329,6 +363,16 @@ export interface conferenceSettingsDetail extends BaseEntity {
|
||||
* 图片
|
||||
*/
|
||||
picture: string;
|
||||
|
||||
/**
|
||||
* 开放时段开始时间
|
||||
*/
|
||||
openStartHours: string;
|
||||
/**
|
||||
* 开放时段结束时间
|
||||
*/
|
||||
openEndHours: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MeetBo{
|
||||
|
@@ -1,4 +1,9 @@
|
||||
import type { RoomBookingVO, RoomBookingForm, RoomBookingQuery,GetMeetNameVO } from './model';
|
||||
import type {
|
||||
RoomBookingVO,
|
||||
RoomBookingForm,
|
||||
RoomBookingQuery,
|
||||
GetMeetNameVO,
|
||||
} from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
@@ -7,21 +12,26 @@ import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询会议室名称列表
|
||||
* @param getMeetName 后端约定传'getMeetName'
|
||||
* @returns 会议室名称列表
|
||||
*/
|
||||
* 查询会议室名称列表
|
||||
* @param getMeetName 后端约定传'getMeetName'
|
||||
* @returns 会议室名称列表
|
||||
*/
|
||||
export function getMeetName() {
|
||||
return requestClient.get<PageResult<GetMeetNameVO>>(`/property/enum-fetcher/enum-values/${'getMeetName'}`);
|
||||
return requestClient.get<GetMeetNameVO[]>(
|
||||
`/property/enum-fetcher/enum-values/${'getMeetName'}`,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询会议管理列表
|
||||
* @param params
|
||||
* @returns 会议管理列表
|
||||
*/
|
||||
* 查询会议管理列表
|
||||
* @param params
|
||||
* @returns 会议管理列表
|
||||
*/
|
||||
export function roomBookingList(params?: RoomBookingQuery) {
|
||||
return requestClient.get<PageResult<RoomBookingVO>>('/property/roomBooking/list', { params });
|
||||
return requestClient.get<PageResult<RoomBookingVO>>(
|
||||
'/property/roomBooking/list',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -69,10 +79,15 @@ export function roomBookingRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/roomBooking/${id}`);
|
||||
}
|
||||
/**
|
||||
* 按照日期查询已预约会议预约记录列表
|
||||
* @param params
|
||||
* @returns 会议预约列表
|
||||
*/
|
||||
export function meetbookingAppointmentList(params?: MeetbookingAppointmentQuery) {
|
||||
return requestClient.get<PageResult<MeetbookingVO>>('/property/meetbooking/appointment-list', { params });
|
||||
}
|
||||
* 按照日期查询已预约会议预约记录列表
|
||||
* @param params
|
||||
* @returns 会议预约列表
|
||||
*/
|
||||
export function meetbookingAppointmentList(
|
||||
params?: MeetbookingAppointmentQuery,
|
||||
) {
|
||||
return requestClient.get<PageResult<MeetbookingVO>>(
|
||||
'/property/meetbooking/appointment-list',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
@@ -70,6 +70,10 @@ export interface VisitorManagementVO {
|
||||
* 预约状态(0:待确认,1:已确认,2:已取消,3:已完成)
|
||||
*/
|
||||
serveStatus: number;
|
||||
/**
|
||||
* 身份证号
|
||||
*/
|
||||
idCard: string;
|
||||
}
|
||||
|
||||
export interface VisitorManagementForm extends BaseEntity {
|
||||
|
@@ -240,6 +240,10 @@ function createRequestClient(baseURL: string) {
|
||||
// 不再执行下面逻辑
|
||||
throw new Error(_msg);
|
||||
}
|
||||
case 403: {
|
||||
window.location.href = msg;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (msg) {
|
||||
timeoutMsg = msg;
|
||||
|
@@ -2,12 +2,12 @@ import type {
|
||||
AccessControlForm,
|
||||
AccessControlQuery,
|
||||
AccessControlVO,
|
||||
} from './model'
|
||||
} from './model';
|
||||
|
||||
import type { ID, IDS, PageResult, TreeNode } from '#/api/common'
|
||||
import type { ID, IDS, PageResult, TreeNode } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper'
|
||||
import { requestClient } from '#/api/request'
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询门禁管理列表
|
||||
@@ -18,7 +18,7 @@ export function accessControlList(params?: AccessControlQuery) {
|
||||
return requestClient.get<PageResult<AccessControlVO>>(
|
||||
'/sis/accessControl/list',
|
||||
{ params },
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -27,7 +27,7 @@ export function accessControlList(params?: AccessControlQuery) {
|
||||
* @returns 门禁管理列表
|
||||
*/
|
||||
export function accessControlExport(params?: AccessControlQuery) {
|
||||
return commonExport('/sis/accessControl/export', params ?? {})
|
||||
return commonExport('/sis/accessControl/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -36,7 +36,7 @@ export function accessControlExport(params?: AccessControlQuery) {
|
||||
* @returns 门禁管理详情
|
||||
*/
|
||||
export function accessControlInfo(id: ID) {
|
||||
return requestClient.get<AccessControlVO>(`/sis/accessControl/${id}`)
|
||||
return requestClient.get<AccessControlVO>(`/sis/accessControl/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -45,7 +45,7 @@ export function accessControlInfo(id: ID) {
|
||||
* @returns void
|
||||
*/
|
||||
export function accessControlAdd(data: AccessControlForm) {
|
||||
return requestClient.postWithMsg<void>('/sis/accessControl', data)
|
||||
return requestClient.postWithMsg<void>('/sis/accessControl', data);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -54,7 +54,7 @@ export function accessControlAdd(data: AccessControlForm) {
|
||||
* @returns void
|
||||
*/
|
||||
export function accessControlUpdate(data: AccessControlForm) {
|
||||
return requestClient.putWithMsg<void>('/sis/accessControl', data)
|
||||
return requestClient.putWithMsg<void>('/sis/accessControl', data);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -63,7 +63,7 @@ export function accessControlUpdate(data: AccessControlForm) {
|
||||
* @returns void
|
||||
*/
|
||||
export function accessControlRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/sis/accessControl/${id}`)
|
||||
return requestClient.deleteWithMsg<void>(`/sis/accessControl/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -71,7 +71,7 @@ export function accessControlRemove(id: ID | IDS) {
|
||||
* @returns void
|
||||
*/
|
||||
export function queryTree() {
|
||||
return requestClient.get<TreeNode<Number>[]>(`/sis/accessControl/tree`)
|
||||
return requestClient.get<TreeNode<Number>[]>(`/sis/accessControl/tree`);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -79,5 +79,12 @@ export function queryTree() {
|
||||
* @returns void
|
||||
*/
|
||||
export function accessControlSync() {
|
||||
return requestClient.get<void>(`/sis/accessControl/sync`)
|
||||
return requestClient.get<void>(`/sis/accessControl/sync`);
|
||||
}
|
||||
|
||||
export function remoteOpenDoor(params: any) {
|
||||
return requestClient.post<void>(
|
||||
`/sis/accessControl/e8/remoteOpenDoor`,
|
||||
params,
|
||||
);
|
||||
}
|
||||
|
77
apps/web-antd/src/api/sis/alarmEventAttachments/index.ts
Normal file
77
apps/web-antd/src/api/sis/alarmEventAttachments/index.ts
Normal file
@@ -0,0 +1,77 @@
|
||||
import type {
|
||||
AlarmEventAttachmentsForm,
|
||||
AlarmEventAttachmentsQuery,
|
||||
AlarmEventAttachmentsVO,
|
||||
} from './model';
|
||||
|
||||
import type { ID, IDS, PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
* @param params
|
||||
* @returns 【请填写功能名称】列表
|
||||
*/
|
||||
export function alarmEventAttachmentsList(params?: AlarmEventAttachmentsQuery) {
|
||||
return requestClient.get<PageResult<AlarmEventAttachmentsVO>>(
|
||||
'/sis/alarmEventAttachments/list',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
export function queryAlarmEventAttachmentsList(id: ID) {
|
||||
return requestClient.get<AlarmEventAttachmentsVO[]>(
|
||||
'/sis/alarmEventAttachments/query/' + id,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出【请填写功能名称】列表
|
||||
* @param params
|
||||
* @returns 【请填写功能名称】列表
|
||||
*/
|
||||
export function alarmEventAttachmentsExport(
|
||||
params?: AlarmEventAttachmentsQuery,
|
||||
) {
|
||||
return commonExport('/sis/alarmEventAttachments/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】详情
|
||||
* @param id id
|
||||
* @returns 【请填写功能名称】详情
|
||||
*/
|
||||
export function alarmEventAttachmentsInfo(id: ID) {
|
||||
return requestClient.get<AlarmEventAttachmentsVO>(
|
||||
`/sis/alarmEventAttachments/${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function alarmEventAttachmentsAdd(data: AlarmEventAttachmentsForm) {
|
||||
return requestClient.postWithMsg<void>('/sis/alarmEventAttachments', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新【请填写功能名称】
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function alarmEventAttachmentsUpdate(data: AlarmEventAttachmentsForm) {
|
||||
return requestClient.putWithMsg<void>('/sis/alarmEventAttachments', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function alarmEventAttachmentsRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/sis/alarmEventAttachments/${id}`);
|
||||
}
|
71
apps/web-antd/src/api/sis/alarmEventAttachments/model.d.ts
vendored
Normal file
71
apps/web-antd/src/api/sis/alarmEventAttachments/model.d.ts
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface AlarmEventAttachmentsVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 事件id
|
||||
*/
|
||||
eventId: string | number;
|
||||
|
||||
/**
|
||||
* 时间图片id
|
||||
*/
|
||||
ossId: string | number;
|
||||
|
||||
imagePath: string;
|
||||
|
||||
/**
|
||||
* 1:图片,2:文件;3视频
|
||||
*/
|
||||
type: number;
|
||||
|
||||
}
|
||||
|
||||
export interface AlarmEventAttachmentsForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 事件id
|
||||
*/
|
||||
eventId?: string | number;
|
||||
|
||||
/**
|
||||
* 时间图片id
|
||||
*/
|
||||
ossId?: string | number;
|
||||
|
||||
/**
|
||||
* 1:图片,2:文件;3视频
|
||||
*/
|
||||
type?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface AlarmEventAttachmentsQuery extends PageQuery {
|
||||
/**
|
||||
* 事件id
|
||||
*/
|
||||
eventId?: string | number;
|
||||
|
||||
/**
|
||||
* 时间图片id
|
||||
*/
|
||||
ossId?: string | number;
|
||||
|
||||
/**
|
||||
* 1:图片,2:文件;3视频
|
||||
*/
|
||||
type?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
61
apps/web-antd/src/api/sis/alarmEventProcess/index.ts
Normal file
61
apps/web-antd/src/api/sis/alarmEventProcess/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { AlarmEventProcessVO, AlarmEventProcessForm, AlarmEventProcessQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询告警信息处理流程记录列表
|
||||
* @param params
|
||||
* @returns 告警信息处理流程记录列表
|
||||
*/
|
||||
export function alarmEventProcessList(params?: AlarmEventProcessQuery) {
|
||||
return requestClient.get<PageResult<AlarmEventProcessVO>>('/sis/alarmEventProcess/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出告警信息处理流程记录列表
|
||||
* @param params
|
||||
* @returns 告警信息处理流程记录列表
|
||||
*/
|
||||
export function alarmEventProcessExport(params?: AlarmEventProcessQuery) {
|
||||
return commonExport('/sis/alarmEventProcess/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询告警信息处理流程记录详情
|
||||
* @param id id
|
||||
* @returns 告警信息处理流程记录详情
|
||||
*/
|
||||
export function alarmEventProcessInfo(id: ID) {
|
||||
return requestClient.get<AlarmEventProcessVO>(`/sis/alarmEventProcess/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增告警信息处理流程记录
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function alarmEventProcessAdd(data: AlarmEventProcessForm) {
|
||||
return requestClient.postWithMsg<void>('/sis/alarmEventProcess', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新告警信息处理流程记录
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function alarmEventProcessUpdate(data: AlarmEventProcessForm) {
|
||||
return requestClient.putWithMsg<void>('/sis/alarmEventProcess', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除告警信息处理流程记录
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function alarmEventProcessRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/sis/alarmEventProcess/${id}`);
|
||||
}
|
147
apps/web-antd/src/api/sis/alarmEventProcess/model.d.ts
vendored
Normal file
147
apps/web-antd/src/api/sis/alarmEventProcess/model.d.ts
vendored
Normal file
@@ -0,0 +1,147 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface AlarmEventProcessVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 告警记录主键id
|
||||
*/
|
||||
alarmId: string | number;
|
||||
|
||||
/**
|
||||
* 指派人员id
|
||||
*/
|
||||
solveId: string | number;
|
||||
|
||||
/**
|
||||
* 指派人员名称
|
||||
*/
|
||||
solveName: string;
|
||||
|
||||
/**
|
||||
* 工单问题回复内容
|
||||
*/
|
||||
workReply: string;
|
||||
|
||||
/**
|
||||
* 处理时间
|
||||
*/
|
||||
workReplyTime: string;
|
||||
|
||||
/**
|
||||
* 是否已接受任务 0:未接收;1:已接收
|
||||
*/
|
||||
receiveTaskTag: number;
|
||||
|
||||
/**
|
||||
* 10: 已上报待确认
|
||||
20:已确认待处理
|
||||
30: 处理中
|
||||
31:升级-转工单
|
||||
32:升级-协助
|
||||
40:已解决
|
||||
50:已关闭
|
||||
*/
|
||||
state: number;
|
||||
|
||||
}
|
||||
|
||||
export interface AlarmEventProcessForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 告警记录主键id
|
||||
*/
|
||||
alarmId?: string | number;
|
||||
|
||||
/**
|
||||
* 指派人员id
|
||||
*/
|
||||
solveId?: string | number;
|
||||
|
||||
/**
|
||||
* 指派人员名称
|
||||
*/
|
||||
solveName?: string;
|
||||
|
||||
/**
|
||||
* 工单问题回复内容
|
||||
*/
|
||||
workReply?: string;
|
||||
|
||||
/**
|
||||
* 处理时间
|
||||
*/
|
||||
workReplyTime?: string;
|
||||
|
||||
/**
|
||||
* 是否已接受任务 0:未接收;1:已接收
|
||||
*/
|
||||
receiveTaskTag?: number;
|
||||
|
||||
/**
|
||||
* 10: 已上报待确认
|
||||
20:已确认待处理
|
||||
30: 处理中
|
||||
31:升级-转工单
|
||||
32:升级-协助
|
||||
40:已解决
|
||||
50:已关闭
|
||||
*/
|
||||
state?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface AlarmEventProcessQuery extends PageQuery {
|
||||
/**
|
||||
* 告警记录主键id
|
||||
*/
|
||||
alarmId?: string | number;
|
||||
|
||||
/**
|
||||
* 指派人员id
|
||||
*/
|
||||
solveId?: string | number;
|
||||
|
||||
/**
|
||||
* 指派人员名称
|
||||
*/
|
||||
solveName?: string;
|
||||
|
||||
/**
|
||||
* 工单问题回复内容
|
||||
*/
|
||||
workReply?: string;
|
||||
|
||||
/**
|
||||
* 处理时间
|
||||
*/
|
||||
workReplyTime?: string;
|
||||
|
||||
/**
|
||||
* 是否已接受任务 0:未接收;1:已接收
|
||||
*/
|
||||
receiveTaskTag?: number;
|
||||
|
||||
/**
|
||||
* 10: 已上报待确认
|
||||
20:已确认待处理
|
||||
30: 处理中
|
||||
31:升级-转工单
|
||||
32:升级-协助
|
||||
40:已解决
|
||||
50:已关闭
|
||||
*/
|
||||
state?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user