李达明 3 weeks ago
parent
commit
0bf6f46d48
  1. 19
      .editorconfig
  2. 17
      .env
  3. 54
      .env.prod
  4. 50
      .env.test
  5. 50
      .env.test-scp
  6. 64
      .env.wyf
  7. 8
      .eslintignore
  8. 259
      .eslintrc-auto-import.json
  9. 75
      .eslintrc.js
  10. 15
      .gitignore
  11. 11
      .prettierignore
  12. 6
      .stylelintignore
  13. 7
      Dockerfile
  14. 7
      Dockerfile_prod
  15. 7
      Dockerfile_scp
  16. 21
      LICENSE
  17. 107
      build/vite/index.ts
  18. 112
      build/vite/optimize.ts
  19. 147
      index.html
  20. 53
      nginx.conf
  21. 101
      nginx_prod.conf
  22. 53
      nginx_scp.conf
  23. 140
      package.json
  24. 5
      postcss.config.js
  25. 22
      prettier.config.js
  26. BIN
      public/favicon.ico
  27. BIN
      public/home.png
  28. BIN
      public/logo.gif
  29. 20
      public/systemConfig.js
  30. 29
      qodana.yaml
  31. 75
      src/App.vue
  32. 8
      src/api/bpm/activity/index.ts
  33. 21
      src/api/bpm/definition/index.ts
  34. 56
      src/api/bpm/form/index.ts
  35. 27
      src/api/bpm/leave/index.ts
  36. 59
      src/api/bpm/model/index.ts
  37. 41
      src/api/bpm/processInstance/index.ts
  38. 53
      src/api/bpm/task/index.ts
  39. 29
      src/api/bpm/taskAssignRule/index.ts
  40. 47
      src/api/bpm/userGroup/index.ts
  41. 46
      src/api/eam/adjustRecordDetail/index.ts
  42. 46
      src/api/eam/adjustRecordMain/index.ts
  43. 57
      src/api/eam/applicationRecordDetail/index.ts
  44. 67
      src/api/eam/applicationRecordMain/index.ts
  45. 20
      src/api/eam/attachmentFileUpload/index.ts
  46. 73
      src/api/eam/basicEamProductionline/index.ts
  47. 75
      src/api/eam/basicEamWorkshop/index.ts
  48. 68
      src/api/eam/basicFaultCause/index.ts
  49. 67
      src/api/eam/basicFaultType/index.ts
  50. 64
      src/api/eam/basicInspectionOption/index.ts
  51. 64
      src/api/eam/basicMaintenanceOption/index.ts
  52. 63
      src/api/eam/basicSpotCheckOption/index.ts
  53. 70
      src/api/eam/classTypeRole/index.ts
  54. 51
      src/api/eam/countJobDetail/index.ts
  55. 56
      src/api/eam/countJobMain/index.ts
  56. 51
      src/api/eam/countRecordDetail/index.ts
  57. 61
      src/api/eam/countRecordMain/index.ts
  58. 51
      src/api/eam/countadjustPlan/index.ts
  59. 67
      src/api/eam/documentType/index.ts
  60. 60
      src/api/eam/documentTypeSelectSet/index.ts
  61. 90
      src/api/eam/equipmentAccounts/index.ts
  62. 60
      src/api/eam/equipmentInspectionDetail/index.ts
  63. 104
      src/api/eam/equipmentInspectionMain/index.ts
  64. 60
      src/api/eam/equipmentInspectionRecordDetail/index.ts
  65. 79
      src/api/eam/equipmentInspectionRecordMain/index.ts
  66. 72
      src/api/eam/equipmentMainPart/index.ts
  67. 69
      src/api/eam/equipmentMaintenanceDetail/index.ts
  68. 111
      src/api/eam/equipmentMaintenanceMain/index.ts
  69. 65
      src/api/eam/equipmentMaintenanceRecordDetail/index.ts
  70. 74
      src/api/eam/equipmentMaintenanceRecordMain/index.ts
  71. 73
      src/api/eam/equipmentManufacturer/index.ts
  72. 59
      src/api/eam/equipmentRepairJobDetail/index.ts
  73. 122
      src/api/eam/equipmentRepairJobMain/index.ts
  74. 59
      src/api/eam/equipmentRepairRecordDetail/index.ts
  75. 85
      src/api/eam/equipmentRepairRecordMain/index.ts
  76. 93
      src/api/eam/equipmentReportRepairRequest/index.ts
  77. 61
      src/api/eam/equipmentShutdown/index.ts
  78. 76
      src/api/eam/equipmentSigning/index.ts
  79. 62
      src/api/eam/equipmentSpotCheckDetail/index.ts
  80. 103
      src/api/eam/equipmentSpotCheckMain/index.ts
  81. 62
      src/api/eam/equipmentSpotCheckRecordDetail/index.ts
  82. 79
      src/api/eam/equipmentSpotCheckRecordMain/index.ts
  83. 73
      src/api/eam/equipmentSupplier/index.ts
  84. 68
      src/api/eam/equipmentToolSparePart/index.ts
  85. 65
      src/api/eam/equipmentTransferRecord/index.ts
  86. 68
      src/api/eam/inspectionItem/index.ts
  87. 70
      src/api/eam/inspectionItemSelectSet/index.ts
  88. 80
      src/api/eam/item/index.ts
  89. 63
      src/api/eam/itemAccounts/index.ts
  90. 57
      src/api/eam/itemApplyDetail/index.ts
  91. 63
      src/api/eam/itemApplyMain/index.ts
  92. 65
      src/api/eam/itemDelete/index.ts
  93. 50
      src/api/eam/itemInLocation/index.ts
  94. 49
      src/api/eam/itemLocationReplace/index.ts
  95. 52
      src/api/eam/itemMaintenance/index.ts
  96. 65
      src/api/eam/itemOrderDetail/index.ts
  97. 71
      src/api/eam/itemOrderMain/index.ts
  98. 50
      src/api/eam/itemOutLocation/index.ts
  99. 55
      src/api/eam/location/index.ts
  100. 48
      src/api/eam/locationArea/index.ts

19
.editorconfig

@ -0,0 +1,19 @@
root = true
[*]
charset=utf-8
end_of_line=lf
insert_final_newline=true
indent_style=space
indent_size=2
max_line_length = 100
[*.{yml,yaml,json}]
indent_style = space
indent_size = 2
[*.md]
trim_trailing_whitespace = false
[Makefile]
indent_style = tab

17
.env

@ -0,0 +1,17 @@
# 标题
VITE_APP_TITLE=富维海拉智慧工厂管理平台
# 项目本地运行端口号
VITE_PORT=80
# open 运行 npm run dev 时自动打开浏览器
VITE_OPEN=true
# 租户开关
VITE_APP_TENANT_ENABLE=true
# 验证码的开关
VITE_APP_CAPTCHA_ENABLE=true
# 百度统计
VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc

54
.env.prod

@ -0,0 +1,54 @@
# 生产环境
NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://dev.ccwin-in.com:25300/api'
# 上传路径
VITE_UPLOAD_URL='http://dev.ccwin-in.com:25300/api/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=true
# 是否sourcemap
VITE_SOURCEMAP=false
# 打包路径
VITE_BASE_PATH=/
# 输出路径
VITE_OUT_DIR=sfms3.0-ui
# 自定义接口路径
VITE_INTERFACE_URL='http://dev.ccwin-in.com:25310/magic/web/index.html'
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:25310'
# 租户配置
VITE_TENANT='["长春1379","成都1397","长春2379"]'
# 查看质检报告环境
VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400'
# 登录系统升级的提示
VITE_SYSTERM_UPDATE_ALERT = true
VITE_SYSTERM_UPDATE_URL = 'https://scptest.faway-hella.com/'
# 是否需要验证码
VITE_NEED_CODE = true
# 是否需要下载PDA链接
VITE_PDA_URL = false

50
.env.test

@ -0,0 +1,50 @@
# 生产环境
NODE_ENV=test
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://dev.ccwin-in.com:29000/api'
# 上传路径
VITE_UPLOAD_URL='http://dev.ccwin-in.com:29000/api/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=true
# 是否sourcemap
VITE_SOURCEMAP=false
# 打包路径
VITE_BASE_PATH=/
# 输出路径
VITE_OUT_DIR=sfms3.0-ui
# 自定义接口路径
VITE_INTERFACE_URL='http://dev.ccwin-in.com:29000/magic/web/index.html'
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:29000'
# 租户配置
VITE_TENANT='["长春","成都"]'
# 查看质检报告环境
VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400'
# 是否需要验证码
VITE_NEED_CODE = true
# 是否需要下载PDA链接
VITE_PDA_URL = true

50
.env.test-scp

@ -0,0 +1,50 @@
# 生产环境
NODE_ENV=test
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://dev.ccwin-in.com:25400/api'
# 上传路径
VITE_UPLOAD_URL='http://dev.ccwin-in.com:25400/api/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=true
# 是否sourcemap
VITE_SOURCEMAP=false
# 打包路径
VITE_BASE_PATH=/
# 输出路径
VITE_OUT_DIR=sfms3.0
# 自定义接口路径
VITE_INTERFACE_URL='http://dev.ccwin-in.com:25311/magic/web/index.html'
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:25311'
# 租户配置
VITE_TENANT='["长春1379","成都1397","长春2379"]'
# 查看质检报告环境
VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400'
# 是否需要验证码
VITE_NEED_CODE = false
# 是否需要下载PDA链接
VITE_PDA_URL = false

64
.env.wyf

@ -0,0 +1,64 @@
# 生产环境
NODE_ENV=test
VITE_DEV=false
# # 请求路径
# VITE_BASE_URL='http://192.168.0.113:12080'
# # 上传路径
# VITE_UPLOAD_URL='http://192.168.0.113:12080/admin-api/infra/file/upload'
# # 请求路径
# VITE_BASE_URL='https://scp.faway-hella.com/api'
# # 上传路径
# VITE_UPLOAD_URL='https://scp.faway-hella.com/api/admin-api/infra/file/upload'
# 请求路径
VITE_BASE_URL='http://172.21.32.13/api'
# 上传路径
VITE_UPLOAD_URL='http://172.21.32.13/api/admin-api/infra/file/upload'
# # 请求路径
# VITE_BASE_URL='http://dev.ccwin-in.com:25300/api'
# # 上传路径
# VITE_UPLOAD_URL='http://dev.ccwin-in.com:25300/api/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=true
# 是否sourcemap
VITE_SOURCEMAP=false
# 打包路径
VITE_BASE_PATH=/
# 输出路径
VITE_OUT_DIR=sfms3.0
# # 自定义接口路径
# VITE_INTERFACE_URL='http://192.168.0.108:12080/magic/web/index.html'
# # 积木报表请求路径
# VITE_JMREPORT_BASE_URL='http://192.168.0.108:12080'
# 自定义接口路径
VITE_INTERFACE_URL='http://dev.ccwin-in.com:25310/magic/web/index.html'
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://192.168.0.108:12080'
# 租户配置
VITE_TENANT='["长春1379","成都1397","长春2379"]'
# 查看质检报告环境
VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400'

8
.eslintignore

@ -0,0 +1,8 @@
/build/
/config/
/dist/
/*.js
/test/unit/coverage/
/node_modules/*
/dist*
/src/main.ts

259
.eslintrc-auto-import.json

@ -0,0 +1,259 @@
{
"globals": {
"EffectScope": true,
"ElMessage": true,
"ElMessageBox": true,
"ElTag": true,
"asyncComputed": true,
"autoResetRef": true,
"computed": true,
"computedAsync": true,
"computedEager": true,
"computedInject": true,
"computedWithControl": true,
"controlledComputed": true,
"controlledRef": true,
"createApp": true,
"createEventHook": true,
"createGlobalState": true,
"createInjectionState": true,
"createReactiveFn": true,
"createSharedComposable": true,
"createUnrefFn": true,
"customRef": true,
"debouncedRef": true,
"debouncedWatch": true,
"defineAsyncComponent": true,
"defineComponent": true,
"eagerComputed": true,
"effectScope": true,
"extendRef": true,
"getCurrentInstance": true,
"getCurrentScope": true,
"h": true,
"ignorableWatch": true,
"inject": true,
"isDefined": true,
"isProxy": true,
"isReactive": true,
"isReadonly": true,
"isRef": true,
"makeDestructurable": true,
"markRaw": true,
"nextTick": true,
"onActivated": true,
"onBeforeMount": true,
"onBeforeUnmount": true,
"onBeforeUpdate": true,
"onClickOutside": true,
"onDeactivated": true,
"onErrorCaptured": true,
"onKeyStroke": true,
"onLongPress": true,
"onMounted": true,
"onRenderTracked": true,
"onRenderTriggered": true,
"onScopeDispose": true,
"onServerPrefetch": true,
"onStartTyping": true,
"onUnmounted": true,
"onUpdated": true,
"pausableWatch": true,
"provide": true,
"reactify": true,
"reactifyObject": true,
"reactive": true,
"reactiveComputed": true,
"reactiveOmit": true,
"reactivePick": true,
"readonly": true,
"ref": true,
"refAutoReset": true,
"refDebounced": true,
"refDefault": true,
"refThrottled": true,
"refWithControl": true,
"resolveComponent": true,
"resolveRef": true,
"resolveUnref": true,
"shallowReactive": true,
"shallowReadonly": true,
"shallowRef": true,
"syncRef": true,
"syncRefs": true,
"templateRef": true,
"throttledRef": true,
"throttledWatch": true,
"toRaw": true,
"toReactive": true,
"toRef": true,
"toRefs": true,
"triggerRef": true,
"tryOnBeforeMount": true,
"tryOnBeforeUnmount": true,
"tryOnMounted": true,
"tryOnScopeDispose": true,
"tryOnUnmounted": true,
"unref": true,
"unrefElement": true,
"until": true,
"useActiveElement": true,
"useArrayEvery": true,
"useArrayFilter": true,
"useArrayFind": true,
"useArrayFindIndex": true,
"useArrayJoin": true,
"useArrayMap": true,
"useArrayReduce": true,
"useArraySome": true,
"useAsyncQueue": true,
"useAsyncState": true,
"useAttrs": true,
"useBase64": true,
"useBattery": true,
"useBluetooth": true,
"useBreakpoints": true,
"useBroadcastChannel": true,
"useBrowserLocation": true,
"useCached": true,
"useClipboard": true,
"useColorMode": true,
"useConfirmDialog": true,
"useCounter": true,
"useCssModule": true,
"useCssVar": true,
"useCssVars": true,
"useCurrentElement": true,
"useCycleList": true,
"useDark": true,
"useDateFormat": true,
"useDebounce": true,
"useDebounceFn": true,
"useDebouncedRefHistory": true,
"useDeviceMotion": true,
"useDeviceOrientation": true,
"useDevicePixelRatio": true,
"useDevicesList": true,
"useDisplayMedia": true,
"useDocumentVisibility": true,
"useDraggable": true,
"useDropZone": true,
"useElementBounding": true,
"useElementByPoint": true,
"useElementHover": true,
"useElementSize": true,
"useElementVisibility": true,
"useEventBus": true,
"useEventListener": true,
"useEventSource": true,
"useEyeDropper": true,
"useFavicon": true,
"useFetch": true,
"useFileDialog": true,
"useFileSystemAccess": true,
"useFocus": true,
"useFocusWithin": true,
"useFps": true,
"useFullscreen": true,
"useGamepad": true,
"useGeolocation": true,
"useIdle": true,
"useImage": true,
"useInfiniteScroll": true,
"useIntersectionObserver": true,
"useInterval": true,
"useIntervalFn": true,
"useKeyModifier": true,
"useLastChanged": true,
"useLocalStorage": true,
"useMagicKeys": true,
"useManualRefHistory": true,
"useMediaControls": true,
"useMediaQuery": true,
"useMemoize": true,
"useMemory": true,
"useMounted": true,
"useMouse": true,
"useMouseInElement": true,
"useMousePressed": true,
"useMutationObserver": true,
"useNavigatorLanguage": true,
"useNetwork": true,
"useNow": true,
"useObjectUrl": true,
"useOffsetPagination": true,
"useOnline": true,
"usePageLeave": true,
"useParallax": true,
"usePermission": true,
"usePointer": true,
"usePointerSwipe": true,
"usePreferredColorScheme": true,
"usePreferredDark": true,
"usePreferredLanguages": true,
"useRafFn": true,
"useRefHistory": true,
"useResizeObserver": true,
"useRoute": true,
"useRouter": true,
"useScreenOrientation": true,
"useScreenSafeArea": true,
"useScriptTag": true,
"useScroll": true,
"useScrollLock": true,
"useSessionStorage": true,
"useShare": true,
"useSlots": true,
"useSpeechRecognition": true,
"useSpeechSynthesis": true,
"useStepper": true,
"useStorage": true,
"useStorageAsync": true,
"useStyleTag": true,
"useSupported": true,
"useSwipe": true,
"useTemplateRefsList": true,
"useTextDirection": true,
"useTextSelection": true,
"useTextareaAutosize": true,
"useThrottle": true,
"useThrottleFn": true,
"useThrottledRefHistory": true,
"useTimeAgo": true,
"useTimeout": true,
"useTimeoutFn": true,
"useTimeoutPoll": true,
"useTimestamp": true,
"useTitle": true,
"useToggle": true,
"useTransition": true,
"useUrlSearchParams": true,
"useUserMedia": true,
"useVModel": true,
"useVModels": true,
"useVibrate": true,
"useVirtualList": true,
"useWakeLock": true,
"useWebNotification": true,
"useWebSocket": true,
"useWebWorker": true,
"useWebWorkerFn": true,
"useWindowFocus": true,
"useWindowScroll": true,
"useWindowSize": true,
"watch": true,
"watchArray": true,
"watchAtMost": true,
"watchDebounced": true,
"watchEffect": true,
"watchIgnorable": true,
"watchOnce": true,
"watchPausable": true,
"watchPostEffect": true,
"watchSyncEffect": true,
"watchThrottled": true,
"watchTriggerable": true,
"watchWithFilter": true,
"whenever": true
}
}

75
.eslintrc.js

@ -0,0 +1,75 @@
// @ts-check
const { defineConfig } = require('eslint-define-config')
const { off } = require('process')
module.exports = defineConfig({
root: true,
env: {
browser: true,
node: true,
es6: true
},
parser: 'vue-eslint-parser',
plugins: ['vue'],
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2020,
sourceType: 'module',
jsxPragma: 'React',
ecmaFeatures: {
jsx: true
}
},
extends: [
'plugin:vue/vue3-recommended',
'plugin:@typescript-eslint/recommended',
// 'prettier',
// 'plugin:prettier/recommended',
'@unocss'
],
rules: {
//'indent':['off',2],
//"@typescript-eslint/no-this-alias":["off"],
'vue/script-setup-uses-vars': 'error',
'vue/no-reserved-component-names': 'off',
'vue/no-setup-props-destructure': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-empty-function': 'off',
'vue/custom-event-name-casing': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'no-unused-vars': 'off',
'space-before-function-paren': 'off',
'vue/attributes-order': 'off',
'vue/one-component-per-file': 'off',
'vue/html-closing-bracket-newline': 'off',
'vue/max-attributes-per-line': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/attribute-hyphenation': 'off',
'vue/require-default-prop': 'off',
'vue/require-explicit-emits': 'off',
'vue/html-self-closing': [
'error',
{
html: {
void: 'always',
normal: 'never',
component: 'always'
},
svg: 'always',
math: 'always'
}
],
'vue/multi-word-component-names': 'off',
'vue/no-v-html': 'off'
}
})

15
.gitignore

@ -0,0 +1,15 @@
node_modules
.env.development
.DS_Store
dist
dist-ssr
*.local
/dist*
*-lock.*
pnpm-debug
auto-*.d.ts
.idea
.history
/sfms3.0
/sfms3.0-ui
.vscode/

11
.prettierignore

@ -0,0 +1,11 @@
/node_modules/**
/dist/
/dist*
/public/*
/docs/*
/vite.config.ts
/src/types/env.d.ts
/src/types/auto-components.d.ts
/src/types/auto-imports.d.ts
/docs/**/*
CHANGELOG

6
.stylelintignore

@ -0,0 +1,6 @@
/dist/*
/public/*
public/*
/dist*
/src/types/env.d.ts
/docs/**/*

7
Dockerfile

@ -0,0 +1,7 @@
# 设置基础镜像
FROM win-nginx
WORKDIR /opt/sfms3.0
COPY nginx.conf /usr/local/nginx/conf/nginx.conf
# 将dist文件中的内容复制到 /opt/sfms3.0 这个目录下面
COPY sfms3.0/ /opt/sfms3.0

7
Dockerfile_prod

@ -0,0 +1,7 @@
# 设置基础镜像
FROM win-nginx
WORKDIR /opt/sfms3.0
COPY nginx_prod.conf /usr/local/nginx/conf/nginx.conf
# 将dist文件中的内容复制到 /opt/sfms3.0 这个目录下面
COPY sfms3.0/ /opt/sfms3.0

7
Dockerfile_scp

@ -0,0 +1,7 @@
# 设置基础镜像
FROM win-nginx
WORKDIR /opt/sfms3.0
COPY nginx_scp.conf /usr/local/nginx/conf/nginx.conf
# 将dist文件中的内容复制到 /opt/sfms3.0 这个目录下面
COPY sfms3.0/ /opt/sfms3.0

21
LICENSE

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2021-present Archer
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

107
build/vite/index.ts

@ -0,0 +1,107 @@
import { resolve } from 'path'
import Vue from '@vitejs/plugin-vue'
import VueJsx from '@vitejs/plugin-vue-jsx'
import progress from 'vite-plugin-progress'
// import EslintPlugin from 'vite-plugin-eslint'
import PurgeIcons from 'vite-plugin-purge-icons'
import { ViteEjsPlugin } from 'vite-plugin-ejs'
// @ts-ignore
import ElementPlus from 'unplugin-element-plus/vite'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
import viteCompression from 'vite-plugin-compression'
import topLevelAwait from 'vite-plugin-top-level-await'
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
import UnoCSS from 'unocss/vite'
export function createVitePlugins() {
const root = process.cwd()
// 路径查找
function pathResolve(dir: string) {
return resolve(root, '.', dir)
}
return [
Vue(),
VueJsx(),
UnoCSS(),
progress(),
PurgeIcons(),
ElementPlus({}),
AutoImport({
include: [
/\.[tj]sx?$/, // .ts, .tsx, .js, .jsx
/\.vue$/,
/\.vue\?vue/, // .vue
/\.md$/ // .md
],
imports: [
'vue',
'vue-router',
// 可额外添加需要 autoImport 的组件
{
'@/hooks/web/useI18n': ['useI18n'],
'@/hooks/web/useMessage': ['useMessage'],
'@/hooks/web/useTable': ['useTable'],
'@/hooks/web/useCrudSchemas': ['useCrudSchemas'],
'@/utils/formRules': ['required'],
'@/utils/dict': ['DICT_TYPE']
}
],
dts: 'src/types/auto-imports.d.ts',
resolvers: [ElementPlusResolver()],
eslintrc: {
enabled: false, // Default `false`
filepath: './.eslintrc-auto-import.json', // Default `./.eslintrc-auto-import.json`
globalsPropValue: true // Default `true`, (true | false | 'readonly' | 'readable' | 'writable' | 'writeable')
}
}),
Components({
// 要搜索组件的目录的相对路径
dirs: ['src/components'],
// 组件的有效文件扩展名
extensions: ['vue', 'md'],
// 搜索子目录
deep: true,
include: [/\.vue$/, /\.vue\?vue/],
// 生成自定义 `auto-components.d.ts` 全局声明
dts: 'src/types/auto-components.d.ts',
// 自定义组件的解析器
resolvers: [ElementPlusResolver()],
exclude: [/[\\/]node_modules[\\/]/]
}),
// EslintPlugin({
// cache: false,
// include: ['src/**/*.vue', 'src/**/*.ts', 'src/**/*.tsx'] // 检查的文件
// }),
VueI18nPlugin({
runtimeOnly: true,
compositionOnly: true,
include: [resolve(__dirname, 'src/locales/**')]
}),
createSvgIconsPlugin({
iconDirs: [pathResolve('src/assets/svgs')],
symbolId: 'icon-[dir]-[name]',
svgoOptions: true
}),
viteCompression({
verbose: true, // 是否在控制台输出压缩结果
disable: false, // 是否禁用
threshold: 10240, // 体积大于 threshold 才会被压缩,单位 b
algorithm: 'gzip', // 压缩算法,可选 [ 'gzip' , 'brotliCompress' ,'deflate' , 'deflateRaw']
ext: '.gz', // 生成的压缩包后缀
deleteOriginFile: false //压缩后是否删除源文件
}),
ViteEjsPlugin(),
topLevelAwait({
// https://juejin.cn/post/7152191742513512485
// The export name of top-level await promise for each chunk module
promiseExportName: '__tla',
// The function to generate import names of top-level await promise in each chunk module
promiseImportName: (i) => `__tla_${i}`
})
]
}

112
build/vite/optimize.ts

@ -0,0 +1,112 @@
const include = [
'qs',
'url',
'vue',
'sass',
'mitt',
'axios',
'pinia',
'dayjs',
'qrcode',
'unocss',
'vue-router',
'vue-types',
'vue-i18n',
'crypto-js',
'cropperjs',
'lodash-es',
'nprogress',
'web-storage-cache',
'@iconify/iconify',
'@vueuse/core',
'@zxcvbn-ts/core',
'echarts/core',
'echarts/charts',
'echarts/components',
'echarts/renderers',
'echarts-wordcloud',
'@wangeditor/editor',
'@wangeditor/editor-for-vue',
'element-plus',
'element-plus/es',
'element-plus/es/locale/lang/zh-cn',
'element-plus/es/locale/lang/en',
'element-plus/es/components/avatar/style/css',
'element-plus/es/components/space/style/css',
'element-plus/es/components/backtop/style/css',
'element-plus/es/components/form/style/css',
'element-plus/es/components/radio-group/style/css',
'element-plus/es/components/radio/style/css',
'element-plus/es/components/checkbox/style/css',
'element-plus/es/components/checkbox-group/style/css',
'element-plus/es/components/switch/style/css',
'element-plus/es/components/time-picker/style/css',
'element-plus/es/components/date-picker/style/css',
'element-plus/es/components/descriptions/style/css',
'element-plus/es/components/descriptions-item/style/css',
'element-plus/es/components/link/style/css',
'element-plus/es/components/tooltip/style/css',
'element-plus/es/components/drawer/style/css',
'element-plus/es/components/dialog/style/css',
'element-plus/es/components/checkbox-button/style/css',
'element-plus/es/components/option-group/style/css',
'element-plus/es/components/radio-button/style/css',
'element-plus/es/components/cascader/style/css',
'element-plus/es/components/color-picker/style/css',
'element-plus/es/components/input-number/style/css',
'element-plus/es/components/rate/style/css',
'element-plus/es/components/select-v2/style/css',
'element-plus/es/components/tree-select/style/css',
'element-plus/es/components/slider/style/css',
'element-plus/es/components/time-select/style/css',
'element-plus/es/components/autocomplete/style/css',
'element-plus/es/components/image-viewer/style/css',
'element-plus/es/components/upload/style/css',
'element-plus/es/components/col/style/css',
'element-plus/es/components/form-item/style/css',
'element-plus/es/components/alert/style/css',
'element-plus/es/components/breadcrumb/style/css',
'element-plus/es/components/select/style/css',
'element-plus/es/components/input/style/css',
'element-plus/es/components/breadcrumb-item/style/css',
'element-plus/es/components/tag/style/css',
'element-plus/es/components/pagination/style/css',
'element-plus/es/components/table/style/css',
'element-plus/es/components/table-v2/style/css',
'element-plus/es/components/table-column/style/css',
'element-plus/es/components/card/style/css',
'element-plus/es/components/row/style/css',
'element-plus/es/components/button/style/css',
'element-plus/es/components/menu/style/css',
'element-plus/es/components/sub-menu/style/css',
'element-plus/es/components/menu-item/style/css',
'element-plus/es/components/option/style/css',
'element-plus/es/components/dropdown/style/css',
'element-plus/es/components/dropdown-menu/style/css',
'element-plus/es/components/dropdown-item/style/css',
'element-plus/es/components/skeleton/style/css',
'element-plus/es/components/skeleton/style/css',
'element-plus/es/components/backtop/style/css',
'element-plus/es/components/menu/style/css',
'element-plus/es/components/sub-menu/style/css',
'element-plus/es/components/menu-item/style/css',
'element-plus/es/components/dropdown/style/css',
'element-plus/es/components/tree/style/css',
'element-plus/es/components/dropdown-menu/style/css',
'element-plus/es/components/dropdown-item/style/css',
'element-plus/es/components/badge/style/css',
'element-plus/es/components/breadcrumb/style/css',
'element-plus/es/components/breadcrumb-item/style/css',
'element-plus/es/components/image/style/css',
'element-plus/es/components/collapse-transition/style/css',
'element-plus/es/components/timeline/style/css',
'element-plus/es/components/timeline-item/style/css',
'element-plus/es/components/collapse/style/css',
'element-plus/es/components/collapse-item/style/css',
'element-plus/es/components/button-group/style/css',
'element-plus/es/components/text/style/css'
]
const exclude = ['@iconify/json']
export { include, exclude }

147
index.html

@ -0,0 +1,147 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<!-- <link rel="icon" href="/favicon.ico" /> -->
<link rel="icon" href="/src/assets/imgs/logo1.png" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="keywords" content="富维海拉智慧工厂管理平台" />
<meta name="description" content="富维海拉智慧工厂管理平台" />
<script src="/systemConfig.js"></script>
<title>%VITE_APP_TITLE%</title>
</head>
<body>
<div id="app">
<style>
.app-loading {
display: flex;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
flex-direction: column;
background: #f0f2f5;
}
.app-loading .app-loading-wrap {
position: absolute;
top: 50%;
left: 50%;
display: flex;
-webkit-transform: translate3d(-50%, -50%, 0);
transform: translate3d(-50%, -50%, 0);
justify-content: center;
align-items: center;
flex-direction: column;
}
.app-loading .app-loading-title {
margin-bottom: 30px;
font-size: 20px;
font-weight: bold;
text-align: center;
}
.app-loading .app-loading-logo {
width: 100px;
margin: 0 auto 15px auto;
}
.app-loading .app-loading-item {
position: relative;
display: inline-block;
width: 60px;
height: 60px;
vertical-align: middle;
border-radius: 50%;
}
.app-loading .app-loading-outter {
position: absolute;
width: 100%;
height: 100%;
border: 4px solid #2d8cf0;
border-bottom: 0;
border-left-color: transparent;
border-radius: 50%;
animation: loader-outter 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;
}
.app-loading .app-loading-inner {
position: absolute;
top: calc(50% - 20px);
left: calc(50% - 20px);
width: 40px;
height: 40px;
border: 4px solid #87bdff;
border-right: 0;
border-top-color: transparent;
border-radius: 50%;
animation: loader-inner 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;
}
@-webkit-keyframes loader-outter {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loader-outter {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@-webkit-keyframes loader-inner {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(-360deg);
transform: rotate(-360deg);
}
}
@keyframes loader-inner {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(-360deg);
transform: rotate(-360deg);
}
}
</style>
<div class="app-loading">
<div class="app-loading-wrap">
<div class="app-loading-title">
<img src="/src/assets/imgs/logo_white_blue.png" class="app-loading-logo" alt="Logo" />
<div class="app-loading-title" id="app-loading-title">%VITE_APP_TITLE%</div>
</div>
<div class="app-loading-item">
<div class="app-loading-outter"></div>
<div class="app-loading-inner"></div>
</div>
</div>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>

53
nginx.conf

@ -0,0 +1,53 @@
user root;
worker_processes 2;
events {
worker_connections 1024;
}
http {
include mime.types;
charset utf-8,gbk;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" "$request_time $upstream_response_time"';
access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 600s;
client_max_body_size 200m;
gzip on;
gzip_min_length 10k;
gzip_comp_level 9;
gzip_buffers 4 16k;
gzip_types text/plain application/javascript text/css application/xml text/javascript image/jpeg image/gif image/png;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";
upstream sfms3.0 {
server localhost:25310 weight=10 max_fails=3 fail_timeout=10s;
}
server {
listen 25300;
server_name_in_redirect off;
server_name _;
location /api/ {
proxy_pass http://sfms3.0/;
proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header;
proxy_set_header X-Forwared-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
}
location /profile/ {
alias /opt/profile/;
index index.html index.htm;
}
location / {
try_files $uri $uri/ /index.html;
root /opt/sfms3.0;
index index.html index.htm;
}
}
}

101
nginx_prod.conf

@ -0,0 +1,101 @@
user root;
worker_processes 2;
events {
worker_connections 1024;
}
http {
include mime.types;
charset utf-8,gbk;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" "$request_time $upstream_response_time"';
access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 600s;
client_max_body_size 200m;
gzip on;
gzip_min_length 10k;
gzip_comp_level 9;
gzip_buffers 4 16k;
gzip_types text/plain application/javascript text/css application/xml text/javascript image/jpeg image/gif image/png;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";
upstream sfms3.0 {
server localhost:90 weight=10 max_fails=3 fail_timeout=10s;
}
server {
listen 80;
server_name_in_redirect off;
server_name _;
location /api/ {
proxy_pass http://sfms3.0/;
proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header;
proxy_set_header X-Forwared-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
}
location /profile/ {
alias /opt/profile/;
index index.html index.htm;
}
location / {
try_files $uri $uri/ /index.html;
root /opt/sfms3.0;
index index.html index.htm;
}
}
server {
listen 55563 ssl;
server_name_in_redirect off;
server_name _;
ssl_certificate /opt/faway-hella/faway-hella.com.pem;
ssl_certificate_key /opt/faway-hella/faway-hella.com.key;
location /api/ {
proxy_pass http://sfms3.0/;
proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header;
proxy_set_header X-Forwared-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
}
location /profile/ {
alias /opt/profile/;
index index.html index.htm;
}
location / {
try_files $uri $uri/ /index.html;
root /opt/sfms3.0;
index index.html index.htm;
}
}
server {
listen 56563 ssl;
server_name_in_redirect off;
server_name _;
ssl_certificate /opt/faway-hella/faway-hella.com.pem;
ssl_certificate_key /opt/faway-hella/faway-hella.com.key;
location /api/ {
proxy_pass http://sfms3.0/;
proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header;
proxy_set_header X-Forwared-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
}
location /profile/ {
alias /opt/profile/;
index index.html index.htm;
}
location / {
try_files $uri $uri/ /index.html;
root /opt/sfms3.0;
index index.html index.htm;
}
}
}

53
nginx_scp.conf

@ -0,0 +1,53 @@
user root;
worker_processes 2;
events {
worker_connections 1024;
}
http {
include mime.types;
charset utf-8,gbk;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" "$request_time $upstream_response_time"';
access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 600s;
client_max_body_size 200m;
gzip on;
gzip_min_length 10k;
gzip_comp_level 9;
gzip_buffers 4 16k;
gzip_types text/plain application/javascript text/css application/xml text/javascript image/jpeg image/gif image/png;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";
upstream sfms3.0 {
server localhost:25311 weight=10 max_fails=3 fail_timeout=10s;
}
server {
listen 25400;
server_name_in_redirect off;
server_name _;
location /api/ {
proxy_pass http://sfms3.0/;
proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header;
proxy_set_header X-Forwared-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
}
location /profile/ {
alias /opt/profile/;
index index.html index.htm;
}
location / {
try_files $uri $uri/ /index.html;
root /opt/sfms3.0;
index index.html index.htm;
}
}
}

140
package.json

@ -0,0 +1,140 @@
{
"name": "yudao-ui-admin-vue3",
"version": "1.8.2-snapshot",
"description": "基于vue3、vite4、element-plus、typesScript",
"author": "xingyu",
"private": false,
"scripts": {
"dev": "vite",
"wyf": "vite --mode wyf",
"test": "vite build --mode test",
"test-scp": "vite build --mode test-scp",
"prod": "vite build --mode prod",
"preview": "vite preview",
"lint": "eslint --fix --ext .js,.vue src"
},
"dependencies": {
"@antv/x6": "^2.18.1",
"@element-plus/icons-vue": "^2.3.1",
"@form-create/designer": "^3.2.8",
"@form-create/element-ui": "^3.2.12",
"@iconify/iconify": "^3.1.1",
"@kjgl77/datav-vue3": "^1.7.4",
"@videojs-player/vue": "^1.0.0",
"@vueuse/core": "^10.11.1",
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^5.1.12",
"@zxcvbn-ts/core": "^3.0.4",
"animate.css": "^4.1.1",
"axios": "^1.7.7",
"benz-amr-recorder": "^1.1.5",
"bpmn-js-token-simulation": "^0.10.0",
"camunda-bpmn-moddle": "^7.0.1",
"cropperjs": "^1.6.2",
"crypto-js": "^4.2.0",
"dayjs": "^1.11.13",
"diagram-js": "^12.8.1",
"echarts": "^5.5.1",
"echarts-wordcloud": "^2.1.0",
"element-plus": "2.3.14",
"fast-xml-parser": "^4.5.0",
"highlight.js": "^11.10.0",
"intro.js": "^7.2.0",
"jsencrypt": "^3.3.2",
"lodash-es": "^4.17.21",
"min-dash": "^4.2.2",
"mitt": "^3.0.1",
"nprogress": "^0.2.0",
"pinia": "^2.2.4",
"qrcode": "^1.5.4",
"qs": "^6.13.0",
"sortablejs": "^1.15.3",
"steady-xml": "^0.1.0",
"url": "^0.11.4",
"video.js": "^7.21.6",
"vue": "^3.5.12",
"vue-dompurify-html": "^4.1.4",
"vue-i18n": "^9.14.1",
"vue-next-focus": "^0.0.12",
"vue-qr": "^4.0.9",
"vue-router": "^4.4.5",
"vue-types": "^5.1.3",
"vuedraggable": "^4.1.0",
"web-storage-cache": "^1.1.1",
"xml-js": "^1.6.11"
},
"devDependencies": {
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@commitlint/cli": "^17.8.1",
"@commitlint/config-conventional": "^17.8.1",
"@iconify/json": "^2.2.265",
"@intlify/unplugin-vue-i18n": "^1.6.0",
"@purge-icons/generated": "^0.9.0",
"@types/intro.js": "^5.1.5",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.17.1",
"@types/nprogress": "^0.2.3",
"@types/qrcode": "^1.5.5",
"@types/qs": "^6.9.16",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@unocss/eslint-config": "^0.56.5",
"@unocss/transformer-variant-group": "^0.56.5",
"@vitejs/plugin-legacy": "^4.1.1",
"@vitejs/plugin-vue": "^4.6.2",
"@vitejs/plugin-vue-jsx": "^3.1.0",
"@vue-macros/volar": "^0.14.3",
"autoprefixer": "^10.4.20",
"bpmn-js": "8.9.0",
"bpmn-js-properties-panel": "0.46.0",
"consola": "^3.2.3",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-define-config": "^1.24.1",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-vue": "^9.29.1",
"lint-staged": "^14.0.1",
"postcss": "^8.4.47",
"postcss-html": "^1.7.0",
"postcss-scss": "^4.0.9",
"prettier": "^3.3.3",
"rimraf": "^5.0.10",
"rollup": "^3.29.5",
"sass": "^1.80.4",
"stylelint": "^15.11.0",
"stylelint-config-html": "^1.1.0",
"stylelint-config-recommended": "^13.0.0",
"stylelint-config-standard": "^34.0.0",
"stylelint-order": "^6.0.4",
"terser": "^5.36.0",
"typescript": "5.2.2",
"unocss": "^0.56.5",
"unplugin-auto-import": "^0.16.7",
"unplugin-element-plus": "^0.8.0",
"unplugin-vue-components": "^0.25.2",
"vite": "4.4.9",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-ejs": "^1.7.0",
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-progress": "^0.0.7",
"vite-plugin-purge-icons": "^0.9.2",
"vite-plugin-svg-icons": "^2.0.1",
"vite-plugin-top-level-await": "^1.4.4",
"vue-eslint-parser": "^9.4.3",
"vue-tsc": "^1.8.27"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://gitee.com/yudaocode/yudao-ui-admin-vue3"
},
"bugs": {
"url": "https://gitee.com/yudaocode/yudao-ui-admin-vue3/issues"
},
"homepage": "https://gitee.com/yudaocode/yudao-ui-admin-vue3",
"packageManager": "pnpm@8.6.0",
"engines": {
"node": ">= 16.0.0",
"pnpm": ">=8.6.0"
}
}

5
postcss.config.js

@ -0,0 +1,5 @@
module.exports = {
plugins: {
autoprefixer: {}
}
}

22
prettier.config.js

@ -0,0 +1,22 @@
module.exports = {
printWidth: 100, // 每行代码长度(默认80)
tabWidth: 2, // 每个tab相当于多少个空格(默认2)ab进行缩进(默认false)
useTabs: false, // 是否使用tab
semi: false, // 声明结尾使用分号(默认true)
vueIndentScriptAndStyle: false,
singleQuote: true, // 使用单引号(默认false)
quoteProps: 'as-needed',
bracketSpacing: true, // 对象字面量的大括号间使用空格(默认true)
trailingComma: 'none', // 多行使用拖尾逗号(默认none)
jsxSingleQuote: false,
// 箭头函数参数括号 默认avoid 可选 avoid| always
// avoid 能省略括号的时候就省略 例如x => x
// always 总是有括号
arrowParens: 'always',
insertPragma: false,
requirePragma: false,
proseWrap: 'never',
htmlWhitespaceSensitivity: 'strict',
endOfLine: 'auto',
rangeStart: 0
}

BIN
public/favicon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
public/home.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
public/logo.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

20
public/systemConfig.js

@ -0,0 +1,20 @@
let systemConfig = {
// 请求路径
baseUrl: 'http://172.22.32.8/api',
// 上传路径
uploadUrl: 'http://172.22.32.8/api/admin-api/infra/file/upload',
// 自定义接口路径
interfaceUrl: 'http://172.22.32.8:90/magic/web/index.html',
// 积木报表请求路径
jmreportBaseUrl: 'http://172.22.32.8:90',
// 查看质检报告环境
reportUrl: 'https://scp.faway-hella.com',
// 租户配置
tenant: '["成都"]',
systermUpdateAlert: true,
systermUpdateUrl: 'https://scptest.faway-hella.com/',
//是否需要验证码
needCode:false,
//是否需要PDA下载链接
pdaUrl:false,
}

29
qodana.yaml

@ -0,0 +1,29 @@
#-------------------------------------------------------------------------------#
# Qodana analysis is configured by qodana.yaml file #
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
#-------------------------------------------------------------------------------#
version: "1.0"
#Specify inspection profile for code analysis
profile:
name: qodana.starter
#Enable inspections
#include:
# - name: <SomeEnabledInspectionId>
#Disable inspections
#exclude:
# - name: <SomeDisabledInspectionId>
# paths:
# - <path/where/not/run/inspection>
#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
#bootstrap: sh ./prepare-qodana.sh
#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
#plugins:
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)
#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
linter: jetbrains/qodana-js:latest

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' })
}

46
src/api/eam/adjustRecordDetail/index.ts

@ -0,0 +1,46 @@
import request from '@/config/axios'
export interface AdjustRecordDetailVO {
number: string
planNumber: string
requestNumber: string
requestTime: Date
jobNumber: string
recordNumber: string
}
// 查询备件盘点调整记录主列表
export const getAdjustRecordDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/adjustRecordDetail/senior', data })
} else {
return await request.get({ url: `/eam/adjustRecordDetail/page`, params })
}
}
// 查询备件盘点调整记录主详情
export const getAdjustRecordDetail = async (id: number) => {
return await request.get({ url: `/eam/adjustRecordDetail/get?id=` + id })
}
// 新增备件盘点调整记录主
export const createAdjustRecordDetail = async (data: AdjustRecordDetailVO) => {
return await request.post({ url: `/eam/adjustRecordDetail/create`, data })
}
// 修改备件盘点调整记录主
export const updateAdjustRecordDetail = async (data: AdjustRecordDetailVO) => {
return await request.put({ url: `/eam/adjustRecordDetail/update`, data })
}
// 删除备件盘点调整记录主
export const deleteAdjustRecordDetail = async (id: number) => {
return await request.delete({ url: `/eam/adjustRecordDetail/delete?id=` + id })
}
// 导出备件盘点调整记录主 Excel
export const exportAdjustRecordDetail = async (params) => {
return await request.download({ url: `/eam/adjustRecordDetail/export-excel`, params })
}

46
src/api/eam/adjustRecordMain/index.ts

@ -0,0 +1,46 @@
import request from '@/config/axios'
export interface AdjustRecordMainVO {
number: string
planNumber: string
requestNumber: string
requestTime: Date
jobNumber: string
recordNumber: string
}
// 查询备件盘点调整记录主列表
export const getAdjustRecordMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/adjustRecordMain/senior', data })
} else {
return await request.get({ url: `/eam/adjustRecordMain/page`, params })
}
}
// 查询备件盘点调整记录主详情
export const getAdjustRecordMain = async (id: number) => {
return await request.get({ url: `/eam/adjustRecordMain/get?id=` + id })
}
// 新增备件盘点调整记录主
export const createAdjustRecordMain = async (data: AdjustRecordMainVO) => {
return await request.post({ url: `/eam/adjustRecordMain/create`, data })
}
// 修改备件盘点调整记录主
export const updateAdjustRecordMain = async (data: AdjustRecordMainVO) => {
return await request.put({ url: `/eam/adjustRecordMain/update`, data })
}
// 删除备件盘点调整记录主
export const deleteAdjustRecordMain = async (id: number) => {
return await request.delete({ url: `/eam/adjustRecordMain/delete?id=` + id })
}
// 导出备件盘点调整记录主 Excel
export const exportAdjustRecordMain = async (params) => {
return await request.download({ url: `/eam/adjustRecordMain/export-excel`, params })
}

57
src/api/eam/applicationRecordDetail/index.ts

@ -0,0 +1,57 @@
import request from '@/config/axios'
export interface ItemApplyDetailVO {
number : string
name : string
type : string
applyId : number
applyDeptId : number
approveId : number
approveTime : Date
outId : number
outTime : Date
siteId : string
available : string
concurrencyStamp : number
}
// 查询备件申领记录主列表
export const getApplicationRecordDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.post({ url: '/eam/item-apply-request-detail/senior', data })
} else {
return await request.get({ url: `/eam/item-apply-request-detail/page`, params })
}
}
// 查询备件申领记录主详情
export const getApplicationRecordDetail = async (id : number) => {
return await request.get({ url: `/eam/item-apply-request-detail/get?id=` + id })
}
// 新增备件申领记录主
export const createApplicationRecordDetail = async (data : ItemApplyDetailVO) => {
return await request.post({ url: `/eam/item-apply-request-detail/create`, data })
}
// 修改备件申领记录主
export const updateApplicationRecordDetail = async (data : ItemApplyDetailVO) => {
return await request.put({ url: `/eam/item-apply-request-detail/update`, data })
}
// 删除备件申领记录主
export const deleteApplicationRecordDetail = async (id : number) => {
return await request.delete({ url: `/eam/item-apply-request-detail/delete?id=` + id })
}
// 导出备件申领记录主 Excel
export const exportApplicationRecordDetail = async (params) => {
return await request.download({ url: `/eam/item-apply-request-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/item-apply-request-detail/get-import-template' })
}

67
src/api/eam/applicationRecordMain/index.ts

@ -0,0 +1,67 @@
import request from '@/config/axios'
export interface ItemApplyMainVO {
number: string
name: string
type: string
applyId: number
applyDeptId: number
approveId: number
approveTime: Date
outId: number
outTime: Date
siteId: string
available: string
concurrencyStamp: number
}
// 查询备件申领记录主列表
export const getApplicationRecordMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/item-apply-request-main/senior', data })
} else {
return await request.get({ url: `/eam/item-apply-request-main/page`, params })
}
}
// 查询备件申领记录主详情
export const getApplicationRecordMain = async (id: number) => {
return await request.get({ url: `/eam/item-apply-request-main/get?id=` + id })
}
// 新增备件申领记录主
export const createApplicationRecordMain = async (data: ItemApplyMainVO) => {
return await request.post({ url: `/eam/item-apply-request-main/create`, data })
}
// 修改备件申领记录主
export const updateApplicationRecordMain = async (data: ItemApplyMainVO) => {
return await request.put({ url: `/eam/item-apply-request-main/update`, data })
}
// 删除备件申领记录主
export const deleteApplicationRecordMain = async (id: number) => {
return await request.delete({ url: `/eam/item-apply-request-main/delete?id=` + id })
}
// 审批通过备件申领记录主
export const agreeApplicationRecordMain = async (id: number) => {
return await request.get({ url: `/eam/item-apply-request-main/agree?id=` + id })
}
// 审批驳回备件申领记录主
export const disAgreeApplicationRecordMain = async (id: number) => {
return await request.get({ url: `/eam/item-apply-request-main/disAgree?id=` + id })
}
// 导出备件申领记录主 Excel
export const exportApplicationRecordMain = async (params) => {
return await request.download({ url: `/eam/item-apply-request-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/item-apply-request-main/get-import-template' })
}

20
src/api/eam/attachmentFileUpload/index.ts

@ -0,0 +1,20 @@
import request from '@/config/axios'
// 上传图片
export const uploadFiles = async (data) => {
return await request.post({ url: `/eam/attachment-file/upload`, data })
}
// 查询图片
export const getFiles = async (data) => {
return await request.post({ url: `/eam/attachment-file/listNoPage`, data })
}
// 新增图片
export const addFile = async (data) => {
return await request.post({ url: `/eam/attachment-file/create`, data })
}
// 删除图片
export const delFile = async (id: number) => {
return await request.delete({ url: `/eam/attachment-file/delete?uid=`, id })
}

73
src/api/eam/basicEamProductionline/index.ts

@ -0,0 +1,73 @@
import request from '@/config/axios'
import {BasicEamWorkshopVO} from "@/api/eam/basicEamWorkshop";
export interface BasicEamProductionlineVO {
id: number
code: string
name: string
description: string
type: string
workshopCode: string
rawLocationCode: string
fgLocationCode: string
available: string
activeTime: Date
expireTime: Date
remark: string
deletionTime: Date
deleterId: string
extraProperties: string
concurrencyStamp: number
siteId: string
}
// 查询生产线列表
export const getBasicEamProductionlinePage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/basic-eam-productionline/senior', data })
} else {
return await request.get({ url: `/eam/basic-eam-productionline/page`, params })
}
}
// 查询生产线详情
export const getBasicEamProductionline = async (id: number) => {
return await request.get({ url: `/eam/basic-eam-productionline/get?id=` + id })
}
// 新增生产线
export const createBasicEamProductionline = async (data: BasicEamProductionlineVO) => {
return await request.post({ url: `/eam/basic-eam-productionline/create`, data })
}
// 修改生产线
export const updateBasicEamProductionline = async (data: BasicEamProductionlineVO) => {
return await request.put({ url: `/eam/basic-eam-productionline/update`, data })
}
// 删除生产线
export const deleteBasicEamProductionline = async (id: number) => {
return await request.delete({ url: `/eam/basic-eam-productionline/delete?id=` + id })
}
// 导出生产线 Excel
export const exportBasicEamProductionline = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/eam/basic-eam-productionline/export-excel-senior`, data })
}else{
return await request.download({ url: `/eam/basic-eam-productionline/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/basic-eam-productionline/get-import-template' })
}
// 启用 / 禁用
export const updateEnableCode = async (data: BasicEamProductionlineVO) => {
return await request.post({ url: `/eam/basic-eam-productionline/ables` , data })
}

75
src/api/eam/basicEamWorkshop/index.ts

@ -0,0 +1,75 @@
import request from '@/config/axios'
export interface BasicEamWorkshopVO {
id: number
code: string
name: string
description: string
type: string
available: string
activeTime: Date
expireTime: Date
remark: string
deletionTime: Date
deleterId: string
extraProperties: string
concurrencyStamp: number
siteId: string
}
// 查询EAM车间列表
export const getBasicEamWorkshopPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/basic-eam-workshop/senior', data })
} else {
return await request.get({ url: `/eam/basic-eam-workshop/page`, params })
}
}
// 查询EAM车间详情
export const getBasicEamWorkshop = async (id: number) => {
return await request.get({ url: `/eam/basic-eam-workshop/get?id=` + id })
}
// 新增EAM车间
export const createBasicEamWorkshop = async (data: BasicEamWorkshopVO) => {
return await request.post({ url: `/eam/basic-eam-workshop/create`, data })
}
// 修改EAM车间
export const updateBasicEamWorkshop = async (data: BasicEamWorkshopVO) => {
return await request.put({ url: `/eam/basic-eam-workshop/update`, data })
}
// 删除EAM车间
export const deleteBasicEamWorkshop = async (id: number) => {
return await request.delete({ url: `/eam/basic-eam-workshop/delete?id=` + id })
}
// 导出EAM车间 Excel
export const exportBasicEamWorkshop = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/eam/basic-eam-workshop/export-excel-senior`, data })
}else{
return await request.download({ url: `/eam/basic-eam-workshop/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/basic-eam-workshop/get-import-template' })
}
// 启用 / 禁用
export const updateEnableCode = async (data: BasicEamWorkshopVO) => {
return await request.post({ url: `/eam/basic-eam-workshop/ables` , data })
}
// 查询EAM车间列表
export const getBasicEamWorkshopNoPage = async (params) => {
return await request.get({ url: `/eam/basic-eam-workshop/noPage`, params })
}

68
src/api/eam/basicFaultCause/index.ts

@ -0,0 +1,68 @@
import request from '@/config/axios'
import {EquipmentMainPartVO} from "@/api/eam/equipmentMainPart";
export interface BasicFaultCauseVO {
id: number
parentId: number
code: string
name: string
describing: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询故障原因列表
export const getBasicFaultCausePage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/basic-fault-cause/senior', data })
} else {
return await request.get({ url: `/eam/basic-fault-cause/page`, params })
}
}
// 查询故障原因详情
export const getBasicFaultCause = async (id: number) => {
return await request.get({ url: `/eam/basic-fault-cause/get?id=` + id })
}
// 新增故障原因
export const createBasicFaultCause = async (data: BasicFaultCauseVO) => {
return await request.post({ url: `/eam/basic-fault-cause/create`, data })
}
// 修改故障原因
export const updateBasicFaultCause = async (data: BasicFaultCauseVO) => {
return await request.put({ url: `/eam/basic-fault-cause/update`, data })
}
// 删除故障原因
export const deleteBasicFaultCause = async (id: number) => {
return await request.delete({ url: `/eam/basic-fault-cause/delete?id=` + id })
}
// 导出故障原因 Excel
export const exportBasicFaultCause = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/eam/basic-fault-cause/export-excel-senior`, data })
}else{
return await request.download({ url: `/eam/basic-fault-cause/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/basic-fault-cause/get-import-template' })
}
// 启用 / 禁用
export const updateEnableCode = async (data: BasicFaultCauseVO) => {
return await request.post({ url: `/eam/basic-fault-cause/ables` , data })
}

67
src/api/eam/basicFaultType/index.ts

@ -0,0 +1,67 @@
import request from '@/config/axios'
import {EquipmentMainPartVO} from "@/api/eam/equipmentMainPart";
export interface BasicFaultTypeVO {
id: number
code: string
name: string
describing: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询故障类型列表
export const getBasicFaultTypePage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/basic-fault-type/senior', data })
} else {
return await request.get({ url: `/eam/basic-fault-type/page`, params })
}
}
// 查询故障类型详情
export const getBasicFaultType = async (id: number) => {
return await request.get({ url: `/eam/basic-fault-type/get?id=` + id })
}
// 新增故障类型
export const createBasicFaultType = async (data: BasicFaultTypeVO) => {
return await request.post({ url: `/eam/basic-fault-type/create`, data })
}
// 修改故障类型
export const updateBasicFaultType = async (data: BasicFaultTypeVO) => {
return await request.put({ url: `/eam/basic-fault-type/update`, data })
}
// 删除故障类型
export const deleteBasicFaultType = async (id: number) => {
return await request.delete({ url: `/eam/basic-fault-type/delete?id=` + id })
}
// 导出故障类型 Excel
export const exportBasicFaultType = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/eam/basic-fault-type/export-excel-senior`, data })
}else{
return await request.download({ url: `/eam/basic-fault-type/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/basic-fault-type/get-import-template' })
}
// 启用 / 禁用
export const updateEnableCode = async (data: BasicFaultTypeVO) => {
return await request.post({ url: `/eam/basic-fault-type/ables` , data })
}

64
src/api/eam/basicInspectionOption/index.ts

@ -0,0 +1,64 @@
import request from '@/config/axios'
import {EquipmentMainPartVO} from "@/api/eam/equipmentMainPart";
export interface BasicInspectionOptionVO {
id: number
code: string
name: string
describing: string
isUpdated: boolean
type: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询巡检方案列表
export const getBasicInspectionOptionPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/basic-inspection-option/senior', data })
} else {
return await request.get({ url: `/eam/basic-inspection-option/page`, params })
}
}
// 查询巡检方案详情
export const getBasicInspectionOption = async (id: number) => {
return await request.get({ url: `/eam/basic-inspection-option/get?id=` + id })
}
// 新增巡检方案
export const createBasicInspectionOption = async (data: BasicInspectionOptionVO) => {
return await request.post({ url: `/eam/basic-inspection-option/create`, data })
}
// 修改巡检方案
export const updateBasicInspectionOption = async (data: BasicInspectionOptionVO) => {
return await request.put({ url: `/eam/basic-inspection-option/update`, data })
}
// 删除巡检方案
export const deleteBasicInspectionOption = async (id: number) => {
return await request.delete({ url: `/eam/basic-inspection-option/delete?id=` + id })
}
// 导出巡检方案 Excel
export const exportBasicInspectionOption = async (params) => {
return await request.download({ url: `/eam/basic-inspection-option/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/basic-inspection-option/get-import-template' })
}
// 启用 / 禁用
export const updateEnableCode = async (data: BasicInspectionOptionVO) => {
return await request.post({ url: `/eam/basic-inspection-option/ables` , data })
}

64
src/api/eam/basicMaintenanceOption/index.ts

@ -0,0 +1,64 @@
import request from '@/config/axios'
export interface BasicMaintenanceOptionVO {
id: number
code: string
name: string
selectId: string
describing: string
isUpdated: boolean
type: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询保养方案列表
export const getBasicMaintenanceOptionPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/basic-maintenance-option/senior', data })
} else {
return await request.get({ url: `/eam/basic-maintenance-option/page`, params })
}
}
// 查询保养方案详情
export const getBasicMaintenanceOption = async (id: number) => {
return await request.get({ url: `/eam/basic-maintenance-option/get?id=` + id })
}
// 新增保养方案
export const createBasicMaintenanceOption = async (data) => {
return await request.post({ url: `/eam/basic-maintenance-option/create`, data })
}
// 修改保养方案
export const updateBasicMaintenanceOption = async (data: BasicMaintenanceOptionVO) => {
return await request.put({ url: `/eam/basic-maintenance-option/update`, data })
}
// 删除保养方案
export const deleteBasicMaintenanceOption = async (id: number) => {
return await request.delete({ url: `/eam/basic-maintenance-option/delete?id=` + id })
}
// 导出保养方案 Excel
export const exportBasicMaintenanceOption = async (params) => {
return await request.download({ url: `/eam/basic-maintenance-option/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/basic-maintenance-option/get-import-template' })
}
// 启用 / 禁用
export const updateEnableCode = async (data: BasicMaintenanceOptionVO) => {
return await request.post({ url: `/eam/basic-maintenance-option/ables` , data })
}

63
src/api/eam/basicSpotCheckOption/index.ts

@ -0,0 +1,63 @@
import request from '@/config/axios'
export interface BasicSpotCheckOptionVO {
id: number
code: string
name: string
selectId: number
describing: string
isUpdated: boolean
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询点检方案列表
export const getBasicSpotCheckOptionPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/basic-spotCheck-option/senior', data })
} else {
return await request.get({ url: `/eam/basic-spotCheck-option/page`, params })
}
}
// 查询点检方案详情
export const getBasicSpotCheckOption = async (id: number) => {
return await request.get({ url: `/eam/basic-spotCheck-option/get?id=` + id })
}
// 新增点检方案
export const createBasicSpotCheckOption = async (data: BasicSpotCheckOptionVO) => {
return await request.post({ url: `/eam/basic-spotCheck-option/create`, data })
}
// 修改点检方案
export const updateBasicSpotCheckOption = async (data: BasicSpotCheckOptionVO) => {
return await request.put({ url: `/eam/basic-spotCheck-option/update`, data })
}
// 删除点检方案
export const deleteBasicSpotCheckOption = async (id: number) => {
return await request.delete({ url: `/eam/basic-spotCheck-option/delete?id=` + id })
}
// 导出点检方案 Excel
export const exportBasicSpotCheckOption = async (params) => {
return await request.download({ url: `/eam/basic-spotCheck-option/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/basic-spotCheck-option/get-import-template' })
}
// 启用 / 禁用
export const updateEnableCode = async (data: BasicSpotCheckOptionVO) => {
return await request.post({ url: `/eam/basic-spotCheck-option/ables` , data })
}

70
src/api/eam/classTypeRole/index.ts

@ -0,0 +1,70 @@
import request from '@/config/axios'
export interface ClassTypeRoleVO {
id: number
workerRoleId: string
engineerRoleId: string
type: string
factoryAreaCode: string
workshopCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询厂区班组角色维护列表
export const getClassTypeRolePage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/basic/class-type-role/senior', data })
} else {
return await request.get({ url: `/eam/basic/class-type-role/page`, params })
}
}
// 查询厂区班组角色维护详情
export const getClassTypeRole = async (id: number) => {
return await request.get({ url: `/eam/basic/class-type-role/get?id=` + id })
}
// 新增厂区班组角色维护
export const createClassTypeRole = async (data: ClassTypeRoleVO) => {
return await request.post({ url: `/eam/basic/class-type-role/create`, data })
}
// 修改厂区班组角色维护
export const updateClassTypeRole = async (data: ClassTypeRoleVO) => {
return await request.put({ url: `/eam/basic/class-type-role/update`, data })
}
// 删除厂区班组角色维护
export const deleteClassTypeRole = async (id: number) => {
return await request.delete({ url: `/eam/basic/class-type-role/delete?id=` + id })
}
// 导出厂区班组角色维护 Excel
export const exportClassTypeRole = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.downloadPost({ url: `/eam/basic/class-type-role/export-excel-senior`, data })
} else {
return await request.download({ url: `/eam/basic/class-type-role/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/basic/class-type-role/get-import-template' })
}
// 启用 / 禁用
export const updateEnableCode = async (data: ClassTypeRoleVO) => {
return await request.post({ url: `/eam/basic/class-type-role/ables` , data })
}

51
src/api/eam/countJobDetail/index.ts

@ -0,0 +1,51 @@
import request from '@/config/axios'
export interface CountJobDetailVO {
id : number
number : string
name : string
classification : string
isInAccount : string
status : string
}
// 查询备件盘点计划列表
export const getCountJobDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.post({ url: '/eam/countJobDetail/senior', data })
} else {
return await request.get({ url: `/eam/countJobDetail/page`, params })
}
}
// 查询备件盘点计划详情
export const getCountJobDetail = async (id : number) => {
return await request.get({ url: `/eam/countJobDetail/get?id=` + id })
}
// 新增备件盘点计划
export const createCountJobDetail = async (data : CountJobDetailVO) => {
return await request.post({ url: `/eam/countJobDetail/create`, data })
}
// 修改备件盘点计划
export const updateCountJobDetail = async (data : CountJobDetailVO) => {
return await request.put({ url: `/eam/countJobDetail/update`, data })
}
// 删除备件盘点计划
export const deleteCountJobDetail = async (id : number) => {
return await request.delete({ url: `/eam/countJobDetail/delete?id=` + id })
}
// 导出备件盘点计划 Excel
export const exportCountJobDetail = async (params) => {
return await request.download({ url: `/eam/countJobDetail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/countJobDetail/get-import-template' })
}

56
src/api/eam/countJobMain/index.ts

@ -0,0 +1,56 @@
import request from '@/config/axios'
export interface CountJobMainVO {
id : number
number : string
name : string
classification : string
isInAccount : string
status : string
}
// 查询备件盘点计划列表
export const getCountJobMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.post({ url: '/eam/countJobMain/senior', data })
} else {
return await request.get({ url: `/eam/countJobMain/page`, params })
}
}
// 查询备件盘点计划详情
export const getCountJobMain = async (id : number) => {
return await request.get({ url: `/eam/countJobMain/get?id=` + id })
}
// 新增备件盘点计划
export const createCountJobMain = async (data : CountJobMainVO) => {
return await request.post({ url: `/eam/countJobMain/create`, data })
}
// 修改备件盘点计划
export const updateCountJobMain = async (data : CountJobMainVO) => {
return await request.put({ url: `/eam/countJobMain/update`, data })
}
// 删除备件盘点计划
export const deleteCountJobMain = async (id : number) => {
return await request.delete({ url: `/eam/countJobMain/delete?id=` + id })
}
// 导出备件盘点计划 Excel
export const handleMainExport = async (id : number) => {
return await request.download({ url: `/eam/countJobMain/handleMainExport?id=` + id })
}
// 导出备件盘点计划 Excel
export const exportCountJobMain = async (params) => {
return await request.download({ url: `/eam/countJobMain/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/countJobMain/get-import-template' })
}

51
src/api/eam/countRecordDetail/index.ts

@ -0,0 +1,51 @@
import request from '@/config/axios'
export interface CountRecordDetailVO {
id : number
number : string
name : string
classification : string
isInAccount : string
status : string
}
// 查询备件盘点计划列表
export const getCountRecordDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.post({ url: '/eam/countRecordDetail/senior', data })
} else {
return await request.get({ url: `/eam/countRecordDetail/page`, params })
}
}
// 查询备件盘点计划详情
export const getCountRecordDetail = async (id : number) => {
return await request.get({ url: `/eam/countRecordDetail/get?id=` + id })
}
// 新增备件盘点计划
export const createCountRecordDetail = async (data : CountRecordDetailVO) => {
return await request.post({ url: `/eam/countRecordDetail/create`, data })
}
// 修改备件盘点计划
export const updateCountRecordDetail = async (data : CountRecordDetailVO) => {
return await request.put({ url: `/eam/countRecordDetail/update`, data })
}
// 删除备件盘点计划
export const deleteCountRecordDetail = async (id : number) => {
return await request.delete({ url: `/eam/countRecordDetail/delete?id=` + id })
}
// 导出备件盘点计划 Excel
export const exportCountRecordDetail = async (params) => {
return await request.download({ url: `/eam/countRecordDetail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/countRecordDetail/get-import-template' })
}

61
src/api/eam/countRecordMain/index.ts

@ -0,0 +1,61 @@
import request from '@/config/axios'
export interface CountRecordMainVO {
id : number
number : string
name : string
classification : string
isInAccount : string
status : string
}
// 查询备件盘点计划列表
export const getCountRecordMainPage = async (params) => {
params.status="CANGENERATE"
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.post({ url: '/eam/countRecordMain/senior', data })
} else {
return await request.get({ url: `/eam/countRecordMain/page`, params })
}
}
// 查询备件盘点计划详情
export const getCountRecordMain = async (id : number) => {
return await request.get({ url: `/eam/countRecordMain/get?id=` + id })
}
// 新增备件盘点计划
export const createCountRecordMain = async (data : CountRecordMainVO) => {
return await request.post({ url: `/eam/countRecordMain/create`, data })
}
// 修改备件盘点计划
export const updateCountRecordMain = async (data : CountRecordMainVO) => {
return await request.put({ url: `/eam/countRecordMain/update`, data })
}
// 删除备件盘点计划
export const deleteCountRecordMain = async (id : number) => {
return await request.delete({ url: `/eam/countRecordMain/delete?id=` + id })
}
// 盘点调整
export const adjustCountRecordMain = async (id : number) => {
return await request.get({ url: `/eam/countRecordMain/adjust?number=` + id })
}
// 导出备件盘点计划 Excel
export const handleMainExport = async (id : number) => {
return await request.download({ url: `/eam/countRecordMain/handleMainExport?id=` + id })
}
// 导出备件盘点计划 Excel
export const exportCounRecordMain = async (params) => {
return await request.download({ url: `/eam/countRecordMain/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/countRecordMain/get-import-template' })
}

51
src/api/eam/countadjustPlan/index.ts

@ -0,0 +1,51 @@
import request from '@/config/axios'
export interface CountadjustPlanVO {
id : number
number : string
name : string
classification : string
isInAccount : string
status : string
}
// 查询备件盘点计划列表
export const getCountadjustPlanPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.post({ url: '/eam/countadjust-plan/senior', data })
} else {
return await request.get({ url: `/eam/countadjust-plan/page`, params })
}
}
// 查询备件盘点计划详情
export const getCountadjustPlan = async (id : number) => {
return await request.get({ url: `/eam/countadjust-plan/get?id=` + id })
}
// 新增备件盘点计划
export const createCountadjustPlan = async (data : CountadjustPlanVO) => {
return await request.post({ url: `/eam/countadjust-plan/create`, data })
}
// 修改备件盘点计划
export const updateCountadjustPlan = async (data : CountadjustPlanVO) => {
return await request.put({ url: `/eam/countadjust-plan/update`, data })
}
// 删除备件盘点计划
export const deleteCountadjustPlan = async (id : number) => {
return await request.delete({ url: `/eam/countadjust-plan/delete?id=` + id })
}
// 导出备件盘点计划 Excel
export const exportCountadjustPlan = async (params) => {
return await request.download({ url: `/eam/countadjust-plan/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/countadjust-plan/get-import-template' })
}

67
src/api/eam/documentType/index.ts

@ -0,0 +1,67 @@
import request from '@/config/axios'
import {EquipmentMainPartVO} from "@/api/eam/equipmentMainPart";
export interface DocumentTypeVO {
id: number
code: string
name: string
type: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询文档类型列表
export const getDocumentTypePage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/basic/document-type/senior', data })
} else {
return await request.get({ url: `/eam/basic/document-type/page`, params })
}
}
// 查询文档类型详情
export const getDocumentType = async (id: number) => {
return await request.get({ url: `/eam/basic/document-type/get?id=` + id })
}
// 新增文档类型
export const createDocumentType = async (data: DocumentTypeVO) => {
return await request.post({ url: `/eam/basic/document-type/create`, data })
}
// 修改文档类型
export const updateDocumentType = async (data: DocumentTypeVO) => {
return await request.put({ url: `/eam/basic/document-type/update`, data })
}
// 删除文档类型
export const deleteDocumentType = async (id: number) => {
return await request.delete({ url: `/eam/basic/document-type/delete?id=` + id })
}
// 导出文档类型 Excel
export const exportDocumentType = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/eam/basic/document-type/export-excel-senior`, data })
}else{
return await request.download({ url: `/eam/basic/document-type/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/basic/document-type/get-import-template' })
}
// 启用 / 禁用
export const updateEnableCode = async (data: DocumentTypeVO) => {
return await request.post({ url: `/eam/basic/document-type/ables` , data })
}

60
src/api/eam/documentTypeSelectSet/index.ts

@ -0,0 +1,60 @@
import request from '@/config/axios'
export interface DocumentTypeSelectSetVO {
id: number
name: string
itemCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询文档类型选择集列表
export const getDocumentTypeSelectSetPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/basic/document-type-select-set/senior', data })
} else {
return await request.get({ url: `/eam/basic/document-type-select-set/page`, params })
}
}
// 查询文档类型选择集详情
export const getDocumentTypeSelectSet = async (id: number) => {
return await request.get({ url: `/eam/basic/document-type-select-set/get?id=` + id })
}
// 新增文档类型选择集
export const createDocumentTypeSelectSet = async (data: DocumentTypeSelectSetVO) => {
return await request.post({ url: `/eam/basic/document-type-select-set/create`, data })
}
// 修改文档类型选择集
export const updateDocumentTypeSelectSet = async (data: DocumentTypeSelectSetVO) => {
return await request.put({ url: `/eam/basic/document-type-select-set/update`, data })
}
// 删除文档类型选择集
export const deleteDocumentTypeSelectSet = async (id: number) => {
return await request.delete({ url: `/eam/basic/document-type-select-set/delete?id=` + id })
}
// 导出文档类型选择集 Excel
export const exportDocumentTypeSelectSet = async (params) => {
return await request.download({ url: `/eam/basic/document-type-select-set/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/basic/document-type-select-set/get-import-template' })
}
// 启用 / 禁用
export const updateEnableCode = async (data: DocumentTypeSelectSetVO) => {
return await request.post({ url: `/eam/basic/document-type-select-set/ables` , data })
}

90
src/api/eam/equipmentAccounts/index.ts

@ -0,0 +1,90 @@
import request from '@/config/axios'
export interface EquipmentAccountsVO {
id: number
code: string
name: string
specification: string
type: string
power: string
equity: string
electricMachine: string
beat: string
storageLocation: string
useDept: string
principal: string
principalTelephone: string
status: string
changeReason: string
startDate: Date
supplierCode: string
purchaseTime: Date
purchaseDept: string
purchaser: string
productionDate: Date
manufactureCode: string
equipmentLife: string
acceptanceDate: Date
purchasePrice: number
factoryAreaCode: string
workshopCode: string
workshopSectionCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询设备台账列表
export const getEquipmentAccountsPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/device/equipment-accounts/senior', data })
} else {
return await request.get({ url: `/eam/device/equipment-accounts/page`, params })
}
}
// 查询设备台账详情
export const getEquipmentAccounts = async (id: number) => {
return await request.get({ url: `/eam/device/equipment-accounts/get?id=` + id })
}
// 新增设备台账
export const createEquipmentAccounts = async (data: EquipmentAccountsVO) => {
return await request.post({ url: `/eam/device/equipment-accounts/create`, data })
}
// 修改设备台账
export const updateEquipmentAccounts = async (data: EquipmentAccountsVO) => {
return await request.put({ url: `/eam/device/equipment-accounts/update`, data })
}
// 删除设备台账
export const deleteEquipmentAccounts = async (id: number) => {
return await request.delete({ url: `/eam/device/equipment-accounts/delete?id=` + id })
}
// 导出设备台账 Excel
export const exportEquipmentAccounts = async (params) => {
return await request.download({ url: `/eam/device/equipment-accounts/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/device/equipment-accounts/get-import-template' })
}
// 查询设备台账列表
export const getEquipmentAccountsNoPage = async (params) => {
return await request.get({ url: `/eam/device/equipment-accounts/noPage`, params })
}
//停用启用
export const ableEquipmentAccountsMain = async (data: EquipmentAccountsVO) => {
return await request.post({ url: `/eam/device/equipment-accounts/ables`, data })
}

60
src/api/eam/equipmentInspectionDetail/index.ts

@ -0,0 +1,60 @@
import request from '@/config/axios'
export interface EquipmentInspectionDetailVO {
id: number
number: string
masterId: number
completionTime: Date
uncompletedCause: string
result: string
name: string
content: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询巡检工单子列表
export const getEquipmentInspectionDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-inspection-detail/senior', data })
} else {
return await request.get({ url: `/eam/equipment-inspection-detail/page`, params })
}
}
// 查询巡检工单子详情
export const getEquipmentInspectionDetail = async (id: number) => {
return await request.get({ url: `/eam/equipment-inspection-detail/get?id=` + id })
}
// 新增巡检工单子
export const createEquipmentInspectionDetail = async (data: EquipmentInspectionDetailVO) => {
return await request.post({ url: `/eam/equipment-inspection-detail/create`, data })
}
// 修改巡检工单子
export const updateEquipmentInspectionDetail = async (data: EquipmentInspectionDetailVO) => {
return await request.put({ url: `/eam/equipment-inspection-detail/update`, data })
}
// 删除巡检工单子
export const deleteEquipmentInspectionDetail = async (id: number) => {
return await request.delete({ url: `/eam/equipment-inspection-detail/delete?id=` + id })
}
// 导出巡检工单子 Excel
export const exportEquipmentInspectionDetail = async (params) => {
return await request.download({ url: `/eam/equipment-inspection-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-inspection-detail/get-import-template' })
}

104
src/api/eam/equipmentInspectionMain/index.ts

@ -0,0 +1,104 @@
import request from '@/config/axios'
import {EquipmentMainPartVO} from "@/api/eam/equipmentMainPart";
import {EquipmentMaintenanceMainVO} from "@/api/eam/equipmentMaintenanceMain";
export interface EquipmentInspectionMainVO {
id: number
number: string
sources: string
describing: string
equipmentCode: string
type: string
isPictures: boolean
planNumber: string
planStartTime: Date
planEndTime: Date
startTime: Date
endTime: Date
classType: string
verifyer: number
verifyContent: string
verifyTime: Date
maintenancer: number
completionTime: Date
maintenanceTime: Date
status: string
autoOrder: string
autoPerform: string
autoVerify: string
directCreateRecord: string
faultType: string
factoryAreaCode: string
workshopCode: string
lineCode: string
processCode: string
workstationCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询巡检工单主列表
export const getEquipmentInspectionMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-inspection-main/senior', data })
} else {
return await request.get({ url: `/eam/equipment-inspection-main/page`, params })
}
}
// 查询巡检工单主详情
export const getEquipmentInspectionMain = async (id: number) => {
return await request.get({ url: `/eam/equipment-inspection-main/get?id=` + id })
}
// 新增巡检工单主
export const createEquipmentInspectionMain = async (data: EquipmentInspectionMainVO) => {
return await request.post({ url: `/eam/equipment-inspection-main/create`, data })
}
// 修改巡检工单主
export const updateEquipmentInspectionMain = async (data: EquipmentInspectionMainVO) => {
return await request.put({ url: `/eam/equipment-inspection-main/update`, data })
}
// 验证巡检工单主
export const verifyEquipmentInspectionMain = async (data: EquipmentInspectionMainVO) => {
return await request.post({ url: `/eam/equipment-inspection-main/verifyOrder`, data })
}
// 删除巡检工单主
export const deleteEquipmentInspectionMain = async (id: number) => {
return await request.delete({ url: `/eam/equipment-inspection-main/delete?id=` + id })
}
// 导出巡检工单主 Excel
export const exportEquipmentInspectionMain = async (params) => {
return await request.download({ url: `/eam/equipment-inspection-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-inspection-main/get-import-template' })
}
// 修改保养工单状态
export const updateEquipmentInspectionOrder = async (data: EquipmentInspectionMainVO) => {
return await request.post({ url: `/eam/equipment-inspection-main/updateOrder`, data })
}
//完成保养工单
export const executeEquipmentInspectionOrder = async (data: EquipmentInspectionMainVO) => {
return await request.post({ url: `/eam/equipment-inspection-main/execute`, data })
}
//验证不通过,打回保养工单
export const backEquipmentInspectionOrder = async (data: EquipmentInspectionMainVO) => {
return await request.post({ url: `/eam/equipment-inspection-main/fallback`, data })
}

60
src/api/eam/equipmentInspectionRecordDetail/index.ts

@ -0,0 +1,60 @@
import request from '@/config/axios'
export interface EquipmentInspectionRecordDetailVO {
id: number
number: string
masterId: number
completionTime: Date
uncompletedCause: string
result: string
name: string
content: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询巡检记录子列表
export const getEquipmentInspectionRecordDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-inspection-record-detail/senior', data })
} else {
return await request.get({ url: `/eam/equipment-inspection-record-detail/page`, params })
}
}
// 查询巡检记录子详情
export const getEquipmentInspectionRecordDetail = async (id: number) => {
return await request.get({ url: `/eam/equipment-inspection-record-detail/get?id=` + id })
}
// 新增巡检记录子
export const createEquipmentInspectionRecordDetail = async (data: EquipmentInspectionRecordDetailVO) => {
return await request.post({ url: `/eam/equipment-inspection-record-detail/create`, data })
}
// 修改巡检记录子
export const updateEquipmentInspectionRecordDetail = async (data: EquipmentInspectionRecordDetailVO) => {
return await request.put({ url: `/eam/equipment-inspection-record-detail/update`, data })
}
// 删除巡检记录子
export const deleteEquipmentInspectionRecordDetail = async (id: number) => {
return await request.delete({ url: `/eam/equipment-inspection-record-detail/delete?id=` + id })
}
// 导出巡检记录子 Excel
export const exportEquipmentInspectionRecordDetail = async (params) => {
return await request.download({ url: `/eam/equipment-inspection-record-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-inspection-record-detail/get-import-template' })
}

79
src/api/eam/equipmentInspectionRecordMain/index.ts

@ -0,0 +1,79 @@
import request from '@/config/axios'
export interface EquipmentInspectionRecordMainVO {
id: number
number: string
describing: string
equipmentCode: string
type: string
isPictures: boolean
planNumber: string
planStartTime: Date
planEndTime: Date
startTime: Date
endTime: Date
classType: string
verifyer: number
verifyContent: string
verifyTime: Date
maintenancer: number
completionTime: Date
maintenanceTime: Date
status: string
autoOrder: string
autoPerform: string
autoVerify: string
directCreateRecord: string
faultType: string
factoryAreaCode: string
workshopCode: string
workshopSectionCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询巡检记录主列表
export const getEquipmentInspectionRecordMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-inspection-record-main/senior', data })
} else {
return await request.get({ url: `/eam/equipment-inspection-record-main/page`, params })
}
}
// 查询巡检记录主详情
export const getEquipmentInspectionRecordMain = async (id: number) => {
return await request.get({ url: `/eam/equipment-inspection-record-main/get?id=` + id })
}
// 新增巡检记录主
export const createEquipmentInspectionRecordMain = async (data: EquipmentInspectionRecordMainVO) => {
return await request.post({ url: `/eam/equipment-inspection-record-main/create`, data })
}
// 修改巡检记录主
export const updateEquipmentInspectionRecordMain = async (data: EquipmentInspectionRecordMainVO) => {
return await request.put({ url: `/eam/equipment-inspection-record-main/update`, data })
}
// 删除巡检记录主
export const deleteEquipmentInspectionRecordMain = async (id: number) => {
return await request.delete({ url: `/eam/equipment-inspection-record-main/delete?id=` + id })
}
// 导出巡检记录主 Excel
export const exportEquipmentInspectionRecordMain = async (params) => {
return await request.download({ url: `/eam/equipment-inspection-record-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-inspection-record-main/get-import-template' })
}

72
src/api/eam/equipmentMainPart/index.ts

@ -0,0 +1,72 @@
import request from '@/config/axios'
export interface EquipmentMainPartVO {
id: number
name: string
code: string
type: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询主要部件列表
export const getEquipmentMainPartPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-main-part/senior', data })
} else {
return await request.get({ url: `/eam/equipment-main-part/page`, params })
}
}
// 查询主要部件详情
export const getEquipmentMainPart = async (id: number) => {
return await request.get({ url: `/eam/equipment-main-part/get?id=` + id })
}
// 新增主要部件
export const createEquipmentMainPart = async (data: EquipmentMainPartVO) => {
return await request.post({ url: `/eam/equipment-main-part/create`, data })
}
// 修改主要部件
export const updateEquipmentMainPart = async (data: EquipmentMainPartVO) => {
console.log(data)
return await request.put({ url: `/eam/equipment-main-part/update`, data })
}
// 删除主要部件
export const deleteEquipmentMainPart = async (id: number) => {
return await request.delete({ url: `/eam/equipment-main-part/delete?id=` + id })
}
// 导出主要部件 Excel
export const exportEquipmentMainPart = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/eam/equipment-main-part/export-excel-senior`, data })
}else{
return await request.download({ url: `/eam/equipment-main-part/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-main-part/get-import-template' })
}
// 启用 / 禁用
export const updateEnableCode = async (data: EquipmentMainPartVO) => {
return await request.post({ url: `/eam/equipment-main-part/ables` , data })
}
// 查询主要部件列表
export const getEquipmentMainPartNoPage = async (params) => {
return await request.get({ url: `/eam/equipment-main-part/noPage`, params })
}

69
src/api/eam/equipmentMaintenanceDetail/index.ts

@ -0,0 +1,69 @@
import request from '@/config/axios'
export interface EquipmentMaintenanceDetailVO {
id: number
number: string
masterId: number
peoples: number
estimatedMinutes: number
actualMinutes: number
chargePeoples: string
completionTime: Date
uncompletedCause: string
result: string
contents: string
equipmentParts: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询设备保养工单子列表
export const getEquipmentMaintenanceDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-maintenance-detail/senior', data })
} else {
return await request.get({ url: `/eam/equipment-maintenance-detail/page`, params })
}
}
// 查询设备保养工单子详情
export const getEquipmentMaintenanceDetail = async (id: number) => {
return await request.get({ url: `/eam/equipment-maintenance-detail/get?id=` + id })
}
// 新增设备保养工单子
export const createEquipmentMaintenanceDetail = async (data: EquipmentMaintenanceDetailVO) => {
return await request.post({ url: `/eam/equipment-maintenance-detail/create`, data })
}
// 新增设备保养工单 通过主表添加
export const createItemEquipmentMaintenanceDetail = async (data: EquipmentMaintenanceDetailVO) => {
return await request.post({ url: `/eam/equipment-maintenance-detail/createItem`, data })
}
// 修改设备保养工单子
export const updateEquipmentMaintenanceDetail = async (data: EquipmentMaintenanceDetailVO) => {
return await request.put({ url: `/eam/equipment-maintenance-detail/update`, data })
}
// 删除设备保养工单子
export const deleteEquipmentMaintenanceDetail = async (id: number) => {
return await request.delete({ url: `/eam/equipment-maintenance-detail/delete?id=` + id })
}
// 导出设备保养工单子 Excel
export const exportEquipmentMaintenanceDetail = async (params) => {
return await request.download({ url: `/eam/equipment-maintenance-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-maintenance-detail/get-import-template' })
}

111
src/api/eam/equipmentMaintenanceMain/index.ts

@ -0,0 +1,111 @@
import request from '@/config/axios'
import {EquipmentMainPartVO} from "@/api/eam/equipmentMainPart";
export interface EquipmentMaintenanceMainVO {
id: number
describing: string
number: string
sources: string
equipmentCode: string
type: string
faultType: string
planNumber: string
planStartTime: Date
planEndTime: Date
startTime: Date
endTime: Date
classType: string
verifyer: number
verifyContent: string
verifyTime: Date
maintenancer: number
maintenancePhone: string
completionTime: Date
maintenanceTime: Date
status: string
autoOrder: string
autoPerform: string
autoVerify: string
directCreateRecord: string
factoryAreaCode: string
workshopCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询设备保养工单主列表
export const getEquipmentMaintenanceMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-maintenance-main/senior', data })
} else {
return await request.get({ url: `/eam/equipment-maintenance-main/page`, params })
}
}
// 查询设备保养工单主详情
export const getEquipmentMaintenanceMain = async (id: number) => {
return await request.get({ url: `/eam/equipment-maintenance-main/get?id=` + id })
}
export const getMaintenanceOrderConfig = async () => {
return await request.get({ url: `/eam/equipment-maintenance-main/get-order-config`})
}
// 新增设备保养工单主
export const createEquipmentMaintenanceMain = async (data: EquipmentMaintenanceMainVO) => {
return await request.post({ url: `/eam/equipment-maintenance-main/create`, data })
}
// 修改设备保养工单主
export const updateEquipmentMaintenanceMain = async (data: EquipmentMaintenanceMainVO) => {
return await request.put({ url: `/eam/equipment-maintenance-main/update`, data })
}
// 验证设备保养工单主
export const verifyEquipmentMaintenanceMain = async (data: EquipmentMaintenanceMainVO) => {
return await request.post({ url: `/eam/equipment-maintenance-main/verifyOrder`, data })
}
// 删除设备保养工单主
export const deleteEquipmentMaintenanceMain = async (id: number) => {
return await request.delete({ url: `/eam/equipment-maintenance-main/delete?id=` + id })
}
// 导出设备保养工单主 Excel
export const exportEquipmentMaintenanceMain = async (params) => {
return await request.download({ url: `/eam/equipment-maintenance-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-maintenance-main/get-import-template' })
}
// 启用 / 禁用
export const updateEnableCode = async (data: EquipmentMainPartVO) => {
return await request.post({ url: `/eam/equipment-maintenance-main/ables` , data })
}
// 修改保养工单状态
export const updateMaintenanceOrder = async (data: EquipmentMainPartVO) => {
return await request.post({ url: `/eam/equipment-maintenance-main/updateOrder`, data })
}
//完成保养工单
export const executeMaintenanceOrder = async (data: EquipmentMainPartVO) => {
return await request.post({ url: `/eam/equipment-maintenance-main/execute`, data })
}
//验证不通过,打回保养工单
export const backMaintenanceOrder = async (data: EquipmentMainPartVO) => {
return await request.post({ url: `/eam/equipment-maintenance-main/fallback`, data })
}

65
src/api/eam/equipmentMaintenanceRecordDetail/index.ts

@ -0,0 +1,65 @@
import request from '@/config/axios'
export interface EquipmentMaintenanceRecordDetailVO {
id: number
number: string
masterId: number
peoples: number
estimatedMinutes: number
actualMinutes: number
chargePeoples: string
completionTime: Date
uncompletedCause: string
result: string
name: string
content: string
equipmentParts: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询保养记录子列表
export const getEquipmentMaintenanceRecordDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-maintenance-record-detail/senior', data })
} else {
return await request.get({ url: `/eam/equipment-maintenance-record-detail/page`, params })
}
}
// 查询保养记录子详情
export const getEquipmentMaintenanceRecordDetail = async (id: number) => {
return await request.get({ url: `/eam/equipment-maintenance-record-detail/get?id=` + id })
}
// 新增保养记录子
export const createEquipmentMaintenanceRecordDetail = async (data: EquipmentMaintenanceRecordDetailVO) => {
return await request.post({ url: `/eam/equipment-maintenance-record-detail/create`, data })
}
// 修改保养记录子
export const updateEquipmentMaintenanceRecordDetail = async (data: EquipmentMaintenanceRecordDetailVO) => {
return await request.put({ url: `/eam/equipment-maintenance-record-detail/update`, data })
}
// 删除保养记录子
export const deleteEquipmentMaintenanceRecordDetail = async (id: number) => {
return await request.delete({ url: `/eam/equipment-maintenance-record-detail/delete?id=` + id })
}
// 导出保养记录子 Excel
export const exportEquipmentMaintenanceRecordDetail = async (params) => {
return await request.download({ url: `/eam/equipment-maintenance-record-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-maintenance-record-detail/get-import-template' })
}

74
src/api/eam/equipmentMaintenanceRecordMain/index.ts

@ -0,0 +1,74 @@
import request from '@/config/axios'
export interface EquipmentMaintenanceRecordMainVO {
id: number
number: string
describing: string
equipmentCode: string
category: string
classes: string
planNumber: string
faultType: string
cycle: string
times: string
verifyer2: number
verifyContent2: string
verifyTime2: Date
maintenancer: number
maintenancePhone: string
completeResult: string
completionTime2: Date
maintenanceTime: Date
status: string
factoryAreaCode: string
workshopCode: string
workshopSectionCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询设备保养记录主列表
export const getEquipmentMaintenanceRecordMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-maintenance-record-main/senior', data })
} else {
return await request.get({ url: `/eam/equipment-maintenance-record-main/page`, params })
}
}
// 查询设备保养记录主详情
export const getEquipmentMaintenanceRecordMain = async (id: number) => {
return await request.get({ url: `/eam/equipment-maintenance-record-main/get?id=` + id })
}
// 新增设备保养记录主
export const createEquipmentMaintenanceRecordMain = async (data: EquipmentMaintenanceRecordMainVO) => {
return await request.post({ url: `/eam/equipment-maintenance-record-main/create`, data })
}
// 修改设备保养记录主
export const updateEquipmentMaintenanceRecordMain = async (data: EquipmentMaintenanceRecordMainVO) => {
return await request.put({ url: `/eam/equipment-maintenance-record-main/update`, data })
}
// 删除设备保养记录主
export const deleteEquipmentMaintenanceRecordMain = async (id: number) => {
return await request.delete({ url: `/eam/equipment-maintenance-record-main/delete?id=` + id })
}
// 导出设备保养记录主 Excel
export const exportEquipmentMaintenanceRecordMain = async (params) => {
return await request.download({ url: `/eam/equipment-maintenance-record-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-maintenance-record-main/get-import-template' })
}

73
src/api/eam/equipmentManufacturer/index.ts

@ -0,0 +1,73 @@
import request from '@/config/axios'
export interface EquipmentManufacturerVO {
id: number
number: string
name: string
shortName: string
address: string
country: string
city: string
phone: string
fax: string
postId: string
contacts: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询设备制造商列表
export const getEquipmentManufacturerPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/basic/equipment-manufacturer/senior', data })
} else {
return await request.get({ url: `/eam/basic/equipment-manufacturer/page`, params })
}
}
// 查询设备制造商详情
export const getEquipmentManufacturer = async (id: number) => {
return await request.get({ url: `/eam/basic/equipment-manufacturer/get?id=` + id })
}
// 新增设备制造商
export const createEquipmentManufacturer = async (data: EquipmentManufacturerVO) => {
return await request.post({ url: `/eam/basic/equipment-manufacturer/create`, data })
}
// 修改设备制造商
export const updateEquipmentManufacturer = async (data: EquipmentManufacturerVO) => {
return await request.put({ url: `/eam/basic/equipment-manufacturer/update`, data })
}
// 删除设备制造商
export const deleteEquipmentManufacturer = async (id: number) => {
return await request.delete({ url: `/eam/basic/equipment-manufacturer/delete?id=` + id })
}
// 导出设备制造商 Excel
export const exportEquipmentManufacturer = async (params) => {
if (params.isSearch) {
const data = { ...params }
return await request.downloadPost({ url: `/eam/basic/equipment-manufacturer/export-excel-senior`, data })
} else {
return await request.download({ url: `/eam/basic/equipment-manufacturer/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/basic/equipment-manufacturer/get-import-template' })
}
// 查询设备制造商列表
export const getEquipmentManufacturerNoPage = async (params) => {
return await request.get({ url: `/eam/basic/equipment-manufacturer/noPage`, params })
}

59
src/api/eam/equipmentRepairJobDetail/index.ts

@ -0,0 +1,59 @@
import request from '@/config/axios'
export interface EquipmentRepairJobDetailVO {
id: number
number: string
masterId: number
describing: string
faultCause: string
workOut: string
maintenances: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询维修工单子列表
export const getEquipmentRepairJobDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-repair-job-detail/senior', data })
} else {
return await request.get({ url: `/eam/equipment-repair-job-detail/page`, params })
}
}
// 查询维修工单子详情
export const getEquipmentRepairJobDetail = async (id: number) => {
return await request.get({ url: `/eam/equipment-repair-job-detail/get?id=` + id })
}
// 新增维修工单子
export const createEquipmentRepairJobDetail = async (data: EquipmentRepairJobDetailVO) => {
return await request.post({ url: `/eam/equipment-repair-job-detail/create`, data })
}
// 修改维修工单子
export const updateEquipmentRepairJobDetail = async (data: EquipmentRepairJobDetailVO) => {
return await request.put({ url: `/eam/equipment-repair-job-detail/update`, data })
}
// 删除维修工单子
export const deleteEquipmentRepairJobDetail = async (id: number) => {
return await request.delete({ url: `/eam/equipment-repair-job-detail/delete?id=` + id })
}
// 导出维修工单子 Excel
export const exportEquipmentRepairJobDetail = async (params) => {
return await request.download({ url: `/eam/equipment-repair-job-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-repair-job-detail/get-import-template' })
}

122
src/api/eam/equipmentRepairJobMain/index.ts

@ -0,0 +1,122 @@
import request from '@/config/axios'
export interface EquipmentRepairJobMainVO {
id: number
number: string
type: string
repairNumber: string
sources: string
maintenanceDesc: string
urgency: string
level: string
equipmentCode: string
shutDown: boolean
startTime: Date
endTime: Date
totalMinutes: number
verifyerRepair: number
verifyContentRepair: string
verifyTimeRepair: Date
verifyerReport: number
verifyContentReport: string
verifyTimeReport: Date
maintenancer: number
maintenancePhone: string
completeResult: string
completionTime: Date
maintenanceTime: Date
repairTime: Date
repairer: number
faultType: string
status: string
autoOrder: string
autoPerform: string
autoVerify: string
directCreateRecord: string
classType: string
factoryAreaCode: string
workshopCode: string
lineCode: string
processCode: string
workstationCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询维修工单主列表
export const getEquipmentRepairJobMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-repair-job-main/senior', data })
} else {
return await request.get({ url: `/eam/equipment-repair-job-main/page`, params })
}
}
// 查询维修工单主详情
export const getEquipmentRepairJobMain = async (id: number) => {
return await request.get({ url: `/eam/equipment-repair-job-main/get?id=` + id })
}
// 新增维修工单主
export const createEquipmentRepairJobMain = async (data: EquipmentRepairJobMainVO) => {
return await request.post({ url: `/eam/equipment-repair-job-main/create`, data })
}
// 维修验证更新工单主
export const wxVerifyEquipmentRepairJobMain = async (data: EquipmentRepairJobMainVO) => {
return await request.post({ url: `/eam/equipment-repair-job-main/wxVerify`, data })
}
// 修改维修工单主
export const updateEquipmentRepairJobMain = async (data: EquipmentRepairJobMainVO) => {
return await request.put({ url: `/eam/equipment-repair-job-main/update`, data })
}
// 修改维修工单主
export const updateEquipmentRepairMain = async (data: EquipmentRepairJobMainVO) => {
return await request.post({ url: `/eam/equipment-repair-job-main/updateRepair`, data })
}
// 完成维修工单主
export const executeEquipmentRepairJobMain = async (data: EquipmentRepairJobMainVO) => {
return await request.post({ url: `/eam/equipment-repair-job-main/execute`, data })
}
// 删除维修工单主
export const deleteEquipmentRepairJobMain = async (id: number) => {
return await request.delete({ url: `/eam/equipment-repair-job-main/delete?id=` + id })
}
// 导出维修工单主 Excel
export const exportEquipmentRepairJobMain = async (params) => {
return await request.download({ url: `/eam/equipment-repair-job-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-repair-job-main/get-import-template' })
}
// 修改维修工单状态
export const updateEquipmentRepairOrder = async (data: EquipmentRepairJobMainVO) => {
return await request.post({ url: `/eam/equipment-repair-job-main/updateOrder`, data })
}
//维修验证不通过,打回维修工单
export const backEquipmentRepairOrder = async (data: EquipmentRepairJobMainVO) => {
return await request.post({ url: `/eam/equipment-repair-job-main/fallback`, data })
}
//报修验证
export const createEquipmentRepairNewOrder = async (data: EquipmentRepairJobMainVO) => {
return await request.post({ url: `/eam/equipment-repair-job-main/createNew`, data })
}

59
src/api/eam/equipmentRepairRecordDetail/index.ts

@ -0,0 +1,59 @@
import request from '@/config/axios'
export interface EquipmentRepairRecordDetailVO {
id: number
number: string
masterId: number
describing: string
faultCause: string
workOut: string
maintenances: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询设备维修记录子列表
export const getEquipmentRepairRecordDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-repair-record-detail/senior', data })
} else {
return await request.get({ url: `/eam/equipment-repair-record-detail/page`, params })
}
}
// 查询设备维修记录子详情
export const getEquipmentRepairRecordDetail = async (id: number) => {
return await request.get({ url: `/eam/equipment-repair-record-detail/get?id=` + id })
}
// 新增设备维修记录子
export const createEquipmentRepairRecordDetail = async (data: EquipmentRepairRecordDetailVO) => {
return await request.post({ url: `/eam/equipment-repair-record-detail/create`, data })
}
// 修改设备维修记录子
export const updateEquipmentRepairRecordDetail = async (data: EquipmentRepairRecordDetailVO) => {
return await request.put({ url: `/eam/equipment-repair-record-detail/update`, data })
}
// 删除设备维修记录子
export const deleteEquipmentRepairRecordDetail = async (id: number) => {
return await request.delete({ url: `/eam/equipment-repair-record-detail/delete?id=` + id })
}
// 导出设备维修记录子 Excel
export const exportEquipmentRepairRecordDetail = async (params) => {
return await request.download({ url: `/eam/equipment-repair-record-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-repair-record-detail/get-import-template' })
}

85
src/api/eam/equipmentRepairRecordMain/index.ts

@ -0,0 +1,85 @@
import request from '@/config/axios'
export interface EquipmentRepairRecordMainVO {
id: number
number: string
type: string
repairNumber: string
sources: string
maintenanceDesc: string
urgency: string
level: string
equipmentCode: string
shutDown: boolean
startTime: Date
endTime: Date
totalMinutes: number
verifyer: number
verifyContent: string
verifyTime: Date
maintenancer: number
maintenancePhone: string
completeResult: string
completionTime: Date
maintenanceTime: Date
repairTime: Date
repairer: number
faultType: string
status: string
autoOrder: string
autoPerform: string
autoVerify: string
directCreateRecord: string
classType: string
factoryAreaCode: string
workshopCode: string
workshopSectionCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询设备维修记录主列表
export const getEquipmentRepairRecordMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-repair-record-main/senior', data })
} else {
return await request.get({ url: `/eam/equipment-repair-record-main/page`, params })
}
}
// 查询设备维修记录主详情
export const getEquipmentRepairRecordMain = async (id: number) => {
return await request.get({ url: `/eam/equipment-repair-record-main/get?id=` + id })
}
// 新增设备维修记录主
export const createEquipmentRepairRecordMain = async (data: EquipmentRepairRecordMainVO) => {
return await request.post({ url: `/eam/equipment-repair-record-main/create`, data })
}
// 修改设备维修记录主
export const updateEquipmentRepairRecordMain = async (data: EquipmentRepairRecordMainVO) => {
return await request.put({ url: `/eam/equipment-repair-record-main/update`, data })
}
// 删除设备维修记录主
export const deleteEquipmentRepairRecordMain = async (id: number) => {
return await request.delete({ url: `/eam/equipment-repair-record-main/delete?id=` + id })
}
// 导出设备维修记录主 Excel
export const exportEquipmentRepairRecordMain = async (params) => {
return await request.download({ url: `/eam/equipment-repair-record-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-repair-record-main/get-import-template' })
}

93
src/api/eam/equipmentReportRepairRequest/index.ts

@ -0,0 +1,93 @@
import request from '@/config/axios'
export interface EquipmentReportRepairRequestVO {
id: number
number: string
type: string
equipmentCode: string
urgency: string
faultType: string
describing: string
shutDown: boolean
images: string
factoryAreaCode: string
workshopCode: string
workshopSectionCode: string
repairmaner: number
repairPhone: string
status: string
approver: number
approveContent: string
approveTime: Date
autoExamine: string
autoAgree: string
autoVerify: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询设报修申请列表
export const getEquipmentReportRepairRequestPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-report-repair-request/senior', data })
} else {
return await request.get({ url: `/eam/equipment-report-repair-request/page`, params })
}
}
// 查询设报修申请详情
export const getEquipmentReportRepairRequest = async (id: number) => {
return await request.get({ url: `/eam/equipment-report-repair-request/get?id=` + id })
}
// 新增设报修申请
export const createEquipmentReportRepairRequest = async (data: EquipmentReportRepairRequestVO) => {
return await request.post({ url: `/eam/equipment-report-repair-request/create`, data })
}
// 修改设报修申请
export const updateEquipmentReportRepairRequest = async (data: EquipmentReportRepairRequestVO) => {
return await request.put({ url: `/eam/equipment-report-repair-request/update`, data })
}
// 删除设报修申请
export const deleteEquipmentReportRepairRequest = async (id: number) => {
return await request.delete({ url: `/eam/equipment-report-repair-request/delete?id=` + id })
}
// 导出设报修申请 Excel
export const exportEquipmentReportRepairRequest = async (params) => {
return await request.download({ url: `/eam/equipment-report-repair-request/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-report-repair-request/get-import-template' })
}
// 修改报修工单状态
export const updateEquipmentReportRepairOrder = async (data: EquipmentReportRepairRequestVO) => {
return await request.post({ url: `/eam/equipment-report-repair-request/updateOrder`, data })
}
// 审核报修工单状态
export const audiEquipmentReportRepairOrder = async (data: EquipmentReportRepairRequestVO) => {
return await request.post({ url: `/eam/equipment-report-repair-request/audiOrder`, data })
}
// 完成并创建维修工单
export const createEquipmentWeixiuOrder = async (data: EquipmentReportRepairRequestVO) => {
return await request.post({ url: `/eam/equipment-report-repair-request/updateCreateOrder`, data })
}
// 查询报修工单文件附件
export const getEquipmentReportFileInfo = async (data) => {
return await request.post({ url: `/eam/equipment-report-repair-request/fileListInfo`, data })
}

61
src/api/eam/equipmentShutdown/index.ts

@ -0,0 +1,61 @@
import request from '@/config/axios'
export interface EquipmentShutdownVO {
id: number
equipmentCode: string
operationDate: Date
operationer: string
factoryAreaCode: string
workshopCode: string
workshopSectionCode: string
status: string
shutdownCause: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询设备停机记录列表
export const getEquipmentShutdownPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-shutdown/senior', data })
} else {
return await request.get({ url: `/eam/equipment-shutdown/page`, params })
}
}
// 查询设备停机记录详情
export const getEquipmentShutdown = async (id: number) => {
return await request.get({ url: `/eam/equipment-shutdown/get?id=` + id })
}
// 新增设备停机记录
export const createEquipmentShutdown = async (data: EquipmentShutdownVO) => {
return await request.post({ url: `/eam/equipment-shutdown/create`, data })
}
// 修改设备停机记录
export const updateEquipmentShutdown = async (data: EquipmentShutdownVO) => {
return await request.put({ url: `/eam/equipment-shutdown/update`, data })
}
// 删除设备停机记录
export const deleteEquipmentShutdown = async (id: number) => {
return await request.delete({ url: `/eam/equipment-shutdown/delete?id=` + id })
}
// 导出设备停机记录 Excel
export const exportEquipmentShutdown = async (params) => {
return await request.download({ url: `/eam/equipment-shutdown/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-shutdown/get-import-template' })
}

76
src/api/eam/equipmentSigning/index.ts

@ -0,0 +1,76 @@
import request from '@/config/axios'
export interface EquipmentSigningVO {
id: number
equipmentCode: string
operationDate: Date
operationer: string
operationDept: string
telephone: string
supplierCode: string
supplierPeople: string
supplierTelephone: string
status: string
approver: number
approveContent: string
approveTime: Date
autoExamine: string
autoAgree: string
directCreateRecord: string
storageLocation: string
factoryAreaCode: string
workshopCode: string
workshopSectionCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询设备到货签收记录列表
export const getEquipmentSigningPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-signing/senior', data })
} else {
return await request.get({ url: `/eam/equipment-signing/page`, params })
}
}
// 查询设备到货签收记录详情
export const getEquipmentSigning = async (id: number) => {
return await request.get({ url: `/eam/equipment-signing/get?id=` + id })
}
// 新增设备到货签收记录
export const createEquipmentSigning = async (data: EquipmentSigningVO) => {
return await request.post({ url: `/eam/equipment-signing/create`, data })
}
export const createsEquipmentSigning = async (data: EquipmentSigningVO) => {
return await request.post({ url: `/eam/equipment-signing/creates`, data })
}
// 修改设备到货签收记录
export const updateEquipmentSigning = async (data: EquipmentSigningVO) => {
return await request.put({ url: `/eam/equipment-signing/update`, data })
}
// 删除设备到货签收记录
export const deleteEquipmentSigning = async (id: number) => {
return await request.delete({ url: `/eam/equipment-signing/delete?id=` + id })
}
// 导出设备到货签收记录 Excel
export const exportEquipmentSigning = async (params) => {
return await request.download({ url: `/eam/equipment-signing/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-signing/get-import-template' })
}

62
src/api/eam/equipmentSpotCheckDetail/index.ts

@ -0,0 +1,62 @@
import request from '@/config/axios'
export interface EquipmentSpotCheckDetailVO {
id: number
number: string
masterId: number
completionTime: Date
uncompletedCause: string
result: string
name: string
content: string
equipmentParts: string
methods: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询点检工单子列表
export const getEquipmentSpotCheckDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-spot-check-detail/senior', data })
} else {
return await request.get({ url: `/eam/equipment-spot-check-detail/page`, params })
}
}
// 查询点检工单子详情
export const getEquipmentSpotCheckDetail = async (id: number) => {
return await request.get({ url: `/eam/equipment-spot-check-detail/get?id=` + id })
}
// 新增点检工单子
export const createEquipmentSpotCheckDetail = async (data: EquipmentSpotCheckDetailVO) => {
return await request.post({ url: `/eam/equipment-spot-check-detail/create`, data })
}
// 修改点检工单子
export const updateEquipmentSpotCheckDetail = async (data: EquipmentSpotCheckDetailVO) => {
return await request.put({ url: `/eam/equipment-spot-check-detail/update`, data })
}
// 删除点检工单子
export const deleteEquipmentSpotCheckDetail = async (id: number) => {
return await request.delete({ url: `/eam/equipment-spot-check-detail/delete?id=` + id })
}
// 导出点检工单子 Excel
export const exportEquipmentSpotCheckDetail = async (params) => {
return await request.download({ url: `/eam/equipment-spot-check-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-spot-check-detail/get-import-template' })
}

103
src/api/eam/equipmentSpotCheckMain/index.ts

@ -0,0 +1,103 @@
import request from '@/config/axios'
import {EquipmentInspectionMainVO} from "@/api/eam/equipmentInspectionMain";
export interface EquipmentSpotCheckMainVO {
id: number
number: string
describing: string
equipmentCode: string
type: string
planNumber: string
planStartTime: Date
planEndTime: Date
startTime: Date
endTime: Date
faultType: string
verifyer: number
verifyContent: string
verifyTime: Date
maintenancer: number
completionTime: Date
maintenanceTime: Date
isPictures: boolean
status: string
autoOrder: string
autoPerform: string
autoVerify: string
directCreateRecord: string
classType: string
factoryAreaCode: string
workshopCode: string
lineCode: string
processCode: string
workstationCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询点检工单主列表
export const getEquipmentSpotCheckMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-spot-check-main/senior', data })
} else {
return await request.get({ url: `/eam/equipment-spot-check-main/page`, params })
}
}
// 查询点检工单主详情
export const getEquipmentSpotCheckMain = async (id: number) => {
return await request.get({ url: `/eam/equipment-spot-check-main/get?id=` + id })
}
// 新增点检工单主
export const createEquipmentSpotCheckMain = async (data: EquipmentSpotCheckMainVO) => {
return await request.post({ url: `/eam/equipment-spot-check-main/create`, data })
}
// 修改点检工单主
export const updateEquipmentSpotCheckMain = async (data: EquipmentSpotCheckMainVO) => {
return await request.put({ url: `/eam/equipment-spot-check-main/update`, data })
}
// 验证点检工单主
export const verifyEquipmentSpotCheckMain = async (data: EquipmentSpotCheckMainVO) => {
return await request.post({ url: `/eam/equipment-spot-check-main/verifyOrder`, data })
}
// 删除点检工单主
export const deleteEquipmentSpotCheckMain = async (id: number) => {
return await request.delete({ url: `/eam/equipment-spot-check-main/delete?id=` + id })
}
// 导出点检工单主 Excel
export const exportEquipmentSpotCheckMain = async (params) => {
return await request.download({ url: `/eam/equipment-spot-check-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-spot-check-main/get-import-template' })
}
// 修改点检工单状态
export const updateEquipmentSpotCheckOrder = async (data: EquipmentSpotCheckMainVO) => {
return await request.post({ url: `/eam/equipment-spot-check-main/updateOrder`, data })
}
//完成点检工单
export const executeEquipmentSpotCheckOrder = async (data: EquipmentSpotCheckMainVO) => {
return await request.post({ url: `/eam/equipment-spot-check-main/execute`, data })
}
//验证不通过,打回点检工单
export const backEquipmentSpotCheckOrder = async (data: EquipmentSpotCheckMainVO) => {
return await request.post({ url: `/eam/equipment-spot-check-main/fallback`, data })
}

62
src/api/eam/equipmentSpotCheckRecordDetail/index.ts

@ -0,0 +1,62 @@
import request from '@/config/axios'
export interface EquipmentSpotCheckRecordDetailVO {
id: number
number: string
masterId: number
completionTime: Date
uncompletedCause: string
result: string
name: string
content: string
equipmentParts: string
methods: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询点检记录子列表
export const getEquipmentSpotCheckRecordDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-spot-check-record-detail/senior', data })
} else {
return await request.get({ url: `/eam/equipment-spot-check-record-detail/page`, params })
}
}
// 查询点检记录子详情
export const getEquipmentSpotCheckRecordDetail = async (id: number) => {
return await request.get({ url: `/eam/equipment-spot-check-record-detail/get?id=` + id })
}
// 新增点检记录子
export const createEquipmentSpotCheckRecordDetail = async (data: EquipmentSpotCheckRecordDetailVO) => {
return await request.post({ url: `/eam/equipment-spot-check-record-detail/create`, data })
}
// 修改点检记录子
export const updateEquipmentSpotCheckRecordDetail = async (data: EquipmentSpotCheckRecordDetailVO) => {
return await request.put({ url: `/eam/equipment-spot-check-record-detail/update`, data })
}
// 删除点检记录子
export const deleteEquipmentSpotCheckRecordDetail = async (id: number) => {
return await request.delete({ url: `/eam/equipment-spot-check-record-detail/delete?id=` + id })
}
// 导出点检记录子 Excel
export const exportEquipmentSpotCheckRecordDetail = async (params) => {
return await request.download({ url: `/eam/equipment-spot-check-record-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-spot-check-record-detail/get-import-template' })
}

79
src/api/eam/equipmentSpotCheckRecordMain/index.ts

@ -0,0 +1,79 @@
import request from '@/config/axios'
export interface EquipmentSpotCheckRecordMainVO {
id: number
number: string
describing: string
equipmentCode: string
type: string
planNumber: string
planStartTime: Date
planEndTime: Date
startTime: Date
endTime: Date
faultType: string
verifyer: number
verifyContent: string
verifyTime: Date
maintenancer: number
completionTime: Date
maintenanceTime: Date
isPictures: boolean
status: string
autoOrder: string
autoPerform: string
autoVerify: string
directCreateRecord: string
classType: string
factoryAreaCode: string
workshopCode: string
workshopSectionCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询点检记录主列表
export const getEquipmentSpotCheckRecordMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-spot-check-record-main/senior', data })
} else {
return await request.get({ url: `/eam/equipment-spot-check-record-main/page`, params })
}
}
// 查询点检记录主详情
export const getEquipmentSpotCheckRecordMain = async (id: number) => {
return await request.get({ url: `/eam/equipment-spot-check-record-main/get?id=` + id })
}
// 新增点检记录主
export const createEquipmentSpotCheckRecordMain = async (data: EquipmentSpotCheckRecordMainVO) => {
return await request.post({ url: `/eam/equipment-spot-check-record-main/create`, data })
}
// 修改点检记录主
export const updateEquipmentSpotCheckRecordMain = async (data: EquipmentSpotCheckRecordMainVO) => {
return await request.put({ url: `/eam/equipment-spot-check-record-main/update`, data })
}
// 删除点检记录主
export const deleteEquipmentSpotCheckRecordMain = async (id: number) => {
return await request.delete({ url: `/eam/equipment-spot-check-record-main/delete?id=` + id })
}
// 导出点检记录主 Excel
export const exportEquipmentSpotCheckRecordMain = async (params) => {
return await request.download({ url: `/eam/equipment-spot-check-record-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-spot-check-record-main/get-import-template' })
}

73
src/api/eam/equipmentSupplier/index.ts

@ -0,0 +1,73 @@
import request from '@/config/axios'
export interface EquipmentSupplierVO {
id: number
number: string
name: string
shortName: string
address: string
country: string
city: string
phone: string
fax: string
postId: string
contacts: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询供应商列表
export const getEquipmentSupplierPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/basic/equipment-supplier/senior', data })
} else {
return await request.get({ url: `/eam/basic/equipment-supplier/page`, params })
}
}
// 查询供应商详情
export const getEquipmentSupplier = async (id: number) => {
return await request.get({ url: `/eam/basic/equipment-supplier/get?id=` + id })
}
// 新增供应商
export const createEquipmentSupplier = async (data: EquipmentSupplierVO) => {
return await request.post({ url: `/eam/basic/equipment-supplier/create`, data })
}
// 修改供应商
export const updateEquipmentSupplier = async (data: EquipmentSupplierVO) => {
return await request.put({ url: `/eam/basic/equipment-supplier/update`, data })
}
// 删除供应商
export const deleteEquipmentSupplier = async (id: number) => {
return await request.delete({ url: `/eam/basic/equipment-supplier/delete?id=` + id })
}
// 导出供应商 Excel
export const exportEquipmentSupplier = async (params) => {
if (params.isSearch) {
const data = { ...params }
return await request.downloadPost({ url: `/eam/basic/equipment-supplier/export-excel-senior`, data })
} else {
return await request.download({ url: `/eam/basic/equipment-supplier/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/basic/equipment-supplier/get-import-template' })
}
//供应商列表不分页
export const getEquipmentSupplierNoPage = async (params) => {
return await request.get({ url: `/eam/basic/equipment-supplier/noPage`, params })
}

68
src/api/eam/equipmentToolSparePart/index.ts

@ -0,0 +1,68 @@
import request from '@/config/axios'
export interface EquipmentToolSparePartVO {
id: number
sparePartCode: string
equipmentToolCode: string
type: string
usePosition: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询设备或工装与备件关联列表
export const getEquipmentToolSparePartPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/relation/equipment-tool-spare-part/senior', data })
} else {
return await request.get({ url: `/eam/relation/equipment-tool-spare-part/page`, params })
}
}
// 查询设备或工装与备件关联详情
export const getEquipmentToolSparePart = async (id: number) => {
return await request.get({ url: `/eam/relation/equipment-tool-spare-part/get?id=` + id })
}
// 新增设备或工装与备件关联
export const createEquipmentToolSparePart = async (data: EquipmentToolSparePartVO) => {
return await request.post({ url: `/eam/relation/equipment-tool-spare-part/create`, data })
}
// 修改设备或工装与备件关联
export const updateEquipmentToolSparePart = async (data: EquipmentToolSparePartVO) => {
return await request.put({ url: `/eam/relation/equipment-tool-spare-part/update`, data })
}
// 删除设备或工装与备件关联
export const deleteEquipmentToolSparePart = async (id: number) => {
return await request.delete({ url: `/eam/relation/equipment-tool-spare-part/delete?id=` + id })
}
// 导出设备或工装与备件关联 Excel
export const exportEquipmentToolSparePart = async (params) => {
return await request.download({ url: `/eam/relation/equipment-tool-spare-part/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/relation/equipment-tool-spare-part/get-import-template' })
}
// 新增设备或工装与备件关联
export const createEquipmentToolSparePartBatch = async (data: Array<EquipmentToolSparePartVO>) => {
return await request.post({ url: `/eam/relation/equipment-tool-spare-part/createBatch`, data })
}
// 查询设备或工装与备件关联列表
export const getEquipmentToolSparePartNoPage = async (params) => {
return await request.get({ url: `/eam/relation/equipment-tool-spare-part/noPage`, params })
}

65
src/api/eam/equipmentTransferRecord/index.ts

@ -0,0 +1,65 @@
import request from '@/config/axios'
export interface EquipmentTransferRecordVO {
id: number
equipmentCode: string
type: string
operationDate: Date
operationer: string
beforeFactoryAreaCode: string
beforeLocation: string
beforeWorkshopCode: string
beforeWorkshopSectionCode: string
nowLocation: string
factoryAreaCode: string
workshopCode: string
workshopSectionCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询设备移动记录列表
export const getEquipmentTransferRecordPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/equipment-transfer-record/senior', data })
} else {
return await request.get({ url: `/eam/equipment-transfer-record/page`, params })
}
}
// 查询设备移动记录详情
export const getEquipmentTransferRecord = async (id: number) => {
return await request.get({ url: `/eam/equipment-transfer-record/get?id=` + id })
}
// 新增设备移动记录
export const createEquipmentTransferRecord = async (data: EquipmentTransferRecordVO) => {
return await request.post({ url: `/eam/equipment-transfer-record/create`, data })
}
// 修改设备移动记录
export const updateEquipmentTransferRecord = async (data: EquipmentTransferRecordVO) => {
return await request.put({ url: `/eam/equipment-transfer-record/update`, data })
}
// 删除设备移动记录
export const deleteEquipmentTransferRecord = async (id: number) => {
return await request.delete({ url: `/eam/equipment-transfer-record/delete?id=` + id })
}
// 导出设备移动记录 Excel
export const exportEquipmentTransferRecord = async (params) => {
return await request.download({ url: `/eam/equipment-transfer-record/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/equipment-transfer-record/get-import-template' })
}

68
src/api/eam/inspectionItem/index.ts

@ -0,0 +1,68 @@
import request from '@/config/axios'
export interface InspectionItemVO {
id: number
content: string
equipmentParts: string
serialNumber: number
category: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询巡检项列表
export const getInspectionItemPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/basic/inspection-item/senior', data })
} else {
return await request.get({ url: `/eam/basic/inspection-item/page`, params })
}
}
// 查询巡检项详情
export const getInspectionItem = async (id: number) => {
return await request.get({ url: `/eam/basic/inspection-item/get?id=` + id })
}
// 新增巡检项
export const createInspectionItem = async (data: InspectionItemVO) => {
return await request.post({ url: `/eam/basic/inspection-item/create`, data })
}
// 修改巡检项
export const updateInspectionItem = async (data: InspectionItemVO) => {
return await request.put({ url: `/eam/basic/inspection-item/update`, data })
}
// 删除巡检项
export const deleteInspectionItem = async (id: number) => {
return await request.delete({ url: `/eam/basic/inspection-item/delete?id=` + id })
}
// 导出巡检项 Excel
export const exportInspectionItem = async (params) => {
if (params.isSearch) {
const data = { ...params }
return await request.downloadPost({ url: `/eam/basic/inspection-item/export-excel-senior`, data })
} else {
return await request.download({ url: `/eam/basic/inspection-item/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/basic/inspection-item/get-import-template' })
}
// 启用 / 禁用
export const updateEnableCode = async (data: InspectionItemVO) => {
return await request.post({ url: `/eam/basic/inspection-item/ables` , data })
}

70
src/api/eam/inspectionItemSelectSet/index.ts

@ -0,0 +1,70 @@
import request from '@/config/axios'
export interface InspectionItemSelectSetVO {
id: number
name: string
itemCode: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询巡检项选择集列表
export const getInspectionItemSelectSetPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/basic/inspection-item-select-set/senior', data })
} else {
return await request.get({ url: `/eam/basic/inspection-item-select-set/page`, params })
}
}
// 查询巡检项选择集详情
export const getInspectionItemSelectSet = async (id: number) => {
return await request.get({ url: `/eam/basic/inspection-item-select-set/get?id=` + id })
}
// 新增巡检项选择集
export const createInspectionItemSelectSet = async (data: InspectionItemSelectSetVO) => {
return await request.post({ url: `/eam/basic/inspection-item-select-set/create`, data })
}
// 修改巡检项选择集
export const updateInspectionItemSelectSet = async (data: InspectionItemSelectSetVO) => {
return await request.put({ url: `/eam/basic/inspection-item-select-set/update`, data })
}
// 删除巡检项选择集
export const deleteInspectionItemSelectSet = async (id: number) => {
return await request.delete({ url: `/eam/basic/inspection-item-select-set/delete?id=` + id })
}
// 导出巡检项选择集 Excel
export const exportInspectionItemSelectSet = async (params) => {
return await request.download({ url: `/eam/basic/inspection-item-select-set/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/basic/inspection-item-select-set/get-import-template' })
}
// 启用 / 禁用
export const updateEnableCode = async (data: InspectionItemSelectSetVO) => {
return await request.post({ url: `/eam/basic/inspection-item-select-set/ables` , data })
}
// 查询巡检项选择集列表
export const getInspectionItemSelectSetList = async (params) => {
return await request.get({ url: `/eam/basic/inspection-item/getList`, params })
}
// 查询巡检方案项列表
export const getRalInspectionOptionItemList = async (params) => {
return await request.get({url: `/eam/relation-inspection-option-item/getList?optionCode=` + params})
}

80
src/api/eam/item/index.ts

@ -0,0 +1,80 @@
import request from '@/config/axios'
export interface ItemVO {
number : string
name : string
brand : string
specifications : string
isConstant : string
subject : string
classification : string
uom : string
singlePrice : number
reprocurement : number
safetyStock : number
cost : string
purchaser : string
financer : string
isFramework : string
isRadeIn : string
siteId : string
available : string
concurrencyStamp : number
}
// 查询备件列表
export const getItemPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.post({ url: '/eam/item/senior', data })
} else {
return await request.get({ url: `/eam/item/page`, params })
}
}
// 生成标签
export const genDevice = async (data) => {
return await request.post({ url: `/eam/item/genDevice`, data })
}
// 查询备件详情
export const getItem = async (id : number) => {
return await request.get({ url: `/eam/item/get?id=` + id })
}
// 新增备件
export const createItem = async (data : ItemVO) => {
return await request.post({ url: `/eam/item/create`, data })
}
// 修改备件
export const updateItem = async (data : ItemVO) => {
return await request.put({ url: `/eam/item/update`, data })
}
// 删除备件
export const deleteItem = async (id : number) => {
return await request.delete({ url: `/eam/item/delete?id=` + id })
}
// 导出备件 Excel
export const exportItem = async (params) => {
return await request.download({ url: `/eam/item/export-excel`, params })
}
// 修改备件
export const getItemList = async (params) => {
return await request.get({ url: `/eam/item/getListByNumber`, params })
}
// // 删除备件
// export const getaaa = async () => {
// return await request.get({ url: `/eam/producePlan/produce`})
// }
// 备件不分页
export const getItemNoPage = async (params) => {
return await request.get({ url: `/eam/item/noPage`, params })
}

63
src/api/eam/itemAccounts/index.ts

@ -0,0 +1,63 @@
import request from '@/config/axios'
export interface ItemAccountsVO {
itemNumber: string
qty: number
areaNumber: string
isInAccount: string
siteId: string
available: string
concurrencyStamp: number
}
// 查询备件台账列表
export const getItemAccountsPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/item-accounts/senior', data })
} else {
return await request.get({ url: `/eam/item-accounts/page`, params })
}
}
// 查询备件台账详情
export const getItemAccounts = async (id: number) => {
return await request.get({ url: `/eam/item-accounts/get?id=` + id })
}
// 新增备件台账
export const createItemAccounts = async (data: ItemAccountsVO) => {
return await request.post({ url: `/eam/item-accounts/create`, data })
}
// 修改备件台账
export const updateItemAccounts = async (data: ItemAccountsVO) => {
return await request.put({ url: `/eam/item-accounts/update`, data })
}
// 删除备件台账
export const deleteItemAccounts = async (id: number) => {
return await request.delete({ url: `/eam/item-accounts/delete?id=` + id })
}
// 导出备件台账 Excel
export const exportItemAccounts = async (params) => {
return await request.download({ url: `/eam/item-accounts/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/item-accounts/get-import-template' })
}
// 更改备件库位
export const replaceLocation = async (data: Array<ItemAccountsVO>) => {
return await request.post({url: `/eam/item-accounts/replaceLocation `, data });
};
// 备件不分页
export const getItemAccountsNoPage = async (params) => {
return await request.get({ url: `/eam/item-accounts/noPage`, params })
}

57
src/api/eam/itemApplyDetail/index.ts

@ -0,0 +1,57 @@
import request from '@/config/axios'
export interface ItemApplyDetailVO {
number: string
name: string
type: string
applyId: number
applyDeptId: number
approveId: number
approveTime: Date
outId: number
outTime: Date
siteId: string
available: string
concurrencyStamp: number
}
// 查询备件申领记录主列表
export const getItemApplyDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/item-apply-request-detail/senior', data })
} else {
return await request.get({ url: `/eam/item-apply-request-detail/page`, params })
}
}
// 查询备件申领记录主详情
export const getItemApplyDetail = async (id: number) => {
return await request.get({ url: `/eam/item-apply-request-detail/get?id=` + id })
}
// 新增备件申领记录主
export const createItemApplyDetail = async (data: ItemApplyDetailVO) => {
return await request.post({ url: `/eam/item-apply-request-detail/create`, data })
}
// 修改备件申领记录主
export const updateItemApplyDetail = async (data: ItemApplyDetailVO) => {
return await request.put({ url: `/eam/item-apply-request-detail/update`, data })
}
// 删除备件申领记录主
export const deleteItemApplyDetail = async (id: number) => {
return await request.delete({ url: `/eam/item-apply-request-detail/delete?id=` + id })
}
// 导出备件申领记录主 Excel
export const exportItemApplyDetail = async (params) => {
return await request.download({ url: `/eam/item-apply-request-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/item-apply-request-detail/get-import-template' })
}

63
src/api/eam/itemApplyMain/index.ts

@ -0,0 +1,63 @@
import request from '@/config/axios'
export interface ItemApplyMainVO {
number: string
name: string
type: string
applyId: number
applyDeptId: number
approveId: number
approveTime: Date
outId: number
outTime: Date
siteId: string
available: string
concurrencyStamp: number
}
// 查询备件申领记录主列表
export const getItemApplyMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/item-apply-request-main/senior', data })
} else {
return await request.get({ url: `/eam/item-apply-request-main/page`, params })
}
}
// 查询备件申领记录主详情
export const getItemApplyMain = async (id: number) => {
return await request.get({ url: `/eam/item-apply-request-main/get?id=` + id })
}
// 新增备件申领记录主
export const createItemApplyMain = async (data: ItemApplyMainVO) => {
return await request.post({ url: `/eam/item-apply-request-main/create`, data })
}
// 修改备件申领记录主
export const updateItemApplyMain = async (data: ItemApplyMainVO) => {
return await request.put({ url: `/eam/item-apply-request-main/update`, data })
}
// 删除备件申领记录主
export const deleteItemApplyMain = async (id: number) => {
return await request.delete({ url: `/eam/item-apply-request-main/delete?id=` + id })
}
// 撤销备件申领记录主
export const backoutItemApplyMain = async (id: number) => {
return await request.get({ url: `/eam/item-apply-request-main/backout?id=` + id })
}
// 导出备件申领记录主 Excel
export const exportItemApplyMain = async (params) => {
return await request.download({ url: `/eam/item-apply-request-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/item-apply-request-main/get-import-template' })
}

65
src/api/eam/itemDelete/index.ts

@ -0,0 +1,65 @@
import request from '@/config/axios'
export interface ItemAccountsVO {
itemNumber: string
qty: number
areaNumber: string
isInAccount: string
siteId: string
available: string
concurrencyStamp: number
}
// 查询备件台账移除列表
export const getItemAccountsPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
data.qty = 0
return await request.post({ url: '/eam/item-accounts/senior', data })
} else {
params.qty = 0
return await request.get({ url: `/eam/item-accounts/page`, params })
}
}
// 查询备件台账详情
export const getItemAccounts = async (id: number) => {
return await request.get({ url: `/eam/item-accounts/get?id=` + id })
}
// 新增备件台账
export const createItemAccounts = async (data: ItemAccountsVO) => {
return await request.post({ url: `/eam/item-accounts/create`, data })
}
// 修改备件台账
export const updateItemAccounts = async (data: ItemAccountsVO) => {
return await request.put({ url: `/eam/item-accounts/update`, data })
}
// 删除备件台账
export const deleteItemAccounts = async (id: number) => {
return await request.delete({ url: `/eam/item-accounts/delete?id=` + id })
}
// 导出备件台账 Excel
export const exportItemAccounts = async (params) => {
return await request.download({ url: `/eam/item-accounts/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/item-accounts/get-import-template' })
}
// 更改备件库位
export const replaceLocation = async (data: Array<ItemAccountsVO>) => {
return await request.post({ url: `/eam/item-accounts/replaceLocation `, data })
}
// 备件不分页
export const getItemAccountsNoPage = async (params) => {
return await request.get({ url: `/eam/item-accounts/noPage`, params })
}

50
src/api/eam/itemInLocation/index.ts

@ -0,0 +1,50 @@
import request from '@/config/axios'
export interface ItemInLocationVO {
number: string
itemNumber: string
locationNumber: string
type: string
qty: number
}
// 查询备件入库记录列表
export const getItemInLocationPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/item-in-location/senior', data })
} else {
return await request.get({ url: `/eam/item-in-location/page`, params })
}
}
// 查询备件入库记录详情
export const getItemInLocation = async (id: number) => {
return await request.get({ url: `/eam/item-in-location/get?id=` + id })
}
// 新增备件入库记录
export const createItemInLocation = async (data: ItemInLocationVO) => {
return await request.post({ url: `/eam/item-in-location/create`, data })
}
// 修改备件入库记录
export const updateItemInLocation = async (data: ItemInLocationVO) => {
return await request.put({ url: `/eam/item-in-location/update`, data })
}
// 删除备件入库记录
export const deleteItemInLocation = async (id: number) => {
return await request.delete({ url: `/eam/item-in-location/delete?id=` + id })
}
// 导出备件入库记录 Excel
export const exportItemInLocation = async (params) => {
return await request.download({ url: `/eam/item-in-location/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/item-in-location/get-import-template' })
}

49
src/api/eam/itemLocationReplace/index.ts

@ -0,0 +1,49 @@
import request from '@/config/axios'
export interface ItemLocationReplaceVO {
locationNumber: string
describe: string
oldItemNumber: string
itemNumber: string
}
// 查询备件库位变更记录列表
export const getItemLocationReplacePage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/item-location-replace/senior', data })
} else {
return await request.get({ url: `/eam/item-location-replace/page`, params })
}
}
// 查询备件库位变更记录详情
export const getItemLocationReplace = async (id: number) => {
return await request.get({ url: `/eam/item-location-replace/get?id=` + id })
}
// 新增备件库位变更记录
export const createItemLocationReplace = async (data: ItemLocationReplaceVO) => {
return await request.post({ url: `/eam/item-location-replace/create`, data })
}
// 修改备件库位变更记录
export const updateItemLocationReplace = async (data: ItemLocationReplaceVO) => {
return await request.put({ url: `/eam/item-location-replace/update`, data })
}
// 删除备件库位变更记录
export const deleteItemLocationReplace = async (id: number) => {
return await request.delete({ url: `/eam/item-location-replace/delete?id=` + id })
}
// 导出备件库位变更记录 Excel
export const exportItemLocationReplace = async (params) => {
return await request.download({ url: `/eam/item-location-replace/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/item-location-replace/get-import-template' })
}

52
src/api/eam/itemMaintenance/index.ts

@ -0,0 +1,52 @@
import request from '@/config/axios'
export interface ItemMaintenanceVO {
number: string
itemNumber: string
qty: number
result: string
siteId: string
available: string
concurrencyStamp: number
}
// 查询备件维修记录列表
export const getItemMaintenancePage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/item-maintenance-record/senior', data })
} else {
return await request.get({ url: `/eam/item-maintenance-record/page`, params })
}
}
// 查询备件维修记录详情
export const getItemMaintenance = async (id: number) => {
return await request.get({ url: `/eam/item-maintenance-record/get?id=` + id })
}
// 新增备件维修记录
export const createItemMaintenance = async (data: ItemMaintenanceVO) => {
return await request.post({ url: `/eam/item-maintenance-record/create`, data })
}
// 修改备件维修记录
export const updateItemMaintenance = async (data: ItemMaintenanceVO) => {
return await request.put({ url: `/eam/item-maintenance-record/update`, data })
}
// 删除备件维修记录
export const deleteItemMaintenance = async (id: number) => {
return await request.delete({ url: `/eam/item-maintenance-record/delete?id=` + id })
}
// 导出备件维修记录 Excel
export const exportItemMaintenance = async (params) => {
return await request.download({ url: `/eam/item-maintenance-record/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/item-maintenance-record/get-import-template' })
}

65
src/api/eam/itemOrderDetail/index.ts

@ -0,0 +1,65 @@
import request from '@/config/axios'
export interface ItemOrderDetailVO {
number: string
date: string
phone: string
fax: string
purchaser: string
supplierNumber: string
supplierName: string
supplierAddress: string
shipTo: string
invoiceTo: string
contacts: string
contactsPhone: string
paymentType: string
registLocation: string
bank: string
account: string
dutyParagraph: string
siteId: string
available: string
concurrencyStamp: number
}
// 查询备件采购订单主列表
export const getItemOrderDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/item-order-detail/senior', data })
} else {
return await request.get({ url: `/eam/item-order-detail/page`, params })
}
}
// 查询备件采购订单主详情
export const getItemOrderDetail = async (id: number) => {
return await request.get({ url: `/eam/item-order-detail/get?id=` + id })
}
// 新增备件采购订单主
export const createItemOrderDetail = async (data: ItemOrderDetailVO) => {
return await request.post({ url: `/eam/item-order-detail/create`, data })
}
// 修改备件采购订单主
export const updateItemOrderDetail = async (data: ItemOrderDetailVO) => {
return await request.put({ url: `/eam/item-order-detail/update`, data })
}
// 删除备件采购订单主
export const deleteItemOrderDetail = async (id: number) => {
return await request.delete({ url: `/eam/item-order-detail/delete?id=` + id })
}
// 导出备件采购订单主 Excel
export const exportItemOrderDetail = async (params) => {
return await request.download({ url: `/eam/item-order-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/item-order-detail/get-import-template' })
}

71
src/api/eam/itemOrderMain/index.ts

@ -0,0 +1,71 @@
import request from '@/config/axios'
export interface ItemOrderMainVO {
number: string
date: string
phone: string
fax: string
purchaser: string
supplierNumber: string
supplierName: string
supplierAddress: string
shipTo: string
invoiceTo: string
contacts: string
contactsPhone: string
paymentType: string
registLocation: string
bank: string
account: string
dutyParagraph: string
siteId: string
available: string
concurrencyStamp: number
}
// 查询备件采购订单主列表
export const getItemOrderMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/item-order-main/senior', data })
} else {
return await request.get({ url: `/eam/item-order-main/page`, params })
}
}
// 查询备件采购订单主详情
export const getItemOrderMain = async (id: number) => {
return await request.get({ url: `/eam/item-order-main/get?id=` + id })
}
// 新增备件采购订单主
export const createItemOrderMain = async (data: ItemOrderMainVO) => {
return await request.post({ url: `/eam/item-order-main/create`, data })
}
// 修改备件采购订单主
export const updateItemOrderMain = async (data: ItemOrderMainVO) => {
return await request.put({ url: `/eam/item-order-main/update`, data })
}
// 删除备件采购订单主
export const deleteItemOrderMain = async (id: number) => {
return await request.delete({ url: `/eam/item-order-main/delete?id=` + id })
}
// 关闭采购订单主
export const closeItemOrderMain = async (id: number) => {
return await request.post({ url: `/eam/item-order-main/close?id=` + id })
}
// 导出备件采购订单主 Excel
export const exportItemOrderMain = async (params) => {
return await request.download({ url: `/eam/item-order-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/item-order-main/get-import-template' })
}

50
src/api/eam/itemOutLocation/index.ts

@ -0,0 +1,50 @@
import request from '@/config/axios'
export interface ItemOutLocationVO {
number: string
itemNumber: string
locationNumber: string
type: string
qty: number
}
// 查询备件出库记录列表
export const getItemOutLocationPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/item-out-location/senior', data })
} else {
return await request.get({ url: `/eam/item-out-location/page`, params })
}
}
// 查询备件出库记录详情
export const getItemOutLocation = async (id: number) => {
return await request.get({ url: `/eam/item-out-location/get?id=` + id })
}
// 新增备件出库记录
export const createItemOutLocation = async (data: ItemOutLocationVO) => {
return await request.post({ url: `/eam/item-out-location/create`, data })
}
// 修改备件出库记录
export const updateItemOutLocation = async (data: ItemOutLocationVO) => {
return await request.put({ url: `/eam/item-out-location/update`, data })
}
// 删除备件出库记录
export const deleteItemOutLocation = async (id: number) => {
return await request.delete({ url: `/eam/item-out-location/delete?id=` + id })
}
// 导出备件出库记录 Excel
export const exportItemOutLocation = async (params) => {
return await request.download({ url: `/eam/item-out-location/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/item-out-location/get-import-template' })
}

55
src/api/eam/location/index.ts

@ -0,0 +1,55 @@
import request from '@/config/axios'
export interface LocationVO {
number: string
name: string
description: string
areaNumber: string
type: string
isInAccount: string
siteId: string
available: string
concurrencyStamp: number
}
// 查询库位列表
export const getLocationPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/location/senior', data })
} else {
return await request.get({ url: `/eam/location/page`, params })
}
}
// 查询库位详情
export const getLocation = async (id: number) => {
return await request.get({ url: `/eam/location/get?id=` + id })
}
// 新增库位
export const createLocation = async (data: LocationVO) => {
return await request.post({ url: `/eam/location/create`, data })
}
// 修改库位
export const updateLocation = async (data: LocationVO) => {
return await request.put({ url: `/eam/location/update`, data })
}
// 删除库位
export const deleteLocation = async (id: number) => {
return await request.delete({ url: `/eam/location/delete?id=` + id })
}
// 导出库位 Excel
export const exportLocation = async (params) => {
return await request.download({ url: `/eam/location/export-excel`, params })
}
// 查询库位列表
export const getLocationNoPage = async (params) => {
return await request.get({ url: `/eam/location/noPage`, params })
}

48
src/api/eam/locationArea/index.ts

@ -0,0 +1,48 @@
import request from '@/config/axios'
export interface LocationAreaVO {
number: string
name: string
description: string
type: string
siteId: string
available: string
concurrencyStamp: number
}
// 查询库区列表
export const getLocationAreaPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/location-area/senior', data })
} else {
return await request.get({ url: `/eam/location-area/page`, params })
}
}
// 查询库区详情
export const getLocationArea = async (id: number) => {
return await request.get({ url: `/eam/location-area/get?id=` + id })
}
// 新增库区
export const createLocationArea = async (data: LocationAreaVO) => {
return await request.post({ url: `/eam/location-area/create`, data })
}
// 修改库区
export const updateLocationArea = async (data: LocationAreaVO) => {
return await request.put({ url: `/eam/location-area/update`, data })
}
// 删除库区
export const deleteLocationArea = async (id: number) => {
return await request.delete({ url: `/eam/location-area/delete?id=` + id })
}
// 导出库区 Excel
export const exportLocationArea = async (params) => {
return await request.download({ url: `/eam/location-area/export-excel`, params })
}

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

Loading…
Cancel
Save