修改积分商城商品显示问题1 #35
14
.drone.yml
14
.drone.yml
@ -36,14 +36,14 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
||||
- chmod +x push.sh
|
||||
- ./push.sh
|
||||
- scp run.sh root@1.14.205.126:/zymail/build
|
||||
# - ls
|
||||
# - scp -r /zymail/maven/build root@1.14.205.126:/zymail
|
||||
# - ssh root@1.14.205.126
|
||||
# - ls
|
||||
# - ls
|
||||
# - scp -r /zymail/maven/build root@1.14.205.126:/zymail
|
||||
# - ssh root@1.14.205.126
|
||||
# - ls
|
||||
|
||||
# - chmod +x run.sh # 更改为可执行脚本
|
||||
# - chmod +x run.sh # 更改为可执行脚本
|
||||
|
||||
# - ./run.sh # 运行脚本打包应用镜像并运行
|
||||
# - ./run.sh # 运行脚本打包应用镜像并运行
|
||||
- name: build-start
|
||||
|
||||
image: appleboy/drone-ssh # SSH工具镜像
|
||||
@ -63,7 +63,7 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
||||
command_timeout: 5m # 远程执行命令超时时间
|
||||
|
||||
script:
|
||||
# - ls
|
||||
# - ls
|
||||
- cd /zymail/build
|
||||
- chmod +x run.sh # 更改为可执行脚本
|
||||
- ./run.sh # 运行脚本打包应用镜像并运行
|
||||
|
@ -3,7 +3,6 @@
|
||||
"baseUrl": "http://127.0.0.1:48080/admin-api",
|
||||
"token": "test1",
|
||||
"adminTenentId": "1",
|
||||
|
||||
"appApi": "http://127.0.0.1:48080/app-api",
|
||||
"appToken": "test247",
|
||||
"appTenentId": "1"
|
||||
@ -12,7 +11,6 @@
|
||||
"baseUrl": "http://127.0.0.1:8888/admin-api",
|
||||
"token": "test1",
|
||||
"adminTenentId": "1",
|
||||
|
||||
"appApi": "http://127.0.0.1:8888/app-api",
|
||||
"appToken": "test1",
|
||||
"appTenantId": "1"
|
||||
|
2
script/jenkins/Jenkinsfile
vendored
2
script/jenkins/Jenkinsfile
vendored
@ -50,7 +50,7 @@ pipeline {
|
||||
stage('部署') {
|
||||
steps {
|
||||
sh 'cp -f ' + ' bin/deploy.sh ' + "${env.APP_DEPLOY_BASE_DIR}" + "${env.APP_NAME}"
|
||||
sh 'cp -f ' + "${env.APP_NAME}" + '/target/*.jar ' + "${env.APP_DEPLOY_BASE_DIR}" + "${env.APP_NAME}" +'/build/'
|
||||
sh 'cp -f ' + "${env.APP_NAME}" + '/target/*.jar ' + "${env.APP_DEPLOY_BASE_DIR}" + "${env.APP_NAME}" + '/build/'
|
||||
archiveArtifacts "${env.APP_NAME}" + '/target/*.jar'
|
||||
sh 'chmod +x ' + "${env.APP_DEPLOY_BASE_DIR}" + "${env.APP_NAME}" + '/deploy.sh'
|
||||
sh 'bash ' + "${env.APP_DEPLOY_BASE_DIR}" + "${env.APP_NAME}" + '/deploy.sh'
|
||||
|
@ -15,6 +15,7 @@ import java.util.Properties;
|
||||
import java.util.Set;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import liquibase.CatalogAndSchema;
|
||||
import liquibase.Scope;
|
||||
import liquibase.database.AbstractJdbcDatabase;
|
||||
@ -63,7 +64,7 @@ public class DmDatabase extends AbstractJdbcDatabase {
|
||||
*/
|
||||
@Override
|
||||
public String getDefaultDriver(String url) {
|
||||
if(url.startsWith("jdbc:dm")) {
|
||||
if (url.startsWith("jdbc:dm")) {
|
||||
return "dm.jdbc.driver.DmDriver";
|
||||
}
|
||||
|
||||
@ -435,10 +436,10 @@ public class DmDatabase extends AbstractJdbcDatabase {
|
||||
"USLOG$",
|
||||
"SYS_FBA"));
|
||||
|
||||
for (int i = 0;i<clauses.size(); i++) {
|
||||
clauses.set(i, tableNameColumn+" NOT LIKE '"+clauses.get(i)+"%'");
|
||||
for (int i = 0; i < clauses.size(); i++) {
|
||||
clauses.set(i, tableNameColumn + " NOT LIKE '" + clauses.get(i) + "%'");
|
||||
}
|
||||
return "("+ StringUtil.join(clauses, " AND ") + ")";
|
||||
return "(" + StringUtil.join(clauses, " AND ") + ")";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -133,7 +133,9 @@ public abstract class AbstractEngineConfiguration {
|
||||
|
||||
protected final Logger logger = LoggerFactory.getLogger(getClass());
|
||||
|
||||
/** The tenant id indicating 'no tenant' */
|
||||
/**
|
||||
* The tenant id indicating 'no tenant'
|
||||
*/
|
||||
public static final String NO_TENANT_ID = "";
|
||||
|
||||
/**
|
||||
@ -261,9 +263,9 @@ public abstract class AbstractEngineConfiguration {
|
||||
|
||||
/**
|
||||
* Flag that can be set to configure or not a relational database is used. This is useful for custom implementations that do not use relational databases at all.
|
||||
*
|
||||
* <p>
|
||||
* If true (default), the {@link AbstractEngineConfiguration#getDatabaseSchemaUpdate()} value will be used to determine what needs to happen wrt the database schema.
|
||||
*
|
||||
* <p>
|
||||
* If false, no validation or schema creation will be done. That means that the database schema must have been created 'manually' before but the engine does not validate whether the schema is
|
||||
* correct. The {@link AbstractEngineConfiguration#getDatabaseSchemaUpdate()} value will not be used.
|
||||
*/
|
||||
@ -287,7 +289,7 @@ public abstract class AbstractEngineConfiguration {
|
||||
|
||||
/**
|
||||
* Escape character for doing wildcard searches.
|
||||
*
|
||||
* <p>
|
||||
* This will be added at then end of queries that include for example a LIKE clause. For example: SELECT * FROM table WHERE column LIKE '%\%%' ESCAPE '\';
|
||||
*/
|
||||
protected String databaseWildcardEscapeCharacter;
|
||||
@ -956,8 +958,8 @@ public abstract class AbstractEngineConfiguration {
|
||||
}
|
||||
|
||||
public void initCustomMybatisInterceptors(Configuration configuration) {
|
||||
if (customMybatisInterceptors!=null){
|
||||
for (Interceptor interceptor :customMybatisInterceptors){
|
||||
if (customMybatisInterceptors != null) {
|
||||
for (Interceptor interceptor : customMybatisInterceptors) {
|
||||
configuration.addInterceptor(interceptor);
|
||||
}
|
||||
}
|
||||
|
@ -25,41 +25,41 @@ export interface ChatConversationVO {
|
||||
export const ChatConversationApi = {
|
||||
// 获得【我的】聊天对话
|
||||
getChatConversationMy: async (id: number) => {
|
||||
return await request.get({ url: `/ai/chat/conversation/get-my?id=${id}` })
|
||||
return await request.get({url: `/ai/chat/conversation/get-my?id=${id}`})
|
||||
},
|
||||
|
||||
// 新增【我的】聊天对话
|
||||
createChatConversationMy: async (data?: ChatConversationVO) => {
|
||||
return await request.post({ url: `/ai/chat/conversation/create-my`, data })
|
||||
return await request.post({url: `/ai/chat/conversation/create-my`, data})
|
||||
},
|
||||
|
||||
// 更新【我的】聊天对话
|
||||
updateChatConversationMy: async (data: ChatConversationVO) => {
|
||||
return await request.put({ url: `/ai/chat/conversation/update-my`, data })
|
||||
return await request.put({url: `/ai/chat/conversation/update-my`, data})
|
||||
},
|
||||
|
||||
// 删除【我的】聊天对话
|
||||
deleteChatConversationMy: async (id: string) => {
|
||||
return await request.delete({ url: `/ai/chat/conversation/delete-my?id=${id}` })
|
||||
return await request.delete({url: `/ai/chat/conversation/delete-my?id=${id}`})
|
||||
},
|
||||
|
||||
// 删除【我的】所有对话,置顶除外
|
||||
deleteChatConversationMyByUnpinned: async () => {
|
||||
return await request.delete({ url: `/ai/chat/conversation/delete-by-unpinned` })
|
||||
return await request.delete({url: `/ai/chat/conversation/delete-by-unpinned`})
|
||||
},
|
||||
|
||||
// 获得【我的】聊天对话列表
|
||||
getChatConversationMyList: async () => {
|
||||
return await request.get({ url: `/ai/chat/conversation/my-list` })
|
||||
return await request.get({url: `/ai/chat/conversation/my-list`})
|
||||
},
|
||||
|
||||
// 获得对话分页
|
||||
getChatConversationPage: async (params: any) => {
|
||||
return await request.get({ url: `/ai/chat/conversation/page`, params })
|
||||
return await request.get({url: `/ai/chat/conversation/page`, params})
|
||||
},
|
||||
|
||||
// 管理员删除消息
|
||||
deleteChatConversationByAdmin: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/chat/conversation/delete-by-admin?id=${id}` })
|
||||
return await request.delete({url: `/ai/chat/conversation/delete-by-admin?id=${id}`})
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
import request from '@/config/axios'
|
||||
import { fetchEventSource } from '@microsoft/fetch-event-source'
|
||||
import { getAccessToken } from '@/utils/auth'
|
||||
import { config } from '@/config/axios/config'
|
||||
import {fetchEventSource} from '@microsoft/fetch-event-source'
|
||||
import {getAccessToken} from '@/utils/auth'
|
||||
import {config} from '@/config/axios/config'
|
||||
|
||||
// 聊天VO
|
||||
export interface ChatMessageVO {
|
||||
@ -61,7 +61,7 @@ export const ChatMessageApi = {
|
||||
|
||||
// 删除消息
|
||||
deleteChatMessage: async (id: string) => {
|
||||
return await request.delete({ url: `/ai/chat/message/delete?id=${id}` })
|
||||
return await request.delete({url: `/ai/chat/message/delete?id=${id}`})
|
||||
},
|
||||
|
||||
// 删除指定对话的消息
|
||||
@ -73,11 +73,11 @@ export const ChatMessageApi = {
|
||||
|
||||
// 获得消息分页
|
||||
getChatMessagePage: async (params: any) => {
|
||||
return await request.get({ url: '/ai/chat/message/page', params })
|
||||
return await request.get({url: '/ai/chat/message/page', params})
|
||||
},
|
||||
|
||||
// 管理员删除消息
|
||||
deleteChatMessageByAdmin: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/chat/message/delete-by-admin?id=${id}` })
|
||||
return await request.delete({url: `/ai/chat/message/delete-by-admin?id=${id}`})
|
||||
}
|
||||
}
|
||||
|
@ -54,54 +54,54 @@ export interface ImageMidjourneyButtonsVO {
|
||||
export const ImageApi = {
|
||||
// 获取【我的】绘图分页
|
||||
getImagePageMy: async (params: PageParam) => {
|
||||
return await request.get({ url: `/ai/image/my-page`, params })
|
||||
return await request.get({url: `/ai/image/my-page`, params})
|
||||
},
|
||||
// 获取公开的绘图记录
|
||||
getImagePagePublic: async (params) => {
|
||||
return await request.get({ url: `/ai/image/public-page`, params })
|
||||
return await request.get({url: `/ai/image/public-page`, params})
|
||||
},
|
||||
// 获取【我的】绘图记录
|
||||
getImageMy: async (id: number) => {
|
||||
return await request.get({ url: `/ai/image/get-my?id=${id}` })
|
||||
return await request.get({url: `/ai/image/get-my?id=${id}`})
|
||||
},
|
||||
// 获取【我的】绘图记录列表
|
||||
getImageListMyByIds: async (ids: number[]) => {
|
||||
return await request.get({ url: `/ai/image/my-list-by-ids`, params: { ids: ids.join(',') } })
|
||||
return await request.get({url: `/ai/image/my-list-by-ids`, params: {ids: ids.join(',')}})
|
||||
},
|
||||
// 生成图片
|
||||
drawImage: async (data: ImageDrawReqVO) => {
|
||||
return await request.post({ url: `/ai/image/draw`, data })
|
||||
return await request.post({url: `/ai/image/draw`, data})
|
||||
},
|
||||
// 删除【我的】绘画记录
|
||||
deleteImageMy: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/image/delete-my?id=${id}` })
|
||||
return await request.delete({url: `/ai/image/delete-my?id=${id}`})
|
||||
},
|
||||
|
||||
// ================ midjourney 专属 ================
|
||||
|
||||
// 【Midjourney】生成图片
|
||||
midjourneyImagine: async (data: ImageMidjourneyImagineReqVO) => {
|
||||
return await request.post({ url: `/ai/image/midjourney/imagine`, data })
|
||||
return await request.post({url: `/ai/image/midjourney/imagine`, data})
|
||||
},
|
||||
// 【Midjourney】Action 操作(二次生成图片)
|
||||
midjourneyAction: async (data: ImageMidjourneyActionVO) => {
|
||||
return await request.post({ url: `/ai/image/midjourney/action`, data })
|
||||
return await request.post({url: `/ai/image/midjourney/action`, data})
|
||||
},
|
||||
|
||||
// ================ 绘图管理 ================
|
||||
|
||||
// 查询绘画分页
|
||||
getImagePage: async (params: any) => {
|
||||
return await request.get({ url: `/ai/image/page`, params })
|
||||
return await request.get({url: `/ai/image/page`, params})
|
||||
},
|
||||
|
||||
// 更新绘画发布状态
|
||||
updateImage: async (data: any) => {
|
||||
return await request.put({ url: '/ai/image/update-public-status', data })
|
||||
return await request.put({url: '/ai/image/update-public-status', data})
|
||||
},
|
||||
|
||||
// 删除绘画
|
||||
deleteImage: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/image/delete?id=` + id })
|
||||
return await request.delete({url: `/ai/image/delete?id=` + id})
|
||||
}
|
||||
}
|
||||
|
@ -14,31 +14,31 @@ export interface ApiKeyVO {
|
||||
export const ApiKeyApi = {
|
||||
// 查询 API 密钥分页
|
||||
getApiKeyPage: async (params: any) => {
|
||||
return await request.get({ url: `/ai/api-key/page`, params })
|
||||
return await request.get({url: `/ai/api-key/page`, params})
|
||||
},
|
||||
|
||||
// 获得 API 密钥列表
|
||||
getApiKeySimpleList: async () => {
|
||||
return await request.get({ url: `/ai/api-key/simple-list` })
|
||||
return await request.get({url: `/ai/api-key/simple-list`})
|
||||
},
|
||||
|
||||
// 查询 API 密钥详情
|
||||
getApiKey: async (id: number) => {
|
||||
return await request.get({ url: `/ai/api-key/get?id=` + id })
|
||||
return await request.get({url: `/ai/api-key/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增 API 密钥
|
||||
createApiKey: async (data: ApiKeyVO) => {
|
||||
return await request.post({ url: `/ai/api-key/create`, data })
|
||||
return await request.post({url: `/ai/api-key/create`, data})
|
||||
},
|
||||
|
||||
// 修改 API 密钥
|
||||
updateApiKey: async (data: ApiKeyVO) => {
|
||||
return await request.put({ url: `/ai/api-key/update`, data })
|
||||
return await request.put({url: `/ai/api-key/update`, data})
|
||||
},
|
||||
|
||||
// 删除 API 密钥
|
||||
deleteApiKey: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/api-key/delete?id=` + id })
|
||||
return await request.delete({url: `/ai/api-key/delete?id=` + id})
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ export interface ChatModelVO {
|
||||
export const ChatModelApi = {
|
||||
// 查询聊天模型分页
|
||||
getChatModelPage: async (params: any) => {
|
||||
return await request.get({ url: `/ai/chat-model/page`, params })
|
||||
return await request.get({url: `/ai/chat-model/page`, params})
|
||||
},
|
||||
|
||||
// 获得聊天模型列表
|
||||
@ -33,21 +33,21 @@ export const ChatModelApi = {
|
||||
|
||||
// 查询聊天模型详情
|
||||
getChatModel: async (id: number) => {
|
||||
return await request.get({ url: `/ai/chat-model/get?id=` + id })
|
||||
return await request.get({url: `/ai/chat-model/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增聊天模型
|
||||
createChatModel: async (data: ChatModelVO) => {
|
||||
return await request.post({ url: `/ai/chat-model/create`, data })
|
||||
return await request.post({url: `/ai/chat-model/create`, data})
|
||||
},
|
||||
|
||||
// 修改聊天模型
|
||||
updateChatModel: async (data: ChatModelVO) => {
|
||||
return await request.put({ url: `/ai/chat-model/update`, data })
|
||||
return await request.put({url: `/ai/chat-model/update`, data})
|
||||
},
|
||||
|
||||
// 删除聊天模型
|
||||
deleteChatModel: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/chat-model/delete?id=` + id })
|
||||
return await request.delete({url: `/ai/chat-model/delete?id=` + id})
|
||||
}
|
||||
}
|
||||
|
@ -28,53 +28,53 @@ export interface ChatRolePageReqVO {
|
||||
export const ChatRoleApi = {
|
||||
// 查询聊天角色分页
|
||||
getChatRolePage: async (params: any) => {
|
||||
return await request.get({ url: `/ai/chat-role/page`, params })
|
||||
return await request.get({url: `/ai/chat-role/page`, params})
|
||||
},
|
||||
|
||||
// 查询聊天角色详情
|
||||
getChatRole: async (id: number) => {
|
||||
return await request.get({ url: `/ai/chat-role/get?id=` + id })
|
||||
return await request.get({url: `/ai/chat-role/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增聊天角色
|
||||
createChatRole: async (data: ChatRoleVO) => {
|
||||
return await request.post({ url: `/ai/chat-role/create`, data })
|
||||
return await request.post({url: `/ai/chat-role/create`, data})
|
||||
},
|
||||
|
||||
// 修改聊天角色
|
||||
updateChatRole: async (data: ChatRoleVO) => {
|
||||
return await request.put({ url: `/ai/chat-role/update`, data })
|
||||
return await request.put({url: `/ai/chat-role/update`, data})
|
||||
},
|
||||
|
||||
// 删除聊天角色
|
||||
deleteChatRole: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/chat-role/delete?id=` + id })
|
||||
return await request.delete({url: `/ai/chat-role/delete?id=` + id})
|
||||
},
|
||||
|
||||
// ======= chat 聊天
|
||||
|
||||
// 获取 my role
|
||||
getMyPage: async (params: ChatRolePageReqVO) => {
|
||||
return await request.get({ url: `/ai/chat-role/my-page`, params})
|
||||
return await request.get({url: `/ai/chat-role/my-page`, params})
|
||||
},
|
||||
|
||||
// 获取角色分类
|
||||
getCategoryList: async () => {
|
||||
return await request.get({ url: `/ai/chat-role/category-list`})
|
||||
return await request.get({url: `/ai/chat-role/category-list`})
|
||||
},
|
||||
|
||||
// 创建角色
|
||||
createMy: async (data: ChatRoleVO) => {
|
||||
return await request.post({ url: `/ai/chat-role/create-my`, data})
|
||||
return await request.post({url: `/ai/chat-role/create-my`, data})
|
||||
},
|
||||
|
||||
// 更新角色
|
||||
updateMy: async (data: ChatRoleVO) => {
|
||||
return await request.put({ url: `/ai/chat-role/update-my`, data})
|
||||
return await request.put({url: `/ai/chat-role/update-my`, data})
|
||||
},
|
||||
|
||||
// 删除角色 my
|
||||
deleteMy: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/chat-role/delete-my?id=` + id })
|
||||
return await request.delete({url: `/ai/chat-role/delete-my?id=` + id})
|
||||
},
|
||||
}
|
||||
|
@ -26,16 +26,16 @@ export interface MusicVO {
|
||||
export const MusicApi = {
|
||||
// 查询音乐分页
|
||||
getMusicPage: async (params: any) => {
|
||||
return await request.get({ url: `/ai/music/page`, params })
|
||||
return await request.get({url: `/ai/music/page`, params})
|
||||
},
|
||||
|
||||
// 更新音乐
|
||||
updateMusic: async (data: any) => {
|
||||
return await request.put({ url: '/ai/music/update', data })
|
||||
return await request.put({url: '/ai/music/update', data})
|
||||
},
|
||||
|
||||
// 删除音乐
|
||||
deleteMusic: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/music/delete?id=` + id })
|
||||
return await request.delete({url: `/ai/music/delete?id=` + id})
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
import { fetchEventSource } from '@microsoft/fetch-event-source'
|
||||
import {fetchEventSource} from '@microsoft/fetch-event-source'
|
||||
|
||||
import { getAccessToken } from '@/utils/auth'
|
||||
import { config } from '@/config/axios/config'
|
||||
import { AiWriteTypeEnum } from '@/views/ai/utils/constants'
|
||||
import {getAccessToken} from '@/utils/auth'
|
||||
import {config} from '@/config/axios/config'
|
||||
import {AiWriteTypeEnum} from '@/views/ai/utils/constants'
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface WriteVO {
|
||||
@ -76,10 +76,10 @@ export const WriteApi = {
|
||||
},
|
||||
// 获取写作列表
|
||||
getWritePage: (params: AiWritePageReqVO) => {
|
||||
return request.get<PageResult<AiWriteRespVo[]>>({ url: `/ai/write/page`, params })
|
||||
return request.get<PageResult<AiWriteRespVo[]>>({url: `/ai/write/page`, params})
|
||||
},
|
||||
// 删除写作
|
||||
deleteWrite(id: number) {
|
||||
return request.delete({ url: `/ai/write/delete`, params: { id } })
|
||||
return request.delete({url: `/ai/write/delete`, params: {id}})
|
||||
}
|
||||
}
|
||||
|
@ -13,31 +13,31 @@ export interface CategoryVO {
|
||||
export const CategoryApi = {
|
||||
// 查询流程分类分页
|
||||
getCategoryPage: async (params: any) => {
|
||||
return await request.get({ url: `/bpm/category/page`, params })
|
||||
return await request.get({url: `/bpm/category/page`, params})
|
||||
},
|
||||
|
||||
// 查询流程分类列表
|
||||
getCategorySimpleList: async () => {
|
||||
return await request.get({ url: `/bpm/category/simple-list` })
|
||||
return await request.get({url: `/bpm/category/simple-list`})
|
||||
},
|
||||
|
||||
// 查询流程分类详情
|
||||
getCategory: async (id: number) => {
|
||||
return await request.get({ url: `/bpm/category/get?id=` + id })
|
||||
return await request.get({url: `/bpm/category/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增流程分类
|
||||
createCategory: async (data: CategoryVO) => {
|
||||
return await request.post({ url: `/bpm/category/create`, data })
|
||||
return await request.post({url: `/bpm/category/create`, data})
|
||||
},
|
||||
|
||||
// 修改流程分类
|
||||
updateCategory: async (data: CategoryVO) => {
|
||||
return await request.put({ url: `/bpm/category/update`, data })
|
||||
return await request.put({url: `/bpm/category/update`, data})
|
||||
},
|
||||
|
||||
// 删除流程分类
|
||||
deleteCategory: async (id: number) => {
|
||||
return await request.delete({ url: `/bpm/category/delete?id=` + id })
|
||||
return await request.delete({url: `/bpm/category/delete?id=` + id})
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ import request from '@/config/axios'
|
||||
export const getProcessDefinition = async (id?: string, key?: string) => {
|
||||
return await request.get({
|
||||
url: '/bpm/process-definition/get',
|
||||
params: { id, key }
|
||||
params: {id, key}
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -13,15 +13,15 @@ export type LeaveVO = {
|
||||
|
||||
// 创建请假申请
|
||||
export const createLeave = async (data: LeaveVO) => {
|
||||
return await request.post({ url: '/bpm/oa/leave/create', data: data })
|
||||
return await request.post({url: '/bpm/oa/leave/create', data: data})
|
||||
}
|
||||
|
||||
// 获得请假申请
|
||||
export const getLeave = async (id: number) => {
|
||||
return await request.get({ url: '/bpm/oa/leave/get?id=' + id })
|
||||
return await request.get({url: '/bpm/oa/leave/get?id=' + id})
|
||||
}
|
||||
|
||||
// 获得请假申请分页
|
||||
export const getLeavePage = async (params: PageParam) => {
|
||||
return await request.get({ url: '/bpm/oa/leave/page', params })
|
||||
return await request.get({url: '/bpm/oa/leave/page', params})
|
||||
}
|
||||
|
@ -27,15 +27,15 @@ export type ModelVO = {
|
||||
}
|
||||
|
||||
export const getModelPage = async (params) => {
|
||||
return await request.get({ url: '/bpm/model/page', params })
|
||||
return await request.get({url: '/bpm/model/page', params})
|
||||
}
|
||||
|
||||
export const getModel = async (id: number) => {
|
||||
return await request.get({ url: '/bpm/model/get?id=' + id })
|
||||
return await request.get({url: '/bpm/model/get?id=' + id})
|
||||
}
|
||||
|
||||
export const updateModel = async (data: ModelVO) => {
|
||||
return await request.put({ url: '/bpm/model/update', data: data })
|
||||
return await request.put({url: '/bpm/model/update', data: data})
|
||||
}
|
||||
|
||||
// 任务状态修改
|
||||
@ -44,17 +44,17 @@ export const updateModelState = async (id: number, state: number) => {
|
||||
id: id,
|
||||
state: state
|
||||
}
|
||||
return await request.put({ url: '/bpm/model/update-state', data: data })
|
||||
return await request.put({url: '/bpm/model/update-state', data: data})
|
||||
}
|
||||
|
||||
export const createModel = async (data: ModelVO) => {
|
||||
return await request.post({ url: '/bpm/model/create', data: data })
|
||||
return await request.post({url: '/bpm/model/create', data: data})
|
||||
}
|
||||
|
||||
export const deleteModel = async (id: number) => {
|
||||
return await request.delete({ url: '/bpm/model/delete?id=' + id })
|
||||
return await request.delete({url: '/bpm/model/delete?id=' + id})
|
||||
}
|
||||
|
||||
export const deployModel = async (id: number) => {
|
||||
return await request.post({ url: '/bpm/model/deploy?id=' + id })
|
||||
return await request.post({url: '/bpm/model/deploy?id=' + id})
|
||||
}
|
||||
|
@ -12,31 +12,31 @@ export interface ProcessExpressionVO {
|
||||
export const ProcessExpressionApi = {
|
||||
// 查询BPM 流程表达式分页
|
||||
getProcessExpressionPage: async (params: any) => {
|
||||
return await request.get({ url: `/bpm/process-expression/page`, params })
|
||||
return await request.get({url: `/bpm/process-expression/page`, params})
|
||||
},
|
||||
|
||||
// 查询BPM 流程表达式详情
|
||||
getProcessExpression: async (id: number) => {
|
||||
return await request.get({ url: `/bpm/process-expression/get?id=` + id })
|
||||
return await request.get({url: `/bpm/process-expression/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增BPM 流程表达式
|
||||
createProcessExpression: async (data: ProcessExpressionVO) => {
|
||||
return await request.post({ url: `/bpm/process-expression/create`, data })
|
||||
return await request.post({url: `/bpm/process-expression/create`, data})
|
||||
},
|
||||
|
||||
// 修改BPM 流程表达式
|
||||
updateProcessExpression: async (data: ProcessExpressionVO) => {
|
||||
return await request.put({ url: `/bpm/process-expression/update`, data })
|
||||
return await request.put({url: `/bpm/process-expression/update`, data})
|
||||
},
|
||||
|
||||
// 删除BPM 流程表达式
|
||||
deleteProcessExpression: async (id: number) => {
|
||||
return await request.delete({ url: `/bpm/process-expression/delete?id=` + id })
|
||||
return await request.delete({url: `/bpm/process-expression/delete?id=` + id})
|
||||
},
|
||||
|
||||
// 导出BPM 流程表达式 Excel
|
||||
exportProcessExpression: async (params) => {
|
||||
return await request.download({ url: `/bpm/process-expression/export-excel`, params })
|
||||
return await request.download({url: `/bpm/process-expression/export-excel`, params})
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
import request from '@/config/axios'
|
||||
import { ProcessDefinitionVO } from '@/api/bpm/model'
|
||||
import {ProcessDefinitionVO} from '@/api/bpm/model'
|
||||
|
||||
export type Task = {
|
||||
id: string
|
||||
@ -23,15 +23,15 @@ export type ProcessInstanceVO = {
|
||||
}
|
||||
|
||||
export const getProcessInstanceMyPage = async (params: any) => {
|
||||
return await request.get({ url: '/bpm/process-instance/my-page', params })
|
||||
return await request.get({url: '/bpm/process-instance/my-page', params})
|
||||
}
|
||||
|
||||
export const getProcessInstanceManagerPage = async (params: any) => {
|
||||
return await request.get({ url: '/bpm/process-instance/manager-page', params })
|
||||
return await request.get({url: '/bpm/process-instance/manager-page', params})
|
||||
}
|
||||
|
||||
export const createProcessInstance = async (data) => {
|
||||
return await request.post({ url: '/bpm/process-instance/create', data: data })
|
||||
return await request.post({url: '/bpm/process-instance/create', data: data})
|
||||
}
|
||||
|
||||
export const cancelProcessInstanceByStartUser = async (id: number, reason: string) => {
|
||||
@ -39,7 +39,7 @@ export const cancelProcessInstanceByStartUser = async (id: number, reason: strin
|
||||
id: id,
|
||||
reason: reason
|
||||
}
|
||||
return await request.delete({ url: '/bpm/process-instance/cancel-by-start-user', data: data })
|
||||
return await request.delete({url: '/bpm/process-instance/cancel-by-start-user', data: data})
|
||||
}
|
||||
|
||||
export const cancelProcessInstanceByAdmin = async (id: number, reason: string) => {
|
||||
@ -47,13 +47,13 @@ export const cancelProcessInstanceByAdmin = async (id: number, reason: string) =
|
||||
id: id,
|
||||
reason: reason
|
||||
}
|
||||
return await request.delete({ url: '/bpm/process-instance/cancel-by-admin', data: data })
|
||||
return await request.delete({url: '/bpm/process-instance/cancel-by-admin', data: data})
|
||||
}
|
||||
|
||||
export const getProcessInstance = async (id: string) => {
|
||||
return await request.get({ url: '/bpm/process-instance/get?id=' + id })
|
||||
return await request.get({url: '/bpm/process-instance/get?id=' + id})
|
||||
}
|
||||
|
||||
export const getProcessInstanceCopyPage = async (params: any) => {
|
||||
return await request.get({ url: '/bpm/process-instance/copy/page', params })
|
||||
return await request.get({url: '/bpm/process-instance/copy/page', params})
|
||||
}
|
||||
|
@ -15,26 +15,26 @@ export interface ProcessListenerVO {
|
||||
export const ProcessListenerApi = {
|
||||
// 查询流程监听器分页
|
||||
getProcessListenerPage: async (params: any) => {
|
||||
return await request.get({ url: `/bpm/process-listener/page`, params })
|
||||
return await request.get({url: `/bpm/process-listener/page`, params})
|
||||
},
|
||||
|
||||
// 查询流程监听器详情
|
||||
getProcessListener: async (id: number) => {
|
||||
return await request.get({ url: `/bpm/process-listener/get?id=` + id })
|
||||
return await request.get({url: `/bpm/process-listener/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增流程监听器
|
||||
createProcessListener: async (data: ProcessListenerVO) => {
|
||||
return await request.post({ url: `/bpm/process-listener/create`, data })
|
||||
return await request.post({url: `/bpm/process-listener/create`, data})
|
||||
},
|
||||
|
||||
// 修改流程监听器
|
||||
updateProcessListener: async (data: ProcessListenerVO) => {
|
||||
return await request.put({ url: `/bpm/process-listener/update`, data })
|
||||
return await request.put({url: `/bpm/process-listener/update`, data})
|
||||
},
|
||||
|
||||
// 删除流程监听器
|
||||
deleteProcessListener: async (id: number) => {
|
||||
return await request.delete({ url: `/bpm/process-listener/delete?id=` + id })
|
||||
return await request.delete({url: `/bpm/process-listener/delete?id=` + id})
|
||||
}
|
||||
}
|
||||
|
@ -5,23 +5,23 @@ export type TaskVO = {
|
||||
}
|
||||
|
||||
export const getTaskTodoPage = async (params: any) => {
|
||||
return await request.get({ url: '/bpm/task/todo-page', params })
|
||||
return await request.get({url: '/bpm/task/todo-page', params})
|
||||
}
|
||||
|
||||
export const getTaskDonePage = async (params: any) => {
|
||||
return await request.get({ url: '/bpm/task/done-page', params })
|
||||
return await request.get({url: '/bpm/task/done-page', params})
|
||||
}
|
||||
|
||||
export const getTaskManagerPage = async (params: any) => {
|
||||
return await request.get({ url: '/bpm/task/manager-page', params })
|
||||
return await request.get({url: '/bpm/task/manager-page', params})
|
||||
}
|
||||
|
||||
export const approveTask = async (data: any) => {
|
||||
return await request.put({ url: '/bpm/task/approve', data })
|
||||
return await request.put({url: '/bpm/task/approve', data})
|
||||
}
|
||||
|
||||
export const rejectTask = async (data: any) => {
|
||||
return await request.put({ url: '/bpm/task/reject', data })
|
||||
return await request.put({url: '/bpm/task/reject', data})
|
||||
}
|
||||
|
||||
export const getTaskListByProcessInstanceId = async (processInstanceId: string) => {
|
||||
@ -32,35 +32,35 @@ export const getTaskListByProcessInstanceId = async (processInstanceId: string)
|
||||
|
||||
// 获取所有可回退的节点
|
||||
export const getTaskListByReturn = async (id: string) => {
|
||||
return await request.get({ url: '/bpm/task/list-by-return', params: { id } })
|
||||
return await request.get({url: '/bpm/task/list-by-return', params: {id}})
|
||||
}
|
||||
|
||||
// 回退
|
||||
export const returnTask = async (data: any) => {
|
||||
return await request.put({ url: '/bpm/task/return', data })
|
||||
return await request.put({url: '/bpm/task/return', data})
|
||||
}
|
||||
|
||||
// 委派
|
||||
export const delegateTask = async (data: any) => {
|
||||
return await request.put({ url: '/bpm/task/delegate', data })
|
||||
return await request.put({url: '/bpm/task/delegate', data})
|
||||
}
|
||||
|
||||
// 转派
|
||||
export const transferTask = async (data: any) => {
|
||||
return await request.put({ url: '/bpm/task/transfer', data })
|
||||
return await request.put({url: '/bpm/task/transfer', data})
|
||||
}
|
||||
|
||||
// 加签
|
||||
export const signCreateTask = async (data: any) => {
|
||||
return await request.put({ url: '/bpm/task/create-sign', data })
|
||||
return await request.put({url: '/bpm/task/create-sign', data})
|
||||
}
|
||||
|
||||
// 减签
|
||||
export const signDeleteTask = async (data: any) => {
|
||||
return await request.delete({ url: '/bpm/task/delete-sign', data })
|
||||
return await request.delete({url: '/bpm/task/delete-sign', data})
|
||||
}
|
||||
|
||||
// 获取减签任务列表
|
||||
export const getChildrenTaskList = async (id: string) => {
|
||||
return await request.get({ url: '/bpm/task/list-by-parent-task-id?parentTaskId=' + id })
|
||||
return await request.get({url: '/bpm/task/list-by-parent-task-id?parentTaskId=' + id})
|
||||
}
|
||||
|
@ -28,20 +28,20 @@ export const updateUserGroup = async (data: UserGroupVO) => {
|
||||
|
||||
// 删除用户组
|
||||
export const deleteUserGroup = async (id: number) => {
|
||||
return await request.delete({ url: '/bpm/user-group/delete?id=' + id })
|
||||
return await request.delete({url: '/bpm/user-group/delete?id=' + id})
|
||||
}
|
||||
|
||||
// 获得用户组
|
||||
export const getUserGroup = async (id: number) => {
|
||||
return await request.get({ url: '/bpm/user-group/get?id=' + id })
|
||||
return await request.get({url: '/bpm/user-group/get?id=' + id})
|
||||
}
|
||||
|
||||
// 获得用户组分页
|
||||
export const getUserGroupPage = async (params) => {
|
||||
return await request.get({ url: '/bpm/user-group/page', params })
|
||||
return await request.get({url: '/bpm/user-group/page', params})
|
||||
}
|
||||
|
||||
// 获取用户组精简信息列表
|
||||
export const getUserGroupSimpleList = async (): Promise<UserGroupVO[]> => {
|
||||
return await request.get({ url: '/bpm/user-group/simple-list' })
|
||||
return await request.get({url: '/bpm/user-group/simple-list'})
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import request from '@/config/axios'
|
||||
import { TransferReqVO } from '@/api/crm/permission'
|
||||
import {TransferReqVO} from '@/api/crm/permission'
|
||||
|
||||
export interface BusinessVO {
|
||||
id: number
|
||||
@ -44,55 +44,55 @@ export interface BusinessVO {
|
||||
|
||||
// 查询 CRM 商机列表
|
||||
export const getBusinessPage = async (params) => {
|
||||
return await request.get({ url: `/crm/business/page`, params })
|
||||
return await request.get({url: `/crm/business/page`, params})
|
||||
}
|
||||
|
||||
// 查询 CRM 商机列表,基于指定客户
|
||||
export const getBusinessPageByCustomer = async (params) => {
|
||||
return await request.get({ url: `/crm/business/page-by-customer`, params })
|
||||
return await request.get({url: `/crm/business/page-by-customer`, params})
|
||||
}
|
||||
|
||||
// 查询 CRM 商机详情
|
||||
export const getBusiness = async (id: number) => {
|
||||
return await request.get({ url: `/crm/business/get?id=` + id })
|
||||
return await request.get({url: `/crm/business/get?id=` + id})
|
||||
}
|
||||
|
||||
// 获得 CRM 商机列表(精简)
|
||||
export const getSimpleBusinessList = async () => {
|
||||
return await request.get({ url: `/crm/business/simple-all-list` })
|
||||
return await request.get({url: `/crm/business/simple-all-list`})
|
||||
}
|
||||
|
||||
// 新增 CRM 商机
|
||||
export const createBusiness = async (data: BusinessVO) => {
|
||||
return await request.post({ url: `/crm/business/create`, data })
|
||||
return await request.post({url: `/crm/business/create`, data})
|
||||
}
|
||||
|
||||
// 修改 CRM 商机
|
||||
export const updateBusiness = async (data: BusinessVO) => {
|
||||
return await request.put({ url: `/crm/business/update`, data })
|
||||
return await request.put({url: `/crm/business/update`, data})
|
||||
}
|
||||
|
||||
// 修改 CRM 商机状态
|
||||
export const updateBusinessStatus = async (data: BusinessVO) => {
|
||||
return await request.put({ url: `/crm/business/update-status`, data })
|
||||
return await request.put({url: `/crm/business/update-status`, data})
|
||||
}
|
||||
|
||||
// 删除 CRM 商机
|
||||
export const deleteBusiness = async (id: number) => {
|
||||
return await request.delete({ url: `/crm/business/delete?id=` + id })
|
||||
return await request.delete({url: `/crm/business/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 导出 CRM 商机 Excel
|
||||
export const exportBusiness = async (params) => {
|
||||
return await request.download({ url: `/crm/business/export-excel`, params })
|
||||
return await request.download({url: `/crm/business/export-excel`, params})
|
||||
}
|
||||
|
||||
// 联系人关联商机列表
|
||||
export const getBusinessPageByContact = async (params) => {
|
||||
return await request.get({ url: `/crm/business/page-by-contact`, params })
|
||||
return await request.get({url: `/crm/business/page-by-contact`, params})
|
||||
}
|
||||
|
||||
// 商机转移
|
||||
export const transferBusiness = async (data: TransferReqVO) => {
|
||||
return await request.put({ url: '/crm/business/transfer', data })
|
||||
return await request.put({url: '/crm/business/transfer', data})
|
||||
}
|
||||
|
@ -34,35 +34,35 @@ export const DEFAULT_STATUSES = [
|
||||
|
||||
// 查询商机状态组列表
|
||||
export const getBusinessStatusPage = async (params: any) => {
|
||||
return await request.get({ url: `/crm/business-status/page`, params })
|
||||
return await request.get({url: `/crm/business-status/page`, params})
|
||||
}
|
||||
|
||||
// 新增商机状态组
|
||||
export const createBusinessStatus = async (data: BusinessStatusTypeVO) => {
|
||||
return await request.post({ url: `/crm/business-status/create`, data })
|
||||
return await request.post({url: `/crm/business-status/create`, data})
|
||||
}
|
||||
|
||||
// 修改商机状态组
|
||||
export const updateBusinessStatus = async (data: BusinessStatusTypeVO) => {
|
||||
return await request.put({ url: `/crm/business-status/update`, data })
|
||||
return await request.put({url: `/crm/business-status/update`, data})
|
||||
}
|
||||
|
||||
// 查询商机状态类型详情
|
||||
export const getBusinessStatus = async (id: number) => {
|
||||
return await request.get({ url: `/crm/business-status/get?id=` + id })
|
||||
return await request.get({url: `/crm/business-status/get?id=` + id})
|
||||
}
|
||||
|
||||
// 删除商机状态
|
||||
export const deleteBusinessStatus = async (id: number) => {
|
||||
return await request.delete({ url: `/crm/business-status/delete?id=` + id })
|
||||
return await request.delete({url: `/crm/business-status/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 获得商机状态组列表
|
||||
export const getBusinessStatusTypeSimpleList = async () => {
|
||||
return await request.get({ url: `/crm/business-status/type-simple-list` })
|
||||
return await request.get({url: `/crm/business-status/type-simple-list`})
|
||||
}
|
||||
|
||||
// 获得商机阶段列表
|
||||
export const getBusinessStatusSimpleList = async (typeId: number) => {
|
||||
return await request.get({ url: `/crm/business-status/status-simple-list`, params: { typeId } })
|
||||
return await request.get({url: `/crm/business-status/status-simple-list`, params: {typeId}})
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import request from '@/config/axios'
|
||||
import { TransferReqVO } from '@/api/crm/permission'
|
||||
import {TransferReqVO} from '@/api/crm/permission'
|
||||
|
||||
export interface ClueVO {
|
||||
id: number // 编号
|
||||
@ -34,45 +34,45 @@ export interface ClueVO {
|
||||
|
||||
// 查询线索列表
|
||||
export const getCluePage = async (params: any) => {
|
||||
return await request.get({ url: `/crm/clue/page`, params })
|
||||
return await request.get({url: `/crm/clue/page`, params})
|
||||
}
|
||||
|
||||
// 查询线索详情
|
||||
export const getClue = async (id: number) => {
|
||||
return await request.get({ url: `/crm/clue/get?id=` + id })
|
||||
return await request.get({url: `/crm/clue/get?id=` + id})
|
||||
}
|
||||
|
||||
// 新增线索
|
||||
export const createClue = async (data: ClueVO) => {
|
||||
return await request.post({ url: `/crm/clue/create`, data })
|
||||
return await request.post({url: `/crm/clue/create`, data})
|
||||
}
|
||||
|
||||
// 修改线索
|
||||
export const updateClue = async (data: ClueVO) => {
|
||||
return await request.put({ url: `/crm/clue/update`, data })
|
||||
return await request.put({url: `/crm/clue/update`, data})
|
||||
}
|
||||
|
||||
// 删除线索
|
||||
export const deleteClue = async (id: number) => {
|
||||
return await request.delete({ url: `/crm/clue/delete?id=` + id })
|
||||
return await request.delete({url: `/crm/clue/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 导出线索 Excel
|
||||
export const exportClue = async (params) => {
|
||||
return await request.download({ url: `/crm/clue/export-excel`, params })
|
||||
return await request.download({url: `/crm/clue/export-excel`, params})
|
||||
}
|
||||
|
||||
// 线索转移
|
||||
export const transferClue = async (data: TransferReqVO) => {
|
||||
return await request.put({ url: '/crm/clue/transfer', data })
|
||||
return await request.put({url: '/crm/clue/transfer', data})
|
||||
}
|
||||
|
||||
// 线索转化为客户
|
||||
export const transformClue = async (id: number) => {
|
||||
return await request.put({ url: '/crm/clue/transform', params: { id } })
|
||||
return await request.put({url: '/crm/clue/transform', params: {id}})
|
||||
}
|
||||
|
||||
// 获得分配给我的、待跟进的线索数量
|
||||
export const getFollowClueCount = async () => {
|
||||
return await request.get({ url: '/crm/clue/follow-count' })
|
||||
return await request.get({url: '/crm/clue/follow-count'})
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import request from '@/config/axios'
|
||||
import { TransferReqVO } from '@/api/crm/permission'
|
||||
import {TransferReqVO} from '@/api/crm/permission'
|
||||
|
||||
export interface ContactVO {
|
||||
id: number // 编号
|
||||
@ -44,70 +44,70 @@ export interface ContactBusiness2ReqVO {
|
||||
|
||||
// 查询 CRM 联系人列表
|
||||
export const getContactPage = async (params) => {
|
||||
return await request.get({ url: `/crm/contact/page`, params })
|
||||
return await request.get({url: `/crm/contact/page`, params})
|
||||
}
|
||||
|
||||
// 查询 CRM 联系人列表,基于指定客户
|
||||
export const getContactPageByCustomer = async (params: any) => {
|
||||
return await request.get({ url: `/crm/contact/page-by-customer`, params })
|
||||
return await request.get({url: `/crm/contact/page-by-customer`, params})
|
||||
}
|
||||
|
||||
// 查询 CRM 联系人列表,基于指定商机
|
||||
export const getContactPageByBusiness = async (params: any) => {
|
||||
return await request.get({ url: `/crm/contact/page-by-business`, params })
|
||||
return await request.get({url: `/crm/contact/page-by-business`, params})
|
||||
}
|
||||
|
||||
// 查询 CRM 联系人详情
|
||||
export const getContact = async (id: number) => {
|
||||
return await request.get({ url: `/crm/contact/get?id=` + id })
|
||||
return await request.get({url: `/crm/contact/get?id=` + id})
|
||||
}
|
||||
|
||||
// 新增 CRM 联系人
|
||||
export const createContact = async (data: ContactVO) => {
|
||||
return await request.post({ url: `/crm/contact/create`, data })
|
||||
return await request.post({url: `/crm/contact/create`, data})
|
||||
}
|
||||
|
||||
// 修改 CRM 联系人
|
||||
export const updateContact = async (data: ContactVO) => {
|
||||
return await request.put({ url: `/crm/contact/update`, data })
|
||||
return await request.put({url: `/crm/contact/update`, data})
|
||||
}
|
||||
|
||||
// 删除 CRM 联系人
|
||||
export const deleteContact = async (id: number) => {
|
||||
return await request.delete({ url: `/crm/contact/delete?id=` + id })
|
||||
return await request.delete({url: `/crm/contact/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 导出 CRM 联系人 Excel
|
||||
export const exportContact = async (params) => {
|
||||
return await request.download({ url: `/crm/contact/export-excel`, params })
|
||||
return await request.download({url: `/crm/contact/export-excel`, params})
|
||||
}
|
||||
|
||||
// 获得 CRM 联系人列表(精简)
|
||||
export const getSimpleContactList = async () => {
|
||||
return await request.get({ url: `/crm/contact/simple-all-list` })
|
||||
return await request.get({url: `/crm/contact/simple-all-list`})
|
||||
}
|
||||
|
||||
// 批量新增联系人商机关联
|
||||
export const createContactBusinessList = async (data: ContactBusinessReqVO) => {
|
||||
return await request.post({ url: `/crm/contact/create-business-list`, data })
|
||||
return await request.post({url: `/crm/contact/create-business-list`, data})
|
||||
}
|
||||
|
||||
// 批量新增联系人商机关联
|
||||
export const createContactBusinessList2 = async (data: ContactBusiness2ReqVO) => {
|
||||
return await request.post({ url: `/crm/contact/create-business-list2`, data })
|
||||
return await request.post({url: `/crm/contact/create-business-list2`, data})
|
||||
}
|
||||
|
||||
// 解除联系人商机关联
|
||||
export const deleteContactBusinessList = async (data: ContactBusinessReqVO) => {
|
||||
return await request.delete({ url: `/crm/contact/delete-business-list`, data })
|
||||
return await request.delete({url: `/crm/contact/delete-business-list`, data})
|
||||
}
|
||||
|
||||
// 解除联系人商机关联
|
||||
export const deleteContactBusinessList2 = async (data: ContactBusiness2ReqVO) => {
|
||||
return await request.delete({ url: `/crm/contact/delete-business-list2`, data })
|
||||
return await request.delete({url: `/crm/contact/delete-business-list2`, data})
|
||||
}
|
||||
|
||||
// 联系人转移
|
||||
export const transferContact = async (data: TransferReqVO) => {
|
||||
return await request.put({ url: '/crm/contact/transfer', data })
|
||||
return await request.put({url: '/crm/contact/transfer', data})
|
||||
}
|
||||
|
@ -7,10 +7,10 @@ export interface ContractConfigVO {
|
||||
|
||||
// 获取合同配置
|
||||
export const getContractConfig = async () => {
|
||||
return await request.get({ url: `/crm/contract-config/get` })
|
||||
return await request.get({url: `/crm/contract-config/get`})
|
||||
}
|
||||
|
||||
// 更新合同配置
|
||||
export const saveContractConfig = async (data: ContractConfigVO) => {
|
||||
return await request.put({ url: `/crm/contract-config/save`, data })
|
||||
return await request.put({url: `/crm/contract-config/save`, data})
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import request from '@/config/axios'
|
||||
import { TransferReqVO } from '@/api/crm/permission'
|
||||
import {TransferReqVO} from '@/api/crm/permission'
|
||||
|
||||
export interface ContractVO {
|
||||
id: number
|
||||
@ -48,22 +48,22 @@ export interface ContractVO {
|
||||
|
||||
// 查询 CRM 合同列表
|
||||
export const getContractPage = async (params) => {
|
||||
return await request.get({ url: `/crm/contract/page`, params })
|
||||
return await request.get({url: `/crm/contract/page`, params})
|
||||
}
|
||||
|
||||
// 查询 CRM 联系人列表,基于指定客户
|
||||
export const getContractPageByCustomer = async (params: any) => {
|
||||
return await request.get({ url: `/crm/contract/page-by-customer`, params })
|
||||
return await request.get({url: `/crm/contract/page-by-customer`, params})
|
||||
}
|
||||
|
||||
// 查询 CRM 联系人列表,基于指定商机
|
||||
export const getContractPageByBusiness = async (params: any) => {
|
||||
return await request.get({ url: `/crm/contract/page-by-business`, params })
|
||||
return await request.get({url: `/crm/contract/page-by-business`, params})
|
||||
}
|
||||
|
||||
// 查询 CRM 合同详情
|
||||
export const getContract = async (id: number) => {
|
||||
return await request.get({ url: `/crm/contract/get?id=` + id })
|
||||
return await request.get({url: `/crm/contract/get?id=` + id})
|
||||
}
|
||||
|
||||
// 查询 CRM 合同下拉列表
|
||||
@ -75,40 +75,40 @@ export const getContractSimpleList = async (customerId: number) => {
|
||||
|
||||
// 新增 CRM 合同
|
||||
export const createContract = async (data: ContractVO) => {
|
||||
return await request.post({ url: `/crm/contract/create`, data })
|
||||
return await request.post({url: `/crm/contract/create`, data})
|
||||
}
|
||||
|
||||
// 修改 CRM 合同
|
||||
export const updateContract = async (data: ContractVO) => {
|
||||
return await request.put({ url: `/crm/contract/update`, data })
|
||||
return await request.put({url: `/crm/contract/update`, data})
|
||||
}
|
||||
|
||||
// 删除 CRM 合同
|
||||
export const deleteContract = async (id: number) => {
|
||||
return await request.delete({ url: `/crm/contract/delete?id=` + id })
|
||||
return await request.delete({url: `/crm/contract/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 导出 CRM 合同 Excel
|
||||
export const exportContract = async (params) => {
|
||||
return await request.download({ url: `/crm/contract/export-excel`, params })
|
||||
return await request.download({url: `/crm/contract/export-excel`, params})
|
||||
}
|
||||
|
||||
// 提交审核
|
||||
export const submitContract = async (id: number) => {
|
||||
return await request.put({ url: `/crm/contract/submit?id=${id}` })
|
||||
return await request.put({url: `/crm/contract/submit?id=${id}`})
|
||||
}
|
||||
|
||||
// 合同转移
|
||||
export const transferContract = async (data: TransferReqVO) => {
|
||||
return await request.put({ url: '/crm/contract/transfer', data })
|
||||
return await request.put({url: '/crm/contract/transfer', data})
|
||||
}
|
||||
|
||||
// 获得待审核合同数量
|
||||
export const getAuditContractCount = async () => {
|
||||
return await request.get({ url: '/crm/contract/audit-count' })
|
||||
return await request.get({url: '/crm/contract/audit-count'})
|
||||
}
|
||||
|
||||
// 获得即将到期(提醒)的合同数量
|
||||
export const getRemindContractCount = async () => {
|
||||
return await request.get({ url: '/crm/contract/remind-count' })
|
||||
return await request.get({url: '/crm/contract/remind-count'})
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import request from '@/config/axios'
|
||||
import { TransferReqVO } from '@/api/crm/permission'
|
||||
import {TransferReqVO} from '@/api/crm/permission'
|
||||
|
||||
export interface CustomerVO {
|
||||
id: number // 编号
|
||||
@ -33,100 +33,100 @@ export interface CustomerVO {
|
||||
|
||||
// 查询客户列表
|
||||
export const getCustomerPage = async (params) => {
|
||||
return await request.get({ url: `/crm/customer/page`, params })
|
||||
return await request.get({url: `/crm/customer/page`, params})
|
||||
}
|
||||
|
||||
// 进入公海客户提醒的客户列表
|
||||
export const getPutPoolRemindCustomerPage = async (params) => {
|
||||
return await request.get({ url: `/crm/customer/put-pool-remind-page`, params })
|
||||
return await request.get({url: `/crm/customer/put-pool-remind-page`, params})
|
||||
}
|
||||
|
||||
// 获得待进入公海客户数量
|
||||
export const getPutPoolRemindCustomerCount = async () => {
|
||||
return await request.get({ url: `/crm/customer/put-pool-remind-count` })
|
||||
return await request.get({url: `/crm/customer/put-pool-remind-count`})
|
||||
}
|
||||
|
||||
// 获得今日需联系客户数量
|
||||
export const getTodayContactCustomerCount = async () => {
|
||||
return await request.get({ url: `/crm/customer/today-contact-count` })
|
||||
return await request.get({url: `/crm/customer/today-contact-count`})
|
||||
}
|
||||
|
||||
// 获得分配给我、待跟进的线索数量的客户数量
|
||||
export const getFollowCustomerCount = async () => {
|
||||
return await request.get({ url: `/crm/customer/follow-count` })
|
||||
return await request.get({url: `/crm/customer/follow-count`})
|
||||
}
|
||||
|
||||
// 查询客户详情
|
||||
export const getCustomer = async (id: number) => {
|
||||
return await request.get({ url: `/crm/customer/get?id=` + id })
|
||||
return await request.get({url: `/crm/customer/get?id=` + id})
|
||||
}
|
||||
|
||||
// 新增客户
|
||||
export const createCustomer = async (data: CustomerVO) => {
|
||||
return await request.post({ url: `/crm/customer/create`, data })
|
||||
return await request.post({url: `/crm/customer/create`, data})
|
||||
}
|
||||
|
||||
// 修改客户
|
||||
export const updateCustomer = async (data: CustomerVO) => {
|
||||
return await request.put({ url: `/crm/customer/update`, data })
|
||||
return await request.put({url: `/crm/customer/update`, data})
|
||||
}
|
||||
|
||||
// 更新客户的成交状态
|
||||
export const updateCustomerDealStatus = async (id: number, dealStatus: boolean) => {
|
||||
return await request.put({ url: `/crm/customer/update-deal-status`, params: { id, dealStatus } })
|
||||
return await request.put({url: `/crm/customer/update-deal-status`, params: {id, dealStatus}})
|
||||
}
|
||||
|
||||
// 删除客户
|
||||
export const deleteCustomer = async (id: number) => {
|
||||
return await request.delete({ url: `/crm/customer/delete?id=` + id })
|
||||
return await request.delete({url: `/crm/customer/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 导出客户 Excel
|
||||
export const exportCustomer = async (params: any) => {
|
||||
return await request.download({ url: `/crm/customer/export-excel`, params })
|
||||
return await request.download({url: `/crm/customer/export-excel`, params})
|
||||
}
|
||||
|
||||
// 下载客户导入模板
|
||||
export const importCustomerTemplate = () => {
|
||||
return request.download({ url: '/crm/customer/get-import-template' })
|
||||
return request.download({url: '/crm/customer/get-import-template'})
|
||||
}
|
||||
|
||||
// 导入客户
|
||||
export const handleImport = async (formData) => {
|
||||
return await request.upload({ url: `/crm/customer/import`, data: formData })
|
||||
return await request.upload({url: `/crm/customer/import`, data: formData})
|
||||
}
|
||||
|
||||
// 客户列表
|
||||
export const getCustomerSimpleList = async () => {
|
||||
return await request.get({ url: `/crm/customer/simple-list` })
|
||||
return await request.get({url: `/crm/customer/simple-list`})
|
||||
}
|
||||
|
||||
// ======================= 业务操作 =======================
|
||||
|
||||
// 客户转移
|
||||
export const transferCustomer = async (data: TransferReqVO) => {
|
||||
return await request.put({ url: '/crm/customer/transfer', data })
|
||||
return await request.put({url: '/crm/customer/transfer', data})
|
||||
}
|
||||
|
||||
// 锁定/解锁客户
|
||||
export const lockCustomer = async (id: number, lockStatus: boolean) => {
|
||||
return await request.put({ url: `/crm/customer/lock`, data: { id, lockStatus } })
|
||||
return await request.put({url: `/crm/customer/lock`, data: {id, lockStatus}})
|
||||
}
|
||||
|
||||
// 领取公海客户
|
||||
export const receiveCustomer = async (ids: any[]) => {
|
||||
return await request.put({ url: '/crm/customer/receive', params: { ids: ids.join(',') } })
|
||||
return await request.put({url: '/crm/customer/receive', params: {ids: ids.join(',')}})
|
||||
}
|
||||
|
||||
// 分配公海给对应负责人
|
||||
export const distributeCustomer = async (ids: any[], ownerUserId: number) => {
|
||||
return await request.put({
|
||||
url: '/crm/customer/distribute',
|
||||
data: { ids: ids, ownerUserId }
|
||||
data: {ids: ids, ownerUserId}
|
||||
})
|
||||
}
|
||||
|
||||
// 客户放入公海
|
||||
export const putCustomerPool = async (id: number) => {
|
||||
return await request.put({ url: `/crm/customer/put-pool?id=${id}` })
|
||||
return await request.put({url: `/crm/customer/put-pool?id=${id}`})
|
||||
}
|
||||
|
@ -25,25 +25,25 @@ export enum LimitConfType {
|
||||
|
||||
// 查询客户限制配置列表
|
||||
export const getCustomerLimitConfigPage = async (params) => {
|
||||
return await request.get({ url: `/crm/customer-limit-config/page`, params })
|
||||
return await request.get({url: `/crm/customer-limit-config/page`, params})
|
||||
}
|
||||
|
||||
// 查询客户限制配置详情
|
||||
export const getCustomerLimitConfig = async (id: number) => {
|
||||
return await request.get({ url: `/crm/customer-limit-config/get?id=` + id })
|
||||
return await request.get({url: `/crm/customer-limit-config/get?id=` + id})
|
||||
}
|
||||
|
||||
// 新增客户限制配置
|
||||
export const createCustomerLimitConfig = async (data: CustomerLimitConfigVO) => {
|
||||
return await request.post({ url: `/crm/customer-limit-config/create`, data })
|
||||
return await request.post({url: `/crm/customer-limit-config/create`, data})
|
||||
}
|
||||
|
||||
// 修改客户限制配置
|
||||
export const updateCustomerLimitConfig = async (data: CustomerLimitConfigVO) => {
|
||||
return await request.put({ url: `/crm/customer-limit-config/update`, data })
|
||||
return await request.put({url: `/crm/customer-limit-config/update`, data})
|
||||
}
|
||||
|
||||
// 删除客户限制配置
|
||||
export const deleteCustomerLimitConfig = async (id: number) => {
|
||||
return await request.delete({ url: `/crm/customer-limit-config/delete?id=` + id })
|
||||
return await request.delete({url: `/crm/customer-limit-config/delete?id=` + id})
|
||||
}
|
||||
|
@ -10,10 +10,10 @@ export interface CustomerPoolConfigVO {
|
||||
|
||||
// 获取客户公海规则设置
|
||||
export const getCustomerPoolConfig = async () => {
|
||||
return await request.get({ url: `/crm/customer-pool-config/get` })
|
||||
return await request.get({url: `/crm/customer-pool-config/get`})
|
||||
}
|
||||
|
||||
// 更新客户公海规则设置
|
||||
export const saveCustomerPoolConfig = async (data: CustomerPoolConfigVO) => {
|
||||
return await request.put({ url: `/crm/customer-pool-config/save`, data })
|
||||
return await request.put({url: `/crm/customer-pool-config/save`, data})
|
||||
}
|
||||
|
@ -28,16 +28,16 @@ export interface FollowUpRecordVO {
|
||||
export const FollowUpRecordApi = {
|
||||
// 查询跟进记录分页
|
||||
getFollowUpRecordPage: async (params: any) => {
|
||||
return await request.get({ url: `/crm/follow-up-record/page`, params })
|
||||
return await request.get({url: `/crm/follow-up-record/page`, params})
|
||||
},
|
||||
|
||||
// 新增跟进记录
|
||||
createFollowUpRecord: async (data: FollowUpRecordVO) => {
|
||||
return await request.post({ url: `/crm/follow-up-record/create`, data })
|
||||
return await request.post({url: `/crm/follow-up-record/create`, data})
|
||||
},
|
||||
|
||||
// 删除跟进记录
|
||||
deleteFollowUpRecord: async (id: number) => {
|
||||
return await request.delete({ url: `/crm/follow-up-record/delete?id=` + id })
|
||||
return await request.delete({url: `/crm/follow-up-record/delete?id=` + id})
|
||||
}
|
||||
}
|
||||
|
@ -4,20 +4,20 @@ import request from '@/config/axios'
|
||||
export const FollowUpRecordApi = {
|
||||
// 查询表单列表
|
||||
selectDynamicData: async () => {
|
||||
return await request.get({ url: `/intelligentForm/selectDynamicData`})
|
||||
return await request.get({url: `/intelligentForm/selectDynamicData`})
|
||||
},
|
||||
|
||||
//添加智能表单
|
||||
saveDynamicData: async (data) => {
|
||||
return await request.post({ url: `/intelligentForm/saveDynamicData`, data })
|
||||
return await request.post({url: `/intelligentForm/saveDynamicData`, data})
|
||||
},
|
||||
|
||||
//查询对应表单的采集数据列表
|
||||
collectDataList: async(query) => {
|
||||
collectDataList: async (query) => {
|
||||
return await request.get({
|
||||
url: '/intelligentForm/collectDataList',
|
||||
method: 'get',
|
||||
params: {id:query}
|
||||
params: {id: query}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -7,5 +7,5 @@ export interface OperateLogVO extends PageParam {
|
||||
|
||||
// 获得操作日志
|
||||
export const getOperateLogPage = async (params: OperateLogVO) => {
|
||||
return await request.get({ url: `/crm/operate-log/page`, params })
|
||||
return await request.get({url: `/crm/operate-log/page`, params})
|
||||
}
|
||||
|
@ -48,25 +48,25 @@ export enum PermissionLevelEnum {
|
||||
|
||||
// 获得数据权限列表(查询团队成员列表)
|
||||
export const getPermissionList = async (params) => {
|
||||
return await request.get({ url: `/crm/permission/list`, params })
|
||||
return await request.get({url: `/crm/permission/list`, params})
|
||||
}
|
||||
|
||||
// 创建数据权限(新增团队成员)
|
||||
export const createPermission = async (data: PermissionVO) => {
|
||||
return await request.post({ url: `/crm/permission/create`, data })
|
||||
return await request.post({url: `/crm/permission/create`, data})
|
||||
}
|
||||
|
||||
// 编辑数据权限(修改团队成员权限级别)
|
||||
export const updatePermission = async (data) => {
|
||||
return await request.put({ url: `/crm/permission/update`, data })
|
||||
return await request.put({url: `/crm/permission/update`, data})
|
||||
}
|
||||
|
||||
// 删除数据权限(删除团队成员)
|
||||
export const deletePermissionBatch = async (val: number[]) => {
|
||||
return await request.delete({ url: '/crm/permission/delete?ids=' + val.join(',') })
|
||||
return await request.delete({url: '/crm/permission/delete?ids=' + val.join(',')})
|
||||
}
|
||||
|
||||
// 删除自己的数据权限(退出团队)
|
||||
export const deleteSelfPermission = async (id: number) => {
|
||||
return await request.delete({ url: '/crm/permission/delete-self?id=' + id })
|
||||
return await request.delete({url: '/crm/permission/delete-self?id=' + id})
|
||||
}
|
||||
|
@ -9,25 +9,25 @@ export interface ProductCategoryVO {
|
||||
|
||||
// 查询产品分类详情
|
||||
export const getProductCategory = async (id: number) => {
|
||||
return await request.get({ url: `/crm/product-category/get?id=` + id })
|
||||
return await request.get({url: `/crm/product-category/get?id=` + id})
|
||||
}
|
||||
|
||||
// 新增产品分类
|
||||
export const createProductCategory = async (data: ProductCategoryVO) => {
|
||||
return await request.post({ url: `/crm/product-category/create`, data })
|
||||
return await request.post({url: `/crm/product-category/create`, data})
|
||||
}
|
||||
|
||||
// 修改产品分类
|
||||
export const updateProductCategory = async (data: ProductCategoryVO) => {
|
||||
return await request.put({ url: `/crm/product-category/update`, data })
|
||||
return await request.put({url: `/crm/product-category/update`, data})
|
||||
}
|
||||
|
||||
// 删除产品分类
|
||||
export const deleteProductCategory = async (id: number) => {
|
||||
return await request.delete({ url: `/crm/product-category/delete?id=` + id })
|
||||
return await request.delete({url: `/crm/product-category/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 产品分类列表
|
||||
export const getProductCategoryList = async (params) => {
|
||||
return await request.get({ url: `/crm/product-category/list`, params })
|
||||
return await request.get({url: `/crm/product-category/list`, params})
|
||||
}
|
||||
|
@ -15,35 +15,35 @@ export interface ProductVO {
|
||||
|
||||
// 查询产品列表
|
||||
export const getProductPage = async (params) => {
|
||||
return await request.get({ url: `/crm/product/page`, params })
|
||||
return await request.get({url: `/crm/product/page`, params})
|
||||
}
|
||||
|
||||
// 获得产品精简列表
|
||||
export const getProductSimpleList = async () => {
|
||||
return await request.get({ url: `/crm/product/simple-list` })
|
||||
return await request.get({url: `/crm/product/simple-list`})
|
||||
}
|
||||
|
||||
// 查询产品详情
|
||||
export const getProduct = async (id: number) => {
|
||||
return await request.get({ url: `/crm/product/get?id=` + id })
|
||||
return await request.get({url: `/crm/product/get?id=` + id})
|
||||
}
|
||||
|
||||
// 新增产品
|
||||
export const createProduct = async (data: ProductVO) => {
|
||||
return await request.post({ url: `/crm/product/create`, data })
|
||||
return await request.post({url: `/crm/product/create`, data})
|
||||
}
|
||||
|
||||
// 修改产品
|
||||
export const updateProduct = async (data: ProductVO) => {
|
||||
return await request.put({ url: `/crm/product/update`, data })
|
||||
return await request.put({url: `/crm/product/update`, data})
|
||||
}
|
||||
|
||||
// 删除产品
|
||||
export const deleteProduct = async (id: number) => {
|
||||
return await request.delete({ url: `/crm/product/delete?id=` + id })
|
||||
return await request.delete({url: `/crm/product/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 导出产品 Excel
|
||||
export const exportProduct = async (params) => {
|
||||
return await request.download({ url: `/crm/product/export-excel`, params })
|
||||
return await request.download({url: `/crm/product/export-excel`, params})
|
||||
}
|
||||
|
@ -29,45 +29,45 @@ export interface ReceivableVO {
|
||||
|
||||
// 查询回款列表
|
||||
export const getReceivablePage = async (params) => {
|
||||
return await request.get({ url: `/crm/receivable/page`, params })
|
||||
return await request.get({url: `/crm/receivable/page`, params})
|
||||
}
|
||||
|
||||
// 查询回款列表
|
||||
export const getReceivablePageByCustomer = async (params) => {
|
||||
return await request.get({ url: `/crm/receivable/page-by-customer`, params })
|
||||
return await request.get({url: `/crm/receivable/page-by-customer`, params})
|
||||
}
|
||||
|
||||
// 查询回款详情
|
||||
export const getReceivable = async (id: number) => {
|
||||
return await request.get({ url: `/crm/receivable/get?id=` + id })
|
||||
return await request.get({url: `/crm/receivable/get?id=` + id})
|
||||
}
|
||||
|
||||
// 新增回款
|
||||
export const createReceivable = async (data: ReceivableVO) => {
|
||||
return await request.post({ url: `/crm/receivable/create`, data })
|
||||
return await request.post({url: `/crm/receivable/create`, data})
|
||||
}
|
||||
|
||||
// 修改回款
|
||||
export const updateReceivable = async (data: ReceivableVO) => {
|
||||
return await request.put({ url: `/crm/receivable/update`, data })
|
||||
return await request.put({url: `/crm/receivable/update`, data})
|
||||
}
|
||||
|
||||
// 删除回款
|
||||
export const deleteReceivable = async (id: number) => {
|
||||
return await request.delete({ url: `/crm/receivable/delete?id=` + id })
|
||||
return await request.delete({url: `/crm/receivable/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 导出回款 Excel
|
||||
export const exportReceivable = async (params) => {
|
||||
return await request.download({ url: `/crm/receivable/export-excel`, params })
|
||||
return await request.download({url: `/crm/receivable/export-excel`, params})
|
||||
}
|
||||
|
||||
// 提交审核
|
||||
export const submitReceivable = async (id: number) => {
|
||||
return await request.put({ url: `/crm/receivable/submit?id=${id}` })
|
||||
return await request.put({url: `/crm/receivable/submit?id=${id}`})
|
||||
}
|
||||
|
||||
// 获得待审核回款数量
|
||||
export const getAuditReceivableCount = async () => {
|
||||
return await request.get({ url: '/crm/receivable/audit-count' })
|
||||
return await request.get({url: '/crm/receivable/audit-count'})
|
||||
}
|
||||
|
@ -28,17 +28,17 @@ export interface ReceivablePlanVO {
|
||||
|
||||
// 查询回款计划列表
|
||||
export const getReceivablePlanPage = async (params) => {
|
||||
return await request.get({ url: `/crm/receivable-plan/page`, params })
|
||||
return await request.get({url: `/crm/receivable-plan/page`, params})
|
||||
}
|
||||
|
||||
// 查询回款计划列表
|
||||
export const getReceivablePlanPageByCustomer = async (params) => {
|
||||
return await request.get({ url: `/crm/receivable-plan/page-by-customer`, params })
|
||||
return await request.get({url: `/crm/receivable-plan/page-by-customer`, params})
|
||||
}
|
||||
|
||||
// 查询回款计划详情
|
||||
export const getReceivablePlan = async (id: number) => {
|
||||
return await request.get({ url: `/crm/receivable-plan/get?id=` + id })
|
||||
return await request.get({url: `/crm/receivable-plan/get?id=` + id})
|
||||
}
|
||||
|
||||
// 查询回款计划下拉数据
|
||||
@ -50,25 +50,25 @@ export const getReceivablePlanSimpleList = async (customerId: number, contractId
|
||||
|
||||
// 新增回款计划
|
||||
export const createReceivablePlan = async (data: ReceivablePlanVO) => {
|
||||
return await request.post({ url: `/crm/receivable-plan/create`, data })
|
||||
return await request.post({url: `/crm/receivable-plan/create`, data})
|
||||
}
|
||||
|
||||
// 修改回款计划
|
||||
export const updateReceivablePlan = async (data: ReceivablePlanVO) => {
|
||||
return await request.put({ url: `/crm/receivable-plan/update`, data })
|
||||
return await request.put({url: `/crm/receivable-plan/update`, data})
|
||||
}
|
||||
|
||||
// 删除回款计划
|
||||
export const deleteReceivablePlan = async (id: number) => {
|
||||
return await request.delete({ url: `/crm/receivable-plan/delete?id=` + id })
|
||||
return await request.delete({url: `/crm/receivable-plan/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 导出回款计划 Excel
|
||||
export const exportReceivablePlan = async (params) => {
|
||||
return await request.download({ url: `/crm/receivable-plan/export-excel`, params })
|
||||
return await request.download({url: `/crm/receivable-plan/export-excel`, params})
|
||||
}
|
||||
|
||||
// 获得待回款提醒数量
|
||||
export const getReceivablePlanRemindCount = async () => {
|
||||
return await request.get({ url: '/crm/receivable-plan/remind-count' })
|
||||
return await request.get({url: '/crm/receivable-plan/remind-count'})
|
||||
}
|
||||
|
@ -15,27 +15,27 @@ export interface AccountVO {
|
||||
export const AccountApi = {
|
||||
// 查询结算账户分页
|
||||
getAccountPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/account/page`, params })
|
||||
return await request.get({url: `/erp/account/page`, params})
|
||||
},
|
||||
|
||||
// 查询结算账户精简列表
|
||||
getAccountSimpleList: async () => {
|
||||
return await request.get({ url: `/erp/account/simple-list` })
|
||||
return await request.get({url: `/erp/account/simple-list`})
|
||||
},
|
||||
|
||||
// 查询结算账户详情
|
||||
getAccount: async (id: number) => {
|
||||
return await request.get({ url: `/erp/account/get?id=` + id })
|
||||
return await request.get({url: `/erp/account/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增结算账户
|
||||
createAccount: async (data: AccountVO) => {
|
||||
return await request.post({ url: `/erp/account/create`, data })
|
||||
return await request.post({url: `/erp/account/create`, data})
|
||||
},
|
||||
|
||||
// 修改结算账户
|
||||
updateAccount: async (data: AccountVO) => {
|
||||
return await request.put({ url: `/erp/account/update`, data })
|
||||
return await request.put({url: `/erp/account/update`, data})
|
||||
},
|
||||
|
||||
// 修改结算账户默认状态
|
||||
@ -51,11 +51,11 @@ export const AccountApi = {
|
||||
|
||||
// 删除结算账户
|
||||
deleteAccount: async (id: number) => {
|
||||
return await request.delete({ url: `/erp/account/delete?id=` + id })
|
||||
return await request.delete({url: `/erp/account/delete?id=` + id})
|
||||
},
|
||||
|
||||
// 导出结算账户 Excel
|
||||
exportAccount: async (params: any) => {
|
||||
return await request.download({ url: `/erp/account/export-excel`, params })
|
||||
return await request.download({url: `/erp/account/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -15,22 +15,22 @@ export interface FinancePaymentVO {
|
||||
export const FinancePaymentApi = {
|
||||
// 查询付款单分页
|
||||
getFinancePaymentPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/finance-payment/page`, params })
|
||||
return await request.get({url: `/erp/finance-payment/page`, params})
|
||||
},
|
||||
|
||||
// 查询付款单详情
|
||||
getFinancePayment: async (id: number) => {
|
||||
return await request.get({ url: `/erp/finance-payment/get?id=` + id })
|
||||
return await request.get({url: `/erp/finance-payment/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增付款单
|
||||
createFinancePayment: async (data: FinancePaymentVO) => {
|
||||
return await request.post({ url: `/erp/finance-payment/create`, data })
|
||||
return await request.post({url: `/erp/finance-payment/create`, data})
|
||||
},
|
||||
|
||||
// 修改付款单
|
||||
updateFinancePayment: async (data: FinancePaymentVO) => {
|
||||
return await request.put({ url: `/erp/finance-payment/update`, data })
|
||||
return await request.put({url: `/erp/finance-payment/update`, data})
|
||||
},
|
||||
|
||||
// 更新付款单的状态
|
||||
@ -56,6 +56,6 @@ export const FinancePaymentApi = {
|
||||
|
||||
// 导出付款单 Excel
|
||||
exportFinancePayment: async (params: any) => {
|
||||
return await request.download({ url: `/erp/finance-payment/export-excel`, params })
|
||||
return await request.download({url: `/erp/finance-payment/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -15,22 +15,22 @@ export interface FinanceReceiptVO {
|
||||
export const FinanceReceiptApi = {
|
||||
// 查询收款单分页
|
||||
getFinanceReceiptPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/finance-receipt/page`, params })
|
||||
return await request.get({url: `/erp/finance-receipt/page`, params})
|
||||
},
|
||||
|
||||
// 查询收款单详情
|
||||
getFinanceReceipt: async (id: number) => {
|
||||
return await request.get({ url: `/erp/finance-receipt/get?id=` + id })
|
||||
return await request.get({url: `/erp/finance-receipt/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增收款单
|
||||
createFinanceReceipt: async (data: FinanceReceiptVO) => {
|
||||
return await request.post({ url: `/erp/finance-receipt/create`, data })
|
||||
return await request.post({url: `/erp/finance-receipt/create`, data})
|
||||
},
|
||||
|
||||
// 修改收款单
|
||||
updateFinanceReceipt: async (data: FinanceReceiptVO) => {
|
||||
return await request.put({ url: `/erp/finance-receipt/update`, data })
|
||||
return await request.put({url: `/erp/finance-receipt/update`, data})
|
||||
},
|
||||
|
||||
// 更新收款单的状态
|
||||
@ -56,6 +56,6 @@ export const FinanceReceiptApi = {
|
||||
|
||||
// 导出收款单 Excel
|
||||
exportFinanceReceipt: async (params: any) => {
|
||||
return await request.download({ url: `/erp/finance-receipt/export-excel`, params })
|
||||
return await request.download({url: `/erp/finance-receipt/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -14,36 +14,36 @@ export interface ProductCategoryVO {
|
||||
export const ProductCategoryApi = {
|
||||
// 查询产品分类列表
|
||||
getProductCategoryList: async () => {
|
||||
return await request.get({ url: `/erp/product-category/list` })
|
||||
return await request.get({url: `/erp/product-category/list`})
|
||||
},
|
||||
|
||||
// 查询产品分类精简列表
|
||||
getProductCategorySimpleList: async () => {
|
||||
return await request.get({ url: `/erp/product-category/simple-list` })
|
||||
return await request.get({url: `/erp/product-category/simple-list`})
|
||||
},
|
||||
|
||||
// 查询产品分类详情
|
||||
getProductCategory: async (id: number) => {
|
||||
return await request.get({ url: `/erp/product-category/get?id=` + id })
|
||||
return await request.get({url: `/erp/product-category/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增产品分类
|
||||
createProductCategory: async (data: ProductCategoryVO) => {
|
||||
return await request.post({ url: `/erp/product-category/create`, data })
|
||||
return await request.post({url: `/erp/product-category/create`, data})
|
||||
},
|
||||
|
||||
// 修改产品分类
|
||||
updateProductCategory: async (data: ProductCategoryVO) => {
|
||||
return await request.put({ url: `/erp/product-category/update`, data })
|
||||
return await request.put({url: `/erp/product-category/update`, data})
|
||||
},
|
||||
|
||||
// 删除产品分类
|
||||
deleteProductCategory: async (id: number) => {
|
||||
return await request.delete({ url: `/erp/product-category/delete?id=` + id })
|
||||
return await request.delete({url: `/erp/product-category/delete?id=` + id})
|
||||
},
|
||||
|
||||
// 导出产品分类 Excel
|
||||
exportProductCategory: async (params) => {
|
||||
return await request.download({ url: `/erp/product-category/export-excel`, params })
|
||||
return await request.download({url: `/erp/product-category/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -22,36 +22,36 @@ export interface ProductVO {
|
||||
export const ProductApi = {
|
||||
// 查询产品分页
|
||||
getProductPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/product/page`, params })
|
||||
return await request.get({url: `/erp/product/page`, params})
|
||||
},
|
||||
|
||||
// 查询产品精简列表
|
||||
getProductSimpleList: async () => {
|
||||
return await request.get({ url: `/erp/product/simple-list` })
|
||||
return await request.get({url: `/erp/product/simple-list`})
|
||||
},
|
||||
|
||||
// 查询产品详情
|
||||
getProduct: async (id: number) => {
|
||||
return await request.get({ url: `/erp/product/get?id=` + id })
|
||||
return await request.get({url: `/erp/product/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增产品
|
||||
createProduct: async (data: ProductVO) => {
|
||||
return await request.post({ url: `/erp/product/create`, data })
|
||||
return await request.post({url: `/erp/product/create`, data})
|
||||
},
|
||||
|
||||
// 修改产品
|
||||
updateProduct: async (data: ProductVO) => {
|
||||
return await request.put({ url: `/erp/product/update`, data })
|
||||
return await request.put({url: `/erp/product/update`, data})
|
||||
},
|
||||
|
||||
// 删除产品
|
||||
deleteProduct: async (id: number) => {
|
||||
return await request.delete({ url: `/erp/product/delete?id=` + id })
|
||||
return await request.delete({url: `/erp/product/delete?id=` + id})
|
||||
},
|
||||
|
||||
// 导出产品 Excel
|
||||
exportProduct: async (params) => {
|
||||
return await request.download({ url: `/erp/product/export-excel`, params })
|
||||
return await request.download({url: `/erp/product/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -11,36 +11,36 @@ export interface ProductUnitVO {
|
||||
export const ProductUnitApi = {
|
||||
// 查询产品单位分页
|
||||
getProductUnitPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/product-unit/page`, params })
|
||||
return await request.get({url: `/erp/product-unit/page`, params})
|
||||
},
|
||||
|
||||
// 查询产品单位精简列表
|
||||
getProductUnitSimpleList: async () => {
|
||||
return await request.get({ url: `/erp/product-unit/simple-list` })
|
||||
return await request.get({url: `/erp/product-unit/simple-list`})
|
||||
},
|
||||
|
||||
// 查询产品单位详情
|
||||
getProductUnit: async (id: number) => {
|
||||
return await request.get({ url: `/erp/product-unit/get?id=` + id })
|
||||
return await request.get({url: `/erp/product-unit/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增产品单位
|
||||
createProductUnit: async (data: ProductUnitVO) => {
|
||||
return await request.post({ url: `/erp/product-unit/create`, data })
|
||||
return await request.post({url: `/erp/product-unit/create`, data})
|
||||
},
|
||||
|
||||
// 修改产品单位
|
||||
updateProductUnit: async (data: ProductUnitVO) => {
|
||||
return await request.put({ url: `/erp/product-unit/update`, data })
|
||||
return await request.put({url: `/erp/product-unit/update`, data})
|
||||
},
|
||||
|
||||
// 删除产品单位
|
||||
deleteProductUnit: async (id: number) => {
|
||||
return await request.delete({ url: `/erp/product-unit/delete?id=` + id })
|
||||
return await request.delete({url: `/erp/product-unit/delete?id=` + id})
|
||||
},
|
||||
|
||||
// 导出产品单位 Excel
|
||||
exportProductUnit: async (params) => {
|
||||
return await request.download({ url: `/erp/product-unit/export-excel`, params })
|
||||
return await request.download({url: `/erp/product-unit/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -18,22 +18,22 @@ export interface PurchaseInVO {
|
||||
export const PurchaseInApi = {
|
||||
// 查询采购入库分页
|
||||
getPurchaseInPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/purchase-in/page`, params })
|
||||
return await request.get({url: `/erp/purchase-in/page`, params})
|
||||
},
|
||||
|
||||
// 查询采购入库详情
|
||||
getPurchaseIn: async (id: number) => {
|
||||
return await request.get({ url: `/erp/purchase-in/get?id=` + id })
|
||||
return await request.get({url: `/erp/purchase-in/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增采购入库
|
||||
createPurchaseIn: async (data: PurchaseInVO) => {
|
||||
return await request.post({ url: `/erp/purchase-in/create`, data })
|
||||
return await request.post({url: `/erp/purchase-in/create`, data})
|
||||
},
|
||||
|
||||
// 修改采购入库
|
||||
updatePurchaseIn: async (data: PurchaseInVO) => {
|
||||
return await request.put({ url: `/erp/purchase-in/update`, data })
|
||||
return await request.put({url: `/erp/purchase-in/update`, data})
|
||||
},
|
||||
|
||||
// 更新采购入库的状态
|
||||
@ -59,6 +59,6 @@ export const PurchaseInApi = {
|
||||
|
||||
// 导出采购入库 Excel
|
||||
exportPurchaseIn: async (params: any) => {
|
||||
return await request.download({ url: `/erp/purchase-in/export-excel`, params })
|
||||
return await request.download({url: `/erp/purchase-in/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -18,22 +18,22 @@ export interface PurchaseOrderVO {
|
||||
export const PurchaseOrderApi = {
|
||||
// 查询采购订单分页
|
||||
getPurchaseOrderPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/purchase-order/page`, params })
|
||||
return await request.get({url: `/erp/purchase-order/page`, params})
|
||||
},
|
||||
|
||||
// 查询采购订单详情
|
||||
getPurchaseOrder: async (id: number) => {
|
||||
return await request.get({ url: `/erp/purchase-order/get?id=` + id })
|
||||
return await request.get({url: `/erp/purchase-order/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增采购订单
|
||||
createPurchaseOrder: async (data: PurchaseOrderVO) => {
|
||||
return await request.post({ url: `/erp/purchase-order/create`, data })
|
||||
return await request.post({url: `/erp/purchase-order/create`, data})
|
||||
},
|
||||
|
||||
// 修改采购订单
|
||||
updatePurchaseOrder: async (data: PurchaseOrderVO) => {
|
||||
return await request.put({ url: `/erp/purchase-order/update`, data })
|
||||
return await request.put({url: `/erp/purchase-order/update`, data})
|
||||
},
|
||||
|
||||
// 更新采购订单的状态
|
||||
@ -59,6 +59,6 @@ export const PurchaseOrderApi = {
|
||||
|
||||
// 导出采购订单 Excel
|
||||
exportPurchaseOrder: async (params: any) => {
|
||||
return await request.download({ url: `/erp/purchase-order/export-excel`, params })
|
||||
return await request.download({url: `/erp/purchase-order/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -16,22 +16,22 @@ export interface PurchaseReturnVO {
|
||||
export const PurchaseReturnApi = {
|
||||
// 查询采购退货分页
|
||||
getPurchaseReturnPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/purchase-return/page`, params })
|
||||
return await request.get({url: `/erp/purchase-return/page`, params})
|
||||
},
|
||||
|
||||
// 查询采购退货详情
|
||||
getPurchaseReturn: async (id: number) => {
|
||||
return await request.get({ url: `/erp/purchase-return/get?id=` + id })
|
||||
return await request.get({url: `/erp/purchase-return/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增采购退货
|
||||
createPurchaseReturn: async (data: PurchaseReturnVO) => {
|
||||
return await request.post({ url: `/erp/purchase-return/create`, data })
|
||||
return await request.post({url: `/erp/purchase-return/create`, data})
|
||||
},
|
||||
|
||||
// 修改采购退货
|
||||
updatePurchaseReturn: async (data: PurchaseReturnVO) => {
|
||||
return await request.put({ url: `/erp/purchase-return/update`, data })
|
||||
return await request.put({url: `/erp/purchase-return/update`, data})
|
||||
},
|
||||
|
||||
// 更新采购退货的状态
|
||||
@ -57,6 +57,6 @@ export const PurchaseReturnApi = {
|
||||
|
||||
// 导出采购退货 Excel
|
||||
exportPurchaseReturn: async (params: any) => {
|
||||
return await request.download({ url: `/erp/purchase-return/export-excel`, params })
|
||||
return await request.download({url: `/erp/purchase-return/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -23,36 +23,36 @@ export interface SupplierVO {
|
||||
export const SupplierApi = {
|
||||
// 查询供应商分页
|
||||
getSupplierPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/supplier/page`, params })
|
||||
return await request.get({url: `/erp/supplier/page`, params})
|
||||
},
|
||||
|
||||
// 获得供应商精简列表
|
||||
getSupplierSimpleList: async () => {
|
||||
return await request.get({ url: `/erp/supplier/simple-list` })
|
||||
return await request.get({url: `/erp/supplier/simple-list`})
|
||||
},
|
||||
|
||||
// 查询供应商详情
|
||||
getSupplier: async (id: number) => {
|
||||
return await request.get({ url: `/erp/supplier/get?id=` + id })
|
||||
return await request.get({url: `/erp/supplier/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增供应商
|
||||
createSupplier: async (data: SupplierVO) => {
|
||||
return await request.post({ url: `/erp/supplier/create`, data })
|
||||
return await request.post({url: `/erp/supplier/create`, data})
|
||||
},
|
||||
|
||||
// 修改供应商
|
||||
updateSupplier: async (data: SupplierVO) => {
|
||||
return await request.put({ url: `/erp/supplier/update`, data })
|
||||
return await request.put({url: `/erp/supplier/update`, data})
|
||||
},
|
||||
|
||||
// 删除供应商
|
||||
deleteSupplier: async (id: number) => {
|
||||
return await request.delete({ url: `/erp/supplier/delete?id=` + id })
|
||||
return await request.delete({url: `/erp/supplier/delete?id=` + id})
|
||||
},
|
||||
|
||||
// 导出供应商 Excel
|
||||
exportSupplier: async (params) => {
|
||||
return await request.download({ url: `/erp/supplier/export-excel`, params })
|
||||
return await request.download({url: `/erp/supplier/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -23,36 +23,36 @@ export interface CustomerVO {
|
||||
export const CustomerApi = {
|
||||
// 查询客户分页
|
||||
getCustomerPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/customer/page`, params })
|
||||
return await request.get({url: `/erp/customer/page`, params})
|
||||
},
|
||||
|
||||
// 查询客户精简列表
|
||||
getCustomerSimpleList: async () => {
|
||||
return await request.get({ url: `/erp/customer/simple-list` })
|
||||
return await request.get({url: `/erp/customer/simple-list`})
|
||||
},
|
||||
|
||||
// 查询客户详情
|
||||
getCustomer: async (id: number) => {
|
||||
return await request.get({ url: `/erp/customer/get?id=` + id })
|
||||
return await request.get({url: `/erp/customer/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增客户
|
||||
createCustomer: async (data: CustomerVO) => {
|
||||
return await request.post({ url: `/erp/customer/create`, data })
|
||||
return await request.post({url: `/erp/customer/create`, data})
|
||||
},
|
||||
|
||||
// 修改客户
|
||||
updateCustomer: async (data: CustomerVO) => {
|
||||
return await request.put({ url: `/erp/customer/update`, data })
|
||||
return await request.put({url: `/erp/customer/update`, data})
|
||||
},
|
||||
|
||||
// 删除客户
|
||||
deleteCustomer: async (id: number) => {
|
||||
return await request.delete({ url: `/erp/customer/delete?id=` + id })
|
||||
return await request.delete({url: `/erp/customer/delete?id=` + id})
|
||||
},
|
||||
|
||||
// 导出客户 Excel
|
||||
exportCustomer: async (params) => {
|
||||
return await request.download({ url: `/erp/customer/export-excel`, params })
|
||||
return await request.download({url: `/erp/customer/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -18,22 +18,22 @@ export interface SaleOrderVO {
|
||||
export const SaleOrderApi = {
|
||||
// 查询销售订单分页
|
||||
getSaleOrderPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/sale-order/page`, params })
|
||||
return await request.get({url: `/erp/sale-order/page`, params})
|
||||
},
|
||||
|
||||
// 查询销售订单详情
|
||||
getSaleOrder: async (id: number) => {
|
||||
return await request.get({ url: `/erp/sale-order/get?id=` + id })
|
||||
return await request.get({url: `/erp/sale-order/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增销售订单
|
||||
createSaleOrder: async (data: SaleOrderVO) => {
|
||||
return await request.post({ url: `/erp/sale-order/create`, data })
|
||||
return await request.post({url: `/erp/sale-order/create`, data})
|
||||
},
|
||||
|
||||
// 修改销售订单
|
||||
updateSaleOrder: async (data: SaleOrderVO) => {
|
||||
return await request.put({ url: `/erp/sale-order/update`, data })
|
||||
return await request.put({url: `/erp/sale-order/update`, data})
|
||||
},
|
||||
|
||||
// 更新销售订单的状态
|
||||
@ -59,6 +59,6 @@ export const SaleOrderApi = {
|
||||
|
||||
// 导出销售订单 Excel
|
||||
exportSaleOrder: async (params: any) => {
|
||||
return await request.download({ url: `/erp/sale-order/export-excel`, params })
|
||||
return await request.download({url: `/erp/sale-order/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -16,22 +16,22 @@ export interface SaleOutVO {
|
||||
export const SaleOutApi = {
|
||||
// 查询销售出库分页
|
||||
getSaleOutPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/sale-out/page`, params })
|
||||
return await request.get({url: `/erp/sale-out/page`, params})
|
||||
},
|
||||
|
||||
// 查询销售出库详情
|
||||
getSaleOut: async (id: number) => {
|
||||
return await request.get({ url: `/erp/sale-out/get?id=` + id })
|
||||
return await request.get({url: `/erp/sale-out/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增销售出库
|
||||
createSaleOut: async (data: SaleOutVO) => {
|
||||
return await request.post({ url: `/erp/sale-out/create`, data })
|
||||
return await request.post({url: `/erp/sale-out/create`, data})
|
||||
},
|
||||
|
||||
// 修改销售出库
|
||||
updateSaleOut: async (data: SaleOutVO) => {
|
||||
return await request.put({ url: `/erp/sale-out/update`, data })
|
||||
return await request.put({url: `/erp/sale-out/update`, data})
|
||||
},
|
||||
|
||||
// 更新销售出库的状态
|
||||
@ -57,6 +57,6 @@ export const SaleOutApi = {
|
||||
|
||||
// 导出销售出库 Excel
|
||||
exportSaleOut: async (params: any) => {
|
||||
return await request.download({ url: `/erp/sale-out/export-excel`, params })
|
||||
return await request.download({url: `/erp/sale-out/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -16,22 +16,22 @@ export interface SaleReturnVO {
|
||||
export const SaleReturnApi = {
|
||||
// 查询销售退货分页
|
||||
getSaleReturnPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/sale-return/page`, params })
|
||||
return await request.get({url: `/erp/sale-return/page`, params})
|
||||
},
|
||||
|
||||
// 查询销售退货详情
|
||||
getSaleReturn: async (id: number) => {
|
||||
return await request.get({ url: `/erp/sale-return/get?id=` + id })
|
||||
return await request.get({url: `/erp/sale-return/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增销售退货
|
||||
createSaleReturn: async (data: SaleReturnVO) => {
|
||||
return await request.post({ url: `/erp/sale-return/create`, data })
|
||||
return await request.post({url: `/erp/sale-return/create`, data})
|
||||
},
|
||||
|
||||
// 修改销售退货
|
||||
updateSaleReturn: async (data: SaleReturnVO) => {
|
||||
return await request.put({ url: `/erp/sale-return/update`, data })
|
||||
return await request.put({url: `/erp/sale-return/update`, data})
|
||||
},
|
||||
|
||||
// 更新销售退货的状态
|
||||
@ -57,6 +57,6 @@ export const SaleReturnApi = {
|
||||
|
||||
// 导出销售退货 Excel
|
||||
exportSaleReturn: async (params: any) => {
|
||||
return await request.download({ url: `/erp/sale-return/export-excel`, params })
|
||||
return await request.download({url: `/erp/sale-return/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -18,11 +18,11 @@ export interface ErpPurchaseTimeSummaryRespVO {
|
||||
export const PurchaseStatisticsApi = {
|
||||
// 获得采购统计
|
||||
getPurchaseSummary: async (): Promise<ErpPurchaseSummaryRespVO> => {
|
||||
return await request.get({ url: `/erp/purchase-statistics/summary` })
|
||||
return await request.get({url: `/erp/purchase-statistics/summary`})
|
||||
},
|
||||
|
||||
// 获得采购时间段统计
|
||||
getPurchaseTimeSummary: async (): Promise<ErpPurchaseTimeSummaryRespVO[]> => {
|
||||
return await request.get({ url: `/erp/purchase-statistics/time-summary` })
|
||||
return await request.get({url: `/erp/purchase-statistics/time-summary`})
|
||||
}
|
||||
}
|
||||
|
@ -18,11 +18,11 @@ export interface ErpSaleTimeSummaryRespVO {
|
||||
export const SaleStatisticsApi = {
|
||||
// 获得销售统计
|
||||
getSaleSummary: async (): Promise<ErpSaleSummaryRespVO> => {
|
||||
return await request.get({ url: `/erp/sale-statistics/summary` })
|
||||
return await request.get({url: `/erp/sale-statistics/summary`})
|
||||
},
|
||||
|
||||
// 获得销售时间段统计
|
||||
getSaleTimeSummary: async (): Promise<ErpSaleTimeSummaryRespVO[]> => {
|
||||
return await request.get({ url: `/erp/sale-statistics/time-summary` })
|
||||
return await request.get({url: `/erp/sale-statistics/time-summary`})
|
||||
}
|
||||
}
|
||||
|
@ -15,22 +15,22 @@ export interface StockCheckVO {
|
||||
export const StockCheckApi = {
|
||||
// 查询库存盘点单分页
|
||||
getStockCheckPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/stock-check/page`, params })
|
||||
return await request.get({url: `/erp/stock-check/page`, params})
|
||||
},
|
||||
|
||||
// 查询库存盘点单详情
|
||||
getStockCheck: async (id: number) => {
|
||||
return await request.get({ url: `/erp/stock-check/get?id=` + id })
|
||||
return await request.get({url: `/erp/stock-check/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增库存盘点单
|
||||
createStockCheck: async (data: StockCheckVO) => {
|
||||
return await request.post({ url: `/erp/stock-check/create`, data })
|
||||
return await request.post({url: `/erp/stock-check/create`, data})
|
||||
},
|
||||
|
||||
// 修改库存盘点单
|
||||
updateStockCheck: async (data: StockCheckVO) => {
|
||||
return await request.put({ url: `/erp/stock-check/update`, data })
|
||||
return await request.put({url: `/erp/stock-check/update`, data})
|
||||
},
|
||||
|
||||
// 更新库存盘点单的状态
|
||||
@ -56,6 +56,6 @@ export const StockCheckApi = {
|
||||
|
||||
// 导出库存盘点单 Excel
|
||||
exportStockCheck: async (params) => {
|
||||
return await request.download({ url: `/erp/stock-check/export-excel`, params })
|
||||
return await request.download({url: `/erp/stock-check/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -16,22 +16,22 @@ export interface StockInVO {
|
||||
export const StockInApi = {
|
||||
// 查询其它入库单分页
|
||||
getStockInPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/stock-in/page`, params })
|
||||
return await request.get({url: `/erp/stock-in/page`, params})
|
||||
},
|
||||
|
||||
// 查询其它入库单详情
|
||||
getStockIn: async (id: number) => {
|
||||
return await request.get({ url: `/erp/stock-in/get?id=` + id })
|
||||
return await request.get({url: `/erp/stock-in/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增其它入库单
|
||||
createStockIn: async (data: StockInVO) => {
|
||||
return await request.post({ url: `/erp/stock-in/create`, data })
|
||||
return await request.post({url: `/erp/stock-in/create`, data})
|
||||
},
|
||||
|
||||
// 修改其它入库单
|
||||
updateStockIn: async (data: StockInVO) => {
|
||||
return await request.put({ url: `/erp/stock-in/update`, data })
|
||||
return await request.put({url: `/erp/stock-in/update`, data})
|
||||
},
|
||||
|
||||
// 更新其它入库单的状态
|
||||
@ -57,6 +57,6 @@ export const StockInApi = {
|
||||
|
||||
// 导出其它入库单 Excel
|
||||
exportStockIn: async (params) => {
|
||||
return await request.download({ url: `/erp/stock-in/export-excel`, params })
|
||||
return await request.download({url: `/erp/stock-in/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -15,22 +15,22 @@ export interface StockMoveVO {
|
||||
export const StockMoveApi = {
|
||||
// 查询库存调度单分页
|
||||
getStockMovePage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/stock-move/page`, params })
|
||||
return await request.get({url: `/erp/stock-move/page`, params})
|
||||
},
|
||||
|
||||
// 查询库存调度单详情
|
||||
getStockMove: async (id: number) => {
|
||||
return await request.get({ url: `/erp/stock-move/get?id=` + id })
|
||||
return await request.get({url: `/erp/stock-move/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增库存调度单
|
||||
createStockMove: async (data: StockMoveVO) => {
|
||||
return await request.post({ url: `/erp/stock-move/create`, data })
|
||||
return await request.post({url: `/erp/stock-move/create`, data})
|
||||
},
|
||||
|
||||
// 修改库存调度单
|
||||
updateStockMove: async (data: StockMoveVO) => {
|
||||
return await request.put({ url: `/erp/stock-move/update`, data })
|
||||
return await request.put({url: `/erp/stock-move/update`, data})
|
||||
},
|
||||
|
||||
// 更新库存调度单的状态
|
||||
@ -56,6 +56,6 @@ export const StockMoveApi = {
|
||||
|
||||
// 导出库存调度单 Excel
|
||||
exportStockMove: async (params) => {
|
||||
return await request.download({ url: `/erp/stock-move/export-excel`, params })
|
||||
return await request.download({url: `/erp/stock-move/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -16,22 +16,22 @@ export interface StockOutVO {
|
||||
export const StockOutApi = {
|
||||
// 查询其它出库单分页
|
||||
getStockOutPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/stock-out/page`, params })
|
||||
return await request.get({url: `/erp/stock-out/page`, params})
|
||||
},
|
||||
|
||||
// 查询其它出库单详情
|
||||
getStockOut: async (id: number) => {
|
||||
return await request.get({ url: `/erp/stock-out/get?id=` + id })
|
||||
return await request.get({url: `/erp/stock-out/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增其它出库单
|
||||
createStockOut: async (data: StockOutVO) => {
|
||||
return await request.post({ url: `/erp/stock-out/create`, data })
|
||||
return await request.post({url: `/erp/stock-out/create`, data})
|
||||
},
|
||||
|
||||
// 修改其它出库单
|
||||
updateStockOut: async (data: StockOutVO) => {
|
||||
return await request.put({ url: `/erp/stock-out/update`, data })
|
||||
return await request.put({url: `/erp/stock-out/update`, data})
|
||||
},
|
||||
|
||||
// 更新其它出库单的状态
|
||||
@ -57,6 +57,6 @@ export const StockOutApi = {
|
||||
|
||||
// 导出其它出库单 Excel
|
||||
exportStockOut: async (params) => {
|
||||
return await request.download({ url: `/erp/stock-out/export-excel`, params })
|
||||
return await request.download({url: `/erp/stock-out/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -17,16 +17,16 @@ export interface StockRecordVO {
|
||||
export const StockRecordApi = {
|
||||
// 查询产品库存明细分页
|
||||
getStockRecordPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/stock-record/page`, params })
|
||||
return await request.get({url: `/erp/stock-record/page`, params})
|
||||
},
|
||||
|
||||
// 查询产品库存明细详情
|
||||
getStockRecord: async (id: number) => {
|
||||
return await request.get({ url: `/erp/stock-record/get?id=` + id })
|
||||
return await request.get({url: `/erp/stock-record/get?id=` + id})
|
||||
},
|
||||
|
||||
// 导出产品库存明细 Excel
|
||||
exportStockRecord: async (params) => {
|
||||
return await request.download({ url: `/erp/stock-record/export-excel`, params })
|
||||
return await request.download({url: `/erp/stock-record/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -16,26 +16,26 @@ export interface StockVO {
|
||||
export const StockApi = {
|
||||
// 查询产品库存分页
|
||||
getStockPage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/stock/page`, params })
|
||||
return await request.get({url: `/erp/stock/page`, params})
|
||||
},
|
||||
|
||||
// 查询产品库存详情
|
||||
getStock: async (id: number) => {
|
||||
return await request.get({ url: `/erp/stock/get?id=` + id })
|
||||
return await request.get({url: `/erp/stock/get?id=` + id})
|
||||
},
|
||||
|
||||
// 查询产品库存详情
|
||||
getStock2: async (productId: number, warehouseId: number) => {
|
||||
return await request.get({ url: `/erp/stock/get`, params: { productId, warehouseId } })
|
||||
return await request.get({url: `/erp/stock/get`, params: {productId, warehouseId}})
|
||||
},
|
||||
|
||||
// 获得产品库存数量
|
||||
getStockCount: async (productId: number) => {
|
||||
return await request.get({ url: `/erp/stock/get-count`, params: { productId } })
|
||||
return await request.get({url: `/erp/stock/get-count`, params: {productId}})
|
||||
},
|
||||
|
||||
// 导出产品库存 Excel
|
||||
exportStock: async (params) => {
|
||||
return await request.download({ url: `/erp/stock/export-excel`, params })
|
||||
return await request.download({url: `/erp/stock/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -18,27 +18,27 @@ export interface WarehouseVO {
|
||||
export const WarehouseApi = {
|
||||
// 查询仓库分页
|
||||
getWarehousePage: async (params: any) => {
|
||||
return await request.get({ url: `/erp/warehouse/page`, params })
|
||||
return await request.get({url: `/erp/warehouse/page`, params})
|
||||
},
|
||||
|
||||
// 查询仓库精简列表
|
||||
getWarehouseSimpleList: async () => {
|
||||
return await request.get({ url: `/erp/warehouse/simple-list` })
|
||||
return await request.get({url: `/erp/warehouse/simple-list`})
|
||||
},
|
||||
|
||||
// 查询仓库详情
|
||||
getWarehouse: async (id: number) => {
|
||||
return await request.get({ url: `/erp/warehouse/get?id=` + id })
|
||||
return await request.get({url: `/erp/warehouse/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增仓库
|
||||
createWarehouse: async (data: WarehouseVO) => {
|
||||
return await request.post({ url: `/erp/warehouse/create`, data })
|
||||
return await request.post({url: `/erp/warehouse/create`, data})
|
||||
},
|
||||
|
||||
// 修改仓库
|
||||
updateWarehouse: async (data: WarehouseVO) => {
|
||||
return await request.put({ url: `/erp/warehouse/update`, data })
|
||||
return await request.put({url: `/erp/warehouse/update`, data})
|
||||
},
|
||||
|
||||
// 修改仓库默认状态
|
||||
@ -54,11 +54,11 @@ export const WarehouseApi = {
|
||||
|
||||
// 删除仓库
|
||||
deleteWarehouse: async (id: number) => {
|
||||
return await request.delete({ url: `/erp/warehouse/delete?id=` + id })
|
||||
return await request.delete({url: `/erp/warehouse/delete?id=` + id})
|
||||
},
|
||||
|
||||
// 导出仓库 Excel
|
||||
exportWarehouse: async (params) => {
|
||||
return await request.download({ url: `/erp/warehouse/export-excel`, params })
|
||||
return await request.download({url: `/erp/warehouse/export-excel`, params})
|
||||
}
|
||||
}
|
||||
|
@ -25,10 +25,10 @@ export interface ApiAccessLogVO {
|
||||
|
||||
// 查询列表API 访问日志
|
||||
export const getApiAccessLogPage = (params: PageParam) => {
|
||||
return request.get({ url: '/infra/api-access-log/page', params })
|
||||
return request.get({url: '/infra/api-access-log/page', params})
|
||||
}
|
||||
|
||||
// 导出API 访问日志
|
||||
export const exportApiAccessLog = (params) => {
|
||||
return request.download({ url: '/infra/api-access-log/export-excel', params })
|
||||
return request.download({url: '/infra/api-access-log/export-excel', params})
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ export interface ApiErrorLogVO {
|
||||
|
||||
// 查询列表API 访问日志
|
||||
export const getApiErrorLogPage = (params: PageParam) => {
|
||||
return request.get({ url: '/infra/api-error-log/page', params })
|
||||
return request.get({url: '/infra/api-error-log/page', params})
|
||||
}
|
||||
|
||||
// 更新 API 错误日志的处理状态
|
||||
|
@ -68,55 +68,55 @@ export type CodegenCreateListReqVO = {
|
||||
|
||||
// 查询列表代码生成表定义
|
||||
export const getCodegenTableList = (dataSourceConfigId: number) => {
|
||||
return request.get({ url: '/infra/codegen/table/list?dataSourceConfigId=' + dataSourceConfigId })
|
||||
return request.get({url: '/infra/codegen/table/list?dataSourceConfigId=' + dataSourceConfigId})
|
||||
}
|
||||
|
||||
// 查询列表代码生成表定义
|
||||
export const getCodegenTablePage = (params: PageParam) => {
|
||||
return request.get({ url: '/infra/codegen/table/page', params })
|
||||
return request.get({url: '/infra/codegen/table/page', params})
|
||||
}
|
||||
|
||||
// 查询详情代码生成表定义
|
||||
export const getCodegenTable = (id: number) => {
|
||||
return request.get({ url: '/infra/codegen/detail?tableId=' + id })
|
||||
return request.get({url: '/infra/codegen/detail?tableId=' + id})
|
||||
}
|
||||
|
||||
// 新增代码生成表定义
|
||||
export const createCodegenTable = (data: CodegenCreateListReqVO) => {
|
||||
return request.post({ url: '/infra/codegen/create', data })
|
||||
return request.post({url: '/infra/codegen/create', data})
|
||||
}
|
||||
|
||||
// 修改代码生成表定义
|
||||
export const updateCodegenTable = (data: CodegenUpdateReqVO) => {
|
||||
return request.put({ url: '/infra/codegen/update', data })
|
||||
return request.put({url: '/infra/codegen/update', data})
|
||||
}
|
||||
|
||||
// 基于数据库的表结构,同步数据库的表和字段定义
|
||||
export const syncCodegenFromDB = (id: number) => {
|
||||
return request.put({ url: '/infra/codegen/sync-from-db?tableId=' + id })
|
||||
return request.put({url: '/infra/codegen/sync-from-db?tableId=' + id})
|
||||
}
|
||||
|
||||
// 预览生成代码
|
||||
export const previewCodegen = (id: number) => {
|
||||
return request.get({ url: '/infra/codegen/preview?tableId=' + id })
|
||||
return request.get({url: '/infra/codegen/preview?tableId=' + id})
|
||||
}
|
||||
|
||||
// 下载生成代码
|
||||
export const downloadCodegen = (id: number) => {
|
||||
return request.download({ url: '/infra/codegen/download?tableId=' + id })
|
||||
return request.download({url: '/infra/codegen/download?tableId=' + id})
|
||||
}
|
||||
|
||||
// 获得表定义
|
||||
export const getSchemaTableList = (params) => {
|
||||
return request.get({ url: '/infra/codegen/db/table/list', params })
|
||||
return request.get({url: '/infra/codegen/db/table/list', params})
|
||||
}
|
||||
|
||||
// 基于数据库的表结构,创建代码生成器的表定义
|
||||
export const createCodegenList = (data) => {
|
||||
return request.post({ url: '/infra/codegen/create-list', data })
|
||||
return request.post({url: '/infra/codegen/create-list', data})
|
||||
}
|
||||
|
||||
// 删除代码生成表定义
|
||||
export const deleteCodegenTable = (id: number) => {
|
||||
return request.delete({ url: '/infra/codegen/delete?tableId=' + id })
|
||||
return request.delete({url: '/infra/codegen/delete?tableId=' + id})
|
||||
}
|
||||
|
@ -14,35 +14,35 @@ export interface ConfigVO {
|
||||
|
||||
// 查询参数列表
|
||||
export const getConfigPage = (params: PageParam) => {
|
||||
return request.get({ url: '/infra/config/page', params })
|
||||
return request.get({url: '/infra/config/page', params})
|
||||
}
|
||||
|
||||
// 查询参数详情
|
||||
export const getConfig = (id: number) => {
|
||||
return request.get({ url: '/infra/config/get?id=' + id })
|
||||
return request.get({url: '/infra/config/get?id=' + id})
|
||||
}
|
||||
|
||||
// 根据参数键名查询参数值
|
||||
export const getConfigKey = (configKey: string) => {
|
||||
return request.get({ url: '/infra/config/get-value-by-key?key=' + configKey })
|
||||
return request.get({url: '/infra/config/get-value-by-key?key=' + configKey})
|
||||
}
|
||||
|
||||
// 新增参数
|
||||
export const createConfig = (data: ConfigVO) => {
|
||||
return request.post({ url: '/infra/config/create', data })
|
||||
return request.post({url: '/infra/config/create', data})
|
||||
}
|
||||
|
||||
// 修改参数
|
||||
export const updateConfig = (data: ConfigVO) => {
|
||||
return request.put({ url: '/infra/config/update', data })
|
||||
return request.put({url: '/infra/config/update', data})
|
||||
}
|
||||
|
||||
// 删除参数
|
||||
export const deleteConfig = (id: number) => {
|
||||
return request.delete({ url: '/infra/config/delete?id=' + id })
|
||||
return request.delete({url: '/infra/config/delete?id=' + id})
|
||||
}
|
||||
|
||||
// 导出参数
|
||||
export const exportConfig = (params) => {
|
||||
return request.download({ url: '/infra/config/export', params })
|
||||
return request.download({url: '/infra/config/export', params})
|
||||
}
|
||||
|
@ -11,25 +11,25 @@ export interface DataSourceConfigVO {
|
||||
|
||||
// 新增数据源配置
|
||||
export const createDataSourceConfig = (data: DataSourceConfigVO) => {
|
||||
return request.post({ url: '/infra/data-source-config/create', data })
|
||||
return request.post({url: '/infra/data-source-config/create', data})
|
||||
}
|
||||
|
||||
// 修改数据源配置
|
||||
export const updateDataSourceConfig = (data: DataSourceConfigVO) => {
|
||||
return request.put({ url: '/infra/data-source-config/update', data })
|
||||
return request.put({url: '/infra/data-source-config/update', data})
|
||||
}
|
||||
|
||||
// 删除数据源配置
|
||||
export const deleteDataSourceConfig = (id: number) => {
|
||||
return request.delete({ url: '/infra/data-source-config/delete?id=' + id })
|
||||
return request.delete({url: '/infra/data-source-config/delete?id=' + id})
|
||||
}
|
||||
|
||||
// 查询数据源配置详情
|
||||
export const getDataSourceConfig = (id: number) => {
|
||||
return request.get({ url: '/infra/data-source-config/get?id=' + id })
|
||||
return request.get({url: '/infra/data-source-config/get?id=' + id})
|
||||
}
|
||||
|
||||
// 查询数据源配置列表
|
||||
export const getDataSourceConfigList = () => {
|
||||
return request.get({ url: '/infra/data-source-config/list' })
|
||||
return request.get({url: '/infra/data-source-config/list'})
|
||||
}
|
||||
|
@ -11,30 +11,30 @@ export interface Demo01ContactVO {
|
||||
|
||||
// 查询示例联系人分页
|
||||
export const getDemo01ContactPage = async (params) => {
|
||||
return await request.get({ url: `/infra/demo01-contact/page`, params })
|
||||
return await request.get({url: `/infra/demo01-contact/page`, params})
|
||||
}
|
||||
|
||||
// 查询示例联系人详情
|
||||
export const getDemo01Contact = async (id: number) => {
|
||||
return await request.get({ url: `/infra/demo01-contact/get?id=` + id })
|
||||
return await request.get({url: `/infra/demo01-contact/get?id=` + id})
|
||||
}
|
||||
|
||||
// 新增示例联系人
|
||||
export const createDemo01Contact = async (data: Demo01ContactVO) => {
|
||||
return await request.post({ url: `/infra/demo01-contact/create`, data })
|
||||
return await request.post({url: `/infra/demo01-contact/create`, data})
|
||||
}
|
||||
|
||||
// 修改示例联系人
|
||||
export const updateDemo01Contact = async (data: Demo01ContactVO) => {
|
||||
return await request.put({ url: `/infra/demo01-contact/update`, data })
|
||||
return await request.put({url: `/infra/demo01-contact/update`, data})
|
||||
}
|
||||
|
||||
// 删除示例联系人
|
||||
export const deleteDemo01Contact = async (id: number) => {
|
||||
return await request.delete({ url: `/infra/demo01-contact/delete?id=` + id })
|
||||
return await request.delete({url: `/infra/demo01-contact/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 导出示例联系人 Excel
|
||||
export const exportDemo01Contact = async (params) => {
|
||||
return await request.download({ url: `/infra/demo01-contact/export-excel`, params })
|
||||
return await request.download({url: `/infra/demo01-contact/export-excel`, params})
|
||||
}
|
||||
|
@ -8,30 +8,30 @@ export interface Demo02CategoryVO {
|
||||
|
||||
// 查询示例分类列表
|
||||
export const getDemo02CategoryList = async () => {
|
||||
return await request.get({ url: `/infra/demo02-category/list` })
|
||||
return await request.get({url: `/infra/demo02-category/list`})
|
||||
}
|
||||
|
||||
// 查询示例分类详情
|
||||
export const getDemo02Category = async (id: number) => {
|
||||
return await request.get({ url: `/infra/demo02-category/get?id=` + id })
|
||||
return await request.get({url: `/infra/demo02-category/get?id=` + id})
|
||||
}
|
||||
|
||||
// 新增示例分类
|
||||
export const createDemo02Category = async (data: Demo02CategoryVO) => {
|
||||
return await request.post({ url: `/infra/demo02-category/create`, data })
|
||||
return await request.post({url: `/infra/demo02-category/create`, data})
|
||||
}
|
||||
|
||||
// 修改示例分类
|
||||
export const updateDemo02Category = async (data: Demo02CategoryVO) => {
|
||||
return await request.put({ url: `/infra/demo02-category/update`, data })
|
||||
return await request.put({url: `/infra/demo02-category/update`, data})
|
||||
}
|
||||
|
||||
// 删除示例分类
|
||||
export const deleteDemo02Category = async (id: number) => {
|
||||
return await request.delete({ url: `/infra/demo02-category/delete?id=` + id })
|
||||
return await request.delete({url: `/infra/demo02-category/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 导出示例分类 Excel
|
||||
export const exportDemo02Category = async (params) => {
|
||||
return await request.download({ url: `/infra/demo02-category/export-excel`, params })
|
||||
return await request.download({url: `/infra/demo02-category/export-excel`, params})
|
||||
}
|
||||
|
@ -10,82 +10,82 @@ export interface Demo03StudentVO {
|
||||
|
||||
// 查询学生分页
|
||||
export const getDemo03StudentPage = async (params) => {
|
||||
return await request.get({ url: `/infra/demo03-student/page`, params })
|
||||
return await request.get({url: `/infra/demo03-student/page`, params})
|
||||
}
|
||||
|
||||
// 查询学生详情
|
||||
export const getDemo03Student = async (id: number) => {
|
||||
return await request.get({ url: `/infra/demo03-student/get?id=` + id })
|
||||
return await request.get({url: `/infra/demo03-student/get?id=` + id})
|
||||
}
|
||||
|
||||
// 新增学生
|
||||
export const createDemo03Student = async (data: Demo03StudentVO) => {
|
||||
return await request.post({ url: `/infra/demo03-student/create`, data })
|
||||
return await request.post({url: `/infra/demo03-student/create`, data})
|
||||
}
|
||||
|
||||
// 修改学生
|
||||
export const updateDemo03Student = async (data: Demo03StudentVO) => {
|
||||
return await request.put({ url: `/infra/demo03-student/update`, data })
|
||||
return await request.put({url: `/infra/demo03-student/update`, data})
|
||||
}
|
||||
|
||||
// 删除学生
|
||||
export const deleteDemo03Student = async (id: number) => {
|
||||
return await request.delete({ url: `/infra/demo03-student/delete?id=` + id })
|
||||
return await request.delete({url: `/infra/demo03-student/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 导出学生 Excel
|
||||
export const exportDemo03Student = async (params) => {
|
||||
return await request.download({ url: `/infra/demo03-student/export-excel`, params })
|
||||
return await request.download({url: `/infra/demo03-student/export-excel`, params})
|
||||
}
|
||||
|
||||
// ==================== 子表(学生课程) ====================
|
||||
|
||||
// 获得学生课程分页
|
||||
export const getDemo03CoursePage = async (params) => {
|
||||
return await request.get({ url: `/infra/demo03-student/demo03-course/page`, params })
|
||||
return await request.get({url: `/infra/demo03-student/demo03-course/page`, params})
|
||||
}
|
||||
// 新增学生课程
|
||||
export const createDemo03Course = async (data) => {
|
||||
return await request.post({ url: `/infra/demo03-student/demo03-course/create`, data })
|
||||
return await request.post({url: `/infra/demo03-student/demo03-course/create`, data})
|
||||
}
|
||||
|
||||
// 修改学生课程
|
||||
export const updateDemo03Course = async (data) => {
|
||||
return await request.put({ url: `/infra/demo03-student/demo03-course/update`, data })
|
||||
return await request.put({url: `/infra/demo03-student/demo03-course/update`, data})
|
||||
}
|
||||
|
||||
// 删除学生课程
|
||||
export const deleteDemo03Course = async (id: number) => {
|
||||
return await request.delete({ url: `/infra/demo03-student/demo03-course/delete?id=` + id })
|
||||
return await request.delete({url: `/infra/demo03-student/demo03-course/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 获得学生课程
|
||||
export const getDemo03Course = async (id: number) => {
|
||||
return await request.get({ url: `/infra/demo03-student/demo03-course/get?id=` + id })
|
||||
return await request.get({url: `/infra/demo03-student/demo03-course/get?id=` + id})
|
||||
}
|
||||
|
||||
// ==================== 子表(学生班级) ====================
|
||||
|
||||
// 获得学生班级分页
|
||||
export const getDemo03GradePage = async (params) => {
|
||||
return await request.get({ url: `/infra/demo03-student/demo03-grade/page`, params })
|
||||
return await request.get({url: `/infra/demo03-student/demo03-grade/page`, params})
|
||||
}
|
||||
// 新增学生班级
|
||||
export const createDemo03Grade = async (data) => {
|
||||
return await request.post({ url: `/infra/demo03-student/demo03-grade/create`, data })
|
||||
return await request.post({url: `/infra/demo03-student/demo03-grade/create`, data})
|
||||
}
|
||||
|
||||
// 修改学生班级
|
||||
export const updateDemo03Grade = async (data) => {
|
||||
return await request.put({ url: `/infra/demo03-student/demo03-grade/update`, data })
|
||||
return await request.put({url: `/infra/demo03-student/demo03-grade/update`, data})
|
||||
}
|
||||
|
||||
// 删除学生班级
|
||||
export const deleteDemo03Grade = async (id: number) => {
|
||||
return await request.delete({ url: `/infra/demo03-student/demo03-grade/delete?id=` + id })
|
||||
return await request.delete({url: `/infra/demo03-student/demo03-grade/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 获得学生班级
|
||||
export const getDemo03Grade = async (id: number) => {
|
||||
return await request.get({ url: `/infra/demo03-student/demo03-grade/get?id=` + id })
|
||||
return await request.get({url: `/infra/demo03-student/demo03-grade/get?id=` + id})
|
||||
}
|
||||
|
@ -10,32 +10,32 @@ export interface Demo03StudentVO {
|
||||
|
||||
// 查询学生分页
|
||||
export const getDemo03StudentPage = async (params) => {
|
||||
return await request.get({ url: `/infra/demo03-student/page`, params })
|
||||
return await request.get({url: `/infra/demo03-student/page`, params})
|
||||
}
|
||||
|
||||
// 查询学生详情
|
||||
export const getDemo03Student = async (id: number) => {
|
||||
return await request.get({ url: `/infra/demo03-student/get?id=` + id })
|
||||
return await request.get({url: `/infra/demo03-student/get?id=` + id})
|
||||
}
|
||||
|
||||
// 新增学生
|
||||
export const createDemo03Student = async (data: Demo03StudentVO) => {
|
||||
return await request.post({ url: `/infra/demo03-student/create`, data })
|
||||
return await request.post({url: `/infra/demo03-student/create`, data})
|
||||
}
|
||||
|
||||
// 修改学生
|
||||
export const updateDemo03Student = async (data: Demo03StudentVO) => {
|
||||
return await request.put({ url: `/infra/demo03-student/update`, data })
|
||||
return await request.put({url: `/infra/demo03-student/update`, data})
|
||||
}
|
||||
|
||||
// 删除学生
|
||||
export const deleteDemo03Student = async (id: number) => {
|
||||
return await request.delete({ url: `/infra/demo03-student/delete?id=` + id })
|
||||
return await request.delete({url: `/infra/demo03-student/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 导出学生 Excel
|
||||
export const exportDemo03Student = async (params) => {
|
||||
return await request.download({ url: `/infra/demo03-student/export-excel`, params })
|
||||
return await request.download({url: `/infra/demo03-student/export-excel`, params})
|
||||
}
|
||||
|
||||
// ==================== 子表(学生课程) ====================
|
||||
|
@ -10,32 +10,32 @@ export interface Demo03StudentVO {
|
||||
|
||||
// 查询学生分页
|
||||
export const getDemo03StudentPage = async (params) => {
|
||||
return await request.get({ url: `/infra/demo03-student/page`, params })
|
||||
return await request.get({url: `/infra/demo03-student/page`, params})
|
||||
}
|
||||
|
||||
// 查询学生详情
|
||||
export const getDemo03Student = async (id: number) => {
|
||||
return await request.get({ url: `/infra/demo03-student/get?id=` + id })
|
||||
return await request.get({url: `/infra/demo03-student/get?id=` + id})
|
||||
}
|
||||
|
||||
// 新增学生
|
||||
export const createDemo03Student = async (data: Demo03StudentVO) => {
|
||||
return await request.post({ url: `/infra/demo03-student/create`, data })
|
||||
return await request.post({url: `/infra/demo03-student/create`, data})
|
||||
}
|
||||
|
||||
// 修改学生
|
||||
export const updateDemo03Student = async (data: Demo03StudentVO) => {
|
||||
return await request.put({ url: `/infra/demo03-student/update`, data })
|
||||
return await request.put({url: `/infra/demo03-student/update`, data})
|
||||
}
|
||||
|
||||
// 删除学生
|
||||
export const deleteDemo03Student = async (id: number) => {
|
||||
return await request.delete({ url: `/infra/demo03-student/delete?id=` + id })
|
||||
return await request.delete({url: `/infra/demo03-student/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 导出学生 Excel
|
||||
export const exportDemo03Student = async (params) => {
|
||||
return await request.download({ url: `/infra/demo03-student/export-excel`, params })
|
||||
return await request.download({url: `/infra/demo03-student/export-excel`, params})
|
||||
}
|
||||
|
||||
// ==================== 子表(学生课程) ====================
|
||||
|
@ -18,28 +18,28 @@ export interface FilePresignedUrlRespVO {
|
||||
|
||||
// 查询文件列表
|
||||
export const getFilePage = (params: FilePageReqVO) => {
|
||||
return request.get({ url: '/infra/file/page', params })
|
||||
return request.get({url: '/infra/file/page', params})
|
||||
}
|
||||
|
||||
// 删除文件
|
||||
export const deleteFile = (id: number) => {
|
||||
return request.delete({ url: '/infra/file/delete?id=' + id })
|
||||
return request.delete({url: '/infra/file/delete?id=' + id})
|
||||
}
|
||||
|
||||
// 获取文件预签名地址
|
||||
export const getFilePresignedUrl = (path: string) => {
|
||||
return request.get<FilePresignedUrlRespVO>({
|
||||
url: '/infra/file/presigned-url',
|
||||
params: { path }
|
||||
params: {path}
|
||||
})
|
||||
}
|
||||
|
||||
// 创建文件
|
||||
export const createFile = (data: any) => {
|
||||
return request.post({ url: '/infra/file/create', data })
|
||||
return request.post({url: '/infra/file/create', data})
|
||||
}
|
||||
|
||||
// 上传文件
|
||||
export const updateFile = (data: any) => {
|
||||
return request.upload({ url: '/infra/file/upload', data })
|
||||
return request.upload({url: '/infra/file/upload', data})
|
||||
}
|
||||
|
@ -27,35 +27,35 @@ export interface FileConfigVO {
|
||||
|
||||
// 查询文件配置列表
|
||||
export const getFileConfigPage = (params: PageParam) => {
|
||||
return request.get({ url: '/infra/file-config/page', params })
|
||||
return request.get({url: '/infra/file-config/page', params})
|
||||
}
|
||||
|
||||
// 查询文件配置详情
|
||||
export const getFileConfig = (id: number) => {
|
||||
return request.get({ url: '/infra/file-config/get?id=' + id })
|
||||
return request.get({url: '/infra/file-config/get?id=' + id})
|
||||
}
|
||||
|
||||
// 更新文件配置为主配置
|
||||
export const updateFileConfigMaster = (id: number) => {
|
||||
return request.put({ url: '/infra/file-config/update-master?id=' + id })
|
||||
return request.put({url: '/infra/file-config/update-master?id=' + id})
|
||||
}
|
||||
|
||||
// 新增文件配置
|
||||
export const createFileConfig = (data: FileConfigVO) => {
|
||||
return request.post({ url: '/infra/file-config/create', data })
|
||||
return request.post({url: '/infra/file-config/create', data})
|
||||
}
|
||||
|
||||
// 修改文件配置
|
||||
export const updateFileConfig = (data: FileConfigVO) => {
|
||||
return request.put({ url: '/infra/file-config/update', data })
|
||||
return request.put({url: '/infra/file-config/update', data})
|
||||
}
|
||||
|
||||
// 删除文件配置
|
||||
export const deleteFileConfig = (id: number) => {
|
||||
return request.delete({ url: '/infra/file-config/delete?id=' + id })
|
||||
return request.delete({url: '/infra/file-config/delete?id=' + id})
|
||||
}
|
||||
|
||||
// 测试文件配置
|
||||
export const testFileConfig = (id: number) => {
|
||||
return request.get({ url: '/infra/file-config/test?id=' + id })
|
||||
return request.get({url: '/infra/file-config/test?id=' + id})
|
||||
}
|
||||
|
@ -15,32 +15,32 @@ export interface JobVO {
|
||||
|
||||
// 任务列表
|
||||
export const getJobPage = (params: PageParam) => {
|
||||
return request.get({ url: '/infra/job/page', params })
|
||||
return request.get({url: '/infra/job/page', params})
|
||||
}
|
||||
|
||||
// 任务详情
|
||||
export const getJob = (id: number) => {
|
||||
return request.get({ url: '/infra/job/get?id=' + id })
|
||||
return request.get({url: '/infra/job/get?id=' + id})
|
||||
}
|
||||
|
||||
// 新增任务
|
||||
export const createJob = (data: JobVO) => {
|
||||
return request.post({ url: '/infra/job/create', data })
|
||||
return request.post({url: '/infra/job/create', data})
|
||||
}
|
||||
|
||||
// 修改定时任务调度
|
||||
export const updateJob = (data: JobVO) => {
|
||||
return request.put({ url: '/infra/job/update', data })
|
||||
return request.put({url: '/infra/job/update', data})
|
||||
}
|
||||
|
||||
// 删除定时任务调度
|
||||
export const deleteJob = (id: number) => {
|
||||
return request.delete({ url: '/infra/job/delete?id=' + id })
|
||||
return request.delete({url: '/infra/job/delete?id=' + id})
|
||||
}
|
||||
|
||||
// 导出定时任务调度
|
||||
export const exportJob = (params) => {
|
||||
return request.download({ url: '/infra/job/export-excel', params })
|
||||
return request.download({url: '/infra/job/export-excel', params})
|
||||
}
|
||||
|
||||
// 任务状态修改
|
||||
@ -49,15 +49,15 @@ export const updateJobStatus = (id: number, status: number) => {
|
||||
id,
|
||||
status
|
||||
}
|
||||
return request.put({ url: '/infra/job/update-status', params })
|
||||
return request.put({url: '/infra/job/update-status', params})
|
||||
}
|
||||
|
||||
// 定时任务立即执行一次
|
||||
export const runJob = (id: number) => {
|
||||
return request.put({ url: '/infra/job/trigger?id=' + id })
|
||||
return request.put({url: '/infra/job/trigger?id=' + id})
|
||||
}
|
||||
|
||||
// 获得定时任务的下 n 次执行时间
|
||||
export const getJobNextTimes = (id: number) => {
|
||||
return request.get({ url: '/infra/job/get_next_times?id=' + id })
|
||||
return request.get({url: '/infra/job/get_next_times?id=' + id})
|
||||
}
|
||||
|
@ -17,12 +17,12 @@ export interface JobLogVO {
|
||||
|
||||
// 任务日志列表
|
||||
export const getJobLogPage = (params: PageParam) => {
|
||||
return request.get({ url: '/infra/job-log/page', params })
|
||||
return request.get({url: '/infra/job-log/page', params})
|
||||
}
|
||||
|
||||
// 任务日志详情
|
||||
export const getJobLog = (id: number) => {
|
||||
return request.get({ url: '/infra/job-log/get?id=' + id })
|
||||
return request.get({url: '/infra/job-log/get?id=' + id})
|
||||
}
|
||||
|
||||
// 导出定时任务日志
|
||||
|
@ -4,5 +4,5 @@ import request from '@/config/axios'
|
||||
* 获取redis 监控信息
|
||||
*/
|
||||
export const getCache = () => {
|
||||
return request.get({ url: '/infra/redis/get-monitor-info' })
|
||||
return request.get({url: '/infra/redis/get-monitor-info'})
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import request from '@/config/axios'
|
||||
import { getRefreshToken } from '@/utils/auth'
|
||||
import type { UserLoginVO } from './types'
|
||||
import {getRefreshToken} from '@/utils/auth'
|
||||
import type {UserLoginVO} from './types'
|
||||
|
||||
export interface SmsCodeVO {
|
||||
mobile: string
|
||||
@ -14,42 +14,42 @@ export interface SmsLoginVO {
|
||||
|
||||
// 登录
|
||||
export const login = (data: UserLoginVO) => {
|
||||
return request.post({ url: '/system/auth/login', data })
|
||||
return request.post({url: '/system/auth/login', data})
|
||||
}
|
||||
|
||||
// 刷新访问令牌
|
||||
export const refreshToken = () => {
|
||||
return request.post({ url: '/system/auth/refresh-token?refreshToken=' + getRefreshToken() })
|
||||
return request.post({url: '/system/auth/refresh-token?refreshToken=' + getRefreshToken()})
|
||||
}
|
||||
|
||||
// 使用租户名,获得租户编号
|
||||
export const getTenantIdByName = (name: string) => {
|
||||
return request.get({ url: '/system/tenant/get-id-by-name?name=' + name })
|
||||
return request.get({url: '/system/tenant/get-id-by-name?name=' + name})
|
||||
}
|
||||
|
||||
// 使用租户域名,获得租户信息
|
||||
export const getTenantByWebsite = (website: string) => {
|
||||
return request.get({ url: '/system/tenant/get-by-website?website=' + website })
|
||||
return request.get({url: '/system/tenant/get-by-website?website=' + website})
|
||||
}
|
||||
|
||||
// 登出
|
||||
export const loginOut = () => {
|
||||
return request.post({ url: '/system/auth/logout' })
|
||||
return request.post({url: '/system/auth/logout'})
|
||||
}
|
||||
|
||||
// 获取用户权限信息
|
||||
export const getInfo = () => {
|
||||
return request.get({ url: '/system/auth/get-permission-info' })
|
||||
return request.get({url: '/system/auth/get-permission-info'})
|
||||
}
|
||||
|
||||
//获取登录验证码
|
||||
export const sendSmsCode = (data: SmsCodeVO) => {
|
||||
return request.post({ url: '/system/auth/send-sms-code', data })
|
||||
return request.post({url: '/system/auth/send-sms-code', data})
|
||||
}
|
||||
|
||||
// 短信验证码登录
|
||||
export const smsLogin = (data: SmsLoginVO) => {
|
||||
return request.post({ url: '/system/auth/sms-login', data })
|
||||
return request.post({url: '/system/auth/sms-login', data})
|
||||
}
|
||||
|
||||
// 社交快捷登录,使用 code 授权码
|
||||
@ -72,10 +72,10 @@ export const socialAuthRedirect = (type: number, redirectUri: string) => {
|
||||
}
|
||||
// 获取验证图片以及 token
|
||||
export const getCode = (data) => {
|
||||
return request.postOriginal({ url: 'system/captcha/get', data })
|
||||
return request.postOriginal({url: 'system/captcha/get', data})
|
||||
}
|
||||
|
||||
// 滑动或者点选验证
|
||||
export const reqCheck = (data) => {
|
||||
return request.postOriginal({ url: 'system/captcha/check', data })
|
||||
return request.postOriginal({url: 'system/captcha/check', data})
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ import request from '@/config/axios'
|
||||
|
||||
// 获得授权信息
|
||||
export const getAuthorize = (clientId: string) => {
|
||||
return request.get({ url: '/system/oauth2/authorize?clientId=' + clientId })
|
||||
return request.get({url: '/system/oauth2/authorize?clientId=' + clientId})
|
||||
}
|
||||
|
||||
// 发起授权
|
||||
|
@ -13,25 +13,25 @@ export interface BannerVO {
|
||||
|
||||
// 查询Banner管理列表
|
||||
export const getBannerPage = async (params) => {
|
||||
return await request.get({ url: `/promotion/banner/page`, params })
|
||||
return await request.get({url: `/promotion/banner/page`, params})
|
||||
}
|
||||
|
||||
// 查询Banner管理详情
|
||||
export const getBanner = async (id: number) => {
|
||||
return await request.get({ url: `/promotion/banner/get?id=` + id })
|
||||
return await request.get({url: `/promotion/banner/get?id=` + id})
|
||||
}
|
||||
|
||||
// 新增Banner管理
|
||||
export const createBanner = async (data: BannerVO) => {
|
||||
return await request.post({ url: `/promotion/banner/create`, data })
|
||||
return await request.post({url: `/promotion/banner/create`, data})
|
||||
}
|
||||
|
||||
// 修改Banner管理
|
||||
export const updateBanner = async (data: BannerVO) => {
|
||||
return await request.put({ url: `/promotion/banner/update`, data })
|
||||
return await request.put({url: `/promotion/banner/update`, data})
|
||||
}
|
||||
|
||||
// 删除Banner管理
|
||||
export const deleteBanner = async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/banner/delete?id=` + id })
|
||||
return await request.delete({url: `/promotion/banner/delete?id=` + id})
|
||||
}
|
||||
|
@ -32,30 +32,30 @@ export interface BrandVO {
|
||||
|
||||
// 创建商品品牌
|
||||
export const createBrand = (data: BrandVO) => {
|
||||
return request.post({ url: '/product/brand/create', data })
|
||||
return request.post({url: '/product/brand/create', data})
|
||||
}
|
||||
|
||||
// 更新商品品牌
|
||||
export const updateBrand = (data: BrandVO) => {
|
||||
return request.put({ url: '/product/brand/update', data })
|
||||
return request.put({url: '/product/brand/update', data})
|
||||
}
|
||||
|
||||
// 删除商品品牌
|
||||
export const deleteBrand = (id: number) => {
|
||||
return request.delete({ url: `/product/brand/delete?id=${id}` })
|
||||
return request.delete({url: `/product/brand/delete?id=${id}`})
|
||||
}
|
||||
|
||||
// 获得商品品牌
|
||||
export const getBrand = (id: number) => {
|
||||
return request.get({ url: `/product/brand/get?id=${id}` })
|
||||
return request.get({url: `/product/brand/get?id=${id}`})
|
||||
}
|
||||
|
||||
// 获得商品品牌列表
|
||||
export const getBrandParam = (params: PageParam) => {
|
||||
return request.get({ url: '/product/brand/page', params })
|
||||
return request.get({url: '/product/brand/page', params})
|
||||
}
|
||||
|
||||
// 获得商品品牌精简信息列表
|
||||
export const getSimpleBrandList = () => {
|
||||
return request.get({ url: '/product/brand/list-all-simple' })
|
||||
return request.get({url: '/product/brand/list-all-simple'})
|
||||
}
|
||||
|
@ -32,25 +32,25 @@ export interface CategoryVO {
|
||||
|
||||
// 创建商品分类
|
||||
export const createCategory = (data: CategoryVO) => {
|
||||
return request.post({ url: '/product/category/create', data })
|
||||
return request.post({url: '/product/category/create', data})
|
||||
}
|
||||
|
||||
// 更新商品分类
|
||||
export const updateCategory = (data: CategoryVO) => {
|
||||
return request.put({ url: '/product/category/update', data })
|
||||
return request.put({url: '/product/category/update', data})
|
||||
}
|
||||
|
||||
// 删除商品分类
|
||||
export const deleteCategory = (id: number) => {
|
||||
return request.delete({ url: `/product/category/delete?id=${id}` })
|
||||
return request.delete({url: `/product/category/delete?id=${id}`})
|
||||
}
|
||||
|
||||
// 获得商品分类
|
||||
export const getCategory = (id: number) => {
|
||||
return request.get({ url: `/product/category/get?id=${id}` })
|
||||
return request.get({url: `/product/category/get?id=${id}`})
|
||||
}
|
||||
|
||||
// 获得商品分类列表
|
||||
export const getCategoryList = (params: any) => {
|
||||
return request.get({ url: '/product/category/list', params })
|
||||
return request.get({url: '/product/category/list', params})
|
||||
}
|
||||
|
@ -25,25 +25,25 @@ export interface CommentVO {
|
||||
|
||||
// 查询商品评论列表
|
||||
export const getCommentPage = async (params) => {
|
||||
return await request.get({ url: `/product/comment/page`, params })
|
||||
return await request.get({url: `/product/comment/page`, params})
|
||||
}
|
||||
|
||||
// 查询商品评论详情
|
||||
export const getComment = async (id: number) => {
|
||||
return await request.get({ url: `/product/comment/get?id=` + id })
|
||||
return await request.get({url: `/product/comment/get?id=` + id})
|
||||
}
|
||||
|
||||
// 添加自评
|
||||
export const createComment = async (data: CommentVO) => {
|
||||
return await request.post({ url: `/product/comment/create`, data })
|
||||
return await request.post({url: `/product/comment/create`, data})
|
||||
}
|
||||
|
||||
// 显示 / 隐藏评论
|
||||
export const updateCommentVisible = async (data: any) => {
|
||||
return await request.put({ url: `/product/comment/update-visible`, data })
|
||||
return await request.put({url: `/product/comment/update-visible`, data})
|
||||
}
|
||||
|
||||
// 商家回复
|
||||
export const replyComment = async (data: any) => {
|
||||
return await request.put({ url: `/product/comment/reply`, data })
|
||||
return await request.put({url: `/product/comment/reply`, data})
|
||||
}
|
||||
|
@ -8,5 +8,5 @@ export interface Favorite {
|
||||
|
||||
// 获得 ProductFavorite 列表
|
||||
export const getFavoritePage = (params: PageParam) => {
|
||||
return request.get({ url: '/product/favorite/page', params })
|
||||
return request.get({url: '/product/favorite/page', params})
|
||||
}
|
||||
|
@ -6,5 +6,5 @@ import request from '@/config/axios'
|
||||
* @param params 请求参数
|
||||
*/
|
||||
export const getBrowseHistoryPage = (params: any) => {
|
||||
return request.get({ url: '/product/browse-history/page', params })
|
||||
return request.get({url: '/product/browse-history/page', params})
|
||||
}
|
||||
|
@ -42,52 +42,52 @@ export interface PropertyValueDetailVO {
|
||||
|
||||
// 创建属性项
|
||||
export const createProperty = (data: PropertyVO) => {
|
||||
return request.post({ url: '/product/property/create', data })
|
||||
return request.post({url: '/product/property/create', data})
|
||||
}
|
||||
|
||||
// 更新属性项
|
||||
export const updateProperty = (data: PropertyVO) => {
|
||||
return request.put({ url: '/product/property/update', data })
|
||||
return request.put({url: '/product/property/update', data})
|
||||
}
|
||||
|
||||
// 删除属性项
|
||||
export const deleteProperty = (id: number) => {
|
||||
return request.delete({ url: `/product/property/delete?id=${id}` })
|
||||
return request.delete({url: `/product/property/delete?id=${id}`})
|
||||
}
|
||||
|
||||
// 获得属性项
|
||||
export const getProperty = (id: number): Promise<PropertyVO> => {
|
||||
return request.get({ url: `/product/property/get?id=${id}` })
|
||||
return request.get({url: `/product/property/get?id=${id}`})
|
||||
}
|
||||
|
||||
// 获得属性项分页
|
||||
export const getPropertyPage = (params: PageParam) => {
|
||||
return request.get({ url: '/product/property/page', params })
|
||||
return request.get({url: '/product/property/page', params})
|
||||
}
|
||||
|
||||
// ------------------------ 属性值 -------------------
|
||||
|
||||
// 获得属性值分页
|
||||
export const getPropertyValuePage = (params: PageParam & any) => {
|
||||
return request.get({ url: '/product/property/value/page', params })
|
||||
return request.get({url: '/product/property/value/page', params})
|
||||
}
|
||||
|
||||
// 获得属性值
|
||||
export const getPropertyValue = (id: number): Promise<PropertyValueVO> => {
|
||||
return request.get({ url: `/product/property/value/get?id=${id}` })
|
||||
return request.get({url: `/product/property/value/get?id=${id}`})
|
||||
}
|
||||
|
||||
// 创建属性值
|
||||
export const createPropertyValue = (data: PropertyValueVO) => {
|
||||
return request.post({ url: '/product/property/value/create', data })
|
||||
return request.post({url: '/product/property/value/create', data})
|
||||
}
|
||||
|
||||
// 更新属性值
|
||||
export const updatePropertyValue = (data: PropertyValueVO) => {
|
||||
return request.put({ url: '/product/property/value/update', data })
|
||||
return request.put({url: '/product/property/value/update', data})
|
||||
}
|
||||
|
||||
// 删除属性值
|
||||
export const deletePropertyValue = (id: number) => {
|
||||
return request.delete({ url: `/product/property/value/delete?id=${id}` })
|
||||
return request.delete({url: `/product/property/value/delete?id=${id}`})
|
||||
}
|
||||
|
@ -62,50 +62,50 @@ export interface Spu {
|
||||
|
||||
// 获得 Spu 列表
|
||||
export const getSpuPage = (params: PageParam) => {
|
||||
return request.get({ url: '/product/spu/page', params })
|
||||
return request.get({url: '/product/spu/page', params})
|
||||
}
|
||||
|
||||
// 获得 Spu 列表 tabsCount
|
||||
export const getTabsCount = () => {
|
||||
return request.get({ url: '/product/spu/get-count' })
|
||||
return request.get({url: '/product/spu/get-count'})
|
||||
}
|
||||
|
||||
// 创建商品 Spu
|
||||
export const createSpu = (data: Spu) => {
|
||||
return request.post({ url: '/product/spu/create', data })
|
||||
return request.post({url: '/product/spu/create', data})
|
||||
}
|
||||
|
||||
// 更新商品 Spu
|
||||
export const updateSpu = (data: Spu) => {
|
||||
return request.put({ url: '/product/spu/update', data })
|
||||
return request.put({url: '/product/spu/update', data})
|
||||
}
|
||||
|
||||
// 更新商品 Spu status
|
||||
export const updateStatus = (data: { id: number; status: number }) => {
|
||||
return request.put({ url: '/product/spu/update-status', data })
|
||||
return request.put({url: '/product/spu/update-status', data})
|
||||
}
|
||||
|
||||
// 获得商品 Spu
|
||||
export const getSpu = (id: number) => {
|
||||
return request.get({ url: `/product/spu/get-detail?id=${id}` })
|
||||
return request.get({url: `/product/spu/get-detail?id=${id}`})
|
||||
}
|
||||
|
||||
// 获得商品 Spu 详情列表
|
||||
export const getSpuDetailList = (ids: number[]) => {
|
||||
return request.get({ url: `/product/spu/list?spuIds=${ids}` })
|
||||
return request.get({url: `/product/spu/list?spuIds=${ids}`})
|
||||
}
|
||||
|
||||
// 删除商品 Spu
|
||||
export const deleteSpu = (id: number) => {
|
||||
return request.delete({ url: `/product/spu/delete?id=${id}` })
|
||||
return request.delete({url: `/product/spu/delete?id=${id}`})
|
||||
}
|
||||
|
||||
// 导出商品 Spu Excel
|
||||
export const exportSpu = async (params) => {
|
||||
return await request.download({ url: '/product/spu/export', params })
|
||||
return await request.download({url: '/product/spu/export', params})
|
||||
}
|
||||
|
||||
// 获得商品 SPU 精简列表
|
||||
export const getSpuSimpleList = async () => {
|
||||
return request.get({ url: '/product/spu/list-all-simple' })
|
||||
return request.get({url: '/product/spu/list-all-simple'})
|
||||
}
|
||||
|
@ -18,25 +18,25 @@ export interface ArticleVO {
|
||||
|
||||
// 查询文章管理列表
|
||||
export const getArticlePage = async (params: any) => {
|
||||
return await request.get({ url: `/promotion/article/page`, params })
|
||||
return await request.get({url: `/promotion/article/page`, params})
|
||||
}
|
||||
|
||||
// 查询文章管理详情
|
||||
export const getArticle = async (id: number) => {
|
||||
return await request.get({ url: `/promotion/article/get?id=` + id })
|
||||
return await request.get({url: `/promotion/article/get?id=` + id})
|
||||
}
|
||||
|
||||
// 新增文章管理
|
||||
export const createArticle = async (data: ArticleVO) => {
|
||||
return await request.post({ url: `/promotion/article/create`, data })
|
||||
return await request.post({url: `/promotion/article/create`, data})
|
||||
}
|
||||
|
||||
// 修改文章管理
|
||||
export const updateArticle = async (data: ArticleVO) => {
|
||||
return await request.put({ url: `/promotion/article/update`, data })
|
||||
return await request.put({url: `/promotion/article/update`, data})
|
||||
}
|
||||
|
||||
// 删除文章管理
|
||||
export const deleteArticle = async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/article/delete?id=` + id })
|
||||
return await request.delete({url: `/promotion/article/delete?id=` + id})
|
||||
}
|
||||
|
@ -10,30 +10,30 @@ export interface ArticleCategoryVO {
|
||||
|
||||
// 查询文章分类列表
|
||||
export const getArticleCategoryPage = async (params) => {
|
||||
return await request.get({ url: `/promotion/article-category/page`, params })
|
||||
return await request.get({url: `/promotion/article-category/page`, params})
|
||||
}
|
||||
|
||||
// 查询文章分类精简信息列表
|
||||
export const getSimpleArticleCategoryList = async () => {
|
||||
return await request.get({ url: `/promotion/article-category/list-all-simple` })
|
||||
return await request.get({url: `/promotion/article-category/list-all-simple`})
|
||||
}
|
||||
|
||||
// 查询文章分类详情
|
||||
export const getArticleCategory = async (id: number) => {
|
||||
return await request.get({ url: `/promotion/article-category/get?id=` + id })
|
||||
return await request.get({url: `/promotion/article-category/get?id=` + id})
|
||||
}
|
||||
|
||||
// 新增文章分类
|
||||
export const createArticleCategory = async (data: ArticleCategoryVO) => {
|
||||
return await request.post({ url: `/promotion/article-category/create`, data })
|
||||
return await request.post({url: `/promotion/article-category/create`, data})
|
||||
}
|
||||
|
||||
// 修改文章分类
|
||||
export const updateArticleCategory = async (data: ArticleCategoryVO) => {
|
||||
return await request.put({ url: `/promotion/article-category/update`, data })
|
||||
return await request.put({url: `/promotion/article-category/update`, data})
|
||||
}
|
||||
|
||||
// 删除文章分类
|
||||
export const deleteArticleCategory = async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/article-category/delete?id=` + id })
|
||||
return await request.delete({url: `/promotion/article-category/delete?id=` + id})
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import request from '@/config/axios'
|
||||
import { Sku, Spu } from '@/api/mall/product/spu'
|
||||
import {Sku, Spu} from '@/api/mall/product/spu'
|
||||
|
||||
export interface BargainActivityVO {
|
||||
id?: number
|
||||
@ -39,30 +39,30 @@ export interface SpuExtension extends Spu {
|
||||
|
||||
// 查询砍价活动列表
|
||||
export const getBargainActivityPage = async (params: any) => {
|
||||
return await request.get({ url: '/promotion/bargain-activity/page', params })
|
||||
return await request.get({url: '/promotion/bargain-activity/page', params})
|
||||
}
|
||||
|
||||
// 查询砍价活动详情
|
||||
export const getBargainActivity = async (id: number) => {
|
||||
return await request.get({ url: '/promotion/bargain-activity/get?id=' + id })
|
||||
return await request.get({url: '/promotion/bargain-activity/get?id=' + id})
|
||||
}
|
||||
|
||||
// 新增砍价活动
|
||||
export const createBargainActivity = async (data: BargainActivityVO) => {
|
||||
return await request.post({ url: '/promotion/bargain-activity/create', data })
|
||||
return await request.post({url: '/promotion/bargain-activity/create', data})
|
||||
}
|
||||
|
||||
// 修改砍价活动
|
||||
export const updateBargainActivity = async (data: BargainActivityVO) => {
|
||||
return await request.put({ url: '/promotion/bargain-activity/update', data })
|
||||
return await request.put({url: '/promotion/bargain-activity/update', data})
|
||||
}
|
||||
|
||||
// 关闭砍价活动
|
||||
export const closeBargainActivity = async (id: number) => {
|
||||
return await request.put({ url: '/promotion/bargain-activity/close?id=' + id })
|
||||
return await request.put({url: '/promotion/bargain-activity/close?id=' + id})
|
||||
}
|
||||
|
||||
// 删除砍价活动
|
||||
export const deleteBargainActivity = async (id: number) => {
|
||||
return await request.delete({ url: '/promotion/bargain-activity/delete?id=' + id })
|
||||
return await request.delete({url: '/promotion/bargain-activity/delete?id=' + id})
|
||||
}
|
||||
|
@ -10,5 +10,5 @@ export interface BargainHelpVO {
|
||||
|
||||
// 查询砍价记录列表
|
||||
export const getBargainHelpPage = async (params) => {
|
||||
return await request.get({ url: `/promotion/bargain-help/page`, params })
|
||||
return await request.get({url: `/promotion/bargain-help/page`, params})
|
||||
}
|
||||
|
@ -15,5 +15,5 @@ export interface BargainRecordVO {
|
||||
|
||||
// 查询砍价记录列表
|
||||
export const getBargainRecordPage = async (params) => {
|
||||
return await request.get({ url: `/promotion/bargain-record/page`, params })
|
||||
return await request.get({url: `/promotion/bargain-record/page`, params})
|
||||
}
|
||||
|
@ -16,31 +16,31 @@ export interface CircleVO {
|
||||
export const CircleApi = {
|
||||
// 查询商城动态分页
|
||||
getCirclePage: async (params: any) => {
|
||||
return await request.get({ url: `/promotion/circle/page`, params })
|
||||
return await request.get({url: `/promotion/circle/page`, params})
|
||||
},
|
||||
|
||||
// 查询商城动态详情
|
||||
getCircle: async (id: number) => {
|
||||
return await request.get({ url: `/promotion/circle/get?id=` + id })
|
||||
return await request.get({url: `/promotion/circle/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增商城动态
|
||||
createCircle: async (data: CircleVO) => {
|
||||
return await request.post({ url: `/promotion/circle/create`, data })
|
||||
return await request.post({url: `/promotion/circle/create`, data})
|
||||
},
|
||||
|
||||
// 修改商城动态
|
||||
updateCircle: async (data: CircleVO) => {
|
||||
return await request.put({ url: `/promotion/circle/update`, data })
|
||||
return await request.put({url: `/promotion/circle/update`, data})
|
||||
},
|
||||
|
||||
// 删除商城动态
|
||||
deleteCircle: async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/circle/delete?id=` + id })
|
||||
return await request.delete({url: `/promotion/circle/delete?id=` + id})
|
||||
},
|
||||
|
||||
// 导出商城动态 Excel
|
||||
exportCircle: async (params) => {
|
||||
return await request.download({ url: `/promotion/circle/export-excel`, params })
|
||||
return await request.download({url: `/promotion/circle/export-excel`, params})
|
||||
}
|
||||
}
|
@ -18,31 +18,31 @@ export interface CircleReviewVO {
|
||||
export const CircleReviewApi = {
|
||||
// 查询动态的评论分页
|
||||
getCircleReviewPage: async (params: any) => {
|
||||
return await request.get({ url: `/promotion/circle-review/page`, params })
|
||||
return await request.get({url: `/promotion/circle-review/page`, params})
|
||||
},
|
||||
|
||||
// 查询动态的评论详情
|
||||
getCircleReview: async (id: number) => {
|
||||
return await request.get({ url: `/promotion/circle-review/get?id=` + id })
|
||||
return await request.get({url: `/promotion/circle-review/get?id=` + id})
|
||||
},
|
||||
|
||||
// 新增动态的评论
|
||||
createCircleReview: async (data: CircleReviewVO) => {
|
||||
return await request.post({ url: `/promotion/circle-review/create`, data })
|
||||
return await request.post({url: `/promotion/circle-review/create`, data})
|
||||
},
|
||||
|
||||
// 修改动态的评论
|
||||
updateCircleReview: async (data: CircleReviewVO) => {
|
||||
return await request.put({ url: `/promotion/circle-review/update`, data })
|
||||
return await request.put({url: `/promotion/circle-review/update`, data})
|
||||
},
|
||||
|
||||
// 删除动态的评论
|
||||
deleteCircleReview: async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/circle-review/delete?id=` + id })
|
||||
return await request.delete({url: `/promotion/circle-review/delete?id=` + id})
|
||||
},
|
||||
|
||||
// 导出动态的评论 Excel
|
||||
exportCircleReview: async (params) => {
|
||||
return await request.download({ url: `/promotion/circle-review/export-excel`, params })
|
||||
return await request.download({url: `/promotion/circle-review/export-excel`, params})
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
import request from '@/config/axios'
|
||||
import { Sku, Spu } from '@/api/mall/product/spu'
|
||||
import {Sku, Spu} from '@/api/mall/product/spu'
|
||||
|
||||
export interface CombinationActivityVO {
|
||||
id?: number
|
||||
@ -37,30 +37,30 @@ export interface SpuExtension extends Spu {
|
||||
|
||||
// 查询拼团活动列表
|
||||
export const getCombinationActivityPage = async (params) => {
|
||||
return await request.get({ url: '/promotion/combination-activity/page', params })
|
||||
return await request.get({url: '/promotion/combination-activity/page', params})
|
||||
}
|
||||
|
||||
// 查询拼团活动详情
|
||||
export const getCombinationActivity = async (id: number) => {
|
||||
return await request.get({ url: '/promotion/combination-activity/get?id=' + id })
|
||||
return await request.get({url: '/promotion/combination-activity/get?id=' + id})
|
||||
}
|
||||
|
||||
// 新增拼团活动
|
||||
export const createCombinationActivity = async (data: CombinationActivityVO) => {
|
||||
return await request.post({ url: '/promotion/combination-activity/create', data })
|
||||
return await request.post({url: '/promotion/combination-activity/create', data})
|
||||
}
|
||||
|
||||
// 修改拼团活动
|
||||
export const updateCombinationActivity = async (data: CombinationActivityVO) => {
|
||||
return await request.put({ url: '/promotion/combination-activity/update', data })
|
||||
return await request.put({url: '/promotion/combination-activity/update', data})
|
||||
}
|
||||
|
||||
// 关闭拼团活动
|
||||
export const closeCombinationActivity = async (id: number) => {
|
||||
return await request.put({ url: '/promotion/combination-activity/close?id=' + id })
|
||||
return await request.put({url: '/promotion/combination-activity/close?id=' + id})
|
||||
}
|
||||
|
||||
// 删除拼团活动
|
||||
export const deleteCombinationActivity = async (id: number) => {
|
||||
return await request.delete({ url: '/promotion/combination-activity/delete?id=' + id })
|
||||
return await request.delete({url: '/promotion/combination-activity/delete?id=' + id})
|
||||
}
|
||||
|
@ -19,10 +19,10 @@ export interface CombinationRecordVO {
|
||||
|
||||
// 查询拼团记录列表
|
||||
export const getCombinationRecordPage = async (params: any) => {
|
||||
return await request.get({ url: '/promotion/combination-record/page', params })
|
||||
return await request.get({url: '/promotion/combination-record/page', params})
|
||||
}
|
||||
|
||||
// 获得拼团记录的概要信息
|
||||
export const getCombinationRecordSummary = async () => {
|
||||
return await request.get({ url: '/promotion/combination-record/get-summary' })
|
||||
return await request.get({url: '/promotion/combination-record/get-summary'})
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import request from '@/config/axios'
|
||||
import { Sku, Spu } from '@/api/mall/product/spu'
|
||||
import {Sku, Spu} from '@/api/mall/product/spu'
|
||||
|
||||
export interface DiscountActivityVO {
|
||||
id?: number
|
||||
@ -11,6 +11,7 @@ export interface DiscountActivityVO {
|
||||
endTime?: Date
|
||||
products?: DiscountProductVO[]
|
||||
}
|
||||
|
||||
// 限时折扣相关 属性
|
||||
export interface DiscountProductVO {
|
||||
spuId: number
|
||||
@ -31,30 +32,30 @@ export interface SpuExtension extends Spu {
|
||||
|
||||
// 查询限时折扣活动列表
|
||||
export const getDiscountActivityPage = async (params) => {
|
||||
return await request.get({ url: '/promotion/discount-activity/page', params })
|
||||
return await request.get({url: '/promotion/discount-activity/page', params})
|
||||
}
|
||||
|
||||
// 查询限时折扣活动详情
|
||||
export const getDiscountActivity = async (id: number) => {
|
||||
return await request.get({ url: '/promotion/discount-activity/get?id=' + id })
|
||||
return await request.get({url: '/promotion/discount-activity/get?id=' + id})
|
||||
}
|
||||
|
||||
// 新增限时折扣活动
|
||||
export const createDiscountActivity = async (data: DiscountActivityVO) => {
|
||||
return await request.post({ url: '/promotion/discount-activity/create', data })
|
||||
return await request.post({url: '/promotion/discount-activity/create', data})
|
||||
}
|
||||
|
||||
// 修改限时折扣活动
|
||||
export const updateDiscountActivity = async (data: DiscountActivityVO) => {
|
||||
return await request.put({ url: '/promotion/discount-activity/update', data })
|
||||
return await request.put({url: '/promotion/discount-activity/update', data})
|
||||
}
|
||||
|
||||
// 关闭限时折扣活动
|
||||
export const closeDiscountActivity = async (id: number) => {
|
||||
return await request.put({ url: '/promotion/discount-activity/close?id=' + id })
|
||||
return await request.put({url: '/promotion/discount-activity/close?id=' + id})
|
||||
}
|
||||
|
||||
// 删除限时折扣活动
|
||||
export const deleteDiscountActivity = async (id: number) => {
|
||||
return await request.delete({ url: '/promotion/discount-activity/delete?id=' + id })
|
||||
return await request.delete({url: '/promotion/discount-activity/delete?id=' + id})
|
||||
}
|
||||
|
@ -11,35 +11,35 @@ export interface DiyPageVO {
|
||||
|
||||
// 查询装修页面列表
|
||||
export const getDiyPagePage = async (params: any) => {
|
||||
return await request.get({ url: `/promotion/diy-page/page`, params })
|
||||
return await request.get({url: `/promotion/diy-page/page`, params})
|
||||
}
|
||||
|
||||
// 查询装修页面详情
|
||||
export const getDiyPage = async (id: number) => {
|
||||
return await request.get({ url: `/promotion/diy-page/get?id=` + id })
|
||||
return await request.get({url: `/promotion/diy-page/get?id=` + id})
|
||||
}
|
||||
|
||||
// 新增装修页面
|
||||
export const createDiyPage = async (data: DiyPageVO) => {
|
||||
return await request.post({ url: `/promotion/diy-page/create`, data })
|
||||
return await request.post({url: `/promotion/diy-page/create`, data})
|
||||
}
|
||||
|
||||
// 修改装修页面
|
||||
export const updateDiyPage = async (data: DiyPageVO) => {
|
||||
return await request.put({ url: `/promotion/diy-page/update`, data })
|
||||
return await request.put({url: `/promotion/diy-page/update`, data})
|
||||
}
|
||||
|
||||
// 删除装修页面
|
||||
export const deleteDiyPage = async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/diy-page/delete?id=` + id })
|
||||
return await request.delete({url: `/promotion/diy-page/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 获得装修页面属性
|
||||
export const getDiyPageProperty = async (id: number) => {
|
||||
return await request.get({ url: `/promotion/diy-page/get-property?id=` + id })
|
||||
return await request.get({url: `/promotion/diy-page/get-property?id=` + id})
|
||||
}
|
||||
|
||||
// 更新装修页面属性
|
||||
export const updateDiyPageProperty = async (data: DiyPageVO) => {
|
||||
return await request.put({ url: `/promotion/diy-page/update-property`, data })
|
||||
return await request.put({url: `/promotion/diy-page/update-property`, data})
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import request from '@/config/axios'
|
||||
import { DiyPageVO } from '@/api/mall/promotion/diy/page'
|
||||
import {DiyPageVO} from '@/api/mall/promotion/diy/page'
|
||||
|
||||
export interface DiyTemplateVO {
|
||||
id?: number
|
||||
@ -17,32 +17,32 @@ export interface DiyTemplatePropertyVO extends DiyTemplateVO {
|
||||
|
||||
// 查询装修模板列表
|
||||
export const getDiyTemplatePage = async (params: any) => {
|
||||
return await request.get({ url: `/promotion/diy-template/page`, params })
|
||||
return await request.get({url: `/promotion/diy-template/page`, params})
|
||||
}
|
||||
|
||||
// 查询装修模板详情
|
||||
export const getDiyTemplate = async (id: number) => {
|
||||
return await request.get({ url: `/promotion/diy-template/get?id=` + id })
|
||||
return await request.get({url: `/promotion/diy-template/get?id=` + id})
|
||||
}
|
||||
|
||||
// 新增装修模板
|
||||
export const createDiyTemplate = async (data: DiyTemplateVO) => {
|
||||
return await request.post({ url: `/promotion/diy-template/create`, data })
|
||||
return await request.post({url: `/promotion/diy-template/create`, data})
|
||||
}
|
||||
|
||||
// 修改装修模板
|
||||
export const updateDiyTemplate = async (data: DiyTemplateVO) => {
|
||||
return await request.put({ url: `/promotion/diy-template/update`, data })
|
||||
return await request.put({url: `/promotion/diy-template/update`, data})
|
||||
}
|
||||
|
||||
// 删除装修模板
|
||||
export const deleteDiyTemplate = async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/diy-template/delete?id=` + id })
|
||||
return await request.delete({url: `/promotion/diy-template/delete?id=` + id})
|
||||
}
|
||||
|
||||
// 使用装修模板
|
||||
export const useDiyTemplate = async (id: number) => {
|
||||
return await request.put({ url: `/promotion/diy-template/use?id=` + id })
|
||||
return await request.put({url: `/promotion/diy-template/use?id=` + id})
|
||||
}
|
||||
|
||||
// 获得装修模板属性
|
||||
@ -54,5 +54,5 @@ export const getDiyTemplateProperty = async (id: number) => {
|
||||
|
||||
// 更新装修模板属性
|
||||
export const updateDiyTemplateProperty = async (data: DiyTemplateVO) => {
|
||||
return await request.put({ url: `/promotion/diy-template/update-property`, data })
|
||||
return await request.put({url: `/promotion/diy-template/update-property`, data})
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ export interface ArticleVO {
|
||||
|
||||
// 查询文章管理列表
|
||||
export const selectDynamicData = async () => {
|
||||
return await request.get({ url: `/intelligentForm/selectDynamicData` })
|
||||
return await request.get({url: `/intelligentForm/selectDynamicData`})
|
||||
}
|
||||
|
||||
// // 查询文章管理详情
|
||||
@ -21,12 +21,12 @@ export const selectDynamicData = async () => {
|
||||
|
||||
// 新增文章管理
|
||||
export const saveDynamicData = async (data: ArticleVO) => {
|
||||
return await request.post({ url: `/intelligentForm/saveDynamicData`, data })
|
||||
return await request.post({url: `/intelligentForm/saveDynamicData`, data})
|
||||
}
|
||||
|
||||
// 查询文章管理列表
|
||||
export const collectDataList = async (query: any) => {
|
||||
return await request.get({ url: `/intelligentForm/collectDataList`, query })
|
||||
return await request.get({url: `/intelligentForm/collectDataList`, query})
|
||||
}
|
||||
|
||||
// // 修改文章管理
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user