Compare commits
287 Commits
42434c127c
...
prod
Author | SHA1 | Date | |
---|---|---|---|
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 | |||
171ed8a087 |
@@ -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,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');
|
||||
}
|
@@ -1,49 +0,0 @@
|
||||
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
import {PageParam} from "#/api/types";
|
||||
import {PageResult} from "#/api/common";
|
||||
|
||||
export namespace MallBannerApi {
|
||||
/** Banner 信息 */
|
||||
export interface Banner {
|
||||
id: number;
|
||||
title: string;
|
||||
picUrl: string;
|
||||
status: number;
|
||||
url: string;
|
||||
position: number;
|
||||
sort: number;
|
||||
memo: string;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询Banner管理列表 */
|
||||
export function getBannerPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallBannerApi.Banner>>(
|
||||
'/promotion/banner/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询Banner管理详情 */
|
||||
export function getBanner(id: number) {
|
||||
return requestClient.get<MallBannerApi.Banner>(
|
||||
`/promotion/banner/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 新增Banner管理 */
|
||||
export function createBanner(data: MallBannerApi.Banner) {
|
||||
return requestClient.post('/promotion/banner/create', data);
|
||||
}
|
||||
|
||||
/** 修改Banner管理 */
|
||||
export function updateBanner(data: MallBannerApi.Banner) {
|
||||
return requestClient.put('/promotion/banner/update', data);
|
||||
}
|
||||
|
||||
/** 删除Banner管理 */
|
||||
export function deleteBanner(id: number) {
|
||||
return requestClient.delete(`/promotion/banner/delete?id=${id}`);
|
||||
}
|
@@ -1,58 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallBrandApi {
|
||||
/** 商品品牌 */
|
||||
export interface Brand {
|
||||
/** 品牌编号 */
|
||||
id?: number;
|
||||
/** 品牌名称 */
|
||||
name: string;
|
||||
/** 品牌图片 */
|
||||
picUrl: string;
|
||||
/** 品牌排序 */
|
||||
sort?: number;
|
||||
/** 品牌描述 */
|
||||
description?: string;
|
||||
/** 开启状态 */
|
||||
status: number;
|
||||
}
|
||||
}
|
||||
|
||||
/** 创建商品品牌 */
|
||||
export function createBrand(data: MallBrandApi.Brand) {
|
||||
return requestClient.post('/product/brand/create', data);
|
||||
}
|
||||
|
||||
/** 更新商品品牌 */
|
||||
export function updateBrand(data: MallBrandApi.Brand) {
|
||||
return requestClient.put('/product/brand/update', data);
|
||||
}
|
||||
|
||||
/** 删除商品品牌 */
|
||||
export function deleteBrand(id: number) {
|
||||
return requestClient.delete(`/product/brand/delete?id=${id}`);
|
||||
}
|
||||
|
||||
/** 获得商品品牌 */
|
||||
export function getBrand(id: number) {
|
||||
return requestClient.get<MallBrandApi.Brand>(`/product/brand/get?id=${id}`);
|
||||
}
|
||||
|
||||
/** 获得商品品牌列表 */
|
||||
export function getBrandPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallBrandApi.Brand>>(
|
||||
'/product/brand/page',
|
||||
{
|
||||
params,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/** 获得商品品牌精简信息列表 */
|
||||
export function getSimpleBrandList() {
|
||||
return requestClient.get<MallBrandApi.Brand[]>(
|
||||
'/product/brand/list-all-simple',
|
||||
);
|
||||
}
|
@@ -1,51 +0,0 @@
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallCategoryApi {
|
||||
/** 产品分类 */
|
||||
export interface Category {
|
||||
/** 分类编号 */
|
||||
id?: number;
|
||||
/** 父分类编号 */
|
||||
parentId?: number;
|
||||
/** 分类名称 */
|
||||
name: string;
|
||||
/** 移动端分类图 */
|
||||
picUrl: string;
|
||||
/** 分类排序 */
|
||||
sort: number;
|
||||
/** 开启状态 */
|
||||
status: number;
|
||||
}
|
||||
}
|
||||
|
||||
/** 创建商品分类 */
|
||||
export function createCategory(data: MallCategoryApi.Category) {
|
||||
return requestClient.post('/product/category/create', data);
|
||||
}
|
||||
|
||||
/** 更新商品分类 */
|
||||
export function updateCategory(data: MallCategoryApi.Category) {
|
||||
return requestClient.put('/product/category/update', data);
|
||||
}
|
||||
|
||||
/** 删除商品分类 */
|
||||
export function deleteCategory(id: number) {
|
||||
return requestClient.delete(`/product/category/delete?id=${id}`);
|
||||
}
|
||||
|
||||
/** 获得商品分类 */
|
||||
export function getCategory(id: number) {
|
||||
return requestClient.get<MallCategoryApi.Category>(
|
||||
`/product/category/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 获得商品分类列表 */
|
||||
export function getCategoryList(params: any) {
|
||||
return requestClient.get<MallCategoryApi.Category[]>(
|
||||
'/product/category/list',
|
||||
{
|
||||
params,
|
||||
},
|
||||
);
|
||||
}
|
@@ -1,81 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallCommentApi {
|
||||
export interface Property {
|
||||
propertyId: number;
|
||||
propertyName: string;
|
||||
valueId: number;
|
||||
valueName: string;
|
||||
}
|
||||
/** 商品评论 */
|
||||
export interface Comment {
|
||||
id: number;
|
||||
userId: number;
|
||||
userNickname: string;
|
||||
userAvatar: string;
|
||||
anonymous: boolean;
|
||||
orderId: number;
|
||||
orderItemId: number;
|
||||
spuId: number;
|
||||
spuName: string;
|
||||
skuId: number;
|
||||
visible: boolean;
|
||||
scores: number;
|
||||
descriptionScores: number;
|
||||
benefitScores: number;
|
||||
content: string;
|
||||
picUrls: string[];
|
||||
replyStatus: boolean;
|
||||
replyUserId: number;
|
||||
replyContent: string;
|
||||
replyTime: Date;
|
||||
createTime: Date;
|
||||
skuProperties: Property[];
|
||||
}
|
||||
|
||||
/** 评论可见性更新 */
|
||||
export interface CommentVisibleUpdate {
|
||||
id: number;
|
||||
visible: boolean;
|
||||
}
|
||||
|
||||
/** 评论回复 */
|
||||
export interface CommentReply {
|
||||
id: number;
|
||||
replyContent: string;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询商品评论列表 */
|
||||
export function getCommentPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallCommentApi.Comment>>(
|
||||
'/product/comment/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询商品评论详情 */
|
||||
export function getComment(id: number) {
|
||||
return requestClient.get<MallCommentApi.Comment>(
|
||||
`/product/comment/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 添加自评 */
|
||||
export function createComment(data: MallCommentApi.Comment) {
|
||||
return requestClient.post('/product/comment/create', data);
|
||||
}
|
||||
|
||||
/** 显示 / 隐藏评论 */
|
||||
export function updateCommentVisible(
|
||||
data: MallCommentApi.CommentVisibleUpdate,
|
||||
) {
|
||||
return requestClient.put('/product/comment/update-visible', data);
|
||||
}
|
||||
|
||||
/** 商家回复 */
|
||||
export function replyComment(data: MallCommentApi.CommentReply) {
|
||||
return requestClient.put('/product/comment/reply', data);
|
||||
}
|
@@ -1,23 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallFavoriteApi {
|
||||
/** 商品收藏 */
|
||||
export interface Favorite {
|
||||
/** 收藏编号 */
|
||||
id?: number;
|
||||
/** 用户编号 */
|
||||
userId?: string;
|
||||
/** 商品 SPU 编号 */
|
||||
spuId?: null | number;
|
||||
}
|
||||
}
|
||||
|
||||
/** 获得商品收藏列表 */
|
||||
export function getFavoritePage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallFavoriteApi.Favorite>>(
|
||||
'/product/favorite/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
@@ -1,29 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallHistoryApi {
|
||||
/** 商品浏览记录 */
|
||||
export interface BrowseHistory {
|
||||
/** 记录编号 */
|
||||
id?: number;
|
||||
/** 用户编号 */
|
||||
userId?: number;
|
||||
/** 商品 SPU 编号 */
|
||||
spuId?: number;
|
||||
/** 浏览时间 */
|
||||
createTime?: Date;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得商品浏览记录分页
|
||||
*
|
||||
* @param params 请求参数
|
||||
*/
|
||||
export function getBrowseHistoryPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallHistoryApi.BrowseHistory>>(
|
||||
'/product/browse-history/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
@@ -1,111 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallPropertyApi {
|
||||
/** 商品属性 */
|
||||
export interface Property {
|
||||
/** 属性编号 */
|
||||
id?: number;
|
||||
/** 名称 */
|
||||
name: string;
|
||||
/** 备注 */
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
/** 属性值 */
|
||||
export interface PropertyValue {
|
||||
/** 属性值编号 */
|
||||
id?: number;
|
||||
/** 属性项的编号 */
|
||||
propertyId?: number;
|
||||
/** 名称 */
|
||||
name: string;
|
||||
/** 备注 */
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
/** 属性值查询参数 */
|
||||
export interface PropertyValueQuery extends PageParam {
|
||||
propertyId?: number;
|
||||
}
|
||||
}
|
||||
|
||||
/** 创建属性项 */
|
||||
export function createProperty(data: MallPropertyApi.Property) {
|
||||
return requestClient.post('/product/property/create', data);
|
||||
}
|
||||
|
||||
/** 更新属性项 */
|
||||
export function updateProperty(data: MallPropertyApi.Property) {
|
||||
return requestClient.put('/product/property/update', data);
|
||||
}
|
||||
|
||||
/** 删除属性项 */
|
||||
export function deleteProperty(id: number) {
|
||||
return requestClient.delete(`/product/property/delete?id=${id}`);
|
||||
}
|
||||
|
||||
/** 获得属性项 */
|
||||
export function getProperty(id: number) {
|
||||
return requestClient.get<MallPropertyApi.Property>(
|
||||
`/product/property/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 获得属性项分页 */
|
||||
export function getPropertyPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallPropertyApi.Property>>(
|
||||
'/product/property/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 获得属性项精简列表 */
|
||||
export function getPropertySimpleList() {
|
||||
return requestClient.get<MallPropertyApi.Property[]>(
|
||||
'/product/property/simple-list',
|
||||
);
|
||||
}
|
||||
|
||||
/** 获得属性值分页 */
|
||||
export function getPropertyValuePage(
|
||||
params: MallPropertyApi.PropertyValueQuery,
|
||||
) {
|
||||
return requestClient.get<PageResult<MallPropertyApi.PropertyValue>>(
|
||||
'/product/property/value/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 获得属性值 */
|
||||
export function getPropertyValue(id: number) {
|
||||
return requestClient.get<MallPropertyApi.PropertyValue>(
|
||||
`/product/property/value/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 创建属性值 */
|
||||
export function createPropertyValue(data: MallPropertyApi.PropertyValue) {
|
||||
return requestClient.post('/product/property/value/create', data);
|
||||
}
|
||||
|
||||
/** 更新属性值 */
|
||||
export function updatePropertyValue(data: MallPropertyApi.PropertyValue) {
|
||||
return requestClient.put('/product/property/value/update', data);
|
||||
}
|
||||
|
||||
/** 删除属性值 */
|
||||
export function deletePropertyValue(id: number) {
|
||||
return requestClient.delete(`/product/property/value/delete?id=${id}`);
|
||||
}
|
||||
|
||||
/** 获得属性值精简列表 */
|
||||
export function getPropertyValueSimpleList(propertyId: number) {
|
||||
return requestClient.get<MallPropertyApi.PropertyValue[]>(
|
||||
'/product/property/value/simple-list',
|
||||
{
|
||||
params: { propertyId },
|
||||
},
|
||||
);
|
||||
}
|
@@ -1,177 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallSpuApi {
|
||||
/** 商品属性 */
|
||||
export interface Property {
|
||||
/** 属性编号 */
|
||||
propertyId?: number;
|
||||
/** 属性名称 */
|
||||
propertyName?: string;
|
||||
/** 属性值编号 */
|
||||
valueId?: number;
|
||||
/** 属性值名称 */
|
||||
valueName?: string;
|
||||
}
|
||||
|
||||
/** 商品 SKU */
|
||||
export interface Sku {
|
||||
/** 商品 SKU 编号 */
|
||||
id?: number;
|
||||
/** 商品 SKU 名称 */
|
||||
name?: string;
|
||||
/** SPU 编号 */
|
||||
spuId?: number;
|
||||
/** 属性数组 */
|
||||
properties?: Property[];
|
||||
/** 商品价格 */
|
||||
price?: number | string;
|
||||
/** 市场价 */
|
||||
marketPrice?: number | string;
|
||||
/** 成本价 */
|
||||
costPrice?: number | string;
|
||||
/** 商品条码 */
|
||||
barCode?: string;
|
||||
/** 图片地址 */
|
||||
picUrl?: string;
|
||||
/** 库存 */
|
||||
stock?: number;
|
||||
/** 商品重量,单位:kg 千克 */
|
||||
weight?: number;
|
||||
/** 商品体积,单位:m^3 平米 */
|
||||
volume?: number;
|
||||
/** 一级分销的佣金 */
|
||||
firstBrokeragePrice?: number | string;
|
||||
/** 二级分销的佣金 */
|
||||
secondBrokeragePrice?: number | string;
|
||||
/** 商品销量 */
|
||||
salesCount?: number;
|
||||
}
|
||||
|
||||
/** 优惠券模板 */
|
||||
export interface GiveCouponTemplate {
|
||||
/** 优惠券编号 */
|
||||
id?: number;
|
||||
/** 优惠券名称 */
|
||||
name?: string;
|
||||
}
|
||||
|
||||
/** 商品 SPU */
|
||||
export interface Spu {
|
||||
/** 商品编号 */
|
||||
id?: number;
|
||||
/** 商品名称 */
|
||||
name?: string;
|
||||
/** 商品分类 */
|
||||
categoryId?: number;
|
||||
/** 关键字 */
|
||||
keyword?: string;
|
||||
/** 单位 */
|
||||
unit?: number | undefined;
|
||||
/** 商品封面图 */
|
||||
picUrl?: string;
|
||||
/** 商品轮播图 */
|
||||
sliderPicUrls?: string[];
|
||||
/** 商品简介 */
|
||||
introduction?: string;
|
||||
/** 配送方式 */
|
||||
deliveryTypes?: number[];
|
||||
/** 运费模版 */
|
||||
deliveryTemplateId?: number | undefined;
|
||||
/** 商品品牌编号 */
|
||||
brandId?: number;
|
||||
/** 商品规格 */
|
||||
specType?: boolean;
|
||||
/** 分销类型 */
|
||||
subCommissionType?: boolean;
|
||||
/** sku数组 */
|
||||
skus?: Sku[];
|
||||
/** 商品详情 */
|
||||
description?: string;
|
||||
/** 商品排序 */
|
||||
sort?: number;
|
||||
/** 赠送积分 */
|
||||
giveIntegral?: number;
|
||||
/** 虚拟销量 */
|
||||
virtualSalesCount?: number;
|
||||
/** 商品价格 */
|
||||
price?: number;
|
||||
/** 商品拼团价格 */
|
||||
combinationPrice?: number;
|
||||
/** 商品秒杀价格 */
|
||||
seckillPrice?: number;
|
||||
/** 商品销量 */
|
||||
salesCount?: number;
|
||||
/** 市场价 */
|
||||
marketPrice?: number;
|
||||
/** 成本价 */
|
||||
costPrice?: number;
|
||||
/** 商品库存 */
|
||||
stock?: number;
|
||||
/** 商品创建时间 */
|
||||
createTime?: Date;
|
||||
/** 商品状态 */
|
||||
status?: number;
|
||||
}
|
||||
|
||||
/** 商品状态更新 */
|
||||
export interface StatusUpdate {
|
||||
/** 商品编号 */
|
||||
id: number;
|
||||
/** 商品状态 */
|
||||
status: number;
|
||||
}
|
||||
}
|
||||
|
||||
/** 获得商品 SPU 列表 */
|
||||
export function getSpuPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallSpuApi.Spu>>('/product/spu/page', {
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/** 获得商品 SPU 列表 tabsCount */
|
||||
export function getTabsCount() {
|
||||
return requestClient.get<Record<string, number>>('/product/spu/get-count');
|
||||
}
|
||||
|
||||
/** 创建商品 SPU */
|
||||
export function createSpu(data: MallSpuApi.Spu) {
|
||||
return requestClient.post('/product/spu/create', data);
|
||||
}
|
||||
|
||||
/** 更新商品 SPU */
|
||||
export function updateSpu(data: MallSpuApi.Spu) {
|
||||
return requestClient.put('/product/spu/update', data);
|
||||
}
|
||||
|
||||
/** 更新商品 SPU 状态 */
|
||||
export function updateStatus(data: MallSpuApi.StatusUpdate) {
|
||||
return requestClient.put('/product/spu/update-status', data);
|
||||
}
|
||||
|
||||
/** 获得商品 SPU */
|
||||
export function getSpu(id: number) {
|
||||
return requestClient.get<MallSpuApi.Spu>(`/product/spu/get-detail?id=${id}`);
|
||||
}
|
||||
|
||||
/** 获得商品 SPU 详情列表 */
|
||||
export function getSpuDetailList(ids: number[]) {
|
||||
return requestClient.get<MallSpuApi.Spu[]>(`/product/spu/list?spuIds=${ids}`);
|
||||
}
|
||||
|
||||
/** 删除商品 SPU */
|
||||
export function deleteSpu(id: number) {
|
||||
return requestClient.delete(`/product/spu/delete?id=${id}`);
|
||||
}
|
||||
|
||||
/** 导出商品 SPU Excel */
|
||||
export function exportSpu(params: PageParam) {
|
||||
return requestClient.download('/product/spu/export-excel', { params });
|
||||
}
|
||||
|
||||
/** 获得商品 SPU 精简列表 */
|
||||
export function getSpuSimpleList() {
|
||||
return requestClient.get<MallSpuApi.Spu[]>('/product/spu/list-all-simple');
|
||||
}
|
@@ -1,65 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallArticleApi {
|
||||
/** 文章管理 */
|
||||
export interface Article {
|
||||
/** 文章编号 */
|
||||
id: number;
|
||||
/** 分类编号 */
|
||||
categoryId: number;
|
||||
/** 文章标题 */
|
||||
title: string;
|
||||
/** 作者 */
|
||||
author: string;
|
||||
/** 封面图 */
|
||||
picUrl: string;
|
||||
/** 文章简介 */
|
||||
introduction: string;
|
||||
/** 浏览数量 */
|
||||
browseCount: string;
|
||||
/** 排序 */
|
||||
sort: number;
|
||||
/** 状态 */
|
||||
status: number;
|
||||
/** 商品编号 */
|
||||
spuId: number;
|
||||
/** 是否热门 */
|
||||
recommendHot: boolean;
|
||||
/** 是否轮播图 */
|
||||
recommendBanner: boolean;
|
||||
/** 文章内容 */
|
||||
content: string;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询文章管理列表 */
|
||||
export function getArticlePage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallArticleApi.Article>>(
|
||||
'/promotion/article/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询文章管理详情 */
|
||||
export function getArticle(id: number) {
|
||||
return requestClient.get<MallArticleApi.Article>(
|
||||
`/promotion/article/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 新增文章管理 */
|
||||
export function createArticle(data: MallArticleApi.Article) {
|
||||
return requestClient.post('/promotion/article/create', data);
|
||||
}
|
||||
|
||||
/** 修改文章管理 */
|
||||
export function updateArticle(data: MallArticleApi.Article) {
|
||||
return requestClient.put('/promotion/article/update', data);
|
||||
}
|
||||
|
||||
/** 删除文章管理 */
|
||||
export function deleteArticle(id: number) {
|
||||
return requestClient.delete(`/promotion/article/delete?id=${id}`);
|
||||
}
|
@@ -1,60 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallArticleCategoryApi {
|
||||
/** 文章分类 */
|
||||
export interface ArticleCategory {
|
||||
/** 分类编号 */
|
||||
id: number;
|
||||
/** 分类名称 */
|
||||
name: string;
|
||||
/** 分类图片 */
|
||||
picUrl: string;
|
||||
/** 状态 */
|
||||
status: number;
|
||||
/** 排序 */
|
||||
sort: number;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询文章分类列表 */
|
||||
export function getArticleCategoryPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallArticleCategoryApi.ArticleCategory>>(
|
||||
'/promotion/article-category/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询文章分类精简信息列表 */
|
||||
export function getSimpleArticleCategoryList() {
|
||||
return requestClient.get<MallArticleCategoryApi.ArticleCategory[]>(
|
||||
'/promotion/article-category/list-all-simple',
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询文章分类详情 */
|
||||
export function getArticleCategory(id: number) {
|
||||
return requestClient.get<MallArticleCategoryApi.ArticleCategory>(
|
||||
`/promotion/article-category/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 新增文章分类 */
|
||||
export function createArticleCategory(
|
||||
data: MallArticleCategoryApi.ArticleCategory,
|
||||
) {
|
||||
return requestClient.post('/promotion/article-category/create', data);
|
||||
}
|
||||
|
||||
/** 修改文章分类 */
|
||||
export function updateArticleCategory(
|
||||
data: MallArticleCategoryApi.ArticleCategory,
|
||||
) {
|
||||
return requestClient.put('/promotion/article-category/update', data);
|
||||
}
|
||||
|
||||
/** 删除文章分类 */
|
||||
export function deleteArticleCategory(id: number) {
|
||||
return requestClient.delete(`/promotion/article-category/delete?id=${id}`);
|
||||
}
|
@@ -1,106 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import type { MallSpuApi } from '#/api/mall/product/spu';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallBargainActivityApi {
|
||||
/** 砍价活动 */
|
||||
export interface BargainActivity {
|
||||
/** 活动编号 */
|
||||
id?: number;
|
||||
/** 活动名称 */
|
||||
name?: string;
|
||||
/** 开始时间 */
|
||||
startTime?: Date;
|
||||
/** 结束时间 */
|
||||
endTime?: Date;
|
||||
/** 状态 */
|
||||
status?: number;
|
||||
/** 达到该人数,才能砍到低价 */
|
||||
helpMaxCount?: number;
|
||||
/** 最大帮砍次数 */
|
||||
bargainCount?: number;
|
||||
/** 最大购买次数 */
|
||||
totalLimitCount?: number;
|
||||
/** 商品 SPU 编号 */
|
||||
spuId: number;
|
||||
/** 商品 SKU 编号 */
|
||||
skuId: number;
|
||||
/** 砍价起始价格,单位分 */
|
||||
bargainFirstPrice: number;
|
||||
/** 砍价底价 */
|
||||
bargainMinPrice: number;
|
||||
/** 活动库存 */
|
||||
stock: number;
|
||||
/** 用户每次砍价的最小金额,单位:分 */
|
||||
randomMinPrice?: number;
|
||||
/** 用户每次砍价的最大金额,单位:分 */
|
||||
randomMaxPrice?: number;
|
||||
}
|
||||
|
||||
/** 砍价活动所需属性。选择的商品和属性的时候使用方便使用活动的通用封装 */
|
||||
export interface BargainProduct {
|
||||
/** 商品 SPU 编号 */
|
||||
spuId: number;
|
||||
/** 商品 SKU 编号 */
|
||||
skuId: number;
|
||||
/** 砍价起始价格,单位分 */
|
||||
bargainFirstPrice: number;
|
||||
/** 砍价底价 */
|
||||
bargainMinPrice: number;
|
||||
/** 活动库存 */
|
||||
stock: number;
|
||||
}
|
||||
|
||||
/** 扩展 SKU 配置 */
|
||||
export type SkuExtension = {
|
||||
/** 砍价活动配置 */
|
||||
productConfig: BargainProduct;
|
||||
} & MallSpuApi.Sku;
|
||||
|
||||
/** 扩展 SPU 配置 */
|
||||
export interface SpuExtension extends MallSpuApi.Spu {
|
||||
/** SKU 列表 */
|
||||
skus: SkuExtension[];
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询砍价活动列表 */
|
||||
export function getBargainActivityPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallBargainActivityApi.BargainActivity>>(
|
||||
'/promotion/bargain-activity/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询砍价活动详情 */
|
||||
export function getBargainActivity(id: number) {
|
||||
return requestClient.get<MallBargainActivityApi.BargainActivity>(
|
||||
`/promotion/bargain-activity/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 新增砍价活动 */
|
||||
export function createBargainActivity(
|
||||
data: MallBargainActivityApi.BargainActivity,
|
||||
) {
|
||||
return requestClient.post('/promotion/bargain-activity/create', data);
|
||||
}
|
||||
|
||||
/** 修改砍价活动 */
|
||||
export function updateBargainActivity(
|
||||
data: MallBargainActivityApi.BargainActivity,
|
||||
) {
|
||||
return requestClient.put('/promotion/bargain-activity/update', data);
|
||||
}
|
||||
|
||||
/** 关闭砍价活动 */
|
||||
export function closeBargainActivity(id: number) {
|
||||
return requestClient.put(`/promotion/bargain-activity/close?id=${id}`);
|
||||
}
|
||||
|
||||
/** 删除砍价活动 */
|
||||
export function deleteBargainActivity(id: number) {
|
||||
return requestClient.delete(`/promotion/bargain-activity/delete?id=${id}`);
|
||||
}
|
@@ -1,27 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallBargainHelpApi {
|
||||
/** 砍价记录 */
|
||||
export interface BargainHelp {
|
||||
/** 记录编号 */
|
||||
id: number;
|
||||
/** 砍价记录编号 */
|
||||
record: number;
|
||||
/** 用户编号 */
|
||||
userId: number;
|
||||
/** 砍掉金额 */
|
||||
reducePrice: number;
|
||||
/** 结束时间 */
|
||||
endTime: Date;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询砍价记录列表 */
|
||||
export function getBargainHelpPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallBargainHelpApi.BargainHelp>>(
|
||||
'/promotion/bargain-help/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
@@ -1,37 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallBargainRecordApi {
|
||||
/** 砍价记录 */
|
||||
export interface BargainRecord {
|
||||
/** 记录编号 */
|
||||
id: number;
|
||||
/** 活动编号 */
|
||||
activityId: number;
|
||||
/** 用户编号 */
|
||||
userId: number;
|
||||
/** 商品 SPU 编号 */
|
||||
spuId: number;
|
||||
/** 商品 SKU 编号 */
|
||||
skuId: number;
|
||||
/** 砍价起始价格 */
|
||||
bargainFirstPrice: number;
|
||||
/** 砍价价格 */
|
||||
bargainPrice: number;
|
||||
/** 状态 */
|
||||
status: number;
|
||||
/** 订单编号 */
|
||||
orderId: number;
|
||||
/** 结束时间 */
|
||||
endTime: Date;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询砍价记录列表 */
|
||||
export function getBargainRecordPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallBargainRecordApi.BargainRecord>>(
|
||||
'/promotion/bargain-record/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
@@ -1,111 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import type { MallSpuApi } from '#/api/mall/product/spu';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallCombinationActivityApi {
|
||||
/** 拼团活动所需属性 */
|
||||
export interface CombinationProduct {
|
||||
/** 商品 SPU 编号 */
|
||||
spuId: number;
|
||||
/** 商品 SKU 编号 */
|
||||
skuId: number;
|
||||
/** 拼团价格 */
|
||||
combinationPrice: number;
|
||||
}
|
||||
/** 拼团活动 */
|
||||
export interface CombinationActivity {
|
||||
/** 活动编号 */
|
||||
id?: number;
|
||||
/** 活动名称 */
|
||||
name?: string;
|
||||
/** 商品 SPU 编号 */
|
||||
spuId?: number;
|
||||
/** 总限购数量 */
|
||||
totalLimitCount?: number;
|
||||
/** 单次限购数量 */
|
||||
singleLimitCount?: number;
|
||||
/** 开始时间 */
|
||||
startTime?: Date;
|
||||
/** 结束时间 */
|
||||
endTime?: Date;
|
||||
/** 用户数量 */
|
||||
userSize?: number;
|
||||
/** 总数量 */
|
||||
totalCount?: number;
|
||||
/** 成功数量 */
|
||||
successCount?: number;
|
||||
/** 订单用户数量 */
|
||||
orderUserCount?: number;
|
||||
/** 虚拟成团 */
|
||||
virtualGroup?: number;
|
||||
/** 状态 */
|
||||
status?: number;
|
||||
/** 限制时长 */
|
||||
limitDuration?: number;
|
||||
/** 拼团价格 */
|
||||
combinationPrice?: number;
|
||||
/** 商品列表 */
|
||||
products: CombinationProduct[];
|
||||
}
|
||||
|
||||
/** 扩展 SKU 配置 */
|
||||
export type SkuExtension = {
|
||||
/** 拼团活动配置 */
|
||||
productConfig: CombinationProduct;
|
||||
} & MallSpuApi.Sku;
|
||||
|
||||
/** 扩展 SPU 配置 */
|
||||
export interface SpuExtension extends MallSpuApi.Spu {
|
||||
/** SKU 列表 */
|
||||
skus: SkuExtension[];
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询拼团活动列表 */
|
||||
export function getCombinationActivityPage(params: PageParam) {
|
||||
return requestClient.get<
|
||||
PageResult<MallCombinationActivityApi.CombinationActivity>
|
||||
>('/promotion/combination-activity/page', { params });
|
||||
}
|
||||
|
||||
/** 查询拼团活动详情 */
|
||||
export function getCombinationActivity(id: number) {
|
||||
return requestClient.get<MallCombinationActivityApi.CombinationActivity>(
|
||||
`/promotion/combination-activity/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 获得拼团活动列表,基于活动编号数组 */
|
||||
export function getCombinationActivityListByIds(ids: number[]) {
|
||||
return requestClient.get<MallCombinationActivityApi.CombinationActivity[]>(
|
||||
`/promotion/combination-activity/list-by-ids?ids=${ids}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 新增拼团活动 */
|
||||
export function createCombinationActivity(
|
||||
data: MallCombinationActivityApi.CombinationActivity,
|
||||
) {
|
||||
return requestClient.post('/promotion/combination-activity/create', data);
|
||||
}
|
||||
|
||||
/** 修改拼团活动 */
|
||||
export function updateCombinationActivity(
|
||||
data: MallCombinationActivityApi.CombinationActivity,
|
||||
) {
|
||||
return requestClient.put('/promotion/combination-activity/update', data);
|
||||
}
|
||||
|
||||
/** 关闭拼团活动 */
|
||||
export function closeCombinationActivity(id: number) {
|
||||
return requestClient.put(`/promotion/combination-activity/close?id=${id}`);
|
||||
}
|
||||
|
||||
/** 删除拼团活动 */
|
||||
export function deleteCombinationActivity(id: number) {
|
||||
return requestClient.delete(
|
||||
`/promotion/combination-activity/delete?id=${id}`,
|
||||
);
|
||||
}
|
@@ -1,61 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallCombinationRecordApi {
|
||||
/** 拼团记录 */
|
||||
export interface CombinationRecord {
|
||||
/** 拼团记录编号 */
|
||||
id: number;
|
||||
/** 拼团活动编号 */
|
||||
activityId: number;
|
||||
/** 用户昵称 */
|
||||
nickname: string;
|
||||
/** 用户头像 */
|
||||
avatar: string;
|
||||
/** 团长编号 */
|
||||
headId: number;
|
||||
/** 过期时间 */
|
||||
expireTime: string;
|
||||
/** 可参团人数 */
|
||||
userSize: number;
|
||||
/** 已参团人数 */
|
||||
userCount: number;
|
||||
/** 拼团状态 */
|
||||
status: number;
|
||||
/** 商品名字 */
|
||||
spuName: string;
|
||||
/** 商品图片 */
|
||||
picUrl: string;
|
||||
/** 是否虚拟成团 */
|
||||
virtualGroup: boolean;
|
||||
/** 开始时间 (订单付款后开始的时间) */
|
||||
startTime: string;
|
||||
/** 结束时间(成团时间/失败时间) */
|
||||
endTime: string;
|
||||
}
|
||||
|
||||
/** 拼团记录概要信息 */
|
||||
export interface RecordSummary {
|
||||
/** 待成团数量 */
|
||||
pendingCount: number;
|
||||
/** 已成团数量 */
|
||||
successCount: number;
|
||||
/** 已失败数量 */
|
||||
failCount: number;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询拼团记录列表 */
|
||||
export function getCombinationRecordPage(params: PageParam) {
|
||||
return requestClient.get<
|
||||
PageResult<MallCombinationRecordApi.CombinationRecord>
|
||||
>('/promotion/combination-record/page', { params });
|
||||
}
|
||||
|
||||
/** 获得拼团记录的概要信息 */
|
||||
export function getCombinationRecordSummary() {
|
||||
return requestClient.get<MallCombinationRecordApi.RecordSummary>(
|
||||
'/promotion/combination-record/get-summary',
|
||||
);
|
||||
}
|
@@ -1,67 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallCouponApi {
|
||||
/** 优惠券 */
|
||||
export interface Coupon {
|
||||
/** 优惠券编号 */
|
||||
id: number;
|
||||
/** 优惠券名称 */
|
||||
name: string;
|
||||
/** 优惠券状态 */
|
||||
status: number;
|
||||
/** 优惠券类型 */
|
||||
type: number;
|
||||
/** 优惠券金额 */
|
||||
price: number;
|
||||
/** 使用门槛 */
|
||||
usePrice: number;
|
||||
/** 商品范围 */
|
||||
productScope: number;
|
||||
/** 商品编号数组 */
|
||||
productSpuIds: number[];
|
||||
/** 有效期类型 */
|
||||
validityType: number;
|
||||
/** 固定日期-生效开始时间 */
|
||||
validStartTime: Date;
|
||||
/** 固定日期-生效结束时间 */
|
||||
validEndTime: Date;
|
||||
/** 领取日期-开始天数 */
|
||||
fixedStartTerm: number;
|
||||
/** 领取日期-结束天数 */
|
||||
fixedEndTerm: number;
|
||||
/** 每人限领个数 */
|
||||
takeLimitCount: number;
|
||||
/** 是否设置满多少金额可用 */
|
||||
usePriceEnabled: boolean;
|
||||
/** 商品分类编号数组 */
|
||||
productCategoryIds: number[];
|
||||
}
|
||||
|
||||
/** 发送优惠券 */
|
||||
export interface SendCoupon {
|
||||
/** 优惠券编号 */
|
||||
couponId: number;
|
||||
/** 用户编号数组 */
|
||||
userIds: number[];
|
||||
}
|
||||
}
|
||||
|
||||
/** 删除优惠劵 */
|
||||
export function deleteCoupon(id: number) {
|
||||
return requestClient.delete(`/promotion/coupon/delete?id=${id}`);
|
||||
}
|
||||
|
||||
/** 获得优惠劵分页 */
|
||||
export function getCouponPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallCouponApi.Coupon>>(
|
||||
'/promotion/coupon/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 发送优惠券 */
|
||||
export function sendCoupon(data: MallCouponApi.SendCoupon) {
|
||||
return requestClient.post('/promotion/coupon/send', data);
|
||||
}
|
@@ -1,112 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallCouponTemplateApi {
|
||||
/** 优惠券模板 */
|
||||
export interface CouponTemplate {
|
||||
/** 模板编号 */
|
||||
id: number;
|
||||
/** 模板名称 */
|
||||
name: string;
|
||||
/** 状态 */
|
||||
status: number;
|
||||
/** 发放数量 */
|
||||
totalCount: number;
|
||||
/** 每人限领个数 */
|
||||
takeLimitCount: number;
|
||||
/** 领取方式 */
|
||||
takeType: number;
|
||||
/** 使用门槛 */
|
||||
usePrice: number;
|
||||
/** 商品范围 */
|
||||
productScope: number;
|
||||
/** 商品范围值 */
|
||||
productScopeValues: number[];
|
||||
/** 有效期类型 */
|
||||
validityType: number;
|
||||
/** 固定日期-生效开始时间 */
|
||||
validStartTime: Date;
|
||||
/** 固定日期-生效结束时间 */
|
||||
validEndTime: Date;
|
||||
/** 领取日期-开始天数 */
|
||||
fixedStartTerm: number;
|
||||
/** 领取日期-结束天数 */
|
||||
fixedEndTerm: number;
|
||||
/** 优惠类型 */
|
||||
discountType: number;
|
||||
/** 折扣百分比 */
|
||||
discountPercent: number;
|
||||
/** 优惠金额 */
|
||||
discountPrice: number;
|
||||
/** 折扣上限 */
|
||||
discountLimitPrice: number;
|
||||
/** 已领取数量 */
|
||||
takeCount: number;
|
||||
/** 已使用数量 */
|
||||
useCount: number;
|
||||
}
|
||||
|
||||
/** 优惠券模板状态更新 */
|
||||
export interface StatusUpdate {
|
||||
/** 模板编号 */
|
||||
id: number;
|
||||
/** 状态 */
|
||||
status: 0 | 1;
|
||||
}
|
||||
}
|
||||
|
||||
/** 创建优惠劵模板 */
|
||||
export function createCouponTemplate(
|
||||
data: MallCouponTemplateApi.CouponTemplate,
|
||||
) {
|
||||
return requestClient.post('/promotion/coupon-template/create', data);
|
||||
}
|
||||
|
||||
/** 更新优惠劵模板 */
|
||||
export function updateCouponTemplate(
|
||||
data: MallCouponTemplateApi.CouponTemplate,
|
||||
) {
|
||||
return requestClient.put('/promotion/coupon-template/update', data);
|
||||
}
|
||||
|
||||
/** 更新优惠劵模板的状态 */
|
||||
export function updateCouponTemplateStatus(id: number, status: 0 | 1) {
|
||||
const data: MallCouponTemplateApi.StatusUpdate = { id, status };
|
||||
return requestClient.put('/promotion/coupon-template/update-status', data);
|
||||
}
|
||||
|
||||
/** 删除优惠劵模板 */
|
||||
export function deleteCouponTemplate(id: number) {
|
||||
return requestClient.delete(`/promotion/coupon-template/delete?id=${id}`);
|
||||
}
|
||||
|
||||
/** 获得优惠劵模板 */
|
||||
export function getCouponTemplate(id: number) {
|
||||
return requestClient.get<MallCouponTemplateApi.CouponTemplate>(
|
||||
`/promotion/coupon-template/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 获得优惠劵模板分页 */
|
||||
export function getCouponTemplatePage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallCouponTemplateApi.CouponTemplate>>(
|
||||
'/promotion/coupon-template/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 获得优惠劵模板列表 */
|
||||
export function getCouponTemplateList(ids: number[]) {
|
||||
return requestClient.get<MallCouponTemplateApi.CouponTemplate[]>(
|
||||
`/promotion/coupon-template/list?ids=${ids}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 导出优惠劵模板 Excel */
|
||||
export function exportCouponTemplateExcel(params: PageParam) {
|
||||
return requestClient.get('/promotion/coupon-template/export-excel', {
|
||||
params,
|
||||
responseType: 'blob',
|
||||
});
|
||||
}
|
@@ -1,91 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import type { MallSpuApi } from '#/api/mall/product/spu';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallDiscountActivityApi {
|
||||
/** 限时折扣相关属性 */
|
||||
export interface DiscountProduct {
|
||||
/** 商品 SPU 编号 */
|
||||
spuId: number;
|
||||
/** 商品 SKU 编号 */
|
||||
skuId: number;
|
||||
/** 折扣类型 */
|
||||
discountType: number;
|
||||
/** 折扣百分比 */
|
||||
discountPercent: number;
|
||||
/** 折扣价格 */
|
||||
discountPrice: number;
|
||||
}
|
||||
|
||||
/** 限时折扣活动 */
|
||||
export interface DiscountActivity {
|
||||
/** 活动编号 */
|
||||
id?: number;
|
||||
/** 商品 SPU 编号 */
|
||||
spuId?: number;
|
||||
/** 活动名称 */
|
||||
name?: string;
|
||||
/** 状态 */
|
||||
status?: number;
|
||||
/** 备注 */
|
||||
remark?: string;
|
||||
/** 开始时间 */
|
||||
startTime?: Date;
|
||||
/** 结束时间 */
|
||||
endTime?: Date;
|
||||
/** 商品列表 */
|
||||
products?: DiscountProduct[];
|
||||
}
|
||||
|
||||
/** 扩展 SKU 配置 */
|
||||
export type SkuExtension = {
|
||||
/** 限时折扣配置 */
|
||||
productConfig: DiscountProduct;
|
||||
} & MallSpuApi.Sku;
|
||||
|
||||
/** 扩展 SPU 配置 */
|
||||
export interface SpuExtension extends MallSpuApi.Spu {
|
||||
/** SKU 列表 */
|
||||
skus: SkuExtension[];
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询限时折扣活动列表 */
|
||||
export function getDiscountActivityPage(params: PageParam) {
|
||||
return requestClient.get<
|
||||
PageResult<MallDiscountActivityApi.DiscountActivity>
|
||||
>('/promotion/discount-activity/page', { params });
|
||||
}
|
||||
|
||||
/** 查询限时折扣活动详情 */
|
||||
export function getDiscountActivity(id: number) {
|
||||
return requestClient.get<MallDiscountActivityApi.DiscountActivity>(
|
||||
`/promotion/discount-activity/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 新增限时折扣活动 */
|
||||
export function createDiscountActivity(
|
||||
data: MallDiscountActivityApi.DiscountActivity,
|
||||
) {
|
||||
return requestClient.post('/promotion/discount-activity/create', data);
|
||||
}
|
||||
|
||||
/** 修改限时折扣活动 */
|
||||
export function updateDiscountActivity(
|
||||
data: MallDiscountActivityApi.DiscountActivity,
|
||||
) {
|
||||
return requestClient.put('/promotion/discount-activity/update', data);
|
||||
}
|
||||
|
||||
/** 关闭限时折扣活动 */
|
||||
export function closeDiscountActivity(id: number) {
|
||||
return requestClient.put(`/promotion/discount-activity/close?id=${id}`);
|
||||
}
|
||||
|
||||
/** 删除限时折扣活动 */
|
||||
export function deleteDiscountActivity(id: number) {
|
||||
return requestClient.delete(`/promotion/discount-activity/delete?id=${id}`);
|
||||
}
|
@@ -1,61 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallDiyPageApi {
|
||||
/** 装修页面 */
|
||||
export interface DiyPage {
|
||||
/** 页面编号 */
|
||||
id?: number;
|
||||
/** 模板编号 */
|
||||
templateId?: number;
|
||||
/** 页面名称 */
|
||||
name: string;
|
||||
/** 备注 */
|
||||
remark: string;
|
||||
/** 预览图片地址数组 */
|
||||
previewPicUrls: string[];
|
||||
/** 页面属性 */
|
||||
property: string;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询装修页面列表 */
|
||||
export function getDiyPagePage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallDiyPageApi.DiyPage>>(
|
||||
'/promotion/diy-page/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询装修页面详情 */
|
||||
export function getDiyPage(id: number) {
|
||||
return requestClient.get<MallDiyPageApi.DiyPage>(
|
||||
`/promotion/diy-page/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 新增装修页面 */
|
||||
export function createDiyPage(data: MallDiyPageApi.DiyPage) {
|
||||
return requestClient.post('/promotion/diy-page/create', data);
|
||||
}
|
||||
|
||||
/** 修改装修页面 */
|
||||
export function updateDiyPage(data: MallDiyPageApi.DiyPage) {
|
||||
return requestClient.put('/promotion/diy-page/update', data);
|
||||
}
|
||||
|
||||
/** 删除装修页面 */
|
||||
export function deleteDiyPage(id: number) {
|
||||
return requestClient.delete(`/promotion/diy-page/delete?id=${id}`);
|
||||
}
|
||||
|
||||
/** 获得装修页面属性 */
|
||||
export function getDiyPageProperty(id: number) {
|
||||
return requestClient.get<string>(`/promotion/diy-page/get-property?id=${id}`);
|
||||
}
|
||||
|
||||
/** 更新装修页面属性 */
|
||||
export function updateDiyPageProperty(data: MallDiyPageApi.DiyPage) {
|
||||
return requestClient.put('/promotion/diy-page/update-property', data);
|
||||
}
|
@@ -1,80 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import type { MallDiyPageApi } from './page';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallDiyTemplateApi {
|
||||
/** 装修模板 */
|
||||
export interface DiyTemplate {
|
||||
/** 模板编号 */
|
||||
id?: number;
|
||||
/** 模板名称 */
|
||||
name: string;
|
||||
/** 是否使用 */
|
||||
used: boolean;
|
||||
/** 使用时间 */
|
||||
usedTime?: Date;
|
||||
/** 备注 */
|
||||
remark: string;
|
||||
/** 预览图片地址数组 */
|
||||
previewPicUrls: string[];
|
||||
/** 模板属性 */
|
||||
property: string;
|
||||
}
|
||||
|
||||
/** 装修模板属性(包含页面列表) */
|
||||
export interface DiyTemplateProperty extends DiyTemplate {
|
||||
/** 页面列表 */
|
||||
pages: MallDiyPageApi.DiyPage[];
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询装修模板列表 */
|
||||
export function getDiyTemplatePage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallDiyTemplateApi.DiyTemplate>>(
|
||||
'/promotion/diy-template/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询装修模板详情 */
|
||||
export function getDiyTemplate(id: number) {
|
||||
return requestClient.get<MallDiyTemplateApi.DiyTemplate>(
|
||||
`/promotion/diy-template/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 新增装修模板 */
|
||||
export function createDiyTemplate(data: MallDiyTemplateApi.DiyTemplate) {
|
||||
return requestClient.post('/promotion/diy-template/create', data);
|
||||
}
|
||||
|
||||
/** 修改装修模板 */
|
||||
export function updateDiyTemplate(data: MallDiyTemplateApi.DiyTemplate) {
|
||||
return requestClient.put('/promotion/diy-template/update', data);
|
||||
}
|
||||
|
||||
/** 删除装修模板 */
|
||||
export function deleteDiyTemplate(id: number) {
|
||||
return requestClient.delete(`/promotion/diy-template/delete?id=${id}`);
|
||||
}
|
||||
|
||||
/** 使用装修模板 */
|
||||
export function useDiyTemplate(id: number) {
|
||||
return requestClient.put(`/promotion/diy-template/use?id=${id}`);
|
||||
}
|
||||
|
||||
/** 获得装修模板属性 */
|
||||
export function getDiyTemplateProperty(id: number) {
|
||||
return requestClient.get<MallDiyTemplateApi.DiyTemplateProperty>(
|
||||
`/promotion/diy-template/get-property?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 更新装修模板属性 */
|
||||
export function updateDiyTemplateProperty(
|
||||
data: MallDiyTemplateApi.DiyTemplate,
|
||||
) {
|
||||
return requestClient.put('/promotion/diy-template/update-property', data);
|
||||
}
|
@@ -1,70 +0,0 @@
|
||||
import type { PageResult } from '@vben/request';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallKefuConversationApi {
|
||||
/** 客服会话 */
|
||||
export interface Conversation {
|
||||
/** 编号 */
|
||||
id: number;
|
||||
/** 会话所属用户 */
|
||||
userId: number;
|
||||
/** 会话所属用户头像 */
|
||||
userAvatar: string;
|
||||
/** 会话所属用户昵称 */
|
||||
userNickname: string;
|
||||
/** 最后聊天时间 */
|
||||
lastMessageTime: Date;
|
||||
/** 最后聊天内容 */
|
||||
lastMessageContent: string;
|
||||
/** 最后发送的消息类型 */
|
||||
lastMessageContentType: number;
|
||||
/** 管理端置顶 */
|
||||
adminPinned: boolean;
|
||||
/** 用户是否可见 */
|
||||
userDeleted: boolean;
|
||||
/** 管理员是否可见 */
|
||||
adminDeleted: boolean;
|
||||
/** 管理员未读消息数 */
|
||||
adminUnreadMessageCount: number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
}
|
||||
|
||||
/** 会话置顶请求 */
|
||||
export interface ConversationPinnedUpdate {
|
||||
/** 会话编号 */
|
||||
id: number;
|
||||
/** 是否置顶 */
|
||||
pinned: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
/** 获得客服会话列表 */
|
||||
export function getConversationList() {
|
||||
return requestClient.get<PageResult<MallKefuConversationApi.Conversation>>(
|
||||
'/promotion/kefu-conversation/list',
|
||||
);
|
||||
}
|
||||
|
||||
/** 获得客服会话 */
|
||||
export function getConversation(id: number) {
|
||||
return requestClient.get<MallKefuConversationApi.Conversation>(
|
||||
`/promotion/kefu-conversation/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 客服会话置顶 */
|
||||
export function updateConversationPinned(
|
||||
data: MallKefuConversationApi.ConversationPinnedUpdate,
|
||||
) {
|
||||
return requestClient.put(
|
||||
'/promotion/kefu-conversation/update-conversation-pinned',
|
||||
data,
|
||||
);
|
||||
}
|
||||
|
||||
/** 删除客服会话 */
|
||||
export function deleteConversation(id: number) {
|
||||
return requestClient.delete(`/promotion/kefu-conversation/delete?id=${id}`);
|
||||
}
|
@@ -1,67 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallKefuMessageApi {
|
||||
/** 客服消息 */
|
||||
export interface Message {
|
||||
/** 编号 */
|
||||
id: number;
|
||||
/** 会话编号 */
|
||||
conversationId: number;
|
||||
/** 发送人编号 */
|
||||
senderId: number;
|
||||
/** 发送人头像 */
|
||||
senderAvatar: string;
|
||||
/** 发送人类型 */
|
||||
senderType: number;
|
||||
/** 接收人编号 */
|
||||
receiverId: number;
|
||||
/** 接收人类型 */
|
||||
receiverType: number;
|
||||
/** 消息类型 */
|
||||
contentType: number;
|
||||
/** 消息内容 */
|
||||
content: string;
|
||||
/** 是否已读 */
|
||||
readStatus: boolean;
|
||||
/** 创建时间 */
|
||||
createTime: Date;
|
||||
}
|
||||
|
||||
/** 发送消息请求 */
|
||||
export interface MessageSend {
|
||||
/** 会话编号 */
|
||||
conversationId: number;
|
||||
/** 消息类型 */
|
||||
contentType: number;
|
||||
/** 消息内容 */
|
||||
content: string;
|
||||
}
|
||||
|
||||
/** 消息列表查询参数 */
|
||||
export interface MessageQuery extends PageParam {
|
||||
/** 会话编号 */
|
||||
conversationId: number;
|
||||
}
|
||||
}
|
||||
|
||||
/** 发送客服消息 */
|
||||
export function sendKeFuMessage(data: MallKefuMessageApi.MessageSend) {
|
||||
return requestClient.post('/promotion/kefu-message/send', data);
|
||||
}
|
||||
|
||||
/** 更新客服消息已读状态 */
|
||||
export function updateKeFuMessageReadStatus(conversationId: number) {
|
||||
return requestClient.put(
|
||||
`/promotion/kefu-message/update-read-status?conversationId=${conversationId}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 获得消息列表(流式加载) */
|
||||
export function getKeFuMessageList(params: MallKefuMessageApi.MessageQuery) {
|
||||
return requestClient.get<PageResult<MallKefuMessageApi.Message>>(
|
||||
'/promotion/kefu-message/list',
|
||||
{ params },
|
||||
);
|
||||
}
|
@@ -1,127 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import type { MallSpuApi } from '#/api/mall/product/spu';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallPointActivityApi {
|
||||
/** 积分商城商品 */
|
||||
export interface PointProduct {
|
||||
/** 积分商城商品编号 */
|
||||
id?: number;
|
||||
/** 积分商城活动 id */
|
||||
activityId?: number;
|
||||
/** 商品 SPU 编号 */
|
||||
spuId?: number;
|
||||
/** 商品 SKU 编号 */
|
||||
skuId: number;
|
||||
/** 可兑换数量 */
|
||||
count: number;
|
||||
/** 兑换积分 */
|
||||
point: number;
|
||||
/** 兑换金额,单位:分 */
|
||||
price: number;
|
||||
/** 积分商城商品库存 */
|
||||
stock: number;
|
||||
/** 积分商城商品状态 */
|
||||
activityStatus?: number;
|
||||
}
|
||||
|
||||
/** 积分商城活动 */
|
||||
export interface PointActivity {
|
||||
/** 积分商城活动编号 */
|
||||
id: number;
|
||||
/** 积分商城活动商品 */
|
||||
spuId: number;
|
||||
/** 活动状态 */
|
||||
status: number;
|
||||
/** 积分商城活动库存 */
|
||||
stock: number;
|
||||
/** 积分商城活动总库存 */
|
||||
totalStock: number;
|
||||
/** 备注 */
|
||||
remark?: string;
|
||||
/** 排序 */
|
||||
sort: number;
|
||||
/** 创建时间 */
|
||||
createTime: string;
|
||||
/** 积分商城商品 */
|
||||
products: PointProduct[];
|
||||
/** 商品名称 */
|
||||
spuName: string;
|
||||
/** 商品主图 */
|
||||
picUrl: string;
|
||||
/** 商品市场价,单位:分 */
|
||||
marketPrice: number;
|
||||
/** 兑换积分 */
|
||||
point: number;
|
||||
/** 兑换金额,单位:分 */
|
||||
price: number;
|
||||
}
|
||||
|
||||
/** 扩展 SKU 配置 */
|
||||
export type SkuExtension = {
|
||||
/** 积分商城商品配置 */
|
||||
productConfig: PointProduct;
|
||||
} & MallSpuApi.Sku;
|
||||
|
||||
/** 扩展 SPU 配置 */
|
||||
export interface SpuExtension extends MallSpuApi.Spu {
|
||||
/** SKU 列表 */
|
||||
skus: SkuExtension[];
|
||||
}
|
||||
|
||||
/** 扩展 SPU 配置(带积分信息) */
|
||||
export interface SpuExtensionWithPoint extends MallSpuApi.Spu {
|
||||
/** 积分商城活动库存 */
|
||||
pointStock: number;
|
||||
/** 积分商城活动总库存 */
|
||||
pointTotalStock: number;
|
||||
/** 兑换积分 */
|
||||
point: number;
|
||||
/** 兑换金额,单位:分 */
|
||||
pointPrice: number;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询积分商城活动分页 */
|
||||
export function getPointActivityPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallPointActivityApi.PointActivity>>(
|
||||
'/promotion/point-activity/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询积分商城活动详情 */
|
||||
export function getPointActivity(id: number) {
|
||||
return requestClient.get<MallPointActivityApi.PointActivity>(
|
||||
`/promotion/point-activity/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询积分商城活动列表,基于活动编号数组 */
|
||||
export function getPointActivityListByIds(ids: number[]) {
|
||||
return requestClient.get<MallPointActivityApi.PointActivity[]>(
|
||||
`/promotion/point-activity/list-by-ids?ids=${ids}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 新增积分商城活动 */
|
||||
export function createPointActivity(data: MallPointActivityApi.PointActivity) {
|
||||
return requestClient.post('/promotion/point-activity/create', data);
|
||||
}
|
||||
|
||||
/** 修改积分商城活动 */
|
||||
export function updatePointActivity(data: MallPointActivityApi.PointActivity) {
|
||||
return requestClient.put('/promotion/point-activity/update', data);
|
||||
}
|
||||
|
||||
/** 删除积分商城活动 */
|
||||
export function deletePointActivity(id: number) {
|
||||
return requestClient.delete(`/promotion/point-activity/delete?id=${id}`);
|
||||
}
|
||||
|
||||
/** 关闭积分商城活动 */
|
||||
export function closePointActivity(id: number) {
|
||||
return requestClient.put(`/promotion/point-activity/close?id=${id}`);
|
||||
}
|
@@ -1,88 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallRewardActivityApi {
|
||||
/** 优惠规则 */
|
||||
export interface RewardRule {
|
||||
/** 满足金额 */
|
||||
limit?: number;
|
||||
/** 优惠金额 */
|
||||
discountPrice?: number;
|
||||
/** 是否包邮 */
|
||||
freeDelivery?: boolean;
|
||||
/** 赠送积分 */
|
||||
point: number;
|
||||
/** 赠送优惠券数量 */
|
||||
giveCouponTemplateCounts?: {
|
||||
[key: number]: number;
|
||||
};
|
||||
}
|
||||
|
||||
/** 满减送活动 */
|
||||
export interface RewardActivity {
|
||||
/** 活动编号 */
|
||||
id?: number;
|
||||
/** 活动名称 */
|
||||
name?: string;
|
||||
/** 开始时间 */
|
||||
startTime?: Date;
|
||||
/** 结束时间 */
|
||||
endTime?: Date;
|
||||
/** 开始和结束时间(仅前端使用) */
|
||||
startAndEndTime?: Date[];
|
||||
/** 备注 */
|
||||
remark?: string;
|
||||
/** 条件类型 */
|
||||
conditionType?: number;
|
||||
/** 商品范围 */
|
||||
productScope?: number;
|
||||
/** 优惠规则列表 */
|
||||
rules: RewardRule[];
|
||||
/** 商品范围值(仅表单使用):值为品类编号列表、商品编号列表 */
|
||||
productScopeValues?: number[];
|
||||
/** 商品分类编号列表(仅表单使用) */
|
||||
productCategoryIds?: number[];
|
||||
/** 商品 SPU 编号列表(仅表单使用) */
|
||||
productSpuIds?: number[];
|
||||
}
|
||||
}
|
||||
|
||||
/** 新增满减送活动 */
|
||||
export function createRewardActivity(
|
||||
data: MallRewardActivityApi.RewardActivity,
|
||||
) {
|
||||
return requestClient.post('/promotion/reward-activity/create', data);
|
||||
}
|
||||
|
||||
/** 更新满减送活动 */
|
||||
export function updateRewardActivity(
|
||||
data: MallRewardActivityApi.RewardActivity,
|
||||
) {
|
||||
return requestClient.put('/promotion/reward-activity/update', data);
|
||||
}
|
||||
|
||||
/** 查询满减送活动列表 */
|
||||
export function getRewardActivityPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallRewardActivityApi.RewardActivity>>(
|
||||
'/promotion/reward-activity/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询满减送活动详情 */
|
||||
export function getReward(id: number) {
|
||||
return requestClient.get<MallRewardActivityApi.RewardActivity>(
|
||||
`/promotion/reward-activity/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 删除满减送活动 */
|
||||
export function deleteRewardActivity(id: number) {
|
||||
return requestClient.delete(`/promotion/reward-activity/delete?id=${id}`);
|
||||
}
|
||||
|
||||
/** 关闭满减送活动 */
|
||||
export function closeRewardActivity(id: number) {
|
||||
return requestClient.put(`/promotion/reward-activity/close?id=${id}`);
|
||||
}
|
@@ -1,117 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import type { MallSpuApi } from '#/api/mall/product/spu';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallSeckillActivityApi {
|
||||
/** 秒杀商品 */
|
||||
export interface SeckillProduct {
|
||||
/** 商品 SKU 编号 */
|
||||
skuId: number;
|
||||
/** 商品 SPU 编号 */
|
||||
spuId: number;
|
||||
/** 秒杀价格 */
|
||||
seckillPrice: number;
|
||||
/** 秒杀库存 */
|
||||
stock: number;
|
||||
}
|
||||
|
||||
/** 秒杀活动 */
|
||||
export interface SeckillActivity {
|
||||
/** 活动编号 */
|
||||
id?: number;
|
||||
/** 商品 SPU 编号 */
|
||||
spuId?: number;
|
||||
/** 活动名称 */
|
||||
name?: string;
|
||||
/** 活动状态 */
|
||||
status?: number;
|
||||
/** 备注 */
|
||||
remark?: string;
|
||||
/** 开始时间 */
|
||||
startTime?: Date;
|
||||
/** 结束时间 */
|
||||
endTime?: Date;
|
||||
/** 排序 */
|
||||
sort?: number;
|
||||
/** 配置编号 */
|
||||
configIds?: string;
|
||||
/** 订单数量 */
|
||||
orderCount?: number;
|
||||
/** 用户数量 */
|
||||
userCount?: number;
|
||||
/** 总金额 */
|
||||
totalPrice?: number;
|
||||
/** 总限购数量 */
|
||||
totalLimitCount?: number;
|
||||
/** 单次限购数量 */
|
||||
singleLimitCount?: number;
|
||||
/** 秒杀库存 */
|
||||
stock?: number;
|
||||
/** 秒杀总库存 */
|
||||
totalStock?: number;
|
||||
/** 秒杀价格 */
|
||||
seckillPrice?: number;
|
||||
/** 秒杀商品列表 */
|
||||
products?: SeckillProduct[];
|
||||
}
|
||||
|
||||
/** 扩展 SKU 配置 */
|
||||
export type SkuExtension = {
|
||||
/** 秒杀商品配置 */
|
||||
productConfig: SeckillProduct;
|
||||
} & MallSpuApi.Sku;
|
||||
|
||||
/** 扩展 SPU 配置 */
|
||||
export interface SpuExtension extends MallSpuApi.Spu {
|
||||
/** SKU 列表 */
|
||||
skus: SkuExtension[];
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询秒杀活动列表 */
|
||||
export function getSeckillActivityPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallSeckillActivityApi.SeckillActivity>>(
|
||||
'/promotion/seckill-activity/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询秒杀活动列表,基于活动编号数组 */
|
||||
export function getSeckillActivityListByIds(ids: number[]) {
|
||||
return requestClient.get<MallSeckillActivityApi.SeckillActivity[]>(
|
||||
`/promotion/seckill-activity/list-by-ids?ids=${ids}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询秒杀活动详情 */
|
||||
export function getSeckillActivity(id: number) {
|
||||
return requestClient.get<MallSeckillActivityApi.SeckillActivity>(
|
||||
`/promotion/seckill-activity/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 新增秒杀活动 */
|
||||
export function createSeckillActivity(
|
||||
data: MallSeckillActivityApi.SeckillActivity,
|
||||
) {
|
||||
return requestClient.post('/promotion/seckill-activity/create', data);
|
||||
}
|
||||
|
||||
/** 修改秒杀活动 */
|
||||
export function updateSeckillActivity(
|
||||
data: MallSeckillActivityApi.SeckillActivity,
|
||||
) {
|
||||
return requestClient.put('/promotion/seckill-activity/update', data);
|
||||
}
|
||||
|
||||
/** 关闭秒杀活动 */
|
||||
export function closeSeckillActivity(id: number) {
|
||||
return requestClient.put(`/promotion/seckill-activity/close?id=${id}`);
|
||||
}
|
||||
|
||||
/** 删除秒杀活动 */
|
||||
export function deleteSeckillActivity(id: number) {
|
||||
return requestClient.delete(`/promotion/seckill-activity/delete?id=${id}`);
|
||||
}
|
@@ -1,74 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallSeckillConfigApi {
|
||||
/** 秒杀时段 */
|
||||
export interface SeckillConfig {
|
||||
/** 编号 */
|
||||
id: number;
|
||||
/** 秒杀时段名称 */
|
||||
name: string;
|
||||
/** 开始时间点 */
|
||||
startTime: string;
|
||||
/** 结束时间点 */
|
||||
endTime: string;
|
||||
/** 秒杀轮播图 */
|
||||
sliderPicUrls: string[];
|
||||
/** 活动状态 */
|
||||
status: number;
|
||||
}
|
||||
|
||||
/** 时段配置状态更新 */
|
||||
export interface StatusUpdate {
|
||||
/** 编号 */
|
||||
id: number;
|
||||
/** 状态 */
|
||||
status: number;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询秒杀时段分页 */
|
||||
export function getSeckillConfigPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallSeckillConfigApi.SeckillConfig>>(
|
||||
'/promotion/seckill-config/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询秒杀时段列表 */
|
||||
export function getSimpleSeckillConfigList() {
|
||||
return requestClient.get<MallSeckillConfigApi.SeckillConfig[]>(
|
||||
'/promotion/seckill-config/list',
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询秒杀时段详情 */
|
||||
export function getSeckillConfig(id: number) {
|
||||
return requestClient.get<MallSeckillConfigApi.SeckillConfig>(
|
||||
`/promotion/seckill-config/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 新增秒杀时段 */
|
||||
export function createSeckillConfig(data: MallSeckillConfigApi.SeckillConfig) {
|
||||
return requestClient.post('/promotion/seckill-config/create', data);
|
||||
}
|
||||
|
||||
/** 修改秒杀时段 */
|
||||
export function updateSeckillConfig(data: MallSeckillConfigApi.SeckillConfig) {
|
||||
return requestClient.put('/promotion/seckill-config/update', data);
|
||||
}
|
||||
|
||||
/** 删除秒杀时段 */
|
||||
export function deleteSeckillConfig(id: number) {
|
||||
return requestClient.delete(`/promotion/seckill-config/delete?id=${id}`);
|
||||
}
|
||||
|
||||
/** 修改时段配置状态 */
|
||||
export function updateSeckillConfigStatus(id: number, status: number) {
|
||||
return requestClient.put('/promotion/seckill-config/update-status', {
|
||||
id,
|
||||
status,
|
||||
});
|
||||
}
|
@@ -1,5 +0,0 @@
|
||||
/** 数据对照 Response */
|
||||
export interface MallDataComparisonResp<T> {
|
||||
value: T;
|
||||
reference: T;
|
||||
}
|
@@ -1,131 +0,0 @@
|
||||
import type { MallDataComparisonResp } from './common';
|
||||
|
||||
import { formatDate } from '@vben/utils';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallMemberStatisticsApi {
|
||||
/** 会员分析 Request */
|
||||
export interface AnalyseReq {
|
||||
times: Date[];
|
||||
}
|
||||
|
||||
/** 会员分析对照数据 Response */
|
||||
export interface AnalyseComparison {
|
||||
registerUserCount: number;
|
||||
visitUserCount: number;
|
||||
rechargeUserCount: number;
|
||||
}
|
||||
|
||||
/** 会员分析 Response */
|
||||
export interface Analyse {
|
||||
visitUserCount: number;
|
||||
orderUserCount: number;
|
||||
payUserCount: number;
|
||||
atv: number;
|
||||
comparison: MallDataComparisonResp<AnalyseComparison>;
|
||||
}
|
||||
|
||||
/** 会员地区统计 Response */
|
||||
export interface AreaStatistics {
|
||||
areaId: number;
|
||||
areaName: string;
|
||||
userCount: number;
|
||||
orderCreateUserCount: number;
|
||||
orderPayUserCount: number;
|
||||
orderPayPrice: number;
|
||||
}
|
||||
|
||||
/** 会员性别统计 Response */
|
||||
export interface SexStatistics {
|
||||
sex: number;
|
||||
userCount: number;
|
||||
}
|
||||
|
||||
/** 会员统计 Response */
|
||||
export interface Summary {
|
||||
userCount: number;
|
||||
rechargeUserCount: number;
|
||||
rechargePrice: number;
|
||||
expensePrice: number;
|
||||
}
|
||||
|
||||
/** 会员终端统计 Response */
|
||||
export interface TerminalStatistics {
|
||||
terminal: number;
|
||||
userCount: number;
|
||||
}
|
||||
|
||||
/** 会员数量统计 Response */
|
||||
export interface Count {
|
||||
/** 用户访问量 */
|
||||
visitUserCount: string;
|
||||
/** 注册用户数量 */
|
||||
registerUserCount: number;
|
||||
}
|
||||
|
||||
/** 会员注册数量 Response */
|
||||
export interface RegisterCount {
|
||||
date: string;
|
||||
count: number;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询会员统计 */
|
||||
export function getMemberSummary() {
|
||||
return requestClient.get<MallMemberStatisticsApi.Summary>(
|
||||
'/statistics/member/summary',
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询会员分析数据 */
|
||||
export function getMemberAnalyse(params: MallMemberStatisticsApi.AnalyseReq) {
|
||||
return requestClient.get<MallMemberStatisticsApi.Analyse>(
|
||||
'/statistics/member/analyse',
|
||||
{
|
||||
params: {
|
||||
times: [formatDate(params.times[0]), formatDate(params.times[1])],
|
||||
},
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/** 按照省份,查询会员统计列表 */
|
||||
export function getMemberAreaStatisticsList() {
|
||||
return requestClient.get<MallMemberStatisticsApi.AreaStatistics[]>(
|
||||
'/statistics/member/area-statistics-list',
|
||||
);
|
||||
}
|
||||
|
||||
/** 按照性别,查询会员统计列表 */
|
||||
export function getMemberSexStatisticsList() {
|
||||
return requestClient.get<MallMemberStatisticsApi.SexStatistics[]>(
|
||||
'/statistics/member/sex-statistics-list',
|
||||
);
|
||||
}
|
||||
|
||||
/** 按照终端,查询会员统计列表 */
|
||||
export function getMemberTerminalStatisticsList() {
|
||||
return requestClient.get<MallMemberStatisticsApi.TerminalStatistics[]>(
|
||||
'/statistics/member/terminal-statistics-list',
|
||||
);
|
||||
}
|
||||
|
||||
/** 获得用户数量量对照 */
|
||||
export function getUserCountComparison() {
|
||||
return requestClient.get<
|
||||
MallDataComparisonResp<MallMemberStatisticsApi.Count>
|
||||
>('/statistics/member/user-count-comparison');
|
||||
}
|
||||
|
||||
/** 获得会员注册数量列表 */
|
||||
export function getMemberRegisterCountList(beginTime: Date, endTime: Date) {
|
||||
return requestClient.get<MallMemberStatisticsApi.RegisterCount[]>(
|
||||
'/statistics/member/register-count-list',
|
||||
{
|
||||
params: {
|
||||
times: [formatDate(beginTime), formatDate(endTime)],
|
||||
},
|
||||
},
|
||||
);
|
||||
}
|
@@ -1,16 +0,0 @@
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallPayStatisticsApi {
|
||||
/** 支付统计 */
|
||||
export interface PaySummaryResp {
|
||||
/** 充值金额,单位分 */
|
||||
rechargePrice: number;
|
||||
}
|
||||
}
|
||||
|
||||
/** 获取钱包充值金额 */
|
||||
export function getWalletRechargePrice() {
|
||||
return requestClient.get<MallPayStatisticsApi.PaySummaryResp>(
|
||||
'/statistics/pay/summary',
|
||||
);
|
||||
}
|
@@ -1,68 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import type { MallDataComparisonResp } from './common';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallProductStatisticsApi {
|
||||
/** 商品统计数据 */
|
||||
export interface ProductStatistics {
|
||||
/** 编号 */
|
||||
id: number;
|
||||
/** 统计日期 */
|
||||
day: string;
|
||||
/** 商品 SPU 编号 */
|
||||
spuId: number;
|
||||
/** 商品 SPU 名称 */
|
||||
spuName: string;
|
||||
/** 商品 SPU 图片 */
|
||||
spuPicUrl: string;
|
||||
/** 浏览次数 */
|
||||
browseCount: number;
|
||||
/** 浏览人数 */
|
||||
browseUserCount: number;
|
||||
/** 收藏次数 */
|
||||
favoriteCount: number;
|
||||
/** 加购次数 */
|
||||
cartCount: number;
|
||||
/** 下单次数 */
|
||||
orderCount: number;
|
||||
/** 支付次数 */
|
||||
orderPayCount: number;
|
||||
/** 支付金额 */
|
||||
orderPayPrice: number;
|
||||
/** 售后次数 */
|
||||
afterSaleCount: number;
|
||||
/** 退款金额 */
|
||||
afterSaleRefundPrice: number;
|
||||
/** 浏览转化率 */
|
||||
browseConvertPercent: number;
|
||||
}
|
||||
}
|
||||
|
||||
/** 获得商品统计分析 */
|
||||
export function getProductStatisticsAnalyse(params: PageParam) {
|
||||
return requestClient.get<
|
||||
MallDataComparisonResp<MallProductStatisticsApi.ProductStatistics>
|
||||
>('/statistics/product/analyse', { params });
|
||||
}
|
||||
|
||||
/** 获得商品状况明细 */
|
||||
export function getProductStatisticsList(params: PageParam) {
|
||||
return requestClient.get<MallProductStatisticsApi.ProductStatistics[]>(
|
||||
'/statistics/product/list',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 导出获得商品状况明细 Excel */
|
||||
export function exportProductStatisticsExcel(params: PageParam) {
|
||||
return requestClient.download('/statistics/product/export-excel', { params });
|
||||
}
|
||||
|
||||
/** 获得商品排行榜分页 */
|
||||
export function getProductStatisticsRankPage(params: PageParam) {
|
||||
return requestClient.get<
|
||||
PageResult<MallProductStatisticsApi.ProductStatistics>
|
||||
>('/statistics/product/rank-page', { params });
|
||||
}
|
@@ -1,135 +0,0 @@
|
||||
import type { MallDataComparisonResp } from './common';
|
||||
|
||||
import { formatDate } from '@vben/utils';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallTradeStatisticsApi {
|
||||
/** 交易统计 Response */
|
||||
export interface TradeSummary {
|
||||
yesterdayOrderCount: number;
|
||||
monthOrderCount: number;
|
||||
yesterdayPayPrice: number;
|
||||
monthPayPrice: number;
|
||||
}
|
||||
|
||||
/** 交易状况 Request */
|
||||
export interface TradeTrendReq {
|
||||
times: [Date, Date];
|
||||
}
|
||||
|
||||
/** 交易状况统计 Response */
|
||||
export interface TradeTrendSummary {
|
||||
time: string;
|
||||
turnoverPrice: number;
|
||||
orderPayPrice: number;
|
||||
rechargePrice: number;
|
||||
expensePrice: number;
|
||||
walletPayPrice: number;
|
||||
brokerageSettlementPrice: number;
|
||||
afterSaleRefundPrice: number;
|
||||
}
|
||||
|
||||
/** 交易订单数量 Response */
|
||||
export interface TradeOrderCount {
|
||||
/** 待发货 */
|
||||
undelivered?: number;
|
||||
/** 待核销 */
|
||||
pickUp?: number;
|
||||
/** 退款中 */
|
||||
afterSaleApply?: number;
|
||||
/** 提现待审核 */
|
||||
auditingWithdraw?: number;
|
||||
}
|
||||
|
||||
/** 交易订单统计 Response */
|
||||
export interface TradeOrderSummary {
|
||||
/** 支付订单商品数 */
|
||||
orderPayCount?: number;
|
||||
/** 总支付金额,单位:分 */
|
||||
orderPayPrice?: number;
|
||||
}
|
||||
|
||||
/** 订单量趋势统计 Response */
|
||||
export interface TradeOrderTrend {
|
||||
/** 日期 */
|
||||
date: string;
|
||||
/** 订单数量 */
|
||||
orderPayCount: number;
|
||||
/** 订单支付金额 */
|
||||
orderPayPrice: number;
|
||||
}
|
||||
}
|
||||
|
||||
/** 时间参数需要格式化, 确保接口能识别 */
|
||||
const formatDateParam = (params: MallTradeStatisticsApi.TradeTrendReq) => {
|
||||
return {
|
||||
times: [formatDate(params.times[0]), formatDate(params.times[1])],
|
||||
} as MallTradeStatisticsApi.TradeTrendReq;
|
||||
};
|
||||
|
||||
/** 查询交易统计 */
|
||||
export function getTradeStatisticsSummary() {
|
||||
return requestClient.get<
|
||||
MallDataComparisonResp<MallTradeStatisticsApi.TradeSummary>
|
||||
>('/statistics/trade/summary');
|
||||
}
|
||||
|
||||
/** 获得交易状况统计 */
|
||||
export function getTradeStatisticsAnalyse(
|
||||
params: MallTradeStatisticsApi.TradeTrendReq,
|
||||
) {
|
||||
return requestClient.get<
|
||||
MallDataComparisonResp<MallTradeStatisticsApi.TradeTrendSummary>
|
||||
>('/statistics/trade/analyse', { params: formatDateParam(params) });
|
||||
}
|
||||
|
||||
/** 获得交易状况明细 */
|
||||
export function getTradeStatisticsList(
|
||||
params: MallTradeStatisticsApi.TradeTrendReq,
|
||||
) {
|
||||
return requestClient.get<MallTradeStatisticsApi.TradeTrendSummary[]>(
|
||||
'/statistics/trade/list',
|
||||
{ params: formatDateParam(params) },
|
||||
);
|
||||
}
|
||||
|
||||
/** 导出交易状况明细 */
|
||||
export function exportTradeStatisticsExcel(
|
||||
params: MallTradeStatisticsApi.TradeTrendReq,
|
||||
) {
|
||||
return requestClient.download('/statistics/trade/export-excel', {
|
||||
params: formatDateParam(params),
|
||||
});
|
||||
}
|
||||
|
||||
/** 获得交易订单数量 */
|
||||
export function getOrderCount() {
|
||||
return requestClient.get<MallTradeStatisticsApi.TradeOrderCount>(
|
||||
'/statistics/trade/order-count',
|
||||
);
|
||||
}
|
||||
|
||||
/** 获得交易订单数量对照 */
|
||||
export function getOrderComparison() {
|
||||
return requestClient.get<
|
||||
MallDataComparisonResp<MallTradeStatisticsApi.TradeOrderSummary>
|
||||
>('/statistics/trade/order-comparison');
|
||||
}
|
||||
|
||||
/** 获得订单量趋势统计 */
|
||||
export function getOrderCountTrendComparison(
|
||||
type: number,
|
||||
beginTime: Date,
|
||||
endTime: Date,
|
||||
) {
|
||||
return requestClient.get<
|
||||
MallDataComparisonResp<MallTradeStatisticsApi.TradeOrderTrend>[]
|
||||
>('/statistics/trade/order-count-trend', {
|
||||
params: {
|
||||
type,
|
||||
beginTime: formatDate(beginTime),
|
||||
endTime: formatDate(endTime),
|
||||
},
|
||||
});
|
||||
}
|
@@ -1,127 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallAfterSaleApi {
|
||||
/** 商品属性 */
|
||||
export interface ProductProperty {
|
||||
/** 属性的编号 */
|
||||
propertyId?: null | number;
|
||||
/** 属性的名称 */
|
||||
propertyName?: string;
|
||||
/** 属性值的编号 */
|
||||
valueId?: null | number;
|
||||
/** 属性值的名称 */
|
||||
valueName?: string;
|
||||
}
|
||||
|
||||
/** 交易售后 */
|
||||
export interface AfterSale {
|
||||
/** 售后编号,主键自增 */
|
||||
id?: null | number;
|
||||
/** 售后单号 */
|
||||
no?: string;
|
||||
/** 退款状态 */
|
||||
status?: null | number;
|
||||
/** 售后方式 */
|
||||
way?: null | number;
|
||||
/** 售后类型 */
|
||||
type?: null | number;
|
||||
/** 用户编号 */
|
||||
userId?: null | number;
|
||||
/** 申请原因 */
|
||||
applyReason?: string;
|
||||
/** 补充描述 */
|
||||
applyDescription?: string;
|
||||
/** 补充凭证图片 */
|
||||
applyPicUrls?: string[];
|
||||
/** 交易订单编号 */
|
||||
orderId?: null | number;
|
||||
/** 订单流水号 */
|
||||
orderNo?: string;
|
||||
/** 交易订单项编号 */
|
||||
orderItemId?: null | number;
|
||||
/** 商品 SPU 编号 */
|
||||
spuId?: null | number;
|
||||
/** 商品 SPU 名称 */
|
||||
spuName?: string;
|
||||
/** 商品 SKU 编号 */
|
||||
skuId?: null | number;
|
||||
/** 属性数组 */
|
||||
properties?: ProductProperty[];
|
||||
/** 商品图片 */
|
||||
picUrl?: string;
|
||||
/** 退货商品数量 */
|
||||
count?: null | number;
|
||||
/** 审批时间 */
|
||||
auditTime?: Date;
|
||||
/** 审批人 */
|
||||
auditUserId?: null | number;
|
||||
/** 审批备注 */
|
||||
auditReason?: string;
|
||||
/** 退款金额,单位:分 */
|
||||
refundPrice?: null | number;
|
||||
/** 支付退款编号 */
|
||||
payRefundId?: null | number;
|
||||
/** 退款时间 */
|
||||
refundTime?: Date;
|
||||
/** 退货物流公司编号 */
|
||||
logisticsId?: null | number;
|
||||
/** 退货物流单号 */
|
||||
logisticsNo?: string;
|
||||
/** 退货时间 */
|
||||
deliveryTime?: Date;
|
||||
/** 收货时间 */
|
||||
receiveTime?: Date;
|
||||
/** 收货备注 */
|
||||
receiveReason?: string;
|
||||
}
|
||||
|
||||
/** 拒绝售后请求 */
|
||||
export interface DisagreeRequest {
|
||||
/** 售后编号 */
|
||||
id: number;
|
||||
/** 拒绝原因 */
|
||||
reason: string;
|
||||
}
|
||||
}
|
||||
|
||||
/** 获得交易售后分页 */
|
||||
export function getAfterSalePage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallAfterSaleApi.AfterSale>>(
|
||||
'/trade/after-sale/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 获得交易售后详情 */
|
||||
export function getAfterSale(id: number) {
|
||||
return requestClient.get<MallAfterSaleApi.AfterSale>(
|
||||
`/trade/after-sale/get-detail?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 同意售后 */
|
||||
export function agree(id: number) {
|
||||
return requestClient.put(`/trade/after-sale/agree?id=${id}`);
|
||||
}
|
||||
|
||||
/** 拒绝售后 */
|
||||
export function disagree(data: MallAfterSaleApi.DisagreeRequest) {
|
||||
return requestClient.put('/trade/after-sale/disagree', data);
|
||||
}
|
||||
|
||||
/** 确认收货 */
|
||||
export function receive(id: number) {
|
||||
return requestClient.put(`/trade/after-sale/receive?id=${id}`);
|
||||
}
|
||||
|
||||
/** 拒绝收货 */
|
||||
export function refuse(id: number) {
|
||||
return requestClient.put(`/trade/after-sale/refuse?id=${id}`);
|
||||
}
|
||||
|
||||
/** 确认退款 */
|
||||
export function refund(id: number) {
|
||||
return requestClient.put(`/trade/after-sale/refund?id=${id}`);
|
||||
}
|
@@ -1,46 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallBrokerageRecordApi {
|
||||
/** 佣金记录 */
|
||||
export interface BrokerageRecord {
|
||||
/** 编号 */
|
||||
id: number;
|
||||
/** 用户编号 */
|
||||
userId: number;
|
||||
/** 用户昵称 */
|
||||
userNickname: string;
|
||||
/** 用户头像 */
|
||||
userAvatar: string;
|
||||
/** 佣金金额,单位:分 */
|
||||
price: number;
|
||||
/** 佣金类型 */
|
||||
type: number;
|
||||
/** 关联订单编号 */
|
||||
orderId: number;
|
||||
/** 关联订单号 */
|
||||
orderNo: string;
|
||||
/** 创建时间 */
|
||||
createTime: Date;
|
||||
/** 状态 */
|
||||
status: number;
|
||||
/** 结算时间 */
|
||||
settlementTime: Date;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询佣金记录列表 */
|
||||
export function getBrokerageRecordPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallBrokerageRecordApi.BrokerageRecord>>(
|
||||
'/trade/brokerage-record/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询佣金记录详情 */
|
||||
export function getBrokerageRecord(id: number) {
|
||||
return requestClient.get<MallBrokerageRecordApi.BrokerageRecord>(
|
||||
`/trade/brokerage-record/get?id=${id}`,
|
||||
);
|
||||
}
|
@@ -1,99 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallBrokerageUserApi {
|
||||
/** 分销用户 */
|
||||
export interface BrokerageUser {
|
||||
/** 编号 */
|
||||
id: number;
|
||||
/** 推广员编号 */
|
||||
bindUserId: number;
|
||||
/** 推广员绑定时间 */
|
||||
bindUserTime: Date;
|
||||
/** 是否启用分销 */
|
||||
brokerageEnabled: boolean;
|
||||
/** 分销资格时间 */
|
||||
brokerageTime: Date;
|
||||
/** 可提现金额,单位:分 */
|
||||
price: number;
|
||||
/** 冻结金额,单位:分 */
|
||||
frozenPrice: number;
|
||||
/** 用户昵称 */
|
||||
nickname: string;
|
||||
/** 用户头像 */
|
||||
avatar: string;
|
||||
}
|
||||
|
||||
/** 创建分销用户请求 */
|
||||
export interface CreateRequest {
|
||||
/** 用户编号 */
|
||||
userId: number;
|
||||
/** 推广员编号 */
|
||||
bindUserId: number;
|
||||
}
|
||||
|
||||
/** 修改推广员请求 */
|
||||
export interface UpdateBindUserRequest {
|
||||
/** 用户编号 */
|
||||
id: number;
|
||||
/** 推广员编号 */
|
||||
bindUserId: number;
|
||||
}
|
||||
|
||||
/** 清除推广员请求 */
|
||||
export interface ClearBindUserRequest {
|
||||
/** 用户编号 */
|
||||
id: number;
|
||||
}
|
||||
|
||||
/** 修改推广资格请求 */
|
||||
export interface UpdateBrokerageEnabledRequest {
|
||||
/** 用户编号 */
|
||||
id: number;
|
||||
/** 是否启用分销 */
|
||||
enabled: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
/** 创建分销用户 */
|
||||
export function createBrokerageUser(data: MallBrokerageUserApi.CreateRequest) {
|
||||
return requestClient.post('/trade/brokerage-user/create', data);
|
||||
}
|
||||
|
||||
/** 查询分销用户列表 */
|
||||
export function getBrokerageUserPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallBrokerageUserApi.BrokerageUser>>(
|
||||
'/trade/brokerage-user/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询分销用户详情 */
|
||||
export function getBrokerageUser(id: number) {
|
||||
return requestClient.get<MallBrokerageUserApi.BrokerageUser>(
|
||||
`/trade/brokerage-user/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 修改推广员 */
|
||||
export function updateBindUser(
|
||||
data: MallBrokerageUserApi.UpdateBindUserRequest,
|
||||
) {
|
||||
return requestClient.put('/trade/brokerage-user/update-bind-user', data);
|
||||
}
|
||||
|
||||
/** 清除推广员 */
|
||||
export function clearBindUser(data: MallBrokerageUserApi.ClearBindUserRequest) {
|
||||
return requestClient.put('/trade/brokerage-user/clear-bind-user', data);
|
||||
}
|
||||
|
||||
/** 修改推广资格 */
|
||||
export function updateBrokerageEnabled(
|
||||
data: MallBrokerageUserApi.UpdateBrokerageEnabledRequest,
|
||||
) {
|
||||
return requestClient.put(
|
||||
'/trade/brokerage-user/update-brokerage-enable',
|
||||
data,
|
||||
);
|
||||
}
|
@@ -1,81 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallBrokerageWithdrawApi {
|
||||
/** 佣金提现 */
|
||||
export interface BrokerageWithdraw {
|
||||
/** 编号 */
|
||||
id: number;
|
||||
/** 用户编号 */
|
||||
userId: number;
|
||||
/** 提现金额,单位:分 */
|
||||
price: number;
|
||||
/** 手续费,单位:分 */
|
||||
feePrice: number;
|
||||
/** 总金额,单位:分 */
|
||||
totalPrice: number;
|
||||
/** 提现类型 */
|
||||
type: number;
|
||||
/** 用户名称 */
|
||||
userName: string;
|
||||
/** 用户账号 */
|
||||
userAccount: string;
|
||||
/** 银行名称 */
|
||||
bankName: string;
|
||||
/** 银行地址 */
|
||||
bankAddress: string;
|
||||
/** 收款码地址 */
|
||||
qrCodeUrl: string;
|
||||
/** 状态 */
|
||||
status: number;
|
||||
/** 审核备注 */
|
||||
auditReason: string;
|
||||
/** 审核时间 */
|
||||
auditTime: Date;
|
||||
/** 备注 */
|
||||
remark: string;
|
||||
/** 支付转账编号 */
|
||||
payTransferId?: number;
|
||||
/** 转账渠道编码 */
|
||||
transferChannelCode?: string;
|
||||
/** 转账时间 */
|
||||
transferTime?: Date;
|
||||
/** 转账错误信息 */
|
||||
transferErrorMsg?: string;
|
||||
}
|
||||
|
||||
/** 驳回申请请求 */
|
||||
export interface RejectRequest {
|
||||
/** 编号 */
|
||||
id: number;
|
||||
/** 驳回原因 */
|
||||
auditReason: string;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询佣金提现列表 */
|
||||
export function getBrokerageWithdrawPage(params: PageParam) {
|
||||
return requestClient.get<
|
||||
PageResult<MallBrokerageWithdrawApi.BrokerageWithdraw>
|
||||
>('/trade/brokerage-withdraw/page', { params });
|
||||
}
|
||||
|
||||
/** 查询佣金提现详情 */
|
||||
export function getBrokerageWithdraw(id: number) {
|
||||
return requestClient.get<MallBrokerageWithdrawApi.BrokerageWithdraw>(
|
||||
`/trade/brokerage-withdraw/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 佣金提现 - 通过申请 */
|
||||
export function approveBrokerageWithdraw(id: number) {
|
||||
return requestClient.put(`/trade/brokerage-withdraw/approve?id=${id}`);
|
||||
}
|
||||
|
||||
/** 审核佣金提现 - 驳回申请 */
|
||||
export function rejectBrokerageWithdraw(
|
||||
data: MallBrokerageWithdrawApi.RejectRequest,
|
||||
) {
|
||||
return requestClient.put('/trade/brokerage-withdraw/reject', data);
|
||||
}
|
@@ -1,33 +0,0 @@
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallTradeConfigApi {
|
||||
/** 交易中心配置 */
|
||||
export interface Config {
|
||||
id?: number;
|
||||
afterSaleRefundReasons?: string[];
|
||||
afterSaleReturnReasons?: string[];
|
||||
deliveryExpressFreeEnabled?: boolean;
|
||||
deliveryExpressFreePrice?: number;
|
||||
deliveryPickUpEnabled?: boolean;
|
||||
brokerageEnabled?: boolean;
|
||||
brokerageEnabledCondition?: number;
|
||||
brokerageBindMode?: number;
|
||||
brokeragePosterUrls?: string;
|
||||
brokerageFirstPercent?: number;
|
||||
brokerageSecondPercent?: number;
|
||||
brokerageWithdrawMinPrice?: number;
|
||||
brokerageFrozenDays?: number;
|
||||
brokerageWithdrawTypes?: string;
|
||||
tencentLbsKey?: string;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询交易中心配置详情 */
|
||||
export function getTradeConfig() {
|
||||
return requestClient.get<MallTradeConfigApi.Config>('/trade/config/get');
|
||||
}
|
||||
|
||||
/** 保存交易中心配置 */
|
||||
export function saveTradeConfig(data: MallTradeConfigApi.Config) {
|
||||
return requestClient.put('/trade/config/save', data);
|
||||
}
|
@@ -1,79 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallDeliveryExpressApi {
|
||||
/** 快递公司 */
|
||||
export interface DeliveryExpress {
|
||||
/** 编号 */
|
||||
id: number;
|
||||
/** 快递公司编码 */
|
||||
code: string;
|
||||
/** 快递公司名称 */
|
||||
name: string;
|
||||
/** 快递公司 logo */
|
||||
logo: string;
|
||||
/** 排序 */
|
||||
sort: number;
|
||||
/** 状态 */
|
||||
status: number;
|
||||
}
|
||||
|
||||
/** 快递公司精简信息 */
|
||||
export interface SimpleDeliveryExpress {
|
||||
/** 编号 */
|
||||
id: number;
|
||||
/** 快递公司编码 */
|
||||
code: string;
|
||||
/** 快递公司名称 */
|
||||
name: string;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询快递公司列表 */
|
||||
export function getDeliveryExpressPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallDeliveryExpressApi.DeliveryExpress>>(
|
||||
'/trade/delivery/express/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询快递公司详情 */
|
||||
export function getDeliveryExpress(id: number) {
|
||||
return requestClient.get<MallDeliveryExpressApi.DeliveryExpress>(
|
||||
`/trade/delivery/express/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 获得快递公司精简信息列表 */
|
||||
export function getSimpleDeliveryExpressList() {
|
||||
return requestClient.get<MallDeliveryExpressApi.SimpleDeliveryExpress[]>(
|
||||
'/trade/delivery/express/list-all-simple',
|
||||
);
|
||||
}
|
||||
|
||||
/** 新增快递公司 */
|
||||
export function createDeliveryExpress(
|
||||
data: MallDeliveryExpressApi.DeliveryExpress,
|
||||
) {
|
||||
return requestClient.post('/trade/delivery/express/create', data);
|
||||
}
|
||||
|
||||
/** 修改快递公司 */
|
||||
export function updateDeliveryExpress(
|
||||
data: MallDeliveryExpressApi.DeliveryExpress,
|
||||
) {
|
||||
return requestClient.put('/trade/delivery/express/update', data);
|
||||
}
|
||||
|
||||
/** 删除快递公司 */
|
||||
export function deleteDeliveryExpress(id: number) {
|
||||
return requestClient.delete(`/trade/delivery/express/delete?id=${id}`);
|
||||
}
|
||||
|
||||
/** 导出快递公司 Excel */
|
||||
export function exportDeliveryExpress(params: PageParam) {
|
||||
return requestClient.download('/trade/delivery/express/export-excel', {
|
||||
params,
|
||||
});
|
||||
}
|
@@ -1,95 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallDeliveryExpressTemplateApi {
|
||||
/** 运费模板计费 */
|
||||
export interface TemplateCharge {
|
||||
/** 区域编号列表 */
|
||||
areaIds: number[];
|
||||
/** 首件数量 */
|
||||
startCount: number;
|
||||
/** 首件价格,单位:分 */
|
||||
startPrice: number;
|
||||
/** 续件数量 */
|
||||
extraCount: number;
|
||||
/** 续件价格,单位:分 */
|
||||
extraPrice: number;
|
||||
}
|
||||
|
||||
/** 运费模板包邮 */
|
||||
export interface TemplateFree {
|
||||
/** 区域编号列表 */
|
||||
areaIds: number[];
|
||||
/** 包邮件数 */
|
||||
freeCount: number;
|
||||
/** 包邮金额,单位:分 */
|
||||
freePrice: number;
|
||||
}
|
||||
|
||||
/** 快递运费模板 */
|
||||
export interface ExpressTemplate {
|
||||
/** 编号 */
|
||||
id: number;
|
||||
/** 模板名称 */
|
||||
name: string;
|
||||
/** 计费方式 */
|
||||
chargeMode: number;
|
||||
/** 排序 */
|
||||
sort: number;
|
||||
/** 计费区域列表 */
|
||||
templateCharge: TemplateCharge[];
|
||||
/** 包邮区域列表 */
|
||||
templateFree: TemplateFree[];
|
||||
}
|
||||
|
||||
/** 运费模板精简信息 */
|
||||
export interface SimpleTemplate {
|
||||
/** 编号 */
|
||||
id: number;
|
||||
/** 模板名称 */
|
||||
name: string;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询快递运费模板列表 */
|
||||
export function getDeliveryExpressTemplatePage(params: PageParam) {
|
||||
return requestClient.get<
|
||||
PageResult<MallDeliveryExpressTemplateApi.ExpressTemplate>
|
||||
>('/trade/delivery/express-template/page', { params });
|
||||
}
|
||||
|
||||
/** 查询快递运费模板详情 */
|
||||
export function getDeliveryExpressTemplate(id: number) {
|
||||
return requestClient.get<MallDeliveryExpressTemplateApi.ExpressTemplate>(
|
||||
`/trade/delivery/express-template/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询快递运费模板详情 */
|
||||
export function getSimpleTemplateList() {
|
||||
return requestClient.get<MallDeliveryExpressTemplateApi.SimpleTemplate[]>(
|
||||
'/trade/delivery/express-template/list-all-simple',
|
||||
);
|
||||
}
|
||||
|
||||
/** 新增快递运费模板 */
|
||||
export function createDeliveryExpressTemplate(
|
||||
data: MallDeliveryExpressTemplateApi.ExpressTemplate,
|
||||
) {
|
||||
return requestClient.post('/trade/delivery/express-template/create', data);
|
||||
}
|
||||
|
||||
/** 修改快递运费模板 */
|
||||
export function updateDeliveryExpressTemplate(
|
||||
data: MallDeliveryExpressTemplateApi.ExpressTemplate,
|
||||
) {
|
||||
return requestClient.put('/trade/delivery/express-template/update', data);
|
||||
}
|
||||
|
||||
/** 删除快递运费模板 */
|
||||
export function deleteDeliveryExpressTemplate(id: number) {
|
||||
return requestClient.delete(
|
||||
`/trade/delivery/express-template/delete?id=${id}`,
|
||||
);
|
||||
}
|
@@ -1,94 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallDeliveryPickUpStoreApi {
|
||||
/** 自提门店 */
|
||||
export interface PickUpStore {
|
||||
/** 编号 */
|
||||
id: number;
|
||||
/** 门店名称 */
|
||||
name: string;
|
||||
/** 门店简介 */
|
||||
introduction: string;
|
||||
/** 联系电话 */
|
||||
phone: string;
|
||||
/** 区域编号 */
|
||||
areaId: number;
|
||||
/** 详细地址 */
|
||||
detailAddress: string;
|
||||
/** 门店 logo */
|
||||
logo: string;
|
||||
/** 营业开始时间 */
|
||||
openingTime: string;
|
||||
/** 营业结束时间 */
|
||||
closingTime: string;
|
||||
/** 纬度 */
|
||||
latitude: number;
|
||||
/** 经度 */
|
||||
longitude: number;
|
||||
/** 状态 */
|
||||
status: number;
|
||||
/** 绑定用户编号组数 */
|
||||
verifyUserIds: number[];
|
||||
}
|
||||
|
||||
/** 绑定自提店员请求 */
|
||||
export interface BindStaffRequest {
|
||||
id?: number;
|
||||
/** 门店名称 */
|
||||
name: string;
|
||||
/** 门店编号 */
|
||||
storeId: number;
|
||||
/** 用户编号列表 */
|
||||
userIds: number[];
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询自提门店列表 */
|
||||
export function getDeliveryPickUpStorePage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallDeliveryPickUpStoreApi.PickUpStore>>(
|
||||
'/trade/delivery/pick-up-store/page',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询自提门店详情 */
|
||||
export function getDeliveryPickUpStore(id: number) {
|
||||
return requestClient.get<MallDeliveryPickUpStoreApi.PickUpStore>(
|
||||
`/trade/delivery/pick-up-store/get?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询自提门店精简列表 */
|
||||
export function getSimpleDeliveryPickUpStoreList() {
|
||||
return requestClient.get<MallDeliveryPickUpStoreApi.PickUpStore[]>(
|
||||
'/trade/delivery/pick-up-store/simple-list',
|
||||
);
|
||||
}
|
||||
|
||||
/** 新增自提门店 */
|
||||
export function createDeliveryPickUpStore(
|
||||
data: MallDeliveryPickUpStoreApi.PickUpStore,
|
||||
) {
|
||||
return requestClient.post('/trade/delivery/pick-up-store/create', data);
|
||||
}
|
||||
|
||||
/** 修改自提门店 */
|
||||
export function updateDeliveryPickUpStore(
|
||||
data: MallDeliveryPickUpStoreApi.PickUpStore,
|
||||
) {
|
||||
return requestClient.put('/trade/delivery/pick-up-store/update', data);
|
||||
}
|
||||
|
||||
/** 删除自提门店 */
|
||||
export function deleteDeliveryPickUpStore(id: number) {
|
||||
return requestClient.delete(`/trade/delivery/pick-up-store/delete?id=${id}`);
|
||||
}
|
||||
|
||||
/** 绑定自提店员 */
|
||||
export function bindStoreStaffId(
|
||||
data: MallDeliveryPickUpStoreApi.BindStaffRequest,
|
||||
) {
|
||||
return requestClient.post('/trade/delivery/pick-up-store/bind', data);
|
||||
}
|
@@ -1,298 +0,0 @@
|
||||
import type { PageParam, PageResult } from '../../../types';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace MallOrderApi {
|
||||
/** 商品属性 */
|
||||
export interface ProductProperty {
|
||||
/** 属性的编号 */
|
||||
propertyId?: null | number;
|
||||
/** 属性的名称 */
|
||||
propertyName?: string;
|
||||
/** 属性值的编号 */
|
||||
valueId?: null | number;
|
||||
/** 属性值的名称 */
|
||||
valueName?: string;
|
||||
}
|
||||
|
||||
/** 订单项 */
|
||||
export interface OrderItem {
|
||||
/** 编号 */
|
||||
id?: null | number;
|
||||
/** 用户编号 */
|
||||
userId?: null | number;
|
||||
/** 订单编号 */
|
||||
orderId?: null | number;
|
||||
/** 商品 SPU 编号 */
|
||||
spuId?: null | number;
|
||||
/** 商品 SPU 名称 */
|
||||
spuName?: string;
|
||||
/** 商品 SKU 编号 */
|
||||
skuId?: null | number;
|
||||
/** 商品图片 */
|
||||
picUrl?: string;
|
||||
/** 购买数量 */
|
||||
count?: null | number;
|
||||
/** 商品原价(总) */
|
||||
originalPrice?: null | number;
|
||||
/** 商品原价(单) */
|
||||
originalUnitPrice?: null | number;
|
||||
/** 商品优惠(总) */
|
||||
discountPrice?: null | number;
|
||||
/** 商品实付金额(总) */
|
||||
payPrice?: null | number;
|
||||
/** 子订单分摊金额(总) */
|
||||
orderPartPrice?: null | number;
|
||||
/** 分摊后子订单实付金额(总) */
|
||||
orderDividePrice?: null | number;
|
||||
/** 售后状态 */
|
||||
afterSaleStatus?: null | number;
|
||||
/** 属性数组 */
|
||||
properties?: ProductProperty[];
|
||||
}
|
||||
|
||||
/** 订单日志 */
|
||||
export interface OrderLog {
|
||||
/** 日志内容 */
|
||||
content?: string;
|
||||
/** 创建时间 */
|
||||
createTime?: Date;
|
||||
/** 用户类型 */
|
||||
userType?: number;
|
||||
}
|
||||
|
||||
/** 订单 */
|
||||
export interface Order {
|
||||
/** 订单编号 */
|
||||
id?: null | number;
|
||||
/** 订单流水号 */
|
||||
no?: string;
|
||||
/** 下单时间 */
|
||||
createTime?: Date | null;
|
||||
/** 订单类型 */
|
||||
type?: null | number;
|
||||
/** 订单来源 */
|
||||
terminal?: null | number;
|
||||
/** 用户编号 */
|
||||
userId?: null | number;
|
||||
/** 用户 IP */
|
||||
userIp?: string;
|
||||
/** 用户备注 */
|
||||
userRemark?: string;
|
||||
/** 订单状态 */
|
||||
status?: null | number;
|
||||
/** 购买的商品数量 */
|
||||
productCount?: null | number;
|
||||
/** 订单完成时间 */
|
||||
finishTime?: Date | null;
|
||||
/** 订单取消时间 */
|
||||
cancelTime?: Date | null;
|
||||
/** 取消类型 */
|
||||
cancelType?: null | number;
|
||||
/** 商家备注 */
|
||||
remark?: string;
|
||||
/** 支付订单编号 */
|
||||
payOrderId?: null | number;
|
||||
/** 是否已支付 */
|
||||
payStatus?: boolean;
|
||||
/** 付款时间 */
|
||||
payTime?: Date | null;
|
||||
/** 支付渠道 */
|
||||
payChannelCode?: string;
|
||||
/** 商品原价(总) */
|
||||
totalPrice?: null | number;
|
||||
/** 订单优惠(总) */
|
||||
discountPrice?: null | number;
|
||||
/** 运费金额 */
|
||||
deliveryPrice?: null | number;
|
||||
/** 订单调价(总) */
|
||||
adjustPrice?: null | number;
|
||||
/** 应付金额(总) */
|
||||
payPrice?: null | number;
|
||||
/** 发货方式 */
|
||||
deliveryType?: null | number;
|
||||
/** 自提门店编号 */
|
||||
pickUpStoreId?: number;
|
||||
/** 自提核销码 */
|
||||
pickUpVerifyCode?: string;
|
||||
/** 配送模板编号 */
|
||||
deliveryTemplateId?: null | number;
|
||||
/** 发货物流公司编号 */
|
||||
logisticsId?: null | number;
|
||||
/** 发货物流单号 */
|
||||
logisticsNo?: string;
|
||||
/** 发货时间 */
|
||||
deliveryTime?: Date | null;
|
||||
/** 收货时间 */
|
||||
receiveTime?: Date | null;
|
||||
/** 收件人名称 */
|
||||
receiverName?: string;
|
||||
/** 收件人手机 */
|
||||
receiverMobile?: string;
|
||||
/** 收件人邮编 */
|
||||
receiverPostCode?: null | number;
|
||||
/** 收件人地区编号 */
|
||||
receiverAreaId?: null | number;
|
||||
/** 收件人地区名字 */
|
||||
receiverAreaName?: string;
|
||||
/** 收件人详细地址 */
|
||||
receiverDetailAddress?: string;
|
||||
/** 售后状态 */
|
||||
afterSaleStatus?: null | number;
|
||||
/** 退款金额 */
|
||||
refundPrice?: null | number;
|
||||
/** 优惠劵编号 */
|
||||
couponId?: null | number;
|
||||
/** 优惠劵减免金额 */
|
||||
couponPrice?: null | number;
|
||||
/** 积分抵扣的金额 */
|
||||
pointPrice?: null | number;
|
||||
/** VIP 减免金额 */
|
||||
vipPrice?: null | number;
|
||||
/** 订单项列表 */
|
||||
items?: OrderItem[];
|
||||
/** 下单用户信息 */
|
||||
user?: {
|
||||
/** 用户头像 */
|
||||
avatar?: string;
|
||||
/** 用户编号 */
|
||||
id?: null | number;
|
||||
/** 用户昵称 */
|
||||
nickname?: string;
|
||||
};
|
||||
/** 推广用户信息 */
|
||||
brokerageUser?: {
|
||||
/** 用户头像 */
|
||||
avatar?: string;
|
||||
/** 用户编号 */
|
||||
id?: null | number;
|
||||
/** 用户昵称 */
|
||||
nickname?: string;
|
||||
};
|
||||
/** 订单操作日志 */
|
||||
logs?: OrderLog[];
|
||||
}
|
||||
|
||||
/** 交易订单统计 */
|
||||
export interface OrderSummary {
|
||||
/** 订单数量 */
|
||||
orderCount: number;
|
||||
/** 订单金额 */
|
||||
orderPayPrice: number;
|
||||
/** 退款单数 */
|
||||
afterSaleCount: number;
|
||||
/** 退款金额 */
|
||||
afterSalePrice: number;
|
||||
}
|
||||
|
||||
/** 订单发货请求 */
|
||||
export interface DeliveryRequest {
|
||||
/** 订单编号 */
|
||||
id?: number;
|
||||
/** 发货方式 */
|
||||
expressType: string;
|
||||
/** 物流公司编号 */
|
||||
logisticsId: null | number;
|
||||
/** 物流编号 */
|
||||
logisticsNo: string;
|
||||
}
|
||||
|
||||
/** 订单备注请求 */
|
||||
export interface RemarkRequest {
|
||||
/** 订单编号 */
|
||||
id: number;
|
||||
/** 备注 */
|
||||
remark: string;
|
||||
}
|
||||
|
||||
/** 订单调价请求 */
|
||||
export interface PriceRequest {
|
||||
/** 订单编号 */
|
||||
id: number;
|
||||
/** 调整金额,单位:分 */
|
||||
adjustPrice: number;
|
||||
}
|
||||
|
||||
/** 订单地址请求 */
|
||||
export interface AddressRequest {
|
||||
/** 订单编号 */
|
||||
id: number;
|
||||
/** 收件人名称 */
|
||||
receiverName: string;
|
||||
/** 收件人手机 */
|
||||
receiverMobile: string;
|
||||
/** 收件人地区编号 */
|
||||
receiverAreaId: number;
|
||||
/** 收件人详细地址 */
|
||||
receiverDetailAddress: string;
|
||||
}
|
||||
}
|
||||
|
||||
/** 查询交易订单列表 */
|
||||
export function getOrderPage(params: PageParam) {
|
||||
return requestClient.get<PageResult<MallOrderApi.Order>>(
|
||||
'/trade/order/page',
|
||||
{
|
||||
params,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询交易订单统计 */
|
||||
export function getOrderSummary(params: PageParam) {
|
||||
return requestClient.get<MallOrderApi.OrderSummary>('/trade/order/summary', {
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/** 查询交易订单详情 */
|
||||
export function getOrder(id: number) {
|
||||
return requestClient.get<MallOrderApi.Order>(
|
||||
`/trade/order/get-detail?id=${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 查询交易订单物流详情 */
|
||||
export function getExpressTrackList(id: number) {
|
||||
return requestClient.get(`/trade/order/get-express-track-list?id=${id}`);
|
||||
}
|
||||
|
||||
/** 订单发货 */
|
||||
export function deliveryOrder(data: MallOrderApi.DeliveryRequest) {
|
||||
return requestClient.put('/trade/order/delivery', data);
|
||||
}
|
||||
|
||||
/** 订单备注 */
|
||||
export function updateOrderRemark(data: MallOrderApi.RemarkRequest) {
|
||||
return requestClient.put('/trade/order/update-remark', data);
|
||||
}
|
||||
|
||||
/** 订单调价 */
|
||||
export function updateOrderPrice(data: MallOrderApi.PriceRequest) {
|
||||
return requestClient.put('/trade/order/update-price', data);
|
||||
}
|
||||
|
||||
/** 修改订单地址 */
|
||||
export function updateOrderAddress(data: MallOrderApi.AddressRequest) {
|
||||
return requestClient.put('/trade/order/update-address', data);
|
||||
}
|
||||
|
||||
/** 订单核销 */
|
||||
export function pickUpOrder(id: number) {
|
||||
return requestClient.put(`/trade/order/pick-up-by-id?id=${id}`);
|
||||
}
|
||||
|
||||
/** 订单核销 */
|
||||
export function pickUpOrderByVerifyCode(pickUpVerifyCode: string) {
|
||||
return requestClient.put('/trade/order/pick-up-by-verify-code', {
|
||||
params: { pickUpVerifyCode },
|
||||
});
|
||||
}
|
||||
|
||||
/** 查询核销码对应的订单 */
|
||||
export function getOrderByPickUpVerifyCode(pickUpVerifyCode: string) {
|
||||
return requestClient.get<MallOrderApi.Order>(
|
||||
'/trade/order/get-by-pick-up-verify-code',
|
||||
{ params: { pickUpVerifyCode } },
|
||||
);
|
||||
}
|
@@ -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;
|
||||
}
|
@@ -1,27 +1,34 @@
|
||||
import type { ArrangementVO, ArrangementForm, ArrangementQuery } from './model';
|
||||
import type {
|
||||
ArrangementForm,
|
||||
ArrangementQuery,
|
||||
ArrangementVO,
|
||||
arrangmentListQuery,
|
||||
AttendanceUserGroup,
|
||||
} from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
import type { ID, IDS, PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
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 arrangementExport(params?: ArrangementQuery) {
|
||||
return commonExport('/property/arrangement/export', params ?? {});
|
||||
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 });
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -59,3 +66,41 @@ export function arrangementUpdate(data: ArrangementForm) {
|
||||
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',
|
||||
);
|
||||
}
|
||||
|
@@ -9,38 +9,41 @@ export interface ArrangementVO {
|
||||
/**
|
||||
* 排班名称
|
||||
*/
|
||||
scheduleName: string;
|
||||
scheduleName?: string;
|
||||
|
||||
/**
|
||||
* 考勤组ID
|
||||
*/
|
||||
groupId: string | number;
|
||||
groupId?: string | number;
|
||||
|
||||
/**
|
||||
* 排班类型:1-固定班制,2-排班制
|
||||
*/
|
||||
scheduleType: number;
|
||||
scheduleType?: number;
|
||||
|
||||
/**
|
||||
* 日期类型:1-单个日期,2-长期有效,3-期间有效
|
||||
*/
|
||||
dateType: number;
|
||||
dateType?: number;
|
||||
|
||||
/**
|
||||
* 开始日期
|
||||
*/
|
||||
startDate: string;
|
||||
startDate?: string;
|
||||
|
||||
/**
|
||||
* 结束日期(仅date_type=3时有效)
|
||||
*/
|
||||
endDate: string;
|
||||
endDate?: string;
|
||||
|
||||
/**
|
||||
* 状态:0-未生效,1-已生效
|
||||
*/
|
||||
status: number;
|
||||
|
||||
status?: number;
|
||||
userGroupList?: any[];
|
||||
attendanceGroup?: any;
|
||||
dateType?: number;
|
||||
areaList: any[]; //区域
|
||||
}
|
||||
|
||||
export interface ArrangementForm extends BaseEntity {
|
||||
@@ -83,7 +86,14 @@ export interface ArrangementForm extends BaseEntity {
|
||||
* 状态:0-未生效,1-已生效
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 排班人员详情
|
||||
*/
|
||||
userGroupList: any[];
|
||||
/**
|
||||
* 排班id
|
||||
*/
|
||||
scheduleId?: string | number;
|
||||
}
|
||||
|
||||
export interface ArrangementQuery extends PageQuery {
|
||||
@@ -123,7 +133,18 @@ export interface ArrangementQuery extends PageQuery {
|
||||
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;
|
||||
}
|
@@ -12,7 +12,7 @@ import { requestClient } from '#/api/request';
|
||||
* @returns 考勤组基本信息列表
|
||||
*/
|
||||
export function groupList(params?: GroupQuery) {
|
||||
return requestClient.get<PageResult<GroupVO>>('/Property/group/list', { params });
|
||||
return requestClient.get<PageResult<GroupVO>>('/property/group/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -21,16 +21,18 @@ export function groupList(params?: GroupQuery) {
|
||||
* @returns 考勤组基本信息列表
|
||||
*/
|
||||
export function groupExport(params?: GroupQuery) {
|
||||
return commonExport('/Property/group/export', params ?? {});
|
||||
return commonExport('/property/group/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询考勤组基本信息详情
|
||||
* @param id id
|
||||
* @param attendanceType 类型
|
||||
* @returns 考勤组基本信息详情
|
||||
*/
|
||||
export function groupInfo(id: ID) {
|
||||
return requestClient.get<GroupVO>(`/Property/group/${id}`);
|
||||
export function groupInfo(id: ID,attendanceType:string) {
|
||||
let params={attendanceType}
|
||||
return requestClient.get<GroupVO>(`/property/group/${id}`,{params});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -39,7 +41,7 @@ export function groupInfo(id: ID) {
|
||||
* @returns void
|
||||
*/
|
||||
export function groupAdd(data: GroupForm) {
|
||||
return requestClient.postWithMsg<void>('/Property/group', data);
|
||||
return requestClient.postWithMsg<void>('/property/group', data);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -48,14 +50,25 @@ export function groupAdd(data: GroupForm) {
|
||||
* @returns void
|
||||
*/
|
||||
export function groupUpdate(data: GroupForm) {
|
||||
return requestClient.putWithMsg<void>('/Property/group', data);
|
||||
return requestClient.putWithMsg<void>('/property/group', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除考勤组基本信息
|
||||
* @param id id
|
||||
* @param attendanceType 类型
|
||||
* @returns void
|
||||
*/
|
||||
export function groupRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/Property/group/${id}`);
|
||||
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();
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
import type {PageQuery, BaseEntity} from '#/api/common';
|
||||
|
||||
export interface GroupVO {
|
||||
/**
|
||||
@@ -19,7 +19,17 @@ export interface GroupVO {
|
||||
/**
|
||||
* 考勤类型(0:固定班制,1:排班制)
|
||||
*/
|
||||
attendanceType: number;
|
||||
attendanceType: number| string;
|
||||
|
||||
isAutomatic: boolean;
|
||||
|
||||
clockDateList: any[];
|
||||
|
||||
weekList: any[];
|
||||
|
||||
attendanceList:any[];
|
||||
|
||||
scheduleCycleList:any[];
|
||||
|
||||
}
|
||||
|
||||
@@ -63,7 +73,16 @@ export interface GroupQuery extends PageQuery {
|
||||
attendanceType?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 假期
|
||||
*/
|
||||
export interface Holiday {
|
||||
holiday: boolean;
|
||||
name: string;
|
||||
date: string;
|
||||
}
|
||||
|
@@ -1,8 +1,6 @@
|
||||
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';
|
||||
|
||||
@@ -12,7 +10,7 @@ import { requestClient } from '#/api/request';
|
||||
* @returns 班次表列表
|
||||
*/
|
||||
export function shiftList(params?: ShiftQuery) {
|
||||
return requestClient.get<PageResult<ShiftVO>>('/Property/shift/list', { params });
|
||||
return requestClient.get<PageResult<ShiftVO>>('/property/shift/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -21,7 +19,7 @@ export function shiftList(params?: ShiftQuery) {
|
||||
* @returns 班次表列表
|
||||
*/
|
||||
export function shiftExport(params?: ShiftQuery) {
|
||||
return commonExport('/Property/shift/export', params ?? {});
|
||||
return commonExport('/property/shift/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -30,7 +28,7 @@ export function shiftExport(params?: ShiftQuery) {
|
||||
* @returns 班次表详情
|
||||
*/
|
||||
export function shiftInfo(id: ID) {
|
||||
return requestClient.get<ShiftVO>(`/Property/shift/${id}`);
|
||||
return requestClient.get<ShiftVO>(`/property/shift/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -39,7 +37,7 @@ export function shiftInfo(id: ID) {
|
||||
* @returns void
|
||||
*/
|
||||
export function shiftAdd(data: ShiftForm) {
|
||||
return requestClient.postWithMsg<void>('/Property/shift', data);
|
||||
return requestClient.postWithMsg<void>('/property/shift', data);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -48,7 +46,7 @@ export function shiftAdd(data: ShiftForm) {
|
||||
* @returns void
|
||||
*/
|
||||
export function shiftUpdate(data: ShiftForm) {
|
||||
return requestClient.putWithMsg<void>('/Property/shift', data);
|
||||
return requestClient.putWithMsg<void>('/property/shift', data);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -57,5 +55,5 @@ export function shiftUpdate(data: ShiftForm) {
|
||||
* @returns void
|
||||
*/
|
||||
export function shiftRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/Property/shift/${id}`);
|
||||
return requestClient.deleteWithMsg<void>(`/property/shift/${id}`);
|
||||
}
|
||||
|
@@ -1,10 +1,11 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
import {isArray} from "lodash-es";
|
||||
|
||||
export interface ShiftVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* 班次名称
|
||||
@@ -24,7 +25,7 @@ export interface ShiftVO {
|
||||
/**
|
||||
* 状态(0:off,1:on)
|
||||
*/
|
||||
status: number;
|
||||
status: string | number;
|
||||
|
||||
/**
|
||||
* 是否休息(0:不休息,1:休息)
|
||||
@@ -41,6 +42,8 @@ export interface ShiftVO {
|
||||
*/
|
||||
restEndTime: string;
|
||||
|
||||
attendanceTimeRange: [any,any];
|
||||
restTimeRange: [any,any];
|
||||
}
|
||||
|
||||
export interface ShiftForm extends BaseEntity {
|
||||
@@ -67,7 +70,7 @@ export interface ShiftForm extends BaseEntity {
|
||||
/**
|
||||
* 状态(0:off,1:on)
|
||||
*/
|
||||
status?: number;
|
||||
status?: string | number;
|
||||
|
||||
/**
|
||||
* 是否休息(0:不休息,1:休息)
|
||||
@@ -83,7 +86,6 @@ export interface ShiftForm extends BaseEntity {
|
||||
* 休息结束时间
|
||||
*/
|
||||
restEndTime?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ShiftQuery extends PageQuery {
|
||||
@@ -105,7 +107,7 @@ export interface ShiftQuery extends PageQuery {
|
||||
/**
|
||||
* 状态(0:off,1:on)
|
||||
*/
|
||||
status?: number;
|
||||
status?: string | number;
|
||||
|
||||
/**
|
||||
* 是否休息(0:不休息,1:休息)
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -59,3 +59,7 @@ export function carChargeUpdate(data: CarChargeForm) {
|
||||
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);
|
||||
}
|
||||
|
@@ -16,6 +16,7 @@ export interface CarChargeVO {
|
||||
*/
|
||||
personId: string | number;
|
||||
|
||||
chargeItem:string
|
||||
/**
|
||||
* 楼层
|
||||
*/
|
||||
@@ -55,6 +56,10 @@ export interface CarChargeVO {
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
amountReceivable?:any;
|
||||
chargeStatus:any;
|
||||
payType:any;
|
||||
chargeCycle:any
|
||||
|
||||
}
|
||||
|
||||
|
@@ -144,6 +144,16 @@ export interface Clean_orderForm extends BaseEntity {
|
||||
*/
|
||||
phone?: string;
|
||||
|
||||
/**
|
||||
* 签到图片
|
||||
*/
|
||||
signImgUrl?: string;
|
||||
|
||||
/**
|
||||
* 评价图片
|
||||
*/
|
||||
imgUrl?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface Clean_orderQuery extends PageQuery {
|
||||
|
@@ -58,6 +58,8 @@ export interface HouseChargeVO {
|
||||
costItemsVo: CostItemSettingVO;
|
||||
|
||||
chargeStatus: string;
|
||||
|
||||
personId: string;
|
||||
}
|
||||
|
||||
export interface HouseChargeForm extends BaseEntity {
|
||||
|
@@ -58,4 +58,9 @@ export function costMeterWaterUpdate(data: CostMeterWaterForm) {
|
||||
*/
|
||||
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}`);
|
||||
}
|
@@ -51,6 +51,8 @@ export interface CostMeterWaterVO {
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
costType:string;
|
||||
userId:string;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
@@ -61,6 +61,8 @@ export interface MaintainPlanVO {
|
||||
userId: string[];
|
||||
|
||||
machineMaintainPlanStaffBoList:any[];
|
||||
|
||||
machineMaintainPlanStaffVos:any[];
|
||||
}
|
||||
|
||||
export interface MaintainPlanForm extends BaseEntity {
|
||||
|
@@ -61,9 +61,9 @@ export function floorRemove(id: ID | IDS) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据单元ID查询楼层
|
||||
* 根据楼层ID查询楼层
|
||||
* @param id id
|
||||
*/
|
||||
export function queryByUnitId(id: ID | IDS) {
|
||||
return requestClient.get<FloorVO[]>(`/property/floor/queryByUnitId/${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;
|
||||
|
||||
/**
|
||||
* 任务提前分组
|
||||
|
@@ -46,6 +46,10 @@ export interface InspectionPointVO {
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
itemName: string;
|
||||
|
||||
createTime: string;
|
||||
|
||||
}
|
||||
|
||||
export interface InspectionPointForm extends BaseEntity {
|
||||
|
@@ -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}`);
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user