Browse Source

临时处理

master_hella_20240701
陈薪名 8 months ago
parent
commit
6c633a19ee
  1. 75
      src/App.vue
  2. 8
      src/api/bpm/activity/index.ts
  3. 21
      src/api/bpm/definition/index.ts
  4. 56
      src/api/bpm/form/index.ts
  5. 27
      src/api/bpm/leave/index.ts
  6. 59
      src/api/bpm/model/index.ts
  7. 41
      src/api/bpm/processInstance/index.ts
  8. 53
      src/api/bpm/task/index.ts
  9. 29
      src/api/bpm/taskAssignRule/index.ts
  10. 47
      src/api/bpm/userGroup/index.ts
  11. 22
      src/api/home/index.ts
  12. 30
      src/api/infra/apiAccessLog/index.ts
  13. 48
      src/api/infra/apiErrorLog/index.ts
  14. 123
      src/api/infra/codegen/index.ts
  15. 56
      src/api/infra/config/index.ts
  16. 35
      src/api/infra/dataSourceConfig/index.ts
  17. 16
      src/api/infra/dbDoc/index.ts
  18. 17
      src/api/infra/file/index.ts
  19. 61
      src/api/infra/fileConfig/index.ts
  20. 63
      src/api/infra/job/index.ts
  21. 33
      src/api/infra/jobLog/index.ts
  22. 8
      src/api/infra/redis/index.ts
  23. 176
      src/api/infra/redis/types.ts
  24. 72
      src/api/login/index.ts
  25. 41
      src/api/login/oauth2/index.ts
  26. 28
      src/api/login/types.ts
  27. 97
      src/api/mes/processroute/index.ts
  28. 61
      src/api/mes/productionPlan/index.ts
  29. 61
      src/api/mes/teamSetting/index.ts
  30. 92
      src/api/mes/workstation/index.ts
  31. 21
      src/api/redis/index.ts
  32. 0
      src/api/scp/index.ts
  33. 19
      src/api/system/area/index.ts
  34. 43
      src/api/system/dept/index.ts
  35. 54
      src/api/system/dict/dict.data.ts
  36. 44
      src/api/system/dict/dict.type.ts
  37. 40
      src/api/system/errorCode/index.ts
  38. 24
      src/api/system/loginLog/index.ts
  39. 41
      src/api/system/mail/account/index.ts
  40. 30
      src/api/system/mail/log/index.ts
  41. 50
      src/api/system/mail/template/index.ts
  42. 49
      src/api/system/menu/index.ts
  43. 37
      src/api/system/notice/index.ts
  44. 48
      src/api/system/notify/message/index.ts
  45. 50
      src/api/system/notify/template/index.ts
  46. 47
      src/api/system/oauth2/client.ts
  47. 22
      src/api/system/oauth2/token.ts
  48. 33
      src/api/system/operatelog/index.ts
  49. 42
      src/api/system/permission/index.ts
  50. 46
      src/api/system/post/index.ts
  51. 61
      src/api/system/role/index.ts
  52. 58
      src/api/system/sensitiveWord/index.ts
  53. 42
      src/api/system/serialNumber/index.ts
  54. 43
      src/api/system/sms/smsChannel/index.ts
  55. 39
      src/api/system/sms/smsLog/index.ts
  56. 60
      src/api/system/sms/smsTemplate/index.ts
  57. 62
      src/api/system/tenant/index.ts
  58. 42
      src/api/system/tenantPackage/index.ts
  59. 76
      src/api/system/user/index.ts
  60. 77
      src/api/system/user/profile.ts
  61. 31
      src/api/system/user/socialUser.ts
  62. 60
      src/api/wms/accountcalendar/index.ts
  63. 63
      src/api/wms/areabasic/index.ts
  64. 66
      src/api/wms/backflushRecordDetailb/index.ts
  65. 60
      src/api/wms/backflushRequestDetailb/index.ts
  66. 129
      src/api/wms/balance/index.ts
  67. 56
      src/api/wms/barbasic/index.ts
  68. 59
      src/api/wms/barcode/index.ts
  69. 61
      src/api/wms/bom/index.ts
  70. 26
      src/api/wms/bomDismantle/index.ts
  71. 65
      src/api/wms/businesstype/index.ts
  72. 53
      src/api/wms/callmaterials/index.ts
  73. 68
      src/api/wms/carrier/index.ts
  74. 56
      src/api/wms/condition/index.ts
  75. 56
      src/api/wms/configuration/index.ts
  76. 58
      src/api/wms/configurationsetting/index.ts
  77. 63
      src/api/wms/consumeRecordDetailb/index.ts
  78. 61
      src/api/wms/consumereRequestDetailb/index.ts
  79. 57
      src/api/wms/containerBindRecordDetail/index.ts
  80. 69
      src/api/wms/containerBindRecordMain/index.ts
  81. 52
      src/api/wms/containerDetail/index.ts
  82. 55
      src/api/wms/containerInitRecordDetail/index.ts
  83. 68
      src/api/wms/containerInitRecordMain/index.ts
  84. 61
      src/api/wms/containerMain/index.ts
  85. 53
      src/api/wms/containerRepairRecordDetail/index.ts
  86. 69
      src/api/wms/containerRepairRecordMain/index.ts
  87. 57
      src/api/wms/containerUnbindRecordDetail/index.ts
  88. 69
      src/api/wms/containerUnbindRecordMain/index.ts
  89. 62
      src/api/wms/countJobDetail/index.ts
  90. 93
      src/api/wms/countJobMain/index.ts
  91. 52
      src/api/wms/countPlanDetail/index.ts
  92. 110
      src/api/wms/countPlanMain/index.ts
  93. 72
      src/api/wms/countRecordDetail/index.ts
  94. 76
      src/api/wms/countRecordMain/index.ts
  95. 67
      src/api/wms/countRequestDetail/index.ts
  96. 118
      src/api/wms/countRequestMain/index.ts
  97. 69
      src/api/wms/countadjustRecordDetail/index.ts
  98. 69
      src/api/wms/countadjustRecordMain/index.ts
  99. 68
      src/api/wms/countadjustRequestDetail/index.ts
  100. 99
      src/api/wms/countadjustRequestMain/index.ts

75
src/App.vue

@ -0,0 +1,75 @@
<script lang="ts" setup>
import { isDark } from '@/utils/is'
import { useAppStore } from '@/store/modules/app'
import { useDesign } from '@/hooks/web/useDesign'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import routerSearch from '@/components/RouterSearch/index.vue'
defineOptions({ name: 'APP' })
const { getPrefixCls } = useDesign()
const prefixCls = getPrefixCls('app')
const appStore = useAppStore()
const currentSize = computed(() => appStore.getCurrentSize)
const greyMode = computed(() => appStore.getGreyMode)
const { wsCache } = useCache()
//
const setDefaultTheme = () => {
// let isDarkTheme = wsCache.get(CACHE_KEY.IS_DARK)
let isDarkTheme = false
if (isDarkTheme === null) {
isDarkTheme = isDark()
}
appStore.setIsDark(isDarkTheme)
}
setDefaultTheme()
</script>
<template>
<ConfigGlobal :size="currentSize">
<RouterView :class="greyMode ? `${prefixCls}-grey-mode` : ''" />
<routerSearch />
</ConfigGlobal>
</template>
<style lang="scss">
$prefix-cls: #{$namespace}-app;
.size {
width: 100%;
height: 100%;
}
html,
body {
@extend .size;
padding: 0 !important;
margin: 0;
overflow: hidden;
#app {
@extend .size;
}
}
.#{$prefix-cls}-grey-mode {
filter: grayscale(100%);
}
.el-select{
width: 100%;
}
/* 垂直滚动条样式 */
/* 宽度 */
::-webkit-scrollbar {
width: 12px;
}
/* 背景色 */
::-webkit-scrollbar-track {
background-color: #f5f5f5;
}
/* 滑块颜色 */
::-webkit-scrollbar-thumb {
background-color: #c1c1c1;
border-radius: 12px;
}
</style>

8
src/api/bpm/activity/index.ts

@ -0,0 +1,8 @@
import request from '@/config/axios'
export const getActivityList = async (params) => {
return await request.get({
url: '/bpm/activity/list',
params
})
}

21
src/api/bpm/definition/index.ts

@ -0,0 +1,21 @@
import request from '@/config/axios'
export const getProcessDefinitionBpmnXML = async (id: number) => {
return await request.get({
url: '/bpm/process-definition/get-bpmn-xml?id=' + id
})
}
export const getProcessDefinitionPage = async (params) => {
return await request.get({
url: '/bpm/process-definition/page',
params
})
}
export const getProcessDefinitionList = async (params) => {
return await request.get({
url: '/bpm/process-definition/list',
params
})
}

56
src/api/bpm/form/index.ts

@ -0,0 +1,56 @@
import request from '@/config/axios'
export type FormVO = {
id: number
name: string
conf: string
fields: string[]
status: number
remark: string
createTime: string
}
// 创建工作流的表单定义
export const createForm = async (data: FormVO) => {
return await request.post({
url: '/bpm/form/create',
data: data
})
}
// 更新工作流的表单定义
export const updateForm = async (data: FormVO) => {
return await request.put({
url: '/bpm/form/update',
data: data
})
}
// 删除工作流的表单定义
export const deleteForm = async (id: number) => {
return await request.delete({
url: '/bpm/form/delete?id=' + id
})
}
// 获得工作流的表单定义
export const getForm = async (id: number) => {
return await request.get({
url: '/bpm/form/get?id=' + id
})
}
// 获得工作流的表单定义分页
export const getFormPage = async (params) => {
return await request.get({
url: '/bpm/form/page',
params
})
}
// 获得动态表单的精简列表
export const getSimpleFormList = async () => {
return await request.get({
url: '/bpm/form/list-all-simple'
})
}

27
src/api/bpm/leave/index.ts

@ -0,0 +1,27 @@
import request from '@/config/axios'
export type LeaveVO = {
id: number
result: number
type: number
reason: string
processInstanceId: string
startTime: string
endTime: string
createTime: string
}
// 创建请假申请
export const createLeave = async (data: LeaveVO) => {
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 })
}
// 获得请假申请分页
export const getLeavePage = async (params: PageParam) => {
return await request.get({ url: '/bpm/oa/leave/page', params })
}

59
src/api/bpm/model/index.ts

@ -0,0 +1,59 @@
import request from '@/config/axios'
export type ProcessDefinitionVO = {
id: string
version: number
deploymentTIme: string
suspensionState: number
}
export type ModelVO = {
id: number
formName: string
key: string
name: string
description: string
category: string
formType: number
formId: number
formCustomCreatePath: string
formCustomViewPath: string
processDefinition: ProcessDefinitionVO
status: number
remark: string
createTime: string
bpmnXml: string
}
export const getModelPage = async (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 })
}
export const updateModel = async (data: ModelVO) => {
return await request.put({ url: '/bpm/model/update', data: data })
}
// 任务状态修改
export const updateModelState = async (id: number, state: number) => {
const data = {
id: id,
state: state
}
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 })
}
export const deleteModel = async (id: number) => {
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 })
}

41
src/api/bpm/processInstance/index.ts

@ -0,0 +1,41 @@
import request from '@/config/axios'
export type Task = {
id: string
name: string
}
export type ProcessInstanceVO = {
id: number
name: string
processDefinitionId: string
category: string
result: number
tasks: Task[]
fields: string[]
status: number
remark: string
businessKey: string
createTime: string
endTime: string
}
export const getMyProcessInstancePage = async (params) => {
return await request.get({ url: '/bpm/process-instance/my-page', params })
}
export const createProcessInstance = async (data) => {
return await request.post({ url: '/bpm/process-instance/create', data: data })
}
export const cancelProcessInstance = async (id: number, reason: string) => {
const data = {
id: id,
reason: reason
}
return await request.delete({ url: '/bpm/process-instance/cancel', data: data })
}
export const getProcessInstance = async (id: number) => {
return await request.get({ url: '/bpm/process-instance/get?id=' + id })
}

53
src/api/bpm/task/index.ts

@ -0,0 +1,53 @@
import request from '@/config/axios'
export type TaskVO = {
id: number
}
export const getTodoTaskPage = async (params) => {
return await request.get({ url: '/bpm/task/todo-page', params })
}
export const getDoneTaskPage = async (params) => {
return await request.get({ url: '/bpm/task/done-page', params })
}
export const completeTask = async (data) => {
return await request.put({ url: '/bpm/task/complete', data })
}
export const approveTask = async (data) => {
return await request.put({ url: '/bpm/task/approve', data })
}
export const rejectTask = async (data) => {
return await request.put({ url: '/bpm/task/reject', data })
}
export const backTask = async (data) => {
return await request.put({ url: '/bpm/task/back', data })
}
export const updateTaskAssignee = async (data) => {
return await request.put({ url: '/bpm/task/update-assignee', data })
}
export const getTaskListByProcessInstanceId = async (processInstanceId) => {
return await request.get({
url: '/bpm/task/list-by-process-instance-id?processInstanceId=' + processInstanceId
})
}
// 导出任务
export const exportTask = async (params) => {
return await request.download({ url: '/bpm/task/export', params })
}
// 获取所有可回退的节点
export const getReturnList = async (params) => {
return await request.get({ url: '/bpm/task/get-return-list', params })
}
// 回退
export const returnTask = async (data) => {
return await request.put({ url: '/bpm/task/return', data })
}

29
src/api/bpm/taskAssignRule/index.ts

@ -0,0 +1,29 @@
import request from '@/config/axios'
export type TaskAssignVO = {
id: number
modelId: string
processDefinitionId: string
taskDefinitionKey: string
taskDefinitionName: string
options: string[]
type: number
}
export const getTaskAssignRuleList = async (params) => {
return await request.get({ url: '/bpm/task-assign-rule/list', params })
}
export const createTaskAssignRule = async (data: TaskAssignVO) => {
return await request.post({
url: '/bpm/task-assign-rule/create',
data: data
})
}
export const updateTaskAssignRule = async (data: TaskAssignVO) => {
return await request.put({
url: '/bpm/task-assign-rule/update',
data: data
})
}

47
src/api/bpm/userGroup/index.ts

@ -0,0 +1,47 @@
import request from '@/config/axios'
export type UserGroupVO = {
id: number
name: string
description: string
memberUserIds: number[]
status: number
remark: string
createTime: string
}
// 创建用户组
export const createUserGroup = async (data: UserGroupVO) => {
return await request.post({
url: '/bpm/user-group/create',
data: data
})
}
// 更新用户组
export const updateUserGroup = async (data: UserGroupVO) => {
return await request.put({
url: '/bpm/user-group/update',
data: data
})
}
// 删除用户组
export const deleteUserGroup = async (id: number) => {
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 })
}
// 获得用户组分页
export const getUserGroupPage = async (params) => {
return await request.get({ url: '/bpm/user-group/page', params })
}
// 获取用户组精简信息列表
export const getSimpleUserGroupList = async (): Promise<UserGroupVO[]> => {
return await request.get({ url: '/bpm/user-group/list-all-simple' })
}

22
src/api/home/index.ts

@ -0,0 +1,22 @@
import request from '@/config/axios'
// 供应商首页
export const getSupplierData = async () => {
return await request.get({ url: `/wms/index/indexSupplier` })
}
// 原料管理员首页
export const getMaterialData = async () => {
return await request.get({ url: `/wms/index/indexMaterial` })
}
// 生产管理员首页
export const getProduceData = async () => {
return await request.get({ url: `/wms/index/indexProduce` })
}
// 成品管理员首页
export const getProductData = async () => {
return await request.get({ url: `/wms/index/indexProduct` })
}

30
src/api/infra/apiAccessLog/index.ts

@ -0,0 +1,30 @@
import request from '@/config/axios'
export interface ApiAccessLogVO {
id: number
traceId: string
userId: number
userType: number
applicationName: string
requestMethod: string
requestParams: string
requestUrl: string
userIp: string
userAgent: string
beginTime: Date
endTIme: Date
duration: number
resultCode: number
resultMsg: string
createTime: Date
}
// 查询列表API 访问日志
export const getApiAccessLogPage = (params: PageParam) => {
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 })
}

48
src/api/infra/apiErrorLog/index.ts

@ -0,0 +1,48 @@
import request from '@/config/axios'
export interface ApiErrorLogVO {
id: number
traceId: string
userId: number
userType: number
applicationName: string
requestMethod: string
requestParams: string
requestUrl: string
userIp: string
userAgent: string
exceptionTime: Date
exceptionName: string
exceptionMessage: string
exceptionRootCauseMessage: string
exceptionStackTrace: string
exceptionClassName: string
exceptionFileName: string
exceptionMethodName: string
exceptionLineNumber: number
processUserId: number
processStatus: number
processTime: Date
resultCode: number
createTime: Date
}
// 查询列表API 访问日志
export const getApiErrorLogPage = (params: PageParam) => {
return request.get({ url: '/infra/api-error-log/page', params })
}
// 更新 API 错误日志的处理状态
export const updateApiErrorLogPage = (id: number, processStatus: number) => {
return request.put({
url: '/infra/api-error-log/update-status?id=' + id + '&processStatus=' + processStatus
})
}
// 导出API 访问日志
export const exportApiErrorLog = (params) => {
return request.download({
url: '/infra/api-error-log/export-excel',
params
})
}

123
src/api/infra/codegen/index.ts

@ -0,0 +1,123 @@
import request from '@/config/axios'
export type CodegenTableVO = {
id: number
tableId: number
isParentMenuIdValid: boolean
dataSourceConfigId: number
scene: number
tableName: string
tableComment: string
remark: string
moduleName: string
businessName: string
className: string
classComment: string
author: string
createTime: Date
updateTime: Date
templateType: number
parentMenuId: number
}
export type CodegenColumnVO = {
id: number
tableId: number
columnName: string
dataType: string
columnComment: string
nullable: number
primaryKey: number
autoIncrement: string
ordinalPosition: number
javaType: string
javaField: string
dictType: string
example: string
createOperation: number
updateOperation: number
listOperation: number
listOperationCondition: string
listOperationResult: number
htmlType: string
}
export type DatabaseTableVO = {
name: string
comment: string
}
export type CodegenDetailVO = {
table: CodegenTableVO
columns: CodegenColumnVO[]
}
export type CodegenPreviewVO = {
filePath: string
code: string
}
export type CodegenUpdateReqVO = {
table: CodegenTableVO | any
columns: CodegenColumnVO[]
}
export type CodegenCreateListReqVO = {
dataSourceConfigId: number
tableNames: string[]
}
// 查询列表代码生成表定义
export const getCodegenTablePage = (params: PageParam) => {
return request.get({ url: '/infra/codegen/table/page', params })
}
// 查询详情代码生成表定义
export const getCodegenTable = (id: number) => {
return request.get({ url: '/infra/codegen/detail?tableId=' + id })
}
// 新增代码生成表定义
export const createCodegenTable = (data: CodegenCreateListReqVO) => {
return request.post({ url: '/infra/codegen/create', data })
}
// 修改代码生成表定义
export const updateCodegenTable = (data: CodegenUpdateReqVO) => {
return request.put({ url: '/infra/codegen/update', data })
}
// 基于数据库的表结构,同步数据库的表和字段定义
export const syncCodegenFromDB = (id: number) => {
return request.put({ url: '/infra/codegen/sync-from-db?tableId=' + id })
}
// 基于 SQL 建表语句,同步数据库的表和字段定义
export const syncCodegenFromSQL = (id: number, sql: string) => {
return request.put({ url: '/infra/codegen/sync-from-sql?tableId=' + id + '&sql=' + sql })
}
// 预览生成代码
export const previewCodegen = (id: number) => {
return request.get({ url: '/infra/codegen/preview?tableId=' + id })
}
// 下载生成代码
export const downloadCodegen = (id: number) => {
return request.download({ url: '/infra/codegen/download?tableId=' + id })
}
// 获得表定义
export const getSchemaTableList = (params) => {
return request.get({ url: '/infra/codegen/db/table/list', params })
}
// 基于数据库的表结构,创建代码生成器的表定义
export const createCodegenList = (data) => {
return request.post({ url: '/infra/codegen/create-list', data })
}
// 删除代码生成表定义
export const deleteCodegenTable = (id: number) => {
return request.delete({ url: '/infra/codegen/delete?tableId=' + id })
}

56
src/api/infra/config/index.ts

@ -0,0 +1,56 @@
import request from '@/config/axios'
export interface ConfigVO {
id: number | undefined
category: string
name: string
key: string
value: string
itemType: string
areaType: string
inventoryStatus: string
type: number
visible: boolean
remark: string
createTime: Date
}
// 查询参数列表
export const getConfigPage = (params: PageParam) => {
return request.get({ url: '/infra/config/page', params })
}
// 查询参数详情
export const getConfig = (id: number) => {
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 })
}
// 根据参数键名查询参数值
export const queryByKey = (configKey: string) => {
return request.get({ url: '/infra/config/queryByKey?key=' + configKey })
}
// 新增参数
export const createConfig = (data: ConfigVO) => {
return request.post({ url: '/infra/config/create', data })
}
// 修改参数
export const updateConfig = (data: ConfigVO) => {
return request.put({ url: '/infra/config/update', data })
}
// 删除参数
export const deleteConfig = (id: number) => {
return request.delete({ url: '/infra/config/delete?id=' + id })
}
// 导出参数
export const exportConfig = (params) => {
return request.download({ url: '/infra/config/export', params })
}

35
src/api/infra/dataSourceConfig/index.ts

@ -0,0 +1,35 @@
import request from '@/config/axios'
export interface DataSourceConfigVO {
id: number | undefined
name: string
url: string
username: string
password: string
createTime?: Date
}
// 新增数据源配置
export const createDataSourceConfig = (data: DataSourceConfigVO) => {
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 })
}
// 删除数据源配置
export const deleteDataSourceConfig = (id: number) => {
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 })
}
// 查询数据源配置列表
export const getDataSourceConfigList = () => {
return request.get({ url: '/infra/data-source-config/list' })
}

16
src/api/infra/dbDoc/index.ts

@ -0,0 +1,16 @@
import request from '@/config/axios'
// 导出Html
export const exportHtml = () => {
return request.download({ url: '/infra/db-doc/export-html' })
}
// 导出Word
export const exportWord = () => {
return request.download({ url: '/infra/db-doc/export-word' })
}
// 导出Markdown
export const exportMarkdown = () => {
return request.download({ url: '/infra/db-doc/export-markdown' })
}

17
src/api/infra/file/index.ts

@ -0,0 +1,17 @@
import request from '@/config/axios'
export interface FilePageReqVO extends PageParam {
path?: string
type?: string
createTime?: Date[]
}
// 查询文件列表
export const getFilePage = (params: FilePageReqVO) => {
return request.get({ url: '/infra/file/page', params })
}
// 删除文件
export const deleteFile = (id: number) => {
return request.delete({ url: '/infra/file/delete?id=' + id })
}

61
src/api/infra/fileConfig/index.ts

@ -0,0 +1,61 @@
import request from '@/config/axios'
export interface FileClientConfig {
basePath: string
host?: string
port?: number
username?: string
password?: string
mode?: string
endpoint?: string
bucket?: string
accessKey?: string
accessSecret?: string
domain: string
}
export interface FileConfigVO {
id: number
name: string
storage: any
master: boolean
visible: boolean
config: FileClientConfig
remark: string
createTime: Date
}
// 查询文件配置列表
export const getFileConfigPage = (params: PageParam) => {
return request.get({ url: '/infra/file-config/page', params })
}
// 查询文件配置详情
export const getFileConfig = (id: number) => {
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 })
}
// 新增文件配置
export const createFileConfig = (data: FileConfigVO) => {
return request.post({ url: '/infra/file-config/create', data })
}
// 修改文件配置
export const updateFileConfig = (data: FileConfigVO) => {
return request.put({ url: '/infra/file-config/update', data })
}
// 删除文件配置
export const deleteFileConfig = (id: number) => {
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 })
}

63
src/api/infra/job/index.ts

@ -0,0 +1,63 @@
import request from '@/config/axios'
export interface JobVO {
id: number
name: string
status: number
handlerName: string
handlerParam: string
cronExpression: string
retryCount: number
retryInterval: number
monitorTimeout: number
createTime: Date
}
// 任务列表
export const getJobPage = (params: PageParam) => {
return request.get({ url: '/infra/job/page', params })
}
// 任务详情
export const getJob = (id: number) => {
return request.get({ url: '/infra/job/get?id=' + id })
}
// 新增任务
export const createJob = (data: JobVO) => {
return request.post({ url: '/infra/job/create', data })
}
// 修改定时任务调度
export const updateJob = (data: JobVO) => {
return request.put({ url: '/infra/job/update', data })
}
// 删除定时任务调度
export const deleteJob = (id: number) => {
return request.delete({ url: '/infra/job/delete?id=' + id })
}
// 导出定时任务调度
export const exportJob = (params) => {
return request.download({ url: '/infra/job/export-excel', params })
}
// 任务状态修改
export const updateJobStatus = (id: number, status: number) => {
const params = {
id,
status
}
return request.put({ url: '/infra/job/update-status', params })
}
// 定时任务立即执行一次
export const runJob = (id: number) => {
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 })
}

33
src/api/infra/jobLog/index.ts

@ -0,0 +1,33 @@
import request from '@/config/axios'
export interface JobLogVO {
id: number
jobId: number
handlerName: string
handlerParam: string
cronExpression: string
executeIndex: string
beginTime: string
endTime: string
duration: string
status: number
createTime: string
}
// 任务日志列表
export const getJobLogPage = (params: PageParam) => {
return request.get({ url: '/infra/job-log/page', params })
}
// 任务日志详情
export const getJobLog = (id: number) => {
return request.get({ url: '/infra/job-log/get?id=' + id })
}
// 导出定时任务日志
export const exportJobLog = (params) => {
return request.download({
url: '/infra/job-log/export-excel',
params
})
}

8
src/api/infra/redis/index.ts

@ -0,0 +1,8 @@
import request from '@/config/axios'
/**
* redis
*/
export const getCache = () => {
return request.get({ url: '/infra/redis/get-monitor-info' })
}

176
src/api/infra/redis/types.ts

@ -0,0 +1,176 @@
export interface RedisMonitorInfoVO {
info: RedisInfoVO
dbSize: number
commandStats: RedisCommandStatsVO[]
}
export interface RedisInfoVO {
io_threaded_reads_processed: string
tracking_clients: string
uptime_in_seconds: string
cluster_connections: string
current_cow_size: string
maxmemory_human: string
aof_last_cow_size: string
master_replid2: string
mem_replication_backlog: string
aof_rewrite_scheduled: string
total_net_input_bytes: string
rss_overhead_ratio: string
hz: string
current_cow_size_age: string
redis_build_id: string
errorstat_BUSYGROUP: string
aof_last_bgrewrite_status: string
multiplexing_api: string
client_recent_max_output_buffer: string
allocator_resident: string
mem_fragmentation_bytes: string
aof_current_size: string
repl_backlog_first_byte_offset: string
tracking_total_prefixes: string
redis_mode: string
redis_git_dirty: string
aof_delayed_fsync: string
allocator_rss_bytes: string
repl_backlog_histlen: string
io_threads_active: string
rss_overhead_bytes: string
total_system_memory: string
loading: string
evicted_keys: string
maxclients: string
cluster_enabled: string
redis_version: string
repl_backlog_active: string
mem_aof_buffer: string
allocator_frag_bytes: string
io_threaded_writes_processed: string
instantaneous_ops_per_sec: string
used_memory_human: string
total_error_replies: string
role: string
maxmemory: string
used_memory_lua: string
rdb_current_bgsave_time_sec: string
used_memory_startup: string
used_cpu_sys_main_thread: string
lazyfree_pending_objects: string
aof_pending_bio_fsync: string
used_memory_dataset_perc: string
allocator_frag_ratio: string
arch_bits: string
used_cpu_user_main_thread: string
mem_clients_normal: string
expired_time_cap_reached_count: string
unexpected_error_replies: string
mem_fragmentation_ratio: string
aof_last_rewrite_time_sec: string
master_replid: string
aof_rewrite_in_progress: string
lru_clock: string
maxmemory_policy: string
run_id: string
latest_fork_usec: string
tracking_total_items: string
total_commands_processed: string
expired_keys: string
errorstat_ERR: string
used_memory: string
module_fork_in_progress: string
errorstat_WRONGPASS: string
aof_buffer_length: string
dump_payload_sanitizations: string
mem_clients_slaves: string
keyspace_misses: string
server_time_usec: string
executable: string
lazyfreed_objects: string
db0: string
used_memory_peak_human: string
keyspace_hits: string
rdb_last_cow_size: string
aof_pending_rewrite: string
used_memory_overhead: string
active_defrag_hits: string
tcp_port: string
uptime_in_days: string
used_memory_peak_perc: string
current_save_keys_processed: string
blocked_clients: string
total_reads_processed: string
expire_cycle_cpu_milliseconds: string
sync_partial_err: string
used_memory_scripts_human: string
aof_current_rewrite_time_sec: string
aof_enabled: string
process_supervised: string
master_repl_offset: string
used_memory_dataset: string
used_cpu_user: string
rdb_last_bgsave_status: string
tracking_total_keys: string
atomicvar_api: string
allocator_rss_ratio: string
client_recent_max_input_buffer: string
clients_in_timeout_table: string
aof_last_write_status: string
mem_allocator: string
used_memory_scripts: string
used_memory_peak: string
process_id: string
master_failover_state: string
errorstat_NOAUTH: string
used_cpu_sys: string
repl_backlog_size: string
connected_slaves: string
current_save_keys_total: string
gcc_version: string
total_system_memory_human: string
sync_full: string
connected_clients: string
module_fork_last_cow_size: string
total_writes_processed: string
allocator_active: string
total_net_output_bytes: string
pubsub_channels: string
current_fork_perc: string
active_defrag_key_hits: string
rdb_changes_since_last_save: string
instantaneous_input_kbps: string
used_memory_rss_human: string
configured_hz: string
expired_stale_perc: string
active_defrag_misses: string
used_cpu_sys_children: string
number_of_cached_scripts: string
sync_partial_ok: string
used_memory_lua_human: string
rdb_last_save_time: string
pubsub_patterns: string
slave_expires_tracked_keys: string
redis_git_sha1: string
used_memory_rss: string
rdb_last_bgsave_time_sec: string
os: string
mem_not_counted_for_evict: string
active_defrag_running: string
rejected_connections: string
aof_rewrite_buffer_length: string
total_forks: string
active_defrag_key_misses: string
allocator_allocated: string
aof_base_size: string
instantaneous_output_kbps: string
second_repl_offset: string
rdb_bgsave_in_progress: string
used_cpu_user_children: string
total_connections_received: string
migrate_cached_sockets: string
}
export interface RedisCommandStatsVO {
command: string
calls: number
usec: number
}

72
src/api/login/index.ts

@ -0,0 +1,72 @@
import request from '@/config/axios'
import { getRefreshToken } from '@/utils/auth'
import type { UserLoginVO } from './types'
export interface SmsCodeVO {
mobile: string
scene: number
}
export interface SmsLoginVO {
mobile: string
code: string
}
// 登录
export const login = (data: UserLoginVO) => {
return request.post({ url: '/system/auth/login', data })
}
// 刷新访问令牌
export const refreshToken = () => {
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 })
}
// 登出
export const loginOut = () => {
return request.post({ url: '/system/auth/logout' })
}
// 获取用户权限信息
export const getInfo = () => {
return request.get({ url: '/system/auth/get-permission-info' })
}
//获取登录验证码
export const sendSmsCode = (data: SmsCodeVO) => {
return request.post({ url: '/system/auth/send-sms-code', data })
}
// 短信验证码登录
export const smsLogin = (data: SmsLoginVO) => {
return request.post({ url: '/system/auth/sms-login', data })
}
// 社交授权的跳转
export const socialAuthRedirect = (type: number, redirectUri: string) => {
return request.get({
url: '/system/auth/social-auth-redirect?type=' + type + '&redirectUri=' + redirectUri
})
}
// 获取验证图片以及 token
export const getCode = (data) => {
return request.postOriginal({ url: 'system/captcha/get', data })
}
// 滑动或者点选验证
export const reqCheck = (data) => {
return request.postOriginal({ url: 'system/captcha/check', data })
}
// 获取验证码
export const getCodeImg = () => {
return request.get({
url: 'system/captcha/captchaImage', headers: {
isToken: false
}})
}

41
src/api/login/oauth2/index.ts

@ -0,0 +1,41 @@
import request from '@/config/axios'
// 获得授权信息
export const getAuthorize = (clientId: string) => {
return request.get({ url: '/system/oauth2/authorize?clientId=' + clientId })
}
// 发起授权
export const authorize = (
responseType: string,
clientId: string,
redirectUri: string,
state: string,
autoApprove: boolean,
checkedScopes: string[],
uncheckedScopes: string[]
) => {
// 构建 scopes
const scopes = {}
for (const scope of checkedScopes) {
scopes[scope] = true
}
for (const scope of uncheckedScopes) {
scopes[scope] = false
}
// 发起请求
return request.post({
url: '/system/oauth2/authorize',
headers: {
'Content-type': 'application/x-www-form-urlencoded'
},
params: {
response_type: responseType,
client_id: clientId,
redirect_uri: redirectUri,
state: state,
auto_approve: autoApprove,
scope: JSON.stringify(scopes)
}
})
}

28
src/api/login/types.ts

@ -0,0 +1,28 @@
export type UserLoginVO = {
username: string
password: string
captchaVerification: string
}
export type TokenType = {
id: number // 编号
accessToken: string // 访问令牌
refreshToken: string // 刷新令牌
userId: number // 用户编号
userType: number //用户类型
clientId: string //客户端编号
expiresTime: number //过期时间
}
export type UserVO = {
id: number
username: string
nickname: string
deptId: number
email: string
mobile: string
sex: number
avatar: string
loginIp: string
loginDate: string
}

97
src/api/mes/processroute/index.ts

@ -0,0 +1,97 @@
import request from '@/config/axios'
export interface ProcessrouteVO {
deleteTime: Date
id: number
status: string
concurrencyStamp: number
remark: string
deleter: string
processrouteCode: string
processName: string
productCode: string
routeVersion: number
}
// 查询工艺路线定义列表
export const getProcessroutePage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/mes/processroute/senior', data })
} else {
return await request.get({ url: `/mes/processroute/page`, params })
}
}
// 查询工艺路线定义详情
export const getProcessroute = async (id: number) => {
return await request.get({ url: `/mes/processroute/get?id=` + id })
}
// 新增工艺路线定义
export const createProcessroute = async (data: ProcessrouteVO) => {
return await request.post({ url: `/mes/processroute/create`, data })
}
//提交图形数据
// 新增工艺路线定义
export const saveGraphData = async (data: any) => {
return await request.post({ url: `/mes/processroute/updategraph`, data })
}
// 修改工艺路线定义
export const updateProcessroute = async (data: ProcessrouteVO) => {
return await request.put({ url: `/mes/processroute/update`, data })
}
// 删除工艺路线定义
export const deleteProcessroute = async (id: number) => {
return await request.delete({ url: `/mes/processroute/delete?id=` + id })
}
// 导出工艺路线定义 Excel
export const exportProcessroute = async (params) => {
return await request.download({ url: `/mes/processroute/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/mes/processroute/get-import-template' })
}
// 获取工序工序列表-
export const getProcessList =async (params) => {
return await request.get({ url: `/wms/process/page`, params })
}
// 获取工序工序信息-
export const getProcesInfo = async(code:String) => {
return await request.get({ url: `/wms/process/getByCode?code=`,code })
}
// 获取产品信息列表-
export const getProductInfo =async (code:String) => {
return await request.get({ url: `/wms/itembasic/getProduct?code=`+code})
}
// 获取设备列表-参数为工序编码
export const getDeviceList =async (code:String) => {
//return request.get({ url: `/wms/itembasic/getProduct?code=`+code})
return {code:0,data:[{name:"冲压设备1",code:"CY0001"},{name:"冲压设备2",code:"CY0002"}]}
}
// 获取工作人员信息--参数为工序编码
export const getWorkerList =async (code:String) => {
// return request.get({ url: `/wms/itembasic/getProduct?code=`+code})
return {code:0,data:[{name:"张三",code:"冲压1班"},{name:"李四",code:"冲压1班"}]}
}
// 获取工位信息
export const getWorkStation =async (code:String) => {
//return request.get({ url: `/wms/itembasic/getProduct?code=`+code})
return {code:0,data:{name:"冲压工位",code:"CYW0001"}}
}
// 获取车间信息列表-
// export const getWorkInfoList = () => {
// return request.get({ url: '/wms/workshop?code=',code })
// }
// 获取产品信息列表-
// export const getProductInfo = (code:String) => {
// return request.get({ url: '/wms/itembasic/getProduct?code=',code })
// }

61
src/api/mes/productionPlan/index.ts

@ -0,0 +1,61 @@
import request from '@/config/axios'
export interface ProductionPlanVO {
id: number
planCode: string
planName: string
teamType: string
endTime: Date
shiftMode: string
billState: number
deleteTime: Date
status: string
concurrencyStamp: number
remark: string
deleter: string
siteId: number
textOne: string
textTwo: string
textThree: string
}
// 查询生产排产计划列表
export const getProductionPlanPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/mes/productionPlan/senior', data })
} else {
return await request.get({ url: `/mes/productionPlan/page`, params })
}
}
// 查询生产排产计划详情
export const getProductionPlan = async (id: number) => {
return await request.get({ url: `/mes/productionPlan/get?id=` + id })
}
// 新增生产排产计划
export const createProductionPlan = async (data: ProductionPlanVO) => {
return await request.post({ url: `/mes/productionPlan/create`, data })
}
// 修改生产排产计划
export const updateProductionPlan = async (data: ProductionPlanVO) => {
return await request.put({ url: `/mes/productionPlan/update`, data })
}
// 删除生产排产计划
export const deleteProductionPlan = async (id: number) => {
return await request.delete({ url: `/mes/productionPlan/delete?id=` + id })
}
// 导出生产排产计划 Excel
export const exportProductionPlan = async (params) => {
return await request.download({ url: `/mes/productionPlan/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/mes/productionPlan/get-import-template' })
}

61
src/api/mes/teamSetting/index.ts

@ -0,0 +1,61 @@
import request from '@/config/axios'
export interface TeamSettingVO {
id: number
teamCode: string
teamName: string
teamType: string
endTime: Date
textOne: string
textTwo: string
textThree: string
textFour: string
textFive: string
deleteTime: Date
status: string
concurrencyStamp: number
remark: string
deleter: string
siteId: number
}
// 查询班组人员管理列表
export const getTeamSettingPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/mes/teamSetting/senior', data })
} else {
return await request.get({ url: `/mes/teamSetting/page`, params })
}
}
// 查询班组人员管理详情
export const getTeamSetting = async (id: number) => {
return await request.get({ url: `/mes/teamSetting/get?id=` + id })
}
// 新增班组人员管理
export const createTeamSetting = async (data: TeamSettingVO) => {
return await request.post({ url: `/mes/teamSetting/create`, data })
}
// 修改班组人员管理
export const updateTeamSetting = async (data: TeamSettingVO) => {
return await request.put({ url: `/mes/teamSetting/update`, data })
}
// 删除班组人员管理
export const deleteTeamSetting = async (id: number) => {
return await request.delete({ url: `/mes/teamSetting/delete?id=` + id })
}
// 导出班组人员管理 Excel
export const exportTeamSetting = async (params) => {
return await request.download({ url: `/mes/teamSetting/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/mes/teamSetting/get-import-template' })
}

92
src/api/mes/workstation/index.ts

@ -0,0 +1,92 @@
import request from '@/config/axios'
export interface WorkstationVO {
code: string
activeTime: Date
expireTime: Date
name: string
}
export const goalParams = {
workstationCode:null
}
// 查询工位列表
export const getWorkstationPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/mes/workstation/senior', data })
} else {
return await request.get({ url: `/mes/workstation/page`, params })
}
}
// 查询工位详情
export const getWorkstation = async (id: number) => {
return await request.get({ url: `/mes/workstation/get?id=` + id })
}
// 新增工位
export const createWorkstation = async (data: WorkstationVO) => {
return await request.post({ url: `/mes/workstation/create`, data })
}
// 修改工位
export const updateWorkstation = async (data: WorkstationVO) => {
return await request.put({ url: `/mes/workstation/update`, data })
}
// 删除工位
export const deleteWorkstation = async (id: number) => {
return await request.delete({ url: `/mes/workstation/delete?id=` + id })
}
// 导出工位 Excel
export const exportWorkstation = async (params) => {
return await request.download({ url: `/mes/workstation/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/mes/workstation/get-import-template' })
}
// 查询班组列表
export const getTeamPage = async (params) => {
console.log(goalParams.workstationCode)
params.workstationCode = goalParams.workstationCode
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/mes/team/senior', data })
} else {
return await request.get({ url: `/mes/team/pageListByWorkstationCode`, params })
}
}
export const getEquipmentPage = async (params) => {
console.log(goalParams.workstationCode)
params.workstationCode = goalParams.workstationCode
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/mes/equipment/senior', data })
} else {
return await request.get({ url: `/mes/equipment/pageListByWorkstationCode`, params })
}
}
export const getProcessPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/mes/production-process/senior', data })
} else {
return await request.get({ url: `/mes/production-process/pageListByWorkstationCode`, params })
}
}
export const getProductionPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/mes/production-process/senior', data })
} else {
return await request.get({ url: `/mes/production-process/pageListByWorkstationCode`, params })
}
}

21
src/api/redis/index.ts

@ -0,0 +1,21 @@
import request from '@/config/axios'
export interface RedisVO {
key: string
value: string
}
// 加入缓存
export const addRedis = async (data:RedisVO) => {
return await request.post({ url: `/infra/redis/set`, data })
}
// 获取缓存
export const getRedis = async (key) => {
return await request.get({ url: `/infra/redis/get?key=` + key})
}
// 删除物料清单
export const deleteRedis = async (key) => {
return await request.delete({ url: `/infra/redis/delete?key=` + key})
}

0
src/api/scp/index.ts

19
src/api/system/area/index.ts

@ -0,0 +1,19 @@
import request from '@/config/axios'
// 获得地区树
export const getAreaTree = async () => {
return await request.get({ url: '/system/area/tree' })
}
export const getChildrenArea = async (id: number) => {
return await request.get({ url: '/system/area/get-children?id=' + id })
}
export const getAreaListByIds = async (ids) => {
return await request.get({ url: '/system/area/get-by-ids?ids=' + ids })
}
// 获得 IP 对应的地区名
export const getAreaByIp = async (ip: string) => {
return await request.get({ url: '/system/area/get-by-ip?ip=' + ip })
}

43
src/api/system/dept/index.ts

@ -0,0 +1,43 @@
import request from '@/config/axios'
export interface DeptVO {
id?: number
name: string
parentId: number
status: number
sort: number
leaderUserId: number
phone: string
email: string
createTime: Date
}
// 查询部门(精简)列表
export const getSimpleDeptList = async (): Promise<DeptVO[]> => {
return await request.get({ url: '/system/dept/list-all-simple' })
}
// 查询部门列表
export const getDeptPage = async (params: PageParam) => {
return await request.get({ url: '/system/dept/list', params })
}
// 查询部门详情
export const getDept = async (id: number) => {
return await request.get({ url: '/system/dept/get?id=' + id })
}
// 新增部门
export const createDept = async (data: DeptVO) => {
return await request.post({ url: '/system/dept/create', data: data })
}
// 修改部门
export const updateDept = async (params: DeptVO) => {
return await request.put({ url: '/system/dept/update', data: params })
}
// 删除部门
export const deleteDept = async (id: number) => {
return await request.delete({ url: '/system/dept/delete?id=' + id })
}

54
src/api/system/dict/dict.data.ts

@ -0,0 +1,54 @@
import request from '@/config/axios'
export type DictDataVO = {
id: number | undefined
sort: number | undefined
label: string
value: string
dictType: string
status: number
colorType: string
cssClass: string
remark: string
createTime: Date
}
// 查询字典数据(精简)列表
export const listSimpleDictData = () => {
return request.get({ url: '/system/dict-data/list-all-simple' })
}
// 查询字典数据列表
export const getDictDataPage = (params: PageParam) => {
return request.get({ url: '/system/dict-data/page', params })
}
// 查询字典数据列表根据类型
export const queryByDictType = (dictType: number) => {
return request.get({ url: '/system/dict-data/queryByDictType?dictType=' + dictType })
}
// 查询字典数据详情
export const getDictData = (id: string) => {
return request.get({ url: '/system/dict-data/get?id=' + id })
}
// 新增字典数据
export const createDictData = (data: DictDataVO) => {
return request.post({ url: '/system/dict-data/create', data })
}
// 修改字典数据
export const updateDictData = (data: DictDataVO) => {
return request.put({ url: '/system/dict-data/update', data })
}
// 删除字典数据
export const deleteDictData = (id: number) => {
return request.delete({ url: '/system/dict-data/delete?id=' + id })
}
// 导出字典类型数据
export const exportDictData = (params) => {
return request.get({ url: '/system/dict-data/export', params })
}

44
src/api/system/dict/dict.type.ts

@ -0,0 +1,44 @@
import request from '@/config/axios'
export type DictTypeVO = {
id: number | undefined
name: string
type: string
status: number
remark: string
createTime: Date
}
// 查询字典(精简)列表
export const getSimpleDictTypeList = () => {
return request.get({ url: '/system/dict-type/list-all-simple' })
}
// 查询字典列表
export const getDictTypePage = (params: PageParam) => {
return request.get({ url: '/system/dict-type/page', params })
}
// 查询字典详情
export const getDictType = (id: number) => {
return request.get({ url: '/system/dict-type/get?id=' + id })
}
// 新增字典
export const createDictType = (data: DictTypeVO) => {
return request.post({ url: '/system/dict-type/create', data })
}
// 修改字典
export const updateDictType = (data: DictTypeVO) => {
return request.put({ url: '/system/dict-type/update', data })
}
// 删除字典
export const deleteDictType = (id: number) => {
return request.delete({ url: '/system/dict-type/delete?id=' + id })
}
// 导出字典类型
export const exportDictType = (params) => {
return request.get({ url: '/system/dict-type/export', params })
}

40
src/api/system/errorCode/index.ts

@ -0,0 +1,40 @@
import request from '@/config/axios'
export interface ErrorCodeVO {
id: number | undefined
type: number
applicationName: string
code: number | undefined
message: string
memo: string
createTime: Date
}
// 查询错误码列表
export const getErrorCodePage = (params: PageParam) => {
return request.get({ url: '/system/error-code/page', params })
}
// 查询错误码详情
export const getErrorCode = (id: number) => {
return request.get({ url: '/system/error-code/get?id=' + id })
}
// 新增错误码
export const createErrorCode = (data: ErrorCodeVO) => {
return request.post({ url: '/system/error-code/create', data })
}
// 修改错误码
export const updateErrorCode = (data: ErrorCodeVO) => {
return request.put({ url: '/system/error-code/update', data })
}
// 删除错误码
export const deleteErrorCode = (id: number) => {
return request.delete({ url: '/system/error-code/delete?id=' + id })
}
// 导出错误码
export const excelErrorCode = (params) => {
return request.download({ url: '/system/error-code/export-excel', params })
}

24
src/api/system/loginLog/index.ts

@ -0,0 +1,24 @@
import request from '@/config/axios'
export interface LoginLogVO {
id: number
logType: number
traceId: number
userId: number
userType: number
username: string
status: number
userIp: string
userAgent: string
createTime: Date
}
// 查询登录日志列表
export const getLoginLogPage = (params: PageParam) => {
return request.get({ url: '/system/login-log/page', params })
}
// 导出登录日志
export const exportLoginLog = (params) => {
return request.download({ url: '/system/login-log/export', params })
}

41
src/api/system/mail/account/index.ts

@ -0,0 +1,41 @@
import request from '@/config/axios'
export interface MailAccountVO {
id: number
mail: string
username: string
password: string
host: string
port: number
sslEnable: boolean
}
// 查询邮箱账号列表
export const getMailAccountPage = async (params: PageParam) => {
return await request.get({ url: '/system/mail-account/page', params })
}
// 查询邮箱账号详情
export const getMailAccount = async (id: number) => {
return await request.get({ url: '/system/mail-account/get?id=' + id })
}
// 新增邮箱账号
export const createMailAccount = async (data: MailAccountVO) => {
return await request.post({ url: '/system/mail-account/create', data })
}
// 修改邮箱账号
export const updateMailAccount = async (data: MailAccountVO) => {
return await request.put({ url: '/system/mail-account/update', data })
}
// 删除邮箱账号
export const deleteMailAccount = async (id: number) => {
return await request.delete({ url: '/system/mail-account/delete?id=' + id })
}
// 获得邮箱账号精简列表
export const getSimpleMailAccountList = async () => {
return request.get({ url: '/system/mail-account/list-all-simple' })
}

30
src/api/system/mail/log/index.ts

@ -0,0 +1,30 @@
import request from '@/config/axios'
export interface MailLogVO {
id: number
userId: number
userType: number
toMail: string
accountId: number
fromMail: string
templateId: number
templateCode: string
templateNickname: string
templateTitle: string
templateContent: string
templateParams: string
sendStatus: number
sendTime: Date
sendMessageId: string
sendException: string
}
// 查询邮件日志列表
export const getMailLogPage = async (params: PageParam) => {
return await request.get({ url: '/system/mail-log/page', params })
}
// 查询邮件日志详情
export const getMailLog = async (id: number) => {
return await request.get({ url: '/system/mail-log/get?id=' + id })
}

50
src/api/system/mail/template/index.ts

@ -0,0 +1,50 @@
import request from '@/config/axios'
export interface MailTemplateVO {
id: number
name: string
code: string
accountId: number
nickname: string
title: string
content: string
params: string
status: number
remark: string
}
export interface MailSendReqVO {
mail: string
templateCode: string
templateParams: Map<String, Object>
}
// 查询邮件模版列表
export const getMailTemplatePage = async (params: PageParam) => {
return await request.get({ url: '/system/mail-template/page', params })
}
// 查询邮件模版详情
export const getMailTemplate = async (id: number) => {
return await request.get({ url: '/system/mail-template/get?id=' + id })
}
// 新增邮件模版
export const createMailTemplate = async (data: MailTemplateVO) => {
return await request.post({ url: '/system/mail-template/create', data })
}
// 修改邮件模版
export const updateMailTemplate = async (data: MailTemplateVO) => {
return await request.put({ url: '/system/mail-template/update', data })
}
// 删除邮件模版
export const deleteMailTemplate = async (id: number) => {
return await request.delete({ url: '/system/mail-template/delete?id=' + id })
}
// 发送邮件
export const sendMail = (data: MailSendReqVO) => {
return request.post({ url: '/system/mail-template/send-mail', data })
}

49
src/api/system/menu/index.ts

@ -0,0 +1,49 @@
import request from '@/config/axios'
export interface MenuVO {
id: number
name: string
permission: string
type: number
sort: number
parentId: number
path: string
icon: string
component: string
componentName?: string
status: number
visible: boolean
keepAlive: boolean
alwaysShow?: boolean
createTime: Date
}
// 查询菜单(精简)列表
export const getSimpleMenusList = () => {
return request.get({ url: '/system/menu/list-all-simple' })
}
// 查询菜单列表
export const getMenuList = (params) => {
return request.get({ url: '/system/menu/list', params })
}
// 获取菜单详情
export const getMenu = (id: number) => {
return request.get({ url: '/system/menu/get?id=' + id })
}
// 新增菜单
export const createMenu = (data: MenuVO) => {
return request.post({ url: '/system/menu/create', data })
}
// 修改菜单
export const updateMenu = (data: MenuVO) => {
return request.put({ url: '/system/menu/update', data })
}
// 删除菜单
export const deleteMenu = (id: number) => {
return request.delete({ url: '/system/menu/delete?id=' + id })
}

37
src/api/system/notice/index.ts

@ -0,0 +1,37 @@
import request from '@/config/axios'
export interface NoticeVO {
id: number | undefined
title: string
type: number
content: string
status: number
remark: string
creator: string
createTime: Date
}
// 查询公告列表
export const getNoticePage = (params: PageParam) => {
return request.get({ url: '/system/notice/page', params })
}
// 查询公告详情
export const getNotice = (id: number) => {
return request.get({ url: '/system/notice/get?id=' + id })
}
// 新增公告
export const createNotice = (data: NoticeVO) => {
return request.post({ url: '/system/notice/create', data })
}
// 修改公告
export const updateNotice = (data: NoticeVO) => {
return request.put({ url: '/system/notice/update', data })
}
// 删除公告
export const deleteNotice = (id: number) => {
return request.delete({ url: '/system/notice/delete?id=' + id })
}

48
src/api/system/notify/message/index.ts

@ -0,0 +1,48 @@
import request from '@/config/axios'
import qs from 'qs'
export interface NotifyMessageVO {
id: number
userId: number
userType: number
templateId: number
templateCode: string
templateNickname: string
templateContent: string
templateType: number
templateParams: string
readStatus: boolean
readTime: Date
}
// 查询站内信消息列表
export const getNotifyMessagePage = async (params: PageParam) => {
return await request.get({ url: '/system/notify-message/page', params })
}
// 获得我的站内信分页
export const getMyNotifyMessagePage = async (params: PageParam) => {
return await request.get({ url: '/system/notify-message/my-page', params })
}
// 批量标记已读
export const updateNotifyMessageRead = async (ids) => {
return await request.put({
url: '/system/notify-message/update-read?' + qs.stringify({ ids: ids }, { indices: false })
})
}
// 标记所有站内信为已读
export const updateAllNotifyMessageRead = async () => {
return await request.put({ url: '/system/notify-message/update-all-read' })
}
// 获取当前用户的最新站内信列表
export const getUnreadNotifyMessageList = async () => {
return await request.get({ url: '/system/notify-message/get-unread-list' })
}
// 获得当前用户的未读站内信数量
export const getUnreadNotifyMessageCount = async () => {
return await request.get({ url: '/system/notify-message/get-unread-count' })
}

50
src/api/system/notify/template/index.ts

@ -0,0 +1,50 @@
import request from '@/config/axios'
export interface NotifyTemplateVO {
id?: number
name: string
nickname: string
code: string
roleIds: []
content: string
type: number
params: string
status: number
remark: string
}
export interface NotifySendReqVO {
userId: number | null
templateCode: string
templateParams: Map<String, Object>
}
// 查询站内信模板列表
export const getNotifyTemplatePage = async (params: PageParam) => {
return await request.get({ url: '/system/notify-template/page', params })
}
// 查询站内信模板详情
export const getNotifyTemplate = async (id: number) => {
return await request.get({ url: '/system/notify-template/get?id=' + id })
}
// 新增站内信模板
export const createNotifyTemplate = async (data: NotifyTemplateVO) => {
return await request.post({ url: '/system/notify-template/create', data })
}
// 修改站内信模板
export const updateNotifyTemplate = async (data: NotifyTemplateVO) => {
return await request.put({ url: '/system/notify-template/update', data })
}
// 删除站内信模板
export const deleteNotifyTemplate = async (id: number) => {
return await request.delete({ url: '/system/notify-template/delete?id=' + id })
}
// 发送站内信
export const sendNotify = (data: NotifySendReqVO) => {
return request.post({ url: '/system/notify-template/send-notify', data })
}

47
src/api/system/oauth2/client.ts

@ -0,0 +1,47 @@
import request from '@/config/axios'
export interface OAuth2ClientVO {
id: number
clientId: string
secret: string
name: string
logo: string
description: string
status: number
accessTokenValiditySeconds: number
refreshTokenValiditySeconds: number
redirectUris: string[]
autoApprove: boolean
authorizedGrantTypes: string[]
scopes: string[]
authorities: string[]
resourceIds: string[]
additionalInformation: string
isAdditionalInformationJson: boolean
createTime: Date
}
// 查询 OAuth2 客户端的列表
export const getOAuth2ClientPage = (params: PageParam) => {
return request.get({ url: '/system/oauth2-client/page', params })
}
// 查询 OAuth2 客户端的详情
export const getOAuth2Client = (id: number) => {
return request.get({ url: '/system/oauth2-client/get?id=' + id })
}
// 新增 OAuth2 客户端
export const createOAuth2Client = (data: OAuth2ClientVO) => {
return request.post({ url: '/system/oauth2-client/create', data })
}
// 修改 OAuth2 客户端
export const updateOAuth2Client = (data: OAuth2ClientVO) => {
return request.put({ url: '/system/oauth2-client/update', data })
}
// 删除 OAuth2
export const deleteOAuth2Client = (id: number) => {
return request.delete({ url: '/system/oauth2-client/delete?id=' + id })
}

22
src/api/system/oauth2/token.ts

@ -0,0 +1,22 @@
import request from '@/config/axios'
export interface OAuth2TokenVO {
id: number
accessToken: string
refreshToken: string
userId: number
userType: number
clientId: string
createTime: Date
expiresTime: Date
}
// 查询 token列表
export const getAccessTokenPage = (params: PageParam) => {
return request.get({ url: '/system/oauth2-token/page', params })
}
// 删除 token
export const deleteAccessToken = (accessToken: string) => {
return request.delete({ url: '/system/oauth2-token/delete?accessToken=' + accessToken })
}

33
src/api/system/operatelog/index.ts

@ -0,0 +1,33 @@
import request from '@/config/axios'
export type OperateLogVO = {
id: number
userNickname: string
traceId: string
userId: number
module: string
name: string
type: number
content: string
exts: Map<String, Object>
requestMethod: string
requestUrl: string
userIp: string
userAgent: string
javaMethod: string
javaMethodArgs: string
startTime: Date
duration: number
resultCode: number
resultMsg: string
resultData: string
}
// 查询操作日志列表
export const getOperateLogPage = (params: PageParam) => {
return request.get({ url: '/system/operate-log/page', params })
}
// 导出操作日志
export const exportOperateLog = (params) => {
return request.download({ url: '/system/operate-log/export', params })
}

42
src/api/system/permission/index.ts

@ -0,0 +1,42 @@
import request from '@/config/axios'
export interface PermissionAssignUserRoleReqVO {
userId: number
roleIds: number[]
}
export interface PermissionAssignRoleMenuReqVO {
roleId: number
menuIds: number[]
}
export interface PermissionAssignRoleDataScopeReqVO {
roleId: number
dataScope: number
dataScopeDeptIds: number[]
}
// 查询角色拥有的菜单权限
export const getRoleMenuList = async (roleId: number) => {
return await request.get({ url: '/system/permission/list-role-menus?roleId=' + roleId })
}
// 赋予角色菜单权限
export const assignRoleMenu = async (data: PermissionAssignRoleMenuReqVO) => {
return await request.post({ url: '/system/permission/assign-role-menu', data })
}
// 赋予角色数据权限
export const assignRoleDataScope = async (data: PermissionAssignRoleDataScopeReqVO) => {
return await request.post({ url: '/system/permission/assign-role-data-scope', data })
}
// 查询用户拥有的角色数组
export const getUserRoleList = async (userId: number) => {
return await request.get({ url: '/system/permission/list-user-roles?userId=' + userId })
}
// 赋予用户角色
export const assignUserRole = async (data: PermissionAssignUserRoleReqVO) => {
return await request.post({ url: '/system/permission/assign-user-role', data })
}

46
src/api/system/post/index.ts

@ -0,0 +1,46 @@
import request from '@/config/axios'
export interface PostVO {
id?: number
name: string
code: string
sort: number
status: number
remark: string
createTime?: Date
}
// 查询岗位列表
export const getPostPage = async (params: PageParam) => {
return await request.get({ url: '/system/post/page', params })
}
// 获取岗位精简信息列表
export const getSimplePostList = async (): Promise<PostVO[]> => {
return await request.get({ url: '/system/post/list-all-simple' })
}
// 查询岗位详情
export const getPost = async (id: number) => {
return await request.get({ url: '/system/post/get?id=' + id })
}
// 新增岗位
export const createPost = async (data: PostVO) => {
return await request.post({ url: '/system/post/create', data })
}
// 修改岗位
export const updatePost = async (data: PostVO) => {
return await request.put({ url: '/system/post/update', data })
}
// 删除岗位
export const deletePost = async (id: number) => {
return await request.delete({ url: '/system/post/delete?id=' + id })
}
// 导出岗位
export const exportPost = async (params) => {
return await request.download({ url: '/system/post/export', params })
}

61
src/api/system/role/index.ts

@ -0,0 +1,61 @@
import request from '@/config/axios'
export interface RoleVO {
id: number
name: string
code: string
sort: number
status: number
type: number
dataScope: number
dataScopeDeptIds: number[]
createTime: Date
}
export interface UpdateStatusReqVO {
id: number
status: number
}
// 查询角色列表
export const getRolePage = async (params: PageParam) => {
return await request.get({ url: '/system/role/page', params })
}
// 查询角色(精简)列表
export const getSimpleRoleList = async (): Promise<RoleVO[]> => {
return await request.get({ url: '/system/role/list-all-simple' })
}
// 查询角色详情
export const getRole = async (id: number) => {
return await request.get({ url: '/system/role/get?id=' + id })
}
// 新增角色
export const createRole = async (data: RoleVO) => {
return await request.post({ url: '/system/role/create', data })
}
// 修改角色
export const updateRole = async (data: RoleVO) => {
return await request.put({ url: '/system/role/update', data })
}
// 修改角色状态
export const updateRoleStatus = async (data: UpdateStatusReqVO) => {
return await request.put({ url: '/system/role/update-status', data })
}
// 删除角色
export const deleteRole = async (id: number) => {
return await request.delete({ url: '/system/role/delete?id=' + id })
}
// 导出角色
export const exportRole = (params) => {
return request.download({
url: '/system/role/export-excel',
params
})
}

58
src/api/system/sensitiveWord/index.ts

@ -0,0 +1,58 @@
import request from '@/config/axios'
import qs from 'qs'
export interface SensitiveWordVO {
id: number
name: string
status: number
description: string
tags: string[]
createTime: Date
}
export interface SensitiveWordTestReqVO {
text: string
tag: string[]
}
// 查询敏感词列表
export const getSensitiveWordPage = (params: PageParam) => {
return request.get({ url: '/system/sensitive-word/page', params })
}
// 查询敏感词详情
export const getSensitiveWord = (id: number) => {
return request.get({ url: '/system/sensitive-word/get?id=' + id })
}
// 新增敏感词
export const createSensitiveWord = (data: SensitiveWordVO) => {
return request.post({ url: '/system/sensitive-word/create', data })
}
// 修改敏感词
export const updateSensitiveWord = (data: SensitiveWordVO) => {
return request.put({ url: '/system/sensitive-word/update', data })
}
// 删除敏感词
export const deleteSensitiveWord = (id: number) => {
return request.delete({ url: '/system/sensitive-word/delete?id=' + id })
}
// 导出敏感词
export const exportSensitiveWord = (params) => {
return request.download({ url: '/system/sensitive-word/export-excel', params })
}
// 获取所有敏感词的标签数组
export const getSensitiveWordTagList = () => {
return request.get({ url: '/system/sensitive-word/get-tags' })
}
// 获得文本所包含的不合法的敏感词数组
export const validateText = (query: SensitiveWordTestReqVO) => {
return request.get({
url: '/system/sensitive-word/validate-text?' + qs.stringify(query, { arrayFormat: 'repeat' })
})
}

42
src/api/system/serialNumber/index.ts

@ -0,0 +1,42 @@
import request from '@/config/axios'
export interface SerialNumberVO {
id: number
ruleCode: string
ruleName: string
prefix: string
pattern: string
length: byte
separator: string
remark: string
}
// 查询流水号规则列表
export const getSerialNumberPage = async (params) => {
return await request.get({ url: `/system/serial-number/page`, params })
}
// 查询流水号规则详情
export const getSerialNumber = async (id: number) => {
return await request.get({ url: `/system/serial-number/get?id=` + id })
}
// 新增流水号规则
export const createSerialNumber = async (data: SerialNumberVO) => {
return await request.post({ url: `/system/serial-number/create`, data })
}
// 修改流水号规则
export const updateSerialNumber = async (data: SerialNumberVO) => {
return await request.put({ url: `/system/serial-number/update`, data })
}
// 删除流水号规则
export const deleteSerialNumber = async (id: number) => {
return await request.delete({ url: `/system/serial-number/delete?id=` + id })
}
// 导出流水号规则 Excel
export const exportSerialNumber = async (params) => {
return await request.download({ url: `/system/serial-number/export-excel`, params })
}

43
src/api/system/sms/smsChannel/index.ts

@ -0,0 +1,43 @@
import request from '@/config/axios'
export interface SmsChannelVO {
id: number
code: string
status: number
signature: string
remark: string
apiKey: string
apiSecret: string
callbackUrl: string
createTime: Date
}
// 查询短信渠道列表
export const getSmsChannelPage = (params: PageParam) => {
return request.get({ url: '/system/sms-channel/page', params })
}
// 获得短信渠道精简列表
export function getSimpleSmsChannelList() {
return request.get({ url: '/system/sms-channel/list-all-simple' })
}
// 查询短信渠道详情
export const getSmsChannel = (id: number) => {
return request.get({ url: '/system/sms-channel/get?id=' + id })
}
// 新增短信渠道
export const createSmsChannel = (data: SmsChannelVO) => {
return request.post({ url: '/system/sms-channel/create', data })
}
// 修改短信渠道
export const updateSmsChannel = (data: SmsChannelVO) => {
return request.put({ url: '/system/sms-channel/update', data })
}
// 删除短信渠道
export const deleteSmsChannel = (id: number) => {
return request.delete({ url: '/system/sms-channel/delete?id=' + id })
}

39
src/api/system/sms/smsLog/index.ts

@ -0,0 +1,39 @@
import request from '@/config/axios'
export interface SmsLogVO {
id: number | null
channelId: number | null
channelCode: string
templateId: number | null
templateCode: string
templateType: number | null
templateContent: string
templateParams: Map<string, object> | null
apiTemplateId: string
mobile: string
userId: number | null
userType: number | null
sendStatus: number | null
sendTime: Date | null
sendCode: number | null
sendMsg: string
apiSendCode: string
apiSendMsg: string
apiRequestId: string
apiSerialNo: string
receiveStatus: number | null
receiveTime: Date | null
apiReceiveCode: string
apiReceiveMsg: string
createTime: Date | null
}
// 查询短信日志列表
export const getSmsLogPage = (params: PageParam) => {
return request.get({ url: '/system/sms-log/page', params })
}
// 导出短信日志
export const exportSmsLog = (params) => {
return request.download({ url: '/system/sms-log/export-excel', params })
}

60
src/api/system/sms/smsTemplate/index.ts

@ -0,0 +1,60 @@
import request from '@/config/axios'
export interface SmsTemplateVO {
id: number | null
type: number | null
status: number
code: string
name: string
content: string
remark: string
apiTemplateId: string
channelId: number | null
channelCode?: string
params?: string[]
createTime?: Date
}
export interface SendSmsReqVO {
mobile: string
templateCode: string
templateParams: Map<String, Object>
}
// 查询短信模板列表
export const getSmsTemplatePage = (params: PageParam) => {
return request.get({ url: '/system/sms-template/page', params })
}
// 查询短信模板详情
export const getSmsTemplate = (id: number) => {
return request.get({ url: '/system/sms-template/get?id=' + id })
}
// 新增短信模板
export const createSmsTemplate = (data: SmsTemplateVO) => {
return request.post({ url: '/system/sms-template/create', data })
}
// 修改短信模板
export const updateSmsTemplate = (data: SmsTemplateVO) => {
return request.put({ url: '/system/sms-template/update', data })
}
// 删除短信模板
export const deleteSmsTemplate = (id: number) => {
return request.delete({ url: '/system/sms-template/delete?id=' + id })
}
// 导出短信模板
export const exportSmsTemplate = (params) => {
return request.download({
url: '/system/sms-template/export-excel',
params
})
}
// 发送短信
export const sendSms = (data: SendSmsReqVO) => {
return request.post({ url: '/system/sms-template/send-sms', data })
}

62
src/api/system/tenant/index.ts

@ -0,0 +1,62 @@
import request from '@/config/axios'
export interface TenantVO {
id: number
name: string
contactName: string
contactMobile: string
status: number
domain: string
packageId: number
username: string
password: string
expireTime: Date
accountCount: number
createTime: Date
}
export interface TenantPageReqVO extends PageParam {
name?: string
contactName?: string
contactMobile?: string
status?: number
createTime?: Date[]
}
export interface TenantExportReqVO {
name?: string
contactName?: string
contactMobile?: string
status?: number
createTime?: Date[]
}
// 查询租户列表
export const getTenantPage = (params: TenantPageReqVO) => {
return request.get({ url: '/system/tenant/page', params })
}
// 查询租户详情
export const getTenant = (id: number) => {
return request.get({ url: '/system/tenant/get?id=' + id })
}
// 新增租户
export const createTenant = (data: TenantVO) => {
return request.post({ url: '/system/tenant/create', data })
}
// 修改租户
export const updateTenant = (data: TenantVO) => {
return request.put({ url: '/system/tenant/update', data })
}
// 删除租户
export const deleteTenant = (id: number) => {
return request.delete({ url: '/system/tenant/delete?id=' + id })
}
// 导出租户
export const exportTenant = (params: TenantExportReqVO) => {
return request.download({ url: '/system/tenant/export-excel', params })
}

42
src/api/system/tenantPackage/index.ts

@ -0,0 +1,42 @@
import request from '@/config/axios'
export interface TenantPackageVO {
id: number
name: string
status: number
remark: string
creator: string
updater: string
updateTime: string
menuIds: number[]
createTime: Date
}
// 查询租户套餐列表
export const getTenantPackagePage = (params: PageParam) => {
return request.get({ url: '/system/tenant-package/page', params })
}
// 获得租户
export const getTenantPackage = (id: number) => {
return request.get({ url: '/system/tenant-package/get?id=' + id })
}
// 新增租户套餐
export const createTenantPackage = (data: TenantPackageVO) => {
return request.post({ url: '/system/tenant-package/create', data })
}
// 修改租户套餐
export const updateTenantPackage = (data: TenantPackageVO) => {
return request.put({ url: '/system/tenant-package/update', data })
}
// 删除租户套餐
export const deleteTenantPackage = (id: number) => {
return request.delete({ url: '/system/tenant-package/delete?id=' + id })
}
// 获取租户套餐精简信息列表
export const getTenantPackageList = () => {
return request.get({ url: '/system/tenant-package/get-simple-list' })
}

76
src/api/system/user/index.ts

@ -0,0 +1,76 @@
import request from '@/config/axios'
export interface UserVO {
id: number
username: string
nickname: string
deptId: number
postIds: string[]
email: string
mobile: string
sex: number
avatar: string
loginIp: string
status: number
remark: string
loginDate: Date
createTime: Date
}
// 查询用户管理列表
export const getUserPage = (params: PageParam) => {
return request.get({ url: '/system/user/page', params })
}
// 查询用户详情
export const getUser = (id: number) => {
return request.get({ url: '/system/user/get?id=' + id })
}
// 新增用户
export const createUser = (data: UserVO) => {
return request.post({ url: '/system/user/create', data })
}
// 修改用户
export const updateUser = (data: UserVO) => {
return request.put({ url: '/system/user/update', data })
}
// 删除用户
export const deleteUser = (id: number) => {
return request.delete({ url: '/system/user/delete?id=' + id })
}
// 导出用户
export const exportUser = (params) => {
return request.download({ url: '/system/user/export', params })
}
// 下载用户导入模板
export const importUserTemplate = () => {
return request.download({ url: '/system/user/get-import-template' })
}
// 用户密码重置
export const resetUserPwd = (id: number, password: string) => {
const data = {
id,
password
}
return request.put({ url: '/system/user/update-password', data: data })
}
// 用户状态修改
export const updateUserStatus = (id: number, status: number) => {
const data = {
id,
status
}
return request.put({ url: '/system/user/update-status', data: data })
}
// 获取用户精简信息列表
export const getSimpleUserList = (): Promise<UserVO[]> => {
return request.get({ url: '/system/user/list-all-simple' })
}

77
src/api/system/user/profile.ts

@ -0,0 +1,77 @@
import request from '@/config/axios'
export interface ProfileDept {
id: number
name: string
}
export interface ProfileRole {
id: number
name: string
}
export interface ProfilePost {
id: number
name: string
}
export interface SocialUser {
id: number
type: number
openid: string
token: string
rawTokenInfo: string
nickname: string
avatar: string
rawUserInfo: string
code: string
state: string
}
export interface ProfileVO {
id: number
username: string
nickname: string
dept: ProfileDept
roles: ProfileRole[]
posts: ProfilePost[]
socialUsers: SocialUser[]
email: string
mobile: string
sex: number
avatar: string
status: number
remark: string
loginIp: string
loginDate: Date
createTime: Date
}
export interface UserProfileUpdateReqVO {
nickname: string
email: string
mobile: string
sex: number
}
// 查询用户个人信息
export const getUserProfile = () => {
return request.get({ url: '/system/user/profile/get' })
}
// 修改用户个人信息
export const updateUserProfile = (data: UserProfileUpdateReqVO) => {
return request.put({ url: '/system/user/profile/update', data })
}
// 用户密码重置
export const updateUserPassword = (oldPassword: string, newPassword: string) => {
return request.put({
url: '/system/user/profile/update-password',
data: {
oldPassword: oldPassword,
newPassword: newPassword
}
})
}
// 用户头像上传
export const uploadAvatar = (data) => {
return request.upload({ url: '/system/user/profile/update-avatar', data: data })
}

31
src/api/system/user/socialUser.ts

@ -0,0 +1,31 @@
import request from '@/config/axios'
// 社交绑定,使用 code 授权码
export const socialBind = (type, code, state) => {
return request.post({
url: '/system/social-user/bind',
data: {
type,
code,
state
}
})
}
// 取消社交绑定
export const socialUnbind = (type, openid) => {
return request.delete({
url: '/system/social-user/unbind',
data: {
type,
openid
}
})
}
// 社交授权的跳转
export const socialAuthRedirect = (type, redirectUri) => {
return request.get({
url: '/system/auth/social-auth-redirect?type=' + type + '&redirectUri=' + redirectUri
})
}

60
src/api/wms/accountcalendar/index.ts

@ -0,0 +1,60 @@
import request from '@/config/axios'
export interface AccountcalendarVO {
year: string
month: string
descriiption: string
beginTime: Date
endTime: Date
converttotime: Date
available: number
activeTime: Date
expireTime: Date
remark: string
}
// 查询账期日历列表
export const getAccountcalendarPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/accountcalendar/senior', data })
} else {
return await request.get({ url: `/wms/accountcalendar/page`, params })
}
}
// 查询账期日历详情
export const getAccountcalendar = async (id: number) => {
return await request.get({ url: `/wms/accountcalendar/get?id=` + id })
}
// 新增账期日历
export const createAccountcalendar = async (data: AccountcalendarVO) => {
return await request.post({ url: `/wms/accountcalendar/create`, data })
}
// 修改账期日历
export const updateAccountcalendar = async (data: AccountcalendarVO) => {
return await request.put({ url: `/wms/accountcalendar/update`, data })
}
// 删除账期日历
export const deleteAccountcalendar = async (id: number) => {
return await request.delete({ url: `/wms/accountcalendar/delete?id=` + id })
}
// 导出账期日历 Excel
export const exportAccountcalendar = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/accountcalendar/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/accountcalendar/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/accountcalendar/get-import-template' })
}

63
src/api/wms/areabasic/index.ts

@ -0,0 +1,63 @@
import request from '@/config/axios'
export interface AreaVO {
code: string
name: string
description: string
warehouseCode: string
type: string
isFunctional: number
available: number
activeTime: Date
expireTime: Date
remark: string
}
// 查询库区列表
export const getAreaPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/areabasic/senior', data })
} else {
return await request.get({ url: `/wms/areabasic/page`, params })
}
}
// 查询库区列表
export const getAreaList = async (params) => {
return await request.get({ url: `/wms/areabasic/list`, params })
}
// 查询库区详情
export const getArea = async (id: number) => {
return await request.get({ url: `/wms/areabasic/get?id=` + id })
}
// 新增库区
export const createArea = async (data: AreaVO) => {
return await request.post({ url: `/wms/areabasic/create`, data })
}
// 修改库区
export const updateArea = async (data: AreaVO) => {
return await request.put({ url: `/wms/areabasic/update`, data })
}
// 删除库区
export const deleteArea = async (id: number) => {
return await request.delete({ url: `/wms/areabasic/delete?id=` + id })
}
// 导出库区 Excel
export const exportArea = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/areabasic/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/areabasic/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/areabasic/get-import-template' })
}

66
src/api/wms/backflushRecordDetailb/index.ts

@ -0,0 +1,66 @@
import request from '@/config/axios'
export interface BackflushRecordDetailbVO {
processCode: string
bomVersion: string
packingNumber: string
batch: string
inventoryStatus: string
fromLocationCode: string
fromLocationGroupCode: string
fromAreaCode: string
itemName: string
itemDesc1: string
itemDesc2: string
projectCode: string
uom: string
number: string
itemCode: string
remark: string
createTime: Date
creator: string
code: string
interfaceType: string
jobDetailId: string
}
// 查询制品收货记录子列表
export const getBackflushRecordDetailbPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/backflush-record-detailb/senior', data })
} else {
return await request.get({ url: `/wms/backflush-record-detailb/page`, params })
}
}
// 查询制品收货记录子详情
export const getBackflushRecordDetailb = async (id: number) => {
return await request.get({ url: `/wms/backflush-record-detailb/get?id=` + id })
}
// 新增制品收货记录子
export const createBackflushRecordDetailb = async (data: BackflushRecordDetailbVO) => {
return await request.post({ url: `/wms/backflush-record-detailb/create`, data })
}
// 修改制品收货记录子
export const updateBackflushRecordDetailb = async (data: BackflushRecordDetailbVO) => {
return await request.put({ url: `/wms/backflush-record-detailb/update`, data })
}
// 删除制品收货记录子
export const deleteBackflushRecordDetailb = async (id: number) => {
return await request.delete({ url: `/wms/backflush-record-detailb/delete?id=` + id })
}
// 导出制品收货记录子 Excel
export const exportBackflushRecordDetailb = async (params) => {
return await request.download({ url: `/wms/backflush-record-detailb/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/backflush-record-detailb/get-import-template' })
}

60
src/api/wms/backflushRequestDetailb/index.ts

@ -0,0 +1,60 @@
import request from '@/config/axios'
export interface BackflushRequestDetailbVO {
processCode: string
bomVersion: string
itemCode: string
number: string
remark: string
createTime: Date
itemName: string
itemDesc1: string
itemDesc2: string
projectCode: string
qty: number
uom: string
updateTime: Date
updater: string
creator: string
}
// 查询制品收货申请子列表
export const getBackflushRequestDetailbPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/productreceipt-request-detailb/senior', data })
} else {
return await request.get({ url: `/wms/productreceipt-request-detailb/page`, params })
}
}
// 查询制品收货申请子详情
export const getBackflushRequestDetailb = async (id: number) => {
return await request.get({ url: `/wms/productreceipt-request-detailb/get?id=` + id })
}
// 新增制品收货申请子
export const createBackflushRequestDetailb = async (data: BackflushRequestDetailbVO) => {
return await request.post({ url: `/wms/productreceipt-request-detailb/create`, data })
}
// 修改制品收货申请子
export const updateBackflushRequestDetailb = async (data: BackflushRequestDetailbVO) => {
return await request.put({ url: `/wms/productreceipt-request-detailb/update`, data })
}
// 删除制品收货申请子
export const deleteBackflushRequestDetailb = async (id: number) => {
return await request.delete({ url: `/wms/productreceipt-request-detailb/delete?id=` + id })
}
// 导出制品收货申请子 Excel
export const exportBackflushRequestDetailb = async (params) => {
return await request.download({ url: `/wms/productreceipt-request-detailb/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/productreceipt-request-detailb/get-import-template' })
}

129
src/api/wms/balance/index.ts

@ -0,0 +1,129 @@
import request from '@/config/axios'
export interface BalanceVO {
packingNumber: string
containerNumber: string
itemCode: string
batch: string
altBatch: string
arriveDate: Date
produceDate: Date
expireDate: Date
inventoryStatus: string
locationCode: string
locationGroupCode: string
areaCode: string
warehouseCode: string
erpLocationCode: string
ownerCode: string
uom: string
qty: number
lockedQty: number
usableQty: number
singlePrice: number
amount: number
putInTime: Date
frozen: string
frozenReason: string
lastTransNumber: string
weight: number
area: number
volume: number
}
// 查询库存余额列表
export const getBalancePage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/balance/senior', data })
} else {
return await request.get({ url: `/wms/balance/page`, params })
}
}
// 查询库存余额列表
export const getBalancePageReturn= async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/balance/senior', data })
} else {
return await request.get({ url: `/wms/balance/pageReturn`, params })
}
}
// 查询库存余额列表
export const getBalancePagePutaway= async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/balance/senior', data })
} else {
return await request.get({ url: `/wms/balance/pagePutaway`, params })
}
}
// 查询库存余额列表增加物料筛选条件
export const getBalanceItemPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/balance/seniorItems', data })
} else {
return await request.get({ url: `/wms/balance/pageItems`, params })
}
}
// 查询库存余额列表根据业务类型
export const getBalancePageByBusinessType = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/balance/seniorBusinessType', data })
} else {
return await request.get({ url: `/wms/balance/pageBusinessType`, params })
}
}
// 查询库存余额详情
export const getBalance = async (id: number) => {
return await request.get({ url: `/wms/balance/get?id=` + id })
}
// 新增库存余额
export const createBalance = async (data: BalanceVO) => {
return await request.post({ url: `/wms/balance/create`, data })
}
// 修改库存余额
export const updateBalance = async (data: BalanceVO) => {
return await request.put({ url: `/wms/balance/update`, data })
}
// 删除库存余额
export const deleteBalance = async (id: number) => {
return await request.delete({ url: `/wms/balance/delete?id=` + id })
}
// 导出库存余额 Excel
export const exportBalance = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/balance/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/balance/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/balance/get-import-template' })
}
// 获得库位代码筛选出的库存余额分页
export const selectLocationTypeToBalance = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/balance/pageLocationCodeToBalanceSenior', data })
} else {
return request.get({ url: '/wms/balance/pageLocationCodeToBalance', params})
}
}

56
src/api/wms/barbasic/index.ts

@ -0,0 +1,56 @@
import request from '@/config/axios'
export interface BarbasicVO {
id: number
number: string
type: string
template: string
status: string
relateNumber: string
barcodeString: string
printTimes: number
lastPrintTime: string
lastPrintUserId: string
lastPrintUserName: string
}
// 查询条码实体基类列表
export const getBarbasicPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/barbasic/senior', data })
} else {
return await request.get({ url: `/wms/barbasic/page`, params })
}
}
// 查询条码实体基类详情
export const getBarbasic = async (id: number) => {
return await request.get({ url: `/wms/barbasic/get?id=` + id })
}
// 新增条码实体基类
export const createBarbasic = async (data: BarbasicVO) => {
return await request.post({ url: `/wms/barbasic/create`, data })
}
// 修改条码实体基类
export const updateBarbasic = async (data: BarbasicVO) => {
return await request.put({ url: `/wms/barbasic/update`, data })
}
// 删除条码实体基类
export const deleteBarbasic = async (id: number) => {
return await request.delete({ url: `/wms/barbasic/delete?id=` + id })
}
// 导出条码实体基类 Excel
export const exportBarbasic = async (params) => {
return await request.download({ url: `/wms/barbasic/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/barbasic/get-import-template' })
}

59
src/api/wms/barcode/index.ts

@ -0,0 +1,59 @@
import request from '@/config/axios'
export interface BarcodeVO {
id: number
code: string
name: string
description: string
order: number
length: number
prefixLenght: number
prefixChar: string
entityProperties: string
encyptMethod: string
masterId: number
trimEnd: string
isEncypt: string,
labelType: string,
}
// 查询条码片段列表
export const getBarcodePage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/label/barcode/senior', data })
} else {
return await request.get({ url: `/label/barcode/page`, params })
}
}
// 查询条码片段详情
export const getBarcode = async (id: number) => {
return await request.get({ url: `/label/barcode/get?id=` + id })
}
// 新增条码片段
export const createBarcode = async (data: BarcodeVO) => {
return await request.post({ url: `/label/barcode/create`, data })
}
// 修改条码片段
export const updateBarcode = async (data: BarcodeVO) => {
return await request.put({ url: `/label/barcode/update`, data })
}
// 删除条码片段
export const deleteBarcode = async (id: number) => {
return await request.delete({ url: `/label/barcode/delete?id=` + id })
}
// 导出条码片段 Excel
export const exportBarcode = async (params) => {
return await request.download({ url: `/label/barcode/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/label/barcode/get-import-template' })
}

61
src/api/wms/bom/index.ts

@ -0,0 +1,61 @@
import request from '@/config/axios'
export interface BomVO {
productItemCode: string
componentItemCode: string
componentUom: string
componentQty: number
processCode: string
version: string
layer: number
available: number
activeTime: Date
expireTime: Date
remark: string
}
// 查询物料清单列表
export const getBomPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/bom/senior', data })
} else {
return await request.get({ url: `/wms/bom/page`, params })
}
}
// 查询物料清单详情
export const getBom = async (id: number) => {
return await request.get({ url: `/wms/bom/get?id=` + id })
}
// 新增物料清单
export const createBom = async (data: BomVO) => {
return await request.post({ url: `/wms/bom/create`, data })
}
// 修改物料清单
export const updateBom = async (data: BomVO) => {
return await request.put({ url: `/wms/bom/update`, data })
}
// 删除物料清单
export const deleteBom = async (id: number) => {
return await request.delete({ url: `/wms/bom/delete?id=` + id })
}
// 导出物料清单 Excel
export const exportBom = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/bom/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/bom/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/bom/get-import-template' })
}

26
src/api/wms/bomDismantle/index.ts

@ -0,0 +1,26 @@
import request from '@/config/axios'
// 查询制品返修申请子列表
export const getBomDismantlePage = async (params) => {
return await request.get({ url: `/wms/productrepair-request-main/bomPage`, params })
}
// 查询制品返修记录子列表
export const getBomDismantleRecordPage = async (params) => {
return await request.get({ url: `/wms/productrepair-record-main/bomPage`, params })
}
// 查询制品报废申请子列表
export const getProductscrapBomDismantlePage = async (params) => {
return await request.get({ url: `/wms/productscrap-request-main/bomPage`, params })
}
// 查询制品报废申请子列表
export const getProductscrapBomDismantleRecordPage = async (params) => {
return await request.get({ url: `/wms/productscrap-record-main/bomPage`, params })
}
// 查询制品拆解申请子列表
export const getDetailbBomDismantlePage = async (params) => {
return await request.get({ url: `/wms/dismantle-request-detailb/bomPage`, params })
}

65
src/api/wms/businesstype/index.ts

@ -0,0 +1,65 @@
import request from '@/config/axios'
export interface BusinesstypeVO {
code: string
name: string
description: string
itemTypes: string
itemStatuses: string
outAreaTypes: string
inAreaTypes: string
outAreaCodes: string
inAreaCodes: string
outInventoryStatuses: string
inInventoryStatuses: string
outTransactionType: string
inTransactionType: string
onTheWayArea: string
activeTime: Date
expireTime: Date
remark: string
useOnTheWay: string
available: string
isSoftDeleted: string
}
// 查询业务类型列表
export const getBusinesstypePage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/businesstype/senior', data })
} else {
return await request.get({ url: `/wms/businesstype/page`, params })
}
}
// 查询业务类型详情
export const getBusinesstype = async (id: number) => {
return await request.get({ url: `/wms/businesstype/get?id=` + id })
}
// 新增业务类型
export const createBusinesstype = async (data: BusinesstypeVO) => {
return await request.post({ url: `/wms/businesstype/create`, data })
}
// 修改业务类型
export const updateBusinesstype = async (data: BusinesstypeVO) => {
return await request.put({ url: `/wms/businesstype/update`, data })
}
// 删除业务类型
export const deleteBusinesstype = async (id: number) => {
return await request.delete({ url: `/wms/businesstype/delete?id=` + id })
}
// 导出业务类型 Excel
export const exportBusinesstype = async (params) => {
return await request.download({ url: `/wms/businesstype/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/businesstype/get-import-template' })
}

53
src/api/wms/callmaterials/index.ts

@ -0,0 +1,53 @@
import request from '@/config/axios'
export interface CallmaterialsVO {
id: number
itemCode: string
batch: string
isRecive: string
packUnit: string
location: string
qty: number
uom: string
}
// 查询叫料标签列表
export const getCallmaterialsPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/callmaterials/senior', data })
} else {
return await request.get({ url: `/wms/callmaterials/page`, params })
}
}
// 查询叫料标签详情
export const getCallmaterials = async (id: number) => {
return await request.get({ url: `/wms/callmaterials/get?id=` + id })
}
// 新增叫料标签
export const createCallmaterials = async (data: CallmaterialsVO) => {
return await request.post({ url: `/wms/callmaterials/create`, data })
}
// 修改叫料标签
export const updateCallmaterials = async (data: CallmaterialsVO) => {
return await request.put({ url: `/wms/callmaterials/update`, data })
}
// 删除叫料标签
export const deleteCallmaterials = async (id: number) => {
return await request.delete({ url: `/wms/callmaterials/delete?id=` + id })
}
// 导出叫料标签 Excel
export const exportCallmaterials = async (params) => {
return await request.download({ url: `/wms/callmaterials/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/callmaterials/get-import-template' })
}

68
src/api/wms/carrier/index.ts

@ -0,0 +1,68 @@
import request from '@/config/axios'
export interface CarrierVO {
code: string
name: string
shortName: string
address: string
country: string
city: string
phone: string
fax: string
postId: string
contacts: string
bank: string
currency: string
taxRate: number
type: string
activeTime: Date
expireTime: Date
remark: string
available: string
}
// 查询承运商列表
export const getCarrierPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/carrier/senior', data })
} else {
return await request.get({ url: `/wms/carrier/page`, params })
}
}
// 查询承运商详情
export const getCarrier = async (id: number) => {
return await request.get({ url: `/wms/carrier/get?id=` + id })
}
// 新增承运商
export const createCarrier = async (data: CarrierVO) => {
return await request.post({ url: `/wms/carrier/create`, data })
}
// 修改承运商
export const updateCarrier = async (data: CarrierVO) => {
return await request.put({ url: `/wms/carrier/update`, data })
}
// 删除承运商
export const deleteCarrier = async (id: number) => {
return await request.delete({ url: `/wms/carrier/delete?id=` + id })
}
// 导出承运商 Excel
export const exportCarrier = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/carrier/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/carrier/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/carrier/get-import-template' })
}

56
src/api/wms/condition/index.ts

@ -0,0 +1,56 @@
import request from '@/config/axios'
export interface ConditionVO {
strategyCode: string
ruleCode: string
paramCode: string
operator: string
value: string
groupCode: string
}
// 查询条件列表
export const getConditionPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/condition/senior', data })
} else {
return await request.get({ url: `/wms/condition/page`, params })
}
}
// 查询条件详情
export const getCondition = async (id: number) => {
return await request.get({ url: `/wms/condition/get?id=` + id })
}
// 新增条件
export const createCondition = async (data: ConditionVO) => {
return await request.post({ url: `/wms/condition/create`, data })
}
// 修改条件
export const updateCondition = async (data: ConditionVO) => {
return await request.put({ url: `/wms/condition/update`, data })
}
// 删除条件
export const deleteCondition = async (id: number) => {
return await request.delete({ url: `/wms/condition/delete?id=` + id })
}
// 导出条件 Excel
export const exportCondition = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/condition/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/condition/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/condition/get-import-template' })
}

56
src/api/wms/configuration/index.ts

@ -0,0 +1,56 @@
import request from '@/config/axios'
export interface ConfigurationVO {
strategyCode: string
ruleCode: string
configurationCode: string
configurationValue: string
description: string
groupCode: string
}
// 查询配置列表
export const getConfigurationPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/configuration/senior', data })
} else {
return await request.get({ url: `/wms/configuration/page`, params })
}
}
// 查询配置详情
export const getConfiguration = async (id: number) => {
return await request.get({ url: `/wms/configuration/get?id=` + id })
}
// 新增配置
export const createConfiguration = async (data: ConfigurationVO) => {
return await request.post({ url: `/wms/configuration/create`, data })
}
// 修改配置
export const updateConfiguration = async (data: ConfigurationVO) => {
return await request.put({ url: `/wms/configuration/update`, data })
}
// 删除配置
export const deleteConfiguration = async (id: number) => {
return await request.delete({ url: `/wms/configuration/delete?id=` + id })
}
// 导出配置 Excel
export const exportConfiguration = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/configuration/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/configuration/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/configuration/get-import-template' })
}

58
src/api/wms/configurationsetting/index.ts

@ -0,0 +1,58 @@
import request from '@/config/axios'
export interface ConfigurationsettingVO {
strategyType: string
configurationCode: string
configurationName: string
dataType: string
valueScope: string
relatedTo: string
description: string
isRequired: string
}
// 查询配置设置列表
export const getConfigurationsettingPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/configurationsetting/senior', data })
} else {
return await request.get({ url: `/wms/configurationsetting/page`, params })
}
}
// 查询配置设置详情
export const getConfigurationsetting = async (id: number) => {
return await request.get({ url: `/wms/configurationsetting/get?id=` + id })
}
// 新增配置设置
export const createConfigurationsetting = async (data: ConfigurationsettingVO) => {
return await request.post({ url: `/wms/configurationsetting/create`, data })
}
// 修改配置设置
export const updateConfigurationsetting = async (data: ConfigurationsettingVO) => {
return await request.put({ url: `/wms/configurationsetting/update`, data })
}
// 删除配置设置
export const deleteConfigurationsetting = async (id: number) => {
return await request.delete({ url: `/wms/configurationsetting/delete?id=` + id })
}
// 导出配置设置 Excel
export const exportConfigurationsetting = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/configurationsetting/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/configurationsetting/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/configurationsetting/get-import-template' })
}

63
src/api/wms/consumeRecordDetailb/index.ts

@ -0,0 +1,63 @@
import request from '@/config/axios'
export interface ConsumeRecordDetailbVO {
batch: string
fromLocationCode: string
fromLocationGroupCode: string
fromAreaCode: string
inventoryStatus: string
packingNumber: string
number: string
itemCode: string
remark: string
createTime: Date
creator: string
itemName: string
itemDesc1: string
itemDesc2: string
projectCode: string
uom: string
code: string
interfaceType: string
}
// 查询制品返修记录子列表
export const getConsumeRecordDetailbPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/consume-record-detailb/senior', data })
} else {
return await request.get({ url: `/wms/consume-record-detailb/page`, params })
}
}
// 查询制品返修记录子详情
export const getConsumeRecordDetailb = async (id: number) => {
return await request.get({ url: `/wms/consume-record-detailb/get?id=` + id })
}
// 新增制品返修记录子
export const createConsumeRecordDetailb = async (data: ConsumeRecordDetailbVO) => {
return await request.post({ url: `/wms/consume-record-detailb/create`, data })
}
// 修改制品返修记录子
export const updateConsumeRecordDetailb = async (data: ConsumeRecordDetailbVO) => {
return await request.put({ url: `/wms/consume-record-detailb/update`, data })
}
// 删除制品返修记录子
export const deleteConsumeRecordDetailb = async (id: number) => {
return await request.delete({ url: `/wms/consume-record-detailb/delete?id=` + id })
}
// 导出制品返修记录子 Excel
export const exportConsumeRecordDetailb = async (params) => {
return await request.download({ url: `/wms/consume-record-detailb/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/consume-record-detailb/get-import-template' })
}

61
src/api/wms/consumereRequestDetailb/index.ts

@ -0,0 +1,61 @@
import request from '@/config/axios'
export interface ConsumereRequestDetailbVO {
inventoryStatus: string
packingNumber: string
batch: string
fromLocationCode: string
number: string
itemCode: string
remark: string
createTime: Date
creator: string
itemName: string
itemDesc1: string
itemDesc2: string
projectCode: string
uom: string
updateTime: Date
updater: string
}
// 查询制品返修申请子列表
export const getConsumereRequestDetailbPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/consumere-request-detailb/senior', data })
} else {
return await request.get({ url: `/wms/consumere-request-detailb/page`, params })
}
}
// 查询制品返修申请子详情
export const getConsumereRequestDetailb = async (id: number) => {
return await request.get({ url: `/wms/consumere-request-detailb/get?id=` + id })
}
// 新增制品返修申请子
export const createConsumereRequestDetailb = async (data: ConsumereRequestDetailbVO) => {
return await request.post({ url: `/wms/consumere-request-detailb/create`, data })
}
// 修改制品返修申请子
export const updateConsumereRequestDetailb = async (data: ConsumereRequestDetailbVO) => {
return await request.put({ url: `/wms/consumere-request-detailb/update`, data })
}
// 删除制品返修申请子
export const deleteConsumereRequestDetailb = async (id: number) => {
return await request.delete({ url: `/wms/consumere-request-detailb/delete?id=` + id })
}
// 导出制品返修申请子 Excel
export const exportConsumereRequestDetailb = async (params) => {
return await request.download({ url: `/wms/consumere-request-detailb/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/consumere-request-detailb/get-import-template' })
}

57
src/api/wms/containerBindRecordDetail/index.ts

@ -0,0 +1,57 @@
import request from '@/config/axios'
export interface ContainerBindRecordDetailVO {
id: number
containerContentType: string
contentNumber: string
itemCode: string
batch: string
inventoryStatus: string
uom: string
qty: number
masterId: number
number: string
siteId: string
remark: string
}
// 查询器具绑定记录子列表
export const getContainerBindRecordDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/container-bind-record-detail/senior', data })
} else {
return await request.get({ url: `/wms/container-bind-record-detail/page`, params })
}
}
// 查询器具绑定记录子详情
export const getContainerBindRecordDetail = async (id: number) => {
return await request.get({ url: `/wms/container-bind-record-detail/get?id=` + id })
}
// 新增器具绑定记录子
export const createContainerBindRecordDetail = async (data: ContainerBindRecordDetailVO) => {
return await request.post({ url: `/wms/container-bind-record-detail/create`, data })
}
// 修改器具绑定记录子
export const updateContainerBindRecordDetail = async (data: ContainerBindRecordDetailVO) => {
return await request.put({ url: `/wms/container-bind-record-detail/update`, data })
}
// 删除器具绑定记录子
export const deleteContainerBindRecordDetail = async (id: number) => {
return await request.delete({ url: `/wms/container-bind-record-detail/delete?id=` + id })
}
// 导出器具绑定记录子 Excel
export const exportContainerBindRecordDetail = async (params) => {
return await request.download({ url: `/wms/container-bind-record-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/container-bind-record-detail/get-import-template' })
}

69
src/api/wms/containerBindRecordMain/index.ts

@ -0,0 +1,69 @@
import request from '@/config/axios'
export interface ContainerBindRecordMainVO {
id: number
number: string
containerNumber: string
fromWarehouseCode: string
toWarehouseCode: string
outTransactionType: string
inTransactionType: string
executeTime: Date
activeDate: Date
available: string
requestTime: Date
dueTime: Date
departmentCode: string
userGroupCode: string
interfaceType: string
businessType: string
remark: string
extraProperties: string
siteId: string
code: string
fromAreaTypes: string
toAreaTypes: string
fromAreaCodes: string
toAreaCodes: string
}
// 查询器具绑定记录主列表
export const getContainerBindRecordMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/container-bind-record-main/senior', data })
} else {
return await request.get({ url: `/wms/container-bind-record-main/page`, params })
}
}
// 查询器具绑定记录主详情
export const getContainerBindRecordMain = async (id: number) => {
return await request.get({ url: `/wms/container-bind-record-main/get?id=` + id })
}
// 新增器具绑定记录主
export const createContainerBindRecordMain = async (data: ContainerBindRecordMainVO) => {
return await request.post({ url: `/wms/container-bind-record-main/create`, data })
}
// 修改器具绑定记录主
export const updateContainerBindRecordMain = async (data: ContainerBindRecordMainVO) => {
return await request.put({ url: `/wms/container-bind-record-main/update`, data })
}
// 删除器具绑定记录主
export const deleteContainerBindRecordMain = async (id: number) => {
return await request.delete({ url: `/wms/container-bind-record-main/delete?id=` + id })
}
// 导出器具绑定记录主 Excel
export const exportContainerBindRecordMain = async (params) => {
return await request.download({ url: `/wms/container-bind-record-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/container-bind-record-main/get-import-template' })
}

52
src/api/wms/containerDetail/index.ts

@ -0,0 +1,52 @@
import request from '@/config/axios'
export interface ContainerDetailVO {
containerContentType: string
contentNumber: string
itemCode: string
batch: string
inventoryStatus: string
uom: string
qty: number
}
// 查询器具子列表
export const getContainerDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/container-detail/senior', data })
} else {
return await request.get({ url: `/wms/container-detail/page`, params })
}
}
// 查询器具子详情
export const getContainerDetail = async (id: number) => {
return await request.get({ url: `/wms/container-detail/get?id=` + id })
}
// 新增器具子
export const createContainerDetail = async (data: ContainerDetailVO) => {
return await request.post({ url: `/wms/container-detail/create`, data })
}
// 修改器具子
export const updateContainerDetail = async (data: ContainerDetailVO) => {
return await request.put({ url: `/wms/container-detail/update`, data })
}
// 删除器具子
export const deleteContainerDetail = async (id: number) => {
return await request.delete({ url: `/wms/container-detail/delete?id=` + id })
}
// 导出器具子 Excel
export const exportContainerDetail = async (params) => {
return await request.download({ url: `/wms/container-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/container-detail/get-import-template' })
}

55
src/api/wms/containerInitRecordDetail/index.ts

@ -0,0 +1,55 @@
import request from '@/config/axios'
export interface ContainerInitRecordDetailVO {
id: number
containerNumber: string
type: string
capacity: number
status: string
ownerCode: string
masterId: number
number: string
siteId: string
remark: string
}
// 查询器具初始化记录子列表
export const getContainerInitRecordDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/container-init-record-detail/senior', data })
} else {
return await request.get({ url: `/wms/container-init-record-detail/page`, params })
}
}
// 查询器具初始化记录子详情
export const getContainerInitRecordDetail = async (id: number) => {
return await request.get({ url: `/wms/container-init-record-detail/get?id=` + id })
}
// 新增器具初始化记录子
export const createContainerInitRecordDetail = async (data: ContainerInitRecordDetailVO) => {
return await request.post({ url: `/wms/container-init-record-detail/create`, data })
}
// 修改器具初始化记录子
export const updateContainerInitRecordDetail = async (data: ContainerInitRecordDetailVO) => {
return await request.put({ url: `/wms/container-init-record-detail/update`, data })
}
// 删除器具初始化记录子
export const deleteContainerInitRecordDetail = async (id: number) => {
return await request.delete({ url: `/wms/container-init-record-detail/delete?id=` + id })
}
// 导出器具初始化记录子 Excel
export const exportContainerInitRecordDetail = async (params) => {
return await request.download({ url: `/wms/container-init-record-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/container-init-record-detail/get-import-template' })
}

68
src/api/wms/containerInitRecordMain/index.ts

@ -0,0 +1,68 @@
import request from '@/config/axios'
export interface ContainerInitRecordMainVO {
id: number
number: string
fromWarehouseCode: string
toWarehouseCode: string
outTransactionType: string
inTransactionType: string
executeTime: Date
activeDate: Date
available: string
requestTime: Date
dueTime: Date
departmentCode: string
userGroupCode: string
interfaceType: string
businessType: string
remark: string
extraProperties: string
siteId: string
code: string
fromAreaTypes: string
toAreaTypes: string
fromAreaCodes: string
toAreaCodes: string
}
// 查询器具初始化记录主列表
export const getContainerInitRecordMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/container-init-record-main/senior', data })
} else {
return await request.get({ url: `/wms/container-init-record-main/page`, params })
}
}
// 查询器具初始化记录主详情
export const getContainerInitRecordMain = async (id: number) => {
return await request.get({ url: `/wms/container-init-record-main/get?id=` + id })
}
// 新增器具初始化记录主
export const createContainerInitRecordMain = async (data: ContainerInitRecordMainVO) => {
return await request.post({ url: `/wms/container-init-record-main/create`, data })
}
// 修改器具初始化记录主
export const updateContainerInitRecordMain = async (data: ContainerInitRecordMainVO) => {
return await request.put({ url: `/wms/container-init-record-main/update`, data })
}
// 删除器具初始化记录主
export const deleteContainerInitRecordMain = async (id: number) => {
return await request.delete({ url: `/wms/container-init-record-main/delete?id=` + id })
}
// 导出器具初始化记录主 Excel
export const exportContainerInitRecordMain = async (params) => {
return await request.download({ url: `/wms/container-init-record-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/container-init-record-main/get-import-template' })
}

61
src/api/wms/containerMain/index.ts

@ -0,0 +1,61 @@
import request from '@/config/axios'
export interface ContainerMainVO {
id: string
number: string
type: string
capacity: number
status: string
ownerCode: string
}
// 查询器具主列表
export const getContainerMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/container-main/senior', data })
} else {
return await request.get({ url: `/wms/container-main/page`, params })
}
}
// 查询器具主详情
export const getContainerMain = async (id: number) => {
return await request.get({ url: `/wms/container-main/get?id=` + id })
}
// 新增器具主
export const createContainerMain = async (data: ContainerMainVO) => {
return await request.post({ url: `/wms/container-main/create`, data })
}
// 修改器具主
export const updateContainerMain = async (data: ContainerMainVO) => {
return await request.put({ url: `/wms/container-main/update`, data })
}
// 删除器具主
export const deleteContainerMain = async (id: number) => {
return await request.delete({ url: `/wms/container-main/delete?id=` + id })
}
// 导出器具主 Excel
export const exportContainerMain = async (params) => {
return await request.download({ url: `/wms/container-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/container-main/get-import-template' })
}
// 器具维修
export const repairSubmitContainerRequestMain = async (id) => {
return await request.put({ url: `/wms/container-main/repair?id=` + id })
}
// 器具报废
export const scrapSubmitContainerRequestMain = async (id) => {
return await request.put({ url: `/wms/container-main/scrap?id=` + id })
}

53
src/api/wms/containerRepairRecordDetail/index.ts

@ -0,0 +1,53 @@
import request from '@/config/axios'
export interface ContainerRepairRecordDetailVO {
id: number
containerNumber: string
fromContainerStatus: string
toContainerStatus: string
masterId: number
number: string
siteId: string
remark: string
}
// 查询器具维修记录子列表
export const getContainerRepairRecordDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/container-repair-record-detail/senior', data })
} else {
return await request.get({ url: `/wms/container-repair-record-detail/page`, params })
}
}
// 查询器具维修记录子详情
export const getContainerRepairRecordDetail = async (id: number) => {
return await request.get({ url: `/wms/container-repair-record-detail/get?id=` + id })
}
// 新增器具维修记录子
export const createContainerRepairRecordDetail = async (data: ContainerRepairRecordDetailVO) => {
return await request.post({ url: `/wms/container-repair-record-detail/create`, data })
}
// 修改器具维修记录子
export const updateContainerRepairRecordDetail = async (data: ContainerRepairRecordDetailVO) => {
return await request.put({ url: `/wms/container-repair-record-detail/update`, data })
}
// 删除器具维修记录子
export const deleteContainerRepairRecordDetail = async (id: number) => {
return await request.delete({ url: `/wms/container-repair-record-detail/delete?id=` + id })
}
// 导出器具维修记录子 Excel
export const exportContainerRepairRecordDetail = async (params) => {
return await request.download({ url: `/wms/container-repair-record-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/container-repair-record-detail/get-import-template' })
}

69
src/api/wms/containerRepairRecordMain/index.ts

@ -0,0 +1,69 @@
import request from '@/config/axios'
export interface ContainerRepairRecordMainVO {
id: number
number: string
containerNumber: string
fromWarehouseCode: string
toWarehouseCode: string
outTransactionType: string
inTransactionType: string
executeTime: Date
activeDate: Date
available: string
requestTime: Date
dueTime: Date
departmentCode: string
userGroupCode: string
interfaceType: string
businessType: string
remark: string
extraProperties: string
siteId: string
code: string
fromAreaTypes: string
toAreaTypes: string
fromAreaCodes: string
toAreaCodes: string
}
// 查询器具维修记录主列表
export const getContainerRepairRecordMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/container-repair-record-main/senior', data })
} else {
return await request.get({ url: `/wms/container-repair-record-main/page`, params })
}
}
// 查询器具维修记录主详情
export const getContainerRepairRecordMain = async (id: number) => {
return await request.get({ url: `/wms/container-repair-record-main/get?id=` + id })
}
// 新增器具维修记录主
export const createContainerRepairRecordMain = async (data: ContainerRepairRecordMainVO) => {
return await request.post({ url: `/wms/container-repair-record-main/create`, data })
}
// 修改器具维修记录主
export const updateContainerRepairRecordMain = async (data: ContainerRepairRecordMainVO) => {
return await request.put({ url: `/wms/container-repair-record-main/update`, data })
}
// 删除器具维修记录主
export const deleteContainerRepairRecordMain = async (id: number) => {
return await request.delete({ url: `/wms/container-repair-record-main/delete?id=` + id })
}
// 导出器具维修记录主 Excel
export const exportContainerRepairRecordMain = async (params) => {
return await request.download({ url: `/wms/container-repair-record-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/container-repair-record-main/get-import-template' })
}

57
src/api/wms/containerUnbindRecordDetail/index.ts

@ -0,0 +1,57 @@
import request from '@/config/axios'
export interface ContainerUnbindRecordDetailVO {
id: number
containerContentType: string
contentNumber: string
itemCode: string
batch: string
inventoryStatus: string
uom: string
qty: number
masterId: number
number: string
siteId: string
remark: string
}
// 查询器具解绑记录子列表
export const getContainerUnbindRecordDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/container-unbind-record-detail/senior', data })
} else {
return await request.get({ url: `/wms/container-unbind-record-detail/page`, params })
}
}
// 查询器具解绑记录子详情
export const getContainerUnbindRecordDetail = async (id: number) => {
return await request.get({ url: `/wms/container-unbind-record-detail/get?id=` + id })
}
// 新增器具解绑记录子
export const createContainerUnbindRecordDetail = async (data: ContainerUnbindRecordDetailVO) => {
return await request.post({ url: `/wms/container-unbind-record-detail/create`, data })
}
// 修改器具解绑记录子
export const updateContainerUnbindRecordDetail = async (data: ContainerUnbindRecordDetailVO) => {
return await request.put({ url: `/wms/container-unbind-record-detail/update`, data })
}
// 删除器具解绑记录子
export const deleteContainerUnbindRecordDetail = async (id: number) => {
return await request.delete({ url: `/wms/container-unbind-record-detail/delete?id=` + id })
}
// 导出器具解绑记录子 Excel
export const exportContainerUnbindRecordDetail = async (params) => {
return await request.download({ url: `/wms/container-unbind-record-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/container-unbind-record-detail/get-import-template' })
}

69
src/api/wms/containerUnbindRecordMain/index.ts

@ -0,0 +1,69 @@
import request from '@/config/axios'
export interface ContainerUnbindRecordMainVO {
id: number
number: string
containerNumber: string
fromWarehouseCode: string
toWarehouseCode: string
outTransactionType: string
inTransactionType: string
executeTime: Date
activeDate: Date
available: string
requestTime: Date
dueTime: Date
departmentCode: string
userGroupCode: string
interfaceType: string
businessType: string
remark: string
extraProperties: string
siteId: string
code: string
fromAreaTypes: string
toAreaTypes: string
fromAreaCodes: string
toAreaCodes: string
}
// 查询器具解绑记录主列表
export const getContainerUnbindRecordMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/container-unbind-record-main/senior', data })
} else {
return await request.get({ url: `/wms/container-unbind-record-main/page`, params })
}
}
// 查询器具解绑记录主详情
export const getContainerUnbindRecordMain = async (id: number) => {
return await request.get({ url: `/wms/container-unbind-record-main/get?id=` + id })
}
// 新增器具解绑记录主
export const createContainerUnbindRecordMain = async (data: ContainerUnbindRecordMainVO) => {
return await request.post({ url: `/wms/container-unbind-record-main/create`, data })
}
// 修改器具解绑记录主
export const updateContainerUnbindRecordMain = async (data: ContainerUnbindRecordMainVO) => {
return await request.put({ url: `/wms/container-unbind-record-main/update`, data })
}
// 删除器具解绑记录主
export const deleteContainerUnbindRecordMain = async (id: number) => {
return await request.delete({ url: `/wms/container-unbind-record-main/delete?id=` + id })
}
// 导出器具解绑记录主 Excel
export const exportContainerUnbindRecordMain = async (params) => {
return await request.download({ url: `/wms/container-unbind-record-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/container-unbind-record-main/get-import-template' })
}

62
src/api/wms/countJobDetail/index.ts

@ -0,0 +1,62 @@
import request from '@/config/axios'
export interface CountJobDetailVO {
countDetailNumber: string
ownerCode: string
packingNumber: string
containerNumber: string
batch: string
inventoryStatus: string
itemCode: string
itemName: string
itemDesc1: string
itemDesc2: string
projectCode: string
qty: number
uom: string
number: string
remark: string
createTime: Date
creator: string
}
// 查询盘点任务子列表
export const getCountJobDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/count-job-detail/senior', data })
} else {
return await request.get({ url: `/wms/count-job-detail/page`, params })
}
}
// 查询盘点任务子详情
export const getCountJobDetail = async (id: number) => {
return await request.get({ url: `/wms/count-job-detail/get?id=` + id })
}
// 新增盘点任务子
export const createCountJobDetail = async (data: CountJobDetailVO) => {
return await request.post({ url: `/wms/count-job-detail/create`, data })
}
// 修改盘点任务子
export const updateCountJobDetail = async (data: CountJobDetailVO) => {
return await request.put({ url: `/wms/count-job-detail/update`, data })
}
// 删除盘点任务子
export const deleteCountJobDetail = async (id: number) => {
return await request.delete({ url: `/wms/count-job-detail/delete?id=` + id })
}
// 导出盘点任务子 Excel
export const exportCountJobDetail = async (params) => {
return await request.download({ url: `/wms/count-job-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/count-job-detail/get-import-template' })
}

93
src/api/wms/countJobMain/index.ts

@ -0,0 +1,93 @@
import request from '@/config/axios'
export interface CountJobMainVO {
requestNumber: string
planNumber: string
stage: string
warehouseCode: string
locationCode: string
requestTime: Date
requestDueTime: Date
status: string
expiredTime: Date
updateTime: Date
updater: string
jobStageStatus: string
priority: number
priorityIncrement: number
departmentCode: string
acceptUserId: string
acceptTime: Date
completeUserId: string
completeTime: Date
fromAreaTypes: string
toAreaTypes: string
number: string
businessType: string
remark: string
createTime: Date
creator: string
siteId: string
autoComplete: string
allowModifyLocation: string
allowModifyQty: string
allowBiggerQty: string
allowSmallerQty: string
allowModifInventoryStatus: string
allowContinuousScanning: string
allowPartialComplete: string
allowModifyBatch: string
allowModifyPackingNumber: string
}
// 查询盘点任务主列表
export const getCountJobMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/count-job-main/senior', data })
} else {
return await request.get({ url: `/wms/count-job-main/page`, params })
}
}
// 查询盘点任务主详情
export const getCountJobMain = async (id: number) => {
return await request.get({ url: `/wms/count-job-main/get?id=` + id })
}
// 新增盘点任务主
export const createCountJobMain = async (data: CountJobMainVO) => {
return await request.post({ url: `/wms/count-job-main/create`, data })
}
// 修改盘点任务主
export const updateCountJobMain = async (data: CountJobMainVO) => {
return await request.put({ url: `/wms/count-job-main/update`, data })
}
// 删除盘点任务主
export const deleteCountJobMain = async (id: number) => {
return await request.delete({ url: `/wms/count-job-main/delete?id=` + id })
}
// 导出盘点任务主 Excel
export const exportCountJobMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/count-job-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/count-job-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/count-job-main/get-import-template' })
}
// 关闭盘点任务主
export const closeCountJobMain = (id: number) => {
return request.download({ url: '/wms/count-job-main/close?id=' + id })
}

52
src/api/wms/countPlanDetail/index.ts

@ -0,0 +1,52 @@
import request from '@/config/axios'
export interface CountPlanDetailVO {
type: string
value: string
number: string
itemCode: string
remark: string
createTime: Date
creator: string
planQty: number
uom: string
updateTime: Date
updater: string
available: string
}
// 查询盘点计划子列表
export const getCountPlanDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/count-plan-detail/senior', data })
} else {
return await request.get({ url: `/wms/count-plan-detail/page`, params })
}
}
// 查询盘点计划子详情
export const getCountPlanDetail = async (id: number) => {
return await request.get({ url: `/wms/count-plan-detail/get?id=` + id })
}
// 新增盘点计划子
export const createCountPlanDetail = async (data: CountPlanDetailVO) => {
return await request.post({ url: `/wms/count-plan-detail/create`, data })
}
// 修改盘点计划子
export const updateCountPlanDetail = async (data: CountPlanDetailVO) => {
return await request.put({ url: `/wms/count-plan-detail/update`, data })
}
// 删除盘点计划子
export const deleteCountPlanDetail = async (id: number) => {
return await request.delete({ url: `/wms/count-plan-detail/delete?id=` + id })
}
// 导出盘点计划子 Excel
export const exportCountPlanDetail = async (params) => {
return await request.download({ url: `/wms/count-plan-detail/export-excel`, params })
}

110
src/api/wms/countPlanMain/index.ts

@ -0,0 +1,110 @@
import request from '@/config/axios'
export interface CountPlanMainVO {
type: string
crontab: string
dimension: string
limitedValue: number
ignoreListOfItem: string
ignoreListOfLocation: string
scopeList: string
number: string
businessType: string
remark: string
createTime: Date
creator: string
beginTime: Date
endTime: Date
status: string
updateTime: Date
updater: string
isSnapshot: string
isFreeze: string
isCountEmptyLocation: string
isCountZeroInventory: string
isCountNegativeInventory: string
isOpenCount: string
available: string
}
// 查询盘点计划主列表
export const getCountPlanMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/count-plan-main/senior', data })
} else {
return await request.get({ url: `/wms/count-plan-main/page`, params })
}
}
// 查询盘点计划主详情
export const getCountPlanMain = async (id: number) => {
return await request.get({ url: `/wms/count-plan-main/get?id=` + id })
}
// 新增盘点计划主
export const createCountPlanMain = async (data: CountPlanMainVO) => {
return await request.post({ url: `/wms/count-plan-main/create`, data })
}
// 修改盘点计划主
export const updateCountPlanMain = async (data: CountPlanMainVO) => {
return await request.put({ url: `/wms/count-plan-main/update`, data })
}
// 删除盘点计划主
export const deleteCountPlanMain = async (id: number) => {
return await request.delete({ url: `/wms/count-plan-main/delete?id=` + id })
}
// 导出盘点计划主 Excel
export const exportCountPlanMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/count-plan-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/count-plan-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/count-plan-main/get-import-template' })
}
// 关闭
export const close = (id) => {
return request.put({ url: '/wms/count-plan-main/close?id=' + id })
}
// 提交审批
export const submit = (id) => {
return request.put({ url: '/wms/count-plan-main/submit?id=' + id })
}
// 打开
export const open = (id) => {
return request.put({ url: '/wms/count-plan-main/open?id=' + id })
}
// 驳回
export const reject = (id) => {
return request.put({ url: '/wms/count-plan-main/reject?id=' + id })
}
// 通过
export const agree = (id) => {
return request.put({ url: '/wms/count-plan-main/agree?id=' + id })
}
// 发布
export const publish = (id) => {
return request.put({ url: '/wms/count-plan-main/publish?id=' + id })
}
// 重置
export const resetting = (id) => {
return request.put({ url: '/wms/count-plan-main/resetting?id=' + id })
}

72
src/api/wms/countRecordDetail/index.ts

@ -0,0 +1,72 @@
import request from '@/config/axios'
export interface CountRecordDetailVO {
countDetailNumber: string
ownerCode: string
packingNumber: string
containerNumber: string
batch: string
locationCode: string
locationGroupCode: string
areaCode: string
inventoryStatus: string
countQty: number
countTime: Date
countUser: string
countDescription: string
itemName: string
itemDesc1: string
itemDesc2: string
projectCode: string
qty: number
uom: string
code: string
interfaceType: string
number: string
itemCode: string
remark: string
createTime: Date
creatorId: string
jobDetailId: string
}
// 查询盘点记录子列表
export const getCountRecordDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/count-record-detail/senior', data })
} else {
return await request.get({ url: `/wms/count-record-detail/page`, params })
}
}
// 查询盘点记录子详情
export const getCountRecordDetail = async (id: number) => {
return await request.get({ url: `/wms/count-record-detail/get?id=` + id })
}
// 新增盘点记录子
export const createCountRecordDetail = async (data: CountRecordDetailVO) => {
return await request.post({ url: `/wms/count-record-detail/create`, data })
}
// 修改盘点记录子
export const updateCountRecordDetail = async (data: CountRecordDetailVO) => {
return await request.put({ url: `/wms/count-record-detail/update`, data })
}
// 删除盘点记录子
export const deleteCountRecordDetail = async (id: number) => {
return await request.delete({ url: `/wms/count-record-detail/delete?id=` + id })
}
// 导出盘点记录子 Excel
export const exportCountRecordDetail = async (params) => {
return await request.download({ url: `/wms/count-record-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/count-record-detail/get-import-template' })
}

76
src/api/wms/countRecordMain/index.ts

@ -0,0 +1,76 @@
import request from '@/config/axios'
export interface CountRecordMainVO {
requestNumber: string
jobNumber: string
planNumber: string
stage: string
warehouseCode: string
outTransactionType: string
inTransactionType: string
executeTime: Date
activeDate: Date
requestTime: Date
dueTime: Date
departmentCode: string
interfaceType: string
code: string
number: string
businessType: string
remark: string
createTime: Date
creator: string
available: string
}
// 查询盘点记录主列表
export const getCountRecordMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/count-record-main/senior', data })
} else {
return await request.get({ url: `/wms/count-record-main/page`, params })
}
}
// 查询盘点记录主详情
export const getCountRecordMain = async (id: number) => {
return await request.get({ url: `/wms/count-record-main/get?id=` + id })
}
// 新增盘点记录主
export const createCountRecordMain = async (data: CountRecordMainVO) => {
return await request.post({ url: `/wms/count-record-main/create`, data })
}
// 修改盘点记录主
export const updateCountRecordMain = async (data: CountRecordMainVO) => {
return await request.put({ url: `/wms/count-record-main/update`, data })
}
// 删除盘点记录主
export const deleteCountRecordMain = async (id: number) => {
return await request.delete({ url: `/wms/count-record-main/delete?id=` + id })
}
// 导出盘点记录主 Excel
export const exportCountRecordMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/count-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/count-record-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/count-record-main/get-import-template' })
}
// 生成盘点调整
export const generateCountRecordMain = async (id) => {
return await request.put({ url: `/wms/count-record-main/generate?id=` + id})
}

67
src/api/wms/countRequestDetail/index.ts

@ -0,0 +1,67 @@
import request from '@/config/axios'
export interface CountRequestDetailVO {
countDetailNumber: string
ownerCode: string
batch: string
locationCode: string
inventoryStatus: string
number: string
remark: string
createTime: Date
creator: string
itemName: string
itemDesc1: string
itemDesc2: string
projectCode: string
qty: number
uom: string
updateTime: Date
updater: string
itemCode: string
fromPackingNumber: string
toPackingNumber: string
fromContainerNumber: string
toContainerNumber: string
}
// 查询盘点申请子列表
export const getCountRequestDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/count-request-detail/senior', data })
} else {
return await request.get({ url: `/wms/count-request-detail/page`, params })
}
}
// 查询盘点申请子详情
export const getCountRequestDetail = async (id: number) => {
return await request.get({ url: `/wms/count-request-detail/get?id=` + id })
}
// 新增盘点申请子
export const createCountRequestDetail = async (data: CountRequestDetailVO) => {
return await request.post({ url: `/wms/count-request-detail/create`, data })
}
// 修改盘点申请子
export const updateCountRequestDetail = async (data: CountRequestDetailVO) => {
return await request.put({ url: `/wms/count-request-detail/update`, data })
}
// 删除盘点申请子
export const deleteCountRequestDetail = async (id: number) => {
return await request.delete({ url: `/wms/count-request-detail/delete?id=` + id })
}
// 导出盘点申请子 Excel
export const exportCountRequestDetail = async (params) => {
return await request.download({ url: `/wms/count-request-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/count-request-detail/get-import-template' })
}

118
src/api/wms/countRequestMain/index.ts

@ -0,0 +1,118 @@
import request from '@/config/axios'
export interface CountRequestMainVO {
requestNumber: string
planNumber: string
stage: string
warehouseCode: string
number: string
businessType: string
remark: string
createTime: Date
creator: string
requestTime: Date
dueTime: Date
departmentCode: string
status: string
updateTime: Date
updater: string
autoCommit: string
autoAgree: string
autoExecute: string
directCreateRecord: string
}
// 查询盘点申请主列表
export const getCountRequestMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/count-request-main/senior', data })
} else {
return await request.get({ url: `/wms/count-request-main/page`, params })
}
}
// 查询盘点申请主详情
export const getCountRequestMain = async (id: number) => {
return await request.get({ url: `/wms/count-request-main/get?id=` + id })
}
// 新增盘点申请主
export const createCountRequestMain = async (data: CountRequestMainVO) => {
return await request.post({ url: `/wms/count-request-main/create`, data })
}
// 修改盘点申请主
export const updateCountRequestMain = async (data: CountRequestMainVO) => {
return await request.put({ url: `/wms/count-request-main/update`, data })
}
// 删除盘点申请主
export const deleteCountRequestMain = async (id: number) => {
return await request.delete({ url: `/wms/count-request-main/delete?id=` + id })
}
// 导出盘点申请主 Excel
export const exportCountRequestMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/count-request-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/count-request-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/count-request-main/get-import-template' })
}
// 关闭盘点申请主 Excel
export const close = async (id) => {
return await request.put({ url: `/wms/count-request-main/close?id=` + id })
}
// 重新添加盘点申请主 Excel
export const reAdd = async (id) => {
return await request.put({ url: `/wms/count-request-main/reAdd?id=` + id })
}
// 提交盘点申请主 Excel
export const submit = async (id) => {
return await request.put({ url: `/wms/count-request-main/submit?id=` + id })
}
// 审批通过盘点申请主 Excel
export const agree = async (id) => {
return await request.put({ url: `/wms/count-request-main/agree?id=` + id })
}
// 审批驳回盘点申请主 Excel
export const refused = async (id) => {
return await request.put({ url: `/wms/count-request-main/refused?id=` + id })
}
// 处理盘点申请主 Excel
export const handle = async (id) => {
return await request.put({ url: `/wms/count-request-main/handle?id=` + id })
}
//重盘
export const reCount = async (data) => {
return await request.put({ url: `/wms/count-request-main/reCount`,data})
}
//监盘
export const superviseCount = async (data) => {
return await request.put({ url: `/wms/count-request-main/supervise`,data})
}
//生成盘点调整申请
export const generateCountadjustRequest = async (id) => {
return await request.put({ url: `/wms/count-request-main/generateCountadjustRequest?id=` + id })
}
//解冻
export const thaw = async (id) => {
return await request.put({ url: `/wms/count-request-main/thaw?id=` + id })
}

69
src/api/wms/countadjustRecordDetail/index.ts

@ -0,0 +1,69 @@
import request from '@/config/axios'
export interface CountadjustRecordDetailVO {
countDetailNumber: string
ownerCode: string
packingNumber: string
containerNumber: string
batch: string
locationCode: string
inventoryStatus: string
inventoryQty: number
countQty: number
adjustQty: number
itemName: string
itemDesc1: string
itemDesc2: string
projectCode: string
qty: number
uom: string
code: string
interfaceType: string
number: string
itemCode: string
remark: string
createTime: Date
creator: string
jobDetailId: string
}
// 查询盘点调整记录子列表
export const getCountadjustRecordDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/countadjust-record-detail/senior', data })
} else {
return await request.get({ url: `/wms/countadjust-record-detail/page`, params })
}
}
// 查询盘点调整记录子详情
export const getCountadjustRecordDetail = async (id: number) => {
return await request.get({ url: `/wms/countadjust-record-detail/get?id=` + id })
}
// 新增盘点调整记录子
export const createCountadjustRecordDetail = async (data: CountadjustRecordDetailVO) => {
return await request.post({ url: `/wms/countadjust-record-detail/create`, data })
}
// 修改盘点调整记录子
export const updateCountadjustRecordDetail = async (data: CountadjustRecordDetailVO) => {
return await request.put({ url: `/wms/countadjust-record-detail/update`, data })
}
// 删除盘点调整记录子
export const deleteCountadjustRecordDetail = async (id: number) => {
return await request.delete({ url: `/wms/countadjust-record-detail/delete?id=` + id })
}
// 导出盘点调整记录子 Excel
export const exportCountadjustRecordDetail = async (params) => {
return await request.download({ url: `/wms/countadjust-record-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/countadjust-record-detail/get-import-template' })
}

69
src/api/wms/countadjustRecordMain/index.ts

@ -0,0 +1,69 @@
import request from '@/config/axios'
export interface CountadjustRecordMainVO {
requestNumber: string
countRecordNumber: string
warehouseCode: string
outTransactionType: string
inTransactionType: string
executeTime: Date
activeDate: Date
requestTime: Date
dueTime: Date
departmentCode: string
interfaceType: string
code: string
number: string
businessType: string
remark: string
createTime: Date
creator: string
available: string
}
// 查询盘点调整记录主列表
export const getCountadjustRecordMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/countadjust-record-main/senior', data })
} else {
return await request.get({ url: `/wms/countadjust-record-main/page`, params })
}
}
// 查询盘点调整记录主详情
export const getCountadjustRecordMain = async (id: number) => {
return await request.get({ url: `/wms/countadjust-record-main/get?id=` + id })
}
// 新增盘点调整记录主
export const createCountadjustRecordMain = async (data: CountadjustRecordMainVO) => {
return await request.post({ url: `/wms/countadjust-record-main/create`, data })
}
// 修改盘点调整记录主
export const updateCountadjustRecordMain = async (data: CountadjustRecordMainVO) => {
return await request.put({ url: `/wms/countadjust-record-main/update`, data })
}
// 删除盘点调整记录主
export const deleteCountadjustRecordMain = async (id: number) => {
return await request.delete({ url: `/wms/countadjust-record-main/delete?id=` + id })
}
// 导出盘点调整记录主 Excel
export const exportCountadjustRecordMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/countadjust-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/countadjust-record-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/countadjust-record-main/get-import-template' })
}

68
src/api/wms/countadjustRequestDetail/index.ts

@ -0,0 +1,68 @@
import request from '@/config/axios'
export interface CountadjustRequestDetailVO {
countDetailNumber: string
ownerlCode: string
packinglNumber: string
containerlNumber: string
batch: string
locationlCode: string
inventorylStatus: string
inventorylQty: number
countlQty: number
adjustlQty: number
number: string
remark: string
createTime: Date
creator: string
itemlName: string
itemlDesc1: string
itemlDesc2: string
projectlCode: string
qty: number
uom: string
updateTime: Date
updater: string
itemlCode: string
}
// 查询盘点调整申请子列表
export const getCountadjustRequestDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/countadjust-request-detail/senior', data })
} else {
return await request.get({ url: `/wms/countadjust-request-detail/page`, params })
}
}
// 查询盘点调整申请子详情
export const getCountadjustRequestDetail = async (id: number) => {
return await request.get({ url: `/wms/countadjust-request-detail/get?id=` + id })
}
// 新增盘点调整申请子
export const createCountadjustRequestDetail = async (data: CountadjustRequestDetailVO) => {
return await request.post({ url: `/wms/countadjust-request-detail/create`, data })
}
// 修改盘点调整申请子
export const updateCountadjustRequestDetail = async (data: CountadjustRequestDetailVO) => {
return await request.put({ url: `/wms/countadjust-request-detail/update`, data })
}
// 删除盘点调整申请子
export const deleteCountadjustRequestDetail = async (id: number) => {
return await request.delete({ url: `/wms/countadjust-request-detail/delete?id=` + id })
}
// 导出盘点调整申请子 Excel
export const exportCountadjustRequestDetail = async (params) => {
return await request.download({ url: `/wms/countadjust-request-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/countadjust-request-detail/get-import-template' })
}

99
src/api/wms/countadjustRequestMain/index.ts

@ -0,0 +1,99 @@
import request from '@/config/axios'
export interface CountadjustRequestMainVO {
requestNumber: string
countRecordNumber: string
warehouseCode: string
number: string
businessType: string
remark: string
createTime: Date
creator: string
requestTime: Date
dueTime: Date
departmentCode: string
status: string
updateTime: Date
updater: string
autoCommit: string
autoAgree: string
autoExecute: string
directCreateRecord: string
}
// 查询盘点调整申请主列表
export const getCountadjustRequestMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/countadjust-request-main/senior', data })
} else {
return await request.get({ url: `/wms/countadjust-request-main/page`, params })
}
}
// 查询盘点调整申请主详情
export const getCountadjustRequestMain = async (id: number) => {
return await request.get({ url: `/wms/countadjust-request-main/get?id=` + id })
}
// 新增盘点调整申请主
export const createCountadjustRequestMain = async (data: CountadjustRequestMainVO) => {
return await request.post({ url: `/wms/countadjust-request-main/create`, data })
}
// 修改盘点调整申请主
export const updateCountadjustRequestMain = async (data: CountadjustRequestMainVO) => {
return await request.put({ url: `/wms/countadjust-request-main/update`, data })
}
// 删除盘点调整申请主
export const deleteCountadjustRequestMain = async (id: number) => {
return await request.delete({ url: `/wms/countadjust-request-main/delete?id=` + id })
}
// 导出盘点调整申请主 Excel
export const exportCountadjustRequestMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/countadjust-request-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/countadjust-request-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/countadjust-request-main/get-import-template' })
}
// 关闭盘点申请主 Excel
export const close = async (id) => {
return await request.put({ url: `/wms/countadjust-request-main/close?id=` + id })
}
// 重新添加盘点申请主 Excel
export const reAdd = async (id) => {
return await request.put({ url: `/wms/countadjust-request-main/reAdd?id=` + id })
}
// 提交盘点申请主 Excel
export const submit = async (id) => {
return await request.put({ url: `/wms/countadjust-request-main/submit?id=` + id })
}
// 审批通过盘点申请主 Excel
export const agree = async (id) => {
return await request.put({ url: `/wms/countadjust-request-main/agree?id=` + id })
}
// 审批驳回盘点申请主 Excel
export const refused = async (id) => {
return await request.put({ url: `/wms/countadjust-request-main/refused?id=` + id })
}
// 处理盘点申请主 Excel
export const handle = async (id) => {
return await request.put({ url: `/wms/countadjust-request-main/handle?id=` + id })
}

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

Loading…
Cancel
Save