添砖-JAVA\Administrator
7 months ago
commit
fb5c4cb53c
757 changed files with 99889 additions and 0 deletions
@ -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 |
@ -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 |
@ -0,0 +1,38 @@ |
|||||
|
# 开发环境 |
||||
|
NODE_ENV=development |
||||
|
|
||||
|
VITE_DEV=false |
||||
|
|
||||
|
# 请求路径 |
||||
|
VITE_BASE_URL='http://localhost:12080' |
||||
|
# VITE_BASE_URL='http://192.168.0.165:12080' |
||||
|
|
||||
|
# 上传路径 |
||||
|
VITE_UPLOAD_URL='http://localhost:12080/admin-api/infra/file/upload' |
||||
|
|
||||
|
# 接口前缀 |
||||
|
VITE_API_BASEPATH=/dev-api |
||||
|
|
||||
|
# 接口地址 |
||||
|
VITE_API_URL=/admin-api |
||||
|
|
||||
|
# 打包路径 |
||||
|
VITE_BASE_PATH=/ |
||||
|
|
||||
|
# 是否删除debugger |
||||
|
VITE_DROP_DEBUGGER=true |
||||
|
|
||||
|
# 是否删除console.log |
||||
|
VITE_DROP_CONSOLE=false |
||||
|
|
||||
|
# 是否sourcemap |
||||
|
VITE_SOURCEMAP=false |
||||
|
|
||||
|
# 输出路径 |
||||
|
VITE_OUT_DIR=dist |
||||
|
|
||||
|
# 自定义接口路径 |
||||
|
VITE_INTERFACE_URL='http://localhost:12080/magic/web/index.html' |
||||
|
|
||||
|
# 积木报表请求路径 |
||||
|
VITE_JMREPORT_BASE_URL='http://localhost:12080' |
@ -0,0 +1,37 @@ |
|||||
|
# 生产环境 |
||||
|
NODE_ENV=test |
||||
|
|
||||
|
VITE_DEV=false |
||||
|
|
||||
|
# 请求路径 |
||||
|
VITE_BASE_URL='http://10.62.139.32:80/api' |
||||
|
|
||||
|
# 上传路径 |
||||
|
VITE_UPLOAD_URL='http://10.62.139.32:80/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=eam |
||||
|
|
||||
|
# 自定义接口路径 |
||||
|
VITE_INTERFACE_URL='http://10.62.139.32:80/magic/web/index.html' |
||||
|
|
||||
|
# 积木报表请求路径 |
||||
|
VITE_JMREPORT_BASE_URL='http://10.62.139.32:80' |
@ -0,0 +1,37 @@ |
|||||
|
# 生产环境 |
||||
|
NODE_ENV=test |
||||
|
|
||||
|
VITE_DEV=false |
||||
|
|
||||
|
# 请求路径 |
||||
|
VITE_BASE_URL='http://dev.ccwin-in.com:25200/api' |
||||
|
|
||||
|
# 上传路径 |
||||
|
VITE_UPLOAD_URL='http://dev.ccwin-in.com:25200/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=eam |
||||
|
|
||||
|
# 自定义接口路径 |
||||
|
VITE_INTERFACE_URL='http://dev.ccwin-in.com:25210/magic/web/index.html' |
||||
|
|
||||
|
# 积木报表请求路径 |
||||
|
VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:25210' |
@ -0,0 +1,8 @@ |
|||||
|
/build/ |
||||
|
/config/ |
||||
|
/dist/ |
||||
|
/*.js |
||||
|
/test/unit/coverage/ |
||||
|
/node_modules/* |
||||
|
/dist* |
||||
|
/src/main.ts |
@ -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 |
||||
|
} |
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
// @ts-check
|
||||
|
const { defineConfig } = require('eslint-define-config') |
||||
|
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: { |
||||
|
'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' |
||||
|
} |
||||
|
}) |
@ -0,0 +1,13 @@ |
|||||
|
node_modules |
||||
|
.DS_Store |
||||
|
dist |
||||
|
dist-ssr |
||||
|
*.local |
||||
|
/dist* |
||||
|
*-lock.* |
||||
|
pnpm-debug |
||||
|
auto-*.d.ts |
||||
|
.idea |
||||
|
.history |
||||
|
.vscode/ |
||||
|
/eam/ |
@ -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 |
@ -0,0 +1,6 @@ |
|||||
|
/dist/* |
||||
|
/public/* |
||||
|
public/* |
||||
|
/dist* |
||||
|
/src/types/env.d.ts |
||||
|
/docs/**/* |
@ -0,0 +1,7 @@ |
|||||
|
# 设置基础镜像 |
||||
|
FROM win-nginx |
||||
|
|
||||
|
WORKDIR /opt/eam |
||||
|
COPY nginx.conf /usr/local/nginx/conf/nginx.conf |
||||
|
# 将dist文件中的内容复制到 /opt/eam 这个目录下面 |
||||
|
COPY eam/ /opt/eam |
@ -0,0 +1,7 @@ |
|||||
|
# 设置基础镜像 |
||||
|
FROM win-nginx |
||||
|
|
||||
|
WORKDIR /opt/eam |
||||
|
COPY nginx_prod.conf /usr/local/nginx/conf/nginx.conf |
||||
|
# 将dist文件中的内容复制到 /opt/eam 这个目录下面 |
||||
|
COPY eam/ /opt/eam |
@ -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. |
@ -0,0 +1,45 @@ |
|||||
|
**xxxx.data.ts 文件配置说明** |
||||
|
**form表单查询弹窗配置** |
||||
|
form: { |
||||
|
labelMessage: '信息提示说明!!!', |
||||
|
componentProps: { |
||||
|
isSearchList: true, // 开启查询弹窗 |
||||
|
searchListPlaceholder: '请选择物品代码', // 输入框占位文本 |
||||
|
searchField: 'itemCode', // 查询弹窗赋值字段 |
||||
|
searchTitle: '生产线物品关系信息', // 查询弹窗标题 |
||||
|
searchAllSchemas: Productionlineitem.allSchemas, // 查询弹窗所需类 |
||||
|
searchPage: ProductionlineitemApi.getProductionlineitemPage, // 查询弹窗所需分页方法 |
||||
|
searchCondition: [{ |
||||
|
key:'productionLineCode', // 查询列表中字段 |
||||
|
value:'prodLine', // 指主表某字段 |
||||
|
isMainValue: true // 表示查询条件是主表的字段的值 |
||||
|
}, |
||||
|
{ |
||||
|
key:'available', // 查询列表中字段 |
||||
|
value:'TRUE', // 指查询具体值 |
||||
|
isMainValue: false // 表示查询条件不是主表的字段的值 |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
} |
||||
|
**tableForm明细列表查询弹窗配置** |
||||
|
tableForm:{ |
||||
|
isInpuFocusShow: true, // 开启查询弹窗 【**与form表单中唯一不同属性**】 |
||||
|
searchListPlaceholder: '请选择从仓库代码', // 输入框占位文本 |
||||
|
searchField: 'code', // 查询弹窗赋值字段 |
||||
|
searchTitle: '仓库基础信息', // 查询弹窗标题 |
||||
|
searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类 |
||||
|
searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法 |
||||
|
searchCondition: [{ |
||||
|
key: 'available', // 查询列表中字段 |
||||
|
value: 'TRUE', // 指查询具体值 |
||||
|
isMainValue: false // 表示查询条件不是主表的字段的值 |
||||
|
}, |
||||
|
{ |
||||
|
key: 'available', // 查询列表中字段 |
||||
|
value: 'TRUE', // 指查询具体值 |
||||
|
action: '==', // 查询拼接条件 |
||||
|
isSearch: true, // 使用自定义拼接条件 |
||||
|
isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 |
||||
|
}] |
||||
|
}, |
@ -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}` |
||||
|
}) |
||||
|
] |
||||
|
} |
@ -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 } |
@ -0,0 +1,152 @@ |
|||||
|
<!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="闻荫管理系统 基于 vue3 + CompositionAPI + typescript + vite3 + element plus 的后台开源免费管理系统!" |
||||
|
/> |
||||
|
<meta |
||||
|
name="description" |
||||
|
content="闻荫管理系统 基于 vue3 + CompositionAPI + typescript + vite3 + element plus 的后台开源免费管理系统!" |
||||
|
/> |
||||
|
<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.png" class="app-loading-logo" alt="Logo" /> |
||||
|
<div class="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> |
@ -0,0 +1,60 @@ |
|||||
|
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"'; |
||||
|
|
||||
|
proxy_cache_path /opt/nginx_cache/ levels=1:2 keys_zone=my_zone:10m inactive=300s max_size=5g; |
||||
|
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 eam { |
||||
|
server localhost:25210 weight=10 max_fails=3 fail_timeout=10s; |
||||
|
} |
||||
|
server { |
||||
|
listen 25200; |
||||
|
server_name_in_redirect off; |
||||
|
server_name dev.ccwin-in.com; |
||||
|
location /api/ { |
||||
|
proxy_pass http://eam/; |
||||
|
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/ { |
||||
|
proxy_cache my_zone; |
||||
|
proxy_cache_valid 200 304 12h; |
||||
|
proxy_cache_key $host$uri$is_args$args; |
||||
|
alias /opt/profile/; |
||||
|
index index.html index.htm; |
||||
|
} |
||||
|
location / { |
||||
|
proxy_cache my_zone; |
||||
|
proxy_cache_valid 200 304 12h; |
||||
|
proxy_cache_key $host$uri$is_args$args; |
||||
|
try_files $uri $uri/ /index.html; |
||||
|
root /opt/eam; |
||||
|
index index.html index.htm; |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
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"'; |
||||
|
|
||||
|
proxy_cache_path /opt/nginx_cache/ levels=1:2 keys_zone=my_zone:10m inactive=300s max_size=5g; |
||||
|
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 eam { |
||||
|
server localhost:90 weight=10 max_fails=3 fail_timeout=10s; |
||||
|
} |
||||
|
server { |
||||
|
listen 80; |
||||
|
server_name_in_redirect off; |
||||
|
server_name dev.ccwin-in.com; |
||||
|
location /api/ { |
||||
|
proxy_pass http://eam/; |
||||
|
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/ { |
||||
|
proxy_cache my_zone; |
||||
|
proxy_cache_valid 200 304 12h; |
||||
|
proxy_cache_key $host$uri$is_args$args; |
||||
|
alias /opt/profile/; |
||||
|
index index.html index.htm; |
||||
|
} |
||||
|
location / { |
||||
|
proxy_cache my_zone; |
||||
|
proxy_cache_valid 200 304 12h; |
||||
|
proxy_cache_key $host$uri$is_args$args; |
||||
|
try_files $uri $uri/ /index.html; |
||||
|
root /opt/eam; |
||||
|
index index.html index.htm; |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,134 @@ |
|||||
|
{ |
||||
|
"name": "yudao-ui-admin-vue3", |
||||
|
"version": "1.8.2-snapshot", |
||||
|
"description": "基于vue3、vite4、element-plus、typesScript", |
||||
|
"author": "xingyu", |
||||
|
"private": false, |
||||
|
"scripts": { |
||||
|
"dev": "vite", |
||||
|
"test": "vite build --mode test", |
||||
|
"prod": "vite build --mode production", |
||||
|
"preview": "vite preview", |
||||
|
"lint": "eslint --fix --ext .js,.vue src" |
||||
|
}, |
||||
|
"dependencies": { |
||||
|
"@element-plus/icons-vue": "^2.1.0", |
||||
|
"@form-create/designer": "^3.1.3", |
||||
|
"@form-create/element-ui": "^3.1.24", |
||||
|
"@iconify/iconify": "^3.1.1", |
||||
|
"@kjgl77/datav-vue3": "^1.7.1", |
||||
|
"@videojs-player/vue": "^1.0.0", |
||||
|
"@vueuse/core": "^10.4.1", |
||||
|
"@wangeditor/editor": "^5.1.23", |
||||
|
"@wangeditor/editor-for-vue": "^5.1.10", |
||||
|
"@zxcvbn-ts/core": "^3.0.4", |
||||
|
"animate.css": "^4.1.1", |
||||
|
"axios": "^1.5.0", |
||||
|
"benz-amr-recorder": "^1.1.5", |
||||
|
"bpmn-js-token-simulation": "^0.10.0", |
||||
|
"camunda-bpmn-moddle": "^7.0.1", |
||||
|
"cropperjs": "^1.6.1", |
||||
|
"crypto-js": "^4.1.1", |
||||
|
"dayjs": "^1.11.10", |
||||
|
"diagram-js": "^12.3.0", |
||||
|
"echarts": "^5.4.3", |
||||
|
"echarts-wordcloud": "^2.1.0", |
||||
|
"element-plus": "2.3.14", |
||||
|
"fast-xml-parser": "^4.3.0", |
||||
|
"highlight.js": "^11.8.0", |
||||
|
"intro.js": "^7.2.0", |
||||
|
"jsencrypt": "^3.3.2", |
||||
|
"lodash-es": "^4.17.21", |
||||
|
"min-dash": "^4.1.1", |
||||
|
"mitt": "^3.0.1", |
||||
|
"nprogress": "^0.2.0", |
||||
|
"pinia": "^2.1.6", |
||||
|
"qrcode": "^1.5.3", |
||||
|
"qs": "^6.11.2", |
||||
|
"sortablejs": "^1.15.0", |
||||
|
"steady-xml": "^0.1.0", |
||||
|
"url": "^0.11.3", |
||||
|
"video.js": "^7.21.5", |
||||
|
"vue": "^3.3.4", |
||||
|
"vue-dompurify-html": "^4.1.4", |
||||
|
"vue-i18n": "^9.4.1", |
||||
|
"vue-router": "^4.2.5", |
||||
|
"vue-types": "^5.1.1", |
||||
|
"vuedraggable": "^4.1.0", |
||||
|
"web-storage-cache": "^1.1.1", |
||||
|
"xml-js": "^1.6.11" |
||||
|
}, |
||||
|
"devDependencies": { |
||||
|
"@commitlint/cli": "^17.7.1", |
||||
|
"@commitlint/config-conventional": "^17.7.0", |
||||
|
"@iconify/json": "^2.2.119", |
||||
|
"@intlify/unplugin-vue-i18n": "^1.2.0", |
||||
|
"@purge-icons/generated": "^0.9.0", |
||||
|
"@types/intro.js": "^5.1.1", |
||||
|
"@types/lodash-es": "^4.17.9", |
||||
|
"@types/node": "^20.6.0", |
||||
|
"@types/nprogress": "^0.2.0", |
||||
|
"@types/qrcode": "^1.5.2", |
||||
|
"@types/qs": "^6.9.8", |
||||
|
"@typescript-eslint/eslint-plugin": "^6.7.2", |
||||
|
"@typescript-eslint/parser": "^6.7.2", |
||||
|
"@unocss/eslint-config": "^0.56.1", |
||||
|
"@unocss/transformer-variant-group": "^0.56.1", |
||||
|
"@vitejs/plugin-legacy": "^4.1.1", |
||||
|
"@vitejs/plugin-vue": "^4.3.4", |
||||
|
"@vitejs/plugin-vue-jsx": "^3.0.2", |
||||
|
"@vue-macros/volar": "^0.14.3", |
||||
|
"autoprefixer": "^10.4.16", |
||||
|
"bpmn-js": "8.9.0", |
||||
|
"bpmn-js-properties-panel": "0.46.0", |
||||
|
"consola": "^3.2.3", |
||||
|
"eslint": "^8.49.0", |
||||
|
"eslint-config-prettier": "^9.0.0", |
||||
|
"eslint-define-config": "^1.23.0", |
||||
|
"eslint-plugin-prettier": "^5.0.0", |
||||
|
"eslint-plugin-vue": "^9.17.0", |
||||
|
"lint-staged": "^14.0.1", |
||||
|
"postcss": "^8.4.30", |
||||
|
"postcss-html": "^1.5.0", |
||||
|
"postcss-scss": "^4.0.8", |
||||
|
"prettier": "^3.0.3", |
||||
|
"rimraf": "^5.0.1", |
||||
|
"rollup": "^3.29.2", |
||||
|
"sass": "^1.68.0", |
||||
|
"stylelint": "^15.10.3", |
||||
|
"stylelint-config-html": "^1.1.0", |
||||
|
"stylelint-config-recommended": "^13.0.0", |
||||
|
"stylelint-config-standard": "^34.0.0", |
||||
|
"stylelint-order": "^6.0.3", |
||||
|
"terser": "^5.20.0", |
||||
|
"typescript": "5.2.2", |
||||
|
"unocss": "^0.56.1", |
||||
|
"unplugin-auto-import": "^0.16.6", |
||||
|
"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.6.4", |
||||
|
"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.3.1", |
||||
|
"vue-eslint-parser": "^9.3.1", |
||||
|
"vue-tsc": "^1.8.13" |
||||
|
}, |
||||
|
"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" |
||||
|
} |
||||
|
} |
@ -0,0 +1,5 @@ |
|||||
|
module.exports = { |
||||
|
plugins: { |
||||
|
autoprefixer: {} |
||||
|
} |
||||
|
} |
@ -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 |
||||
|
} |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 73 KiB |
After Width: | Height: | Size: 6.2 KiB |
@ -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> |
@ -0,0 +1,8 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export const getActivityList = async (params) => { |
||||
|
return await request.get({ |
||||
|
url: '/bpm/activity/list', |
||||
|
params |
||||
|
}) |
||||
|
} |
@ -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 |
||||
|
}) |
||||
|
} |
@ -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' |
||||
|
}) |
||||
|
} |
@ -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 }) |
||||
|
} |
@ -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 }) |
||||
|
} |
@ -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 }) |
||||
|
} |
@ -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 }) |
||||
|
} |
@ -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 |
||||
|
}) |
||||
|
} |
@ -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' }) |
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface BasciYearEquipmentVO { |
||||
|
id: number |
||||
|
name: string |
||||
|
type: string |
||||
|
factoryType: string |
||||
|
yearIndex: Date |
||||
|
goal: number |
||||
|
actual: number |
||||
|
} |
||||
|
|
||||
|
// 查询首页年设备指标列表
|
||||
|
export const getBasciYearEquipmentPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/basci-year-equipment/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/basci-year-equipment/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询首页年设备指标详情
|
||||
|
export const getBasciYearEquipment = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/basci-year-equipment/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增首页年设备指标
|
||||
|
export const createBasciYearEquipment = async (data: BasciYearEquipmentVO) => { |
||||
|
return await request.post({ url: `/eam/basci-year-equipment/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改首页年设备指标
|
||||
|
export const updateBasciYearEquipment = async (data: BasciYearEquipmentVO) => { |
||||
|
return await request.put({ url: `/eam/basci-year-equipment/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除首页年设备指标
|
||||
|
export const deleteBasciYearEquipment = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/basci-year-equipment/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出首页年设备指标 Excel
|
||||
|
export const exportBasciYearEquipment = async (params) => { |
||||
|
return await request.download({ url: `/eam/basci-year-equipment/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/basci-year-equipment/get-import-template' }) |
||||
|
} |
@ -0,0 +1,54 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface BasicMonthEquipmentVO { |
||||
|
id: number |
||||
|
name: string |
||||
|
type: string |
||||
|
factoryType: string |
||||
|
monthIndex: string |
||||
|
actual: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询首页月设备实现指标列表
|
||||
|
export const getBasicMonthEquipmentPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/basic-month-equipment/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/basic-month-equipment/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询首页月设备实现指标详情
|
||||
|
export const getBasicMonthEquipment = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/basic-month-equipment/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增首页月设备实现指标
|
||||
|
export const createBasicMonthEquipment = async (data: BasicMonthEquipmentVO) => { |
||||
|
return await request.post({ url: `/eam/basic-month-equipment/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改首页月设备实现指标
|
||||
|
export const updateBasicMonthEquipment = async (data: BasicMonthEquipmentVO) => { |
||||
|
return await request.put({ url: `/eam/basic-month-equipment/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除首页月设备实现指标
|
||||
|
export const deleteBasicMonthEquipment = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/basic-month-equipment/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出首页月设备实现指标 Excel
|
||||
|
export const exportBasicMonthEquipment = async (params) => { |
||||
|
return await request.download({ url: `/eam/basic-month-equipment/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/basic-month-equipment/get-import-template' }) |
||||
|
} |
@ -0,0 +1,54 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface ClassTypeVO { |
||||
|
workerRoleId: string |
||||
|
engineerRoleId: string |
||||
|
type: string |
||||
|
describes: string |
||||
|
factoryAreaNumber: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
deptId: number |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询厂区班组角色数据维护列表
|
||||
|
export const getClassTypePage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/class-type/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/class-type/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询厂区班组角色数据维护详情
|
||||
|
export const getClassType = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/class-type/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增厂区班组角色数据维护
|
||||
|
export const createClassType = async (data: ClassTypeVO) => { |
||||
|
return await request.post({ url: `/eam/class-type/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改厂区班组角色数据维护
|
||||
|
export const updateClassType = async (data: ClassTypeVO) => { |
||||
|
return await request.put({ url: `/eam/class-type/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除厂区班组角色数据维护
|
||||
|
export const deleteClassType = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/class-type/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出厂区班组角色数据维护 Excel
|
||||
|
export const exportClassType = async (params) => { |
||||
|
return await request.download({ url: `/eam/class-type/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/class-type/get-import-template' }) |
||||
|
} |
@ -0,0 +1,61 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceMoldItemsVO { |
||||
|
name: string |
||||
|
deviceNumber: string |
||||
|
type: "DEVICE" |
||||
|
status: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询项记录表(设备 模具 保养 维修 巡检点检)列表
|
||||
|
export const getDeviceMoldItemsPage = async (params) => { |
||||
|
params.type="DEVICE" |
||||
|
params.status="MAINTAIN" |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/device-mold-items/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-mold-items/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 查询项记录表(设备 模具 保养 维修 巡检点检)详情
|
||||
|
export const getDeviceMoldItems = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/device-mold-items/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 查询供应商发票申请主详情
|
||||
|
export const getNumber = async (params) => { |
||||
|
return await request.get({ url: `/eam/device-mold-items/getNumber`, params}) |
||||
|
} |
||||
|
|
||||
|
// 新增项记录表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const createDeviceMoldItems = async (data: DeviceMoldItemsVO) => { |
||||
|
data.type="DEVICE" |
||||
|
data.status="MAINTAIN" |
||||
|
return await request.post({ url: `/eam/device-mold-items/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改项记录表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const updateDeviceMoldItems = async (data: DeviceMoldItemsVO) => { |
||||
|
data.type="DEVICE" |
||||
|
data.status="MAINTAIN" |
||||
|
return await request.put({ url: `/eam/device-mold-items/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除项记录表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const deleteDeviceMoldItems = async (id: number,remark: string) => { |
||||
|
return await request.delete({ url: `/eam/device-mold-items/delete?id=` + id + `&remark=` + remark }) |
||||
|
} |
||||
|
|
||||
|
// 导出项记录表(设备 模具 保养 维修 巡检点检) Excel
|
||||
|
export const exportDeviceMoldItems = async (params) => { |
||||
|
return await request.download({ url: `/eam/device-mold-items/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
|
@ -0,0 +1,60 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceMoldItemsHistoryVO { |
||||
|
id: number |
||||
|
name: string |
||||
|
deviceNumber: string |
||||
|
executionCycle: string |
||||
|
equipmentParts: string |
||||
|
type: string |
||||
|
status: string |
||||
|
peoples: number |
||||
|
estimatedMinutes: number |
||||
|
remark: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
peopleNum: number |
||||
|
maintenanceTime: number |
||||
|
} |
||||
|
|
||||
|
// 查询项记录历史表(设备 模具 保养 维修 巡检点检)列表
|
||||
|
export const getDeviceMoldItemsHistoryPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/record/device-mold-items-history/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/record/device-mold-items-history/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询项记录历史表(设备 模具 保养 维修 巡检点检)详情
|
||||
|
export const getDeviceMoldItemsHistory = async (id: number) => { |
||||
|
return await request.get({ url: `/record/device-mold-items-history/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增项记录历史表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const createDeviceMoldItemsHistory = async (data: DeviceMoldItemsHistoryVO) => { |
||||
|
return await request.post({ url: `/record/device-mold-items-history/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改项记录历史表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const updateDeviceMoldItemsHistory = async (data: DeviceMoldItemsHistoryVO) => { |
||||
|
return await request.put({ url: `/record/device-mold-items-history/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除项记录历史表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const deleteDeviceMoldItemsHistory = async (id: number) => { |
||||
|
return await request.delete({ url: `/record/device-mold-items-history/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出项记录历史表(设备 模具 保养 维修 巡检点检) Excel
|
||||
|
export const exportDeviceMoldItemsHistory = async (params) => { |
||||
|
return await request.download({ url: `/record/device-mold-items-history/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/record/device-mold-items-history/get-import-template' }) |
||||
|
} |
@ -0,0 +1,49 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface FactoryAreaVO { |
||||
|
number: string |
||||
|
name: string |
||||
|
description: string |
||||
|
leader: string |
||||
|
leaderPhone: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询厂区列表
|
||||
|
export const getFactoryAreaPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/factory-area/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/factory-area/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询厂区详情
|
||||
|
export const getFactoryArea = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/factory-area/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增厂区
|
||||
|
export const createFactoryArea = async (data: FactoryAreaVO) => { |
||||
|
return await request.post({ url: `/eam/factory-area/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改厂区
|
||||
|
export const updateFactoryArea = async (data: FactoryAreaVO) => { |
||||
|
return await request.put({ url: `/eam/factory-area/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除厂区
|
||||
|
export const deleteFactoryArea = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/factory-area/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出厂区 Excel
|
||||
|
export const exportFactoryArea = async (params) => { |
||||
|
return await request.download({ url: `/eam/factory-area/export-excel`, params }) |
||||
|
} |
||||
|
|
@ -0,0 +1,87 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
import { getStrDictOptions } from '@/utils/dict' |
||||
|
import { useUserStore } from '@/store/modules/user' |
||||
|
|
||||
|
export interface FixedAssetsVO { |
||||
|
number: string |
||||
|
name: string |
||||
|
accountingUnit: string |
||||
|
specifications: string |
||||
|
locationNumber: string |
||||
|
purchaseDate: Date |
||||
|
purchaseDept: string |
||||
|
supplierNumber: string |
||||
|
productionDate: Date |
||||
|
purchasePrice: number |
||||
|
manageDept: string |
||||
|
unit: string |
||||
|
qty: number |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
export const getFixedAssetsPage = async (params) => { |
||||
|
const userStore = useUserStore() // 用户信息
|
||||
|
const deviceMoldTypeList = getStrDictOptions(DICT_TYPE.SPECIAL_DEPT_ROLE) |
||||
|
|
||||
|
// 查找第一个同时存在于userStore.roles和deviceMoldTypeList中的值
|
||||
|
const matchingRole = userStore.roles.find(role => |
||||
|
deviceMoldTypeList.some(deviceMold => deviceMold.value === role) |
||||
|
); |
||||
|
|
||||
|
const admin = userStore.roles.find(role => { |
||||
|
if (role == 'gdzc_admin') { |
||||
|
return true; |
||||
|
} else { |
||||
|
return false; |
||||
|
} |
||||
|
}); |
||||
|
|
||||
|
// 如果找到了匹配的角色,将它作为manageDept的值加入到params中
|
||||
|
if (matchingRole) { |
||||
|
params.manageDept = matchingRole; // 这里只添加第一个匹配的角色
|
||||
|
} else if(admin){ |
||||
|
params.manageDept = null; |
||||
|
} else { |
||||
|
params.manageDept = 'bukenengpipeidedao@3&*#@'; |
||||
|
} |
||||
|
|
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/fixed-assets/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/fixed-assets/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询固定资产详情
|
||||
|
export const getFixedAssets = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/fixed-assets/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增固定资产
|
||||
|
export const createFixedAssets = async (data: FixedAssetsVO) => { |
||||
|
return await request.post({ url: `/eam/fixed-assets/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改固定资产
|
||||
|
export const updateFixedAssets = async (data: FixedAssetsVO) => { |
||||
|
return await request.put({ url: `/eam/fixed-assets/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除固定资产
|
||||
|
export const deleteFixedAssets = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/fixed-assets/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出固定资产 Excel
|
||||
|
export const exportFixedAssets = async (params) => { |
||||
|
return await request.download({ url: `/eam/fixed-assets/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/fixed-assets/get-import-template' }) |
||||
|
} |
@ -0,0 +1,89 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceMoldItemsVO { |
||||
|
name: string |
||||
|
deviceNumber: string |
||||
|
type: string |
||||
|
status: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询设备项记录表(设备 模具 保养 维修 巡检点检)列表
|
||||
|
export const getDeviceMoldItemsPage = async (params) => { |
||||
|
params.type="DEVICE" |
||||
|
params.status="INSPECTION" |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/device-mold-items/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-mold-items/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询模具项记录表(设备 模具 保养 维修 巡检点检)列表
|
||||
|
export const getMoldItemsPage = async (params) => { |
||||
|
params.type="MOLD" |
||||
|
params.status="INSPECTION" |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/device-mold-items/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-mold-items/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 查询项记录表(设备 模具 保养 维修 巡检点检)详情
|
||||
|
export const getDeviceMoldItems = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/device-mold-items/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 查询供应商发票申请主详情
|
||||
|
export const getNumber = async (params) => { |
||||
|
return await request.get({ url: `/eam/device-mold-items/getNumber`, params}) |
||||
|
} |
||||
|
|
||||
|
// 新增设备项记录表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const createDeviceMoldItems = async (data: DeviceMoldItemsVO) => { |
||||
|
data.type="DEVICE" |
||||
|
data.status="INSPECTION" |
||||
|
return await request.post({ url: `/eam/device-mold-items/create`, data }) |
||||
|
} |
||||
|
//新增模具
|
||||
|
export const creatMoldItems = async (data: DeviceMoldItemsVO) => { |
||||
|
debugger |
||||
|
data.type="MOLD" |
||||
|
data.status="INSPECTION" |
||||
|
return await request.post({ url: `/eam/device-mold-items/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改项记录表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const updateDeviceMoldItems = async (data: DeviceMoldItemsVO) => { |
||||
|
data.type="DEVICE" |
||||
|
data.status="INSPECTION" |
||||
|
return await request.put({ url: `/eam/device-mold-items/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改模具项记录表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const updateMoldItems = async (data: DeviceMoldItemsVO) => { |
||||
|
debugger |
||||
|
data.type="MOLD" |
||||
|
data.status="INSPECTION" |
||||
|
return await request.put({ url: `/eam/device-mold-items/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除项记录表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const deleteDeviceMoldItems = async (id: number, remark: string) => { |
||||
|
return await request.delete({ url: `/eam/device-mold-items/delete?id=` + id + `&remark=` + remark }) |
||||
|
} |
||||
|
|
||||
|
// 导出项记录表(设备 模具 保养 维修 巡检点检) Excel
|
||||
|
export const exportDeviceMoldItems = async (params) => { |
||||
|
return await request.download({ url: `/eam/device-mold-items/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
|
@ -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 }) |
||||
|
} |
@ -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 }) |
||||
|
} |
@ -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 }) |
||||
|
} |
||||
|
|
@ -0,0 +1,63 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceMoldItemsVO { |
||||
|
name: string |
||||
|
deviceNumber: string |
||||
|
type: string |
||||
|
status: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 查询模具项记录表(设备 模具 保养 维修 巡检点检)列表
|
||||
|
export const getMoldItemsPage = async (params) => { |
||||
|
params.type="MOLD" |
||||
|
params.status="INSPECTION" |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/device-mold-items/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-mold-items/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 查询项记录表(设备 模具 保养 维修 巡检点检)详情
|
||||
|
export const getDeviceMoldItems = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/device-mold-items/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 查询供应商发票申请主详情
|
||||
|
export const getNumber = async (params) => { |
||||
|
return await request.get({ url: `/eam/device-mold-items/getNumber`, params}) |
||||
|
} |
||||
|
|
||||
|
//新增模具
|
||||
|
export const creatMoldItems = async (data: DeviceMoldItemsVO) => { |
||||
|
data.type="MOLD" |
||||
|
data.status="INSPECTION" |
||||
|
return await request.post({ url: `/eam/device-mold-items/create`, data }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 修改模具项记录表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const updateMoldItems = async (data: DeviceMoldItemsVO) => { |
||||
|
data.type="MOLD" |
||||
|
data.status="INSPECTION" |
||||
|
return await request.put({ url: `/eam/device-mold-items/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除项记录表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const deleteDeviceMoldItems = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/device-mold-items/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出项记录表(设备 模具 保养 维修 巡检点检) Excel
|
||||
|
export const exportDeviceMoldItems = async (params) => { |
||||
|
return await request.download({ url: `/eam/device-mold-items/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
|
@ -0,0 +1,61 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceMoldItemsVO { |
||||
|
name: string |
||||
|
deviceNumber: string |
||||
|
type: "MOLD" |
||||
|
status: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询项记录表(设备 模具 保养 维修 巡检点检)列表
|
||||
|
export const getDeviceMoldItemsPage = async (params) => { |
||||
|
params.type="MOLD" |
||||
|
params.status="MAINTAIN" |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/device-mold-items/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-mold-items/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 查询项记录表(设备 模具 保养 维修 巡检点检)详情
|
||||
|
export const getDeviceMoldItems = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/device-mold-items/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 查询供应商发票申请主详情
|
||||
|
export const getNumber = async (params) => { |
||||
|
return await request.get({ url: `/eam/device-mold-items/getNumber`, params}) |
||||
|
} |
||||
|
|
||||
|
// 新增项记录表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const createDeviceMoldItems = async (data: DeviceMoldItemsVO) => { |
||||
|
data.type="MOLD" |
||||
|
data.status="MAINTAIN" |
||||
|
return await request.post({ url: `/eam/device-mold-items/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改项记录表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const updateDeviceMoldItems = async (data: DeviceMoldItemsVO) => { |
||||
|
data.type="MOLD" |
||||
|
data.status="MAINTAIN" |
||||
|
return await request.put({ url: `/eam/device-mold-items/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除项记录表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const deleteDeviceMoldItems = async (id: number, remark: string) => { |
||||
|
return await request.delete({ url: `/eam/device-mold-items/delete?id=` + id + `&remark=` + remark }) |
||||
|
} |
||||
|
|
||||
|
// 导出项记录表(设备 模具 保养 维修 巡检点检) Excel
|
||||
|
export const exportDeviceMoldItems = async (params) => { |
||||
|
return await request.download({ url: `/eam/device-mold-items/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
|
@ -0,0 +1,53 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface MoldMilestoneVO { |
||||
|
id: number |
||||
|
number: string |
||||
|
moldNumber: string |
||||
|
milestoneStage: string |
||||
|
milestoneDate: localdate |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询模具里程碑列表
|
||||
|
export const getMoldMilestonePage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/basic/mold-milestone/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/basic/mold-milestone/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询模具里程碑详情
|
||||
|
export const getMoldMilestone = async (id: number) => { |
||||
|
return await request.get({ url: `/basic/mold-milestone/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增模具里程碑
|
||||
|
export const createMoldMilestone = async (data: MoldMilestoneVO) => { |
||||
|
return await request.post({ url: `/basic/mold-milestone/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改模具里程碑
|
||||
|
export const updateMoldMilestone = async (data: MoldMilestoneVO) => { |
||||
|
return await request.put({ url: `/basic/mold-milestone/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除模具里程碑
|
||||
|
export const deleteMoldMilestone = async (id: number) => { |
||||
|
return await request.delete({ url: `/basic/mold-milestone/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出模具里程碑 Excel
|
||||
|
export const exportMoldMilestone = async (params) => { |
||||
|
return await request.download({ url: `/basic/mold-milestone/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/basic/mold-milestone/get-import-template' }) |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceItemVO { |
||||
|
itemNumber: string |
||||
|
deviceNumber: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询设备备件关系列表
|
||||
|
export const getDeviceItemPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/rel/device-item/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/rel/device-item/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询设备备件关系详情
|
||||
|
export const getDeviceItem = async (id: number) => { |
||||
|
return await request.get({ url: `/rel/device-item/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增设备备件关系
|
||||
|
export const createDeviceItem = async (data: DeviceItemVO) => { |
||||
|
return await request.post({ url: `/rel/device-item/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改设备备件关系
|
||||
|
export const updateDeviceItem = async (data: DeviceItemVO) => { |
||||
|
return await request.put({ url: `/rel/device-item/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除设备备件关系
|
||||
|
export const deleteDeviceItem = async (id: number) => { |
||||
|
return await request.delete({ url: `/rel/device-item/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出设备备件关系 Excel
|
||||
|
export const exportDeviceItem = async (params) => { |
||||
|
return await request.download({ url: `/rel/device-item/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 新增设备备件关系
|
||||
|
export const createDeviceItemBatch = async (data: Array<DeviceItemVO>) => { |
||||
|
return await request.post({url: `/rel/device-item/createBatch `, data }); |
||||
|
}; |
||||
|
|
||||
|
|
||||
|
|
||||
|
// 查询设备备件关系列表
|
||||
|
export const getDeviceItemNoPage = async (params) => { |
||||
|
return await request.get({ url: `/rel/device-item/noPage`, params }) |
||||
|
} |
@ -0,0 +1,59 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface SupplierVO { |
||||
|
number: string |
||||
|
name: string |
||||
|
shortName: string |
||||
|
address: string |
||||
|
country: string |
||||
|
city: string |
||||
|
phone: string |
||||
|
fax: string |
||||
|
postId: string |
||||
|
contacts: string |
||||
|
available: string |
||||
|
remark: string |
||||
|
siteId: string |
||||
|
} |
||||
|
|
||||
|
// 查询供应商列表
|
||||
|
export const getSupplierPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/supplier/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/supplier/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询供应商详情
|
||||
|
export const getSupplier = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/supplier/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增供应商
|
||||
|
export const createSupplier = async (data: SupplierVO) => { |
||||
|
return await request.post({ url: `/eam/supplier/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改供应商
|
||||
|
export const updateSupplier = async (data: SupplierVO) => { |
||||
|
return await request.put({ url: `/eam/supplier/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除供应商
|
||||
|
export const deleteSupplier = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/supplier/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出供应商 Excel
|
||||
|
export const exportSupplier = async (params) => { |
||||
|
return await request.download({ url: `/eam/supplier/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 查询供应商列表
|
||||
|
export const getSupplierNoPage = async (params) => { |
||||
|
return await request.get({ url: `/eam/supplier/noPage`, params }) |
||||
|
} |
||||
|
|
@ -0,0 +1,72 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceAccountsVO { |
||||
|
number: string |
||||
|
name: string |
||||
|
specification: string |
||||
|
type: string |
||||
|
factoryAreaNumber: string |
||||
|
purchaseTime: Date |
||||
|
deptId: number |
||||
|
purchaser: number |
||||
|
supplierNumber: string |
||||
|
productionDate: Date |
||||
|
purchasePrice: number |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询设备台账列表
|
||||
|
export const getDeviceAccountsPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/device-accounts/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-accounts/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询设备台账详情
|
||||
|
export const getDeviceAccounts = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/device-accounts/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增设备台账
|
||||
|
export const createDeviceAccounts = async (data: DeviceAccountsVO) => { |
||||
|
return await request.post({ url: `/eam/device-accounts/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改设备台账
|
||||
|
export const updateDeviceAccounts = async (data: DeviceAccountsVO) => { |
||||
|
return await request.put({ url: `/eam/device-accounts/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除设备台账
|
||||
|
export const deleteDeviceAccounts = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/device-accounts/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出设备台账 Excel
|
||||
|
export const exportDeviceAccounts = async (params) => { |
||||
|
return await request.download({ url: `/eam/device-accounts/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/device-accounts/get-import-template' }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 查询设备台账列表
|
||||
|
export const getDeviceAccountsNoPage = async (params) => { |
||||
|
return await request.get({ url: `/eam/device-accounts/selectData`, params }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 查询设备台账全部列表
|
||||
|
export const getDeviceAccountsAllNoPage = async (data: DeviceAccountsVO) => { |
||||
|
return await request.post({ url: `/eam/device-accounts/noPage`,data }) |
||||
|
} |
||||
|
|
@ -0,0 +1,59 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceAccountsVO { |
||||
|
number: string |
||||
|
name: string |
||||
|
specification: string |
||||
|
type: string |
||||
|
factoryAreaNumber: string |
||||
|
purchaseTime: Date |
||||
|
deptId: number |
||||
|
purchaser: number |
||||
|
supplierNumber: string |
||||
|
productionDate: Date |
||||
|
purchasePrice: number |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询备件台账列表
|
||||
|
export const getDeviceAccountsPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/device-accounts/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-accounts/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询备件台账详情
|
||||
|
export const getDeviceAccounts = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/device-accounts/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增备件台账
|
||||
|
export const createDeviceAccounts = async (data: DeviceAccountsVO) => { |
||||
|
return await request.post({ url: `/eam/device-accounts/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改备件台账
|
||||
|
export const updateDeviceAccounts = async (data: DeviceAccountsVO) => { |
||||
|
return await request.put({ url: `/eam/device-accounts/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除备件台账
|
||||
|
export const deleteDeviceAccounts = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/device-accounts/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出备件台账 Excel
|
||||
|
export const exportDeviceAccounts = async (params) => { |
||||
|
return await request.download({ url: `/eam/device-accounts/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/device-accounts/get-import-template' }) |
||||
|
} |
@ -0,0 +1,59 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceInspectionDetailVO { |
||||
|
id: number |
||||
|
number: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
name: string |
||||
|
peoples: string |
||||
|
estimatedMinutes: number |
||||
|
actualMinutes: number |
||||
|
chargePeoples: string |
||||
|
completionTime: Date |
||||
|
engineer: string |
||||
|
uncompleted: string |
||||
|
status: string |
||||
|
} |
||||
|
|
||||
|
// 查询检修工单子列表
|
||||
|
export const getDeviceInspectionDetailPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/device-inspection-job-detail/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-inspection-job-detail/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询检修工单子详情
|
||||
|
export const getDeviceInspectionDetail = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/device-inspection-job-detail/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增检修工单子
|
||||
|
export const createDeviceInspectionDetail = async (data: DeviceInspectionDetailVO) => { |
||||
|
return await request.post({ url: `/eam/device-inspection-job-detail/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改检修工单子
|
||||
|
export const updateDeviceInspectionDetail = async (data: DeviceInspectionDetailVO) => { |
||||
|
return await request.put({ url: `/eam/device-inspection-job-detail/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除检修工单子
|
||||
|
export const deleteDeviceInspectionDetail = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/device-inspection-job-detail/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出检修工单子 Excel
|
||||
|
export const exportDeviceInspectionDetail = async (params) => { |
||||
|
return await request.download({ url: `/eam/device-inspection-job-detail/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/device-inspection-job-detail/get-import-template' }) |
||||
|
} |
@ -0,0 +1,76 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceInspectionMainVO { |
||||
|
number: string |
||||
|
maintenanceNumber: string |
||||
|
deviceNumber: string |
||||
|
factoryAreaNumber: string |
||||
|
describe: string |
||||
|
maintenance: number |
||||
|
maintenancePhone: string |
||||
|
status: string |
||||
|
type: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询检修工单主列表
|
||||
|
export const getDeviceInspectionMainPage = async (params) => { |
||||
|
params.type = 'DEVICE' |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/device-inspection-job-main/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-inspection-job-main/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询检修工单主详情
|
||||
|
export const getDeviceInspectionMain = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/device-inspection-job-main/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增检修工单主
|
||||
|
export const createDeviceInspectionMain = async (data: DeviceInspectionMainVO) => { |
||||
|
return await request.post({ url: `/eam/device-inspection-job-main/createPC`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改检修工单主
|
||||
|
export const updateDeviceInspectionMain = async (data: DeviceInspectionMainVO) => { |
||||
|
return await request.put({ url: `/eam/device-inspection-job-main/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除检修工单主
|
||||
|
export const deleteDeviceInspectionMain = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/device-inspection-job-main/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出检修工单主 Excel
|
||||
|
export const exportDeviceInspectionMain = async (params) => { |
||||
|
return await request.download({ url: `/eam/device-inspection-job-main/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: `/eam/device-inspection-job-main/get-import-template` }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 检修完成
|
||||
|
export const finishInspection = (id: number) => { |
||||
|
return request.get({ url: `/eam/device-inspection-job-main/orderClickFinish?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 查询检修工单主列表
|
||||
|
export const getDeviceInspectionMainNoPage = async (params) => { |
||||
|
return await request.get({ url: `/eam/device-inspection-job-main/noPage`, params }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
//验证
|
||||
|
export const verifyOrder = async (id: number,verifyContent: string) => { |
||||
|
return await request.get({ url: `/eam/device-inspection-job-main/orderClickVerify?id=`+id+`&verifyContent=` + verifyContent }) |
||||
|
} |
@ -0,0 +1,59 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceInternalAuditVO { |
||||
|
id: number |
||||
|
number: string |
||||
|
describes: string |
||||
|
personer: string |
||||
|
fitOut: number |
||||
|
coating: number |
||||
|
injectionMolding: number |
||||
|
business: number |
||||
|
laboratory: number |
||||
|
it: number |
||||
|
qualityDepartment: number |
||||
|
materialFlow: number |
||||
|
moldPre: number |
||||
|
available: string |
||||
|
} |
||||
|
|
||||
|
// 查询设备内审业务说明列表
|
||||
|
export const getDeviceInternalAuditPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/device-internal-audit/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-internal-audit/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询设备内审业务说明详情
|
||||
|
export const getDeviceInternalAudit = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/device-internal-audit/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增设备内审业务说明
|
||||
|
export const createDeviceInternalAudit = async (data: DeviceInternalAuditVO) => { |
||||
|
return await request.post({ url: `/eam/device-internal-audit/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改设备内审业务说明
|
||||
|
export const updateDeviceInternalAudit = async (data: DeviceInternalAuditVO) => { |
||||
|
return await request.put({ url: `/eam/device-internal-audit/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除设备内审业务说明
|
||||
|
export const deleteDeviceInternalAudit = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/device-internal-audit/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出设备内审业务说明 Excel
|
||||
|
export const exportDeviceInternalAudit = async (params) => { |
||||
|
return await request.download({ url: `/eam/device-internal-audit/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/device-internal-audit/get-import-template' }) |
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceMaintainOrderDetailVO { |
||||
|
id: number |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
name: string |
||||
|
number: string |
||||
|
peoples: number |
||||
|
estimatedMinutes: number |
||||
|
actualMinutes: number |
||||
|
chargePeoples: string |
||||
|
completionTime: Date |
||||
|
engineer: string |
||||
|
uncompleted: string |
||||
|
status: string |
||||
|
contents: string |
||||
|
} |
||||
|
|
||||
|
// 查询保养工单子列表
|
||||
|
export const getDeviceMaintainOrderDetailPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/device-maintain-job-detail/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-maintain-job-detail/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询保养工单子详情
|
||||
|
export const getDeviceMaintainOrderDetail = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/device-maintain-job-detail/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增保养工单子
|
||||
|
export const createDeviceMaintainOrderDetail = async (data: DeviceMaintainOrderDetailVO) => { |
||||
|
return await request.post({ url: `/eam/device-maintain-job-detail/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改保养工单子
|
||||
|
export const updateDeviceMaintainOrderDetail = async (data: DeviceMaintainOrderDetailVO) => { |
||||
|
return await request.put({ url: `/eam/device-maintain-job-detail/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除保养工单子
|
||||
|
export const deleteDeviceMaintainOrderDetail = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/device-maintain-job-detail/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出保养工单子 Excel
|
||||
|
export const exportDeviceMaintainOrderDetail = async (params) => { |
||||
|
return await request.download({ url: `/eam/device-maintain-job-detail/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/device-maintain-job-detail/get-import-template' }) |
||||
|
} |
@ -0,0 +1,76 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceMaintainOrderMainVO { |
||||
|
number: string |
||||
|
name: string |
||||
|
planNumber: string |
||||
|
deviceNumber: string |
||||
|
factoryAreaNumber: string |
||||
|
engineer: number |
||||
|
receiveTime: Date |
||||
|
assignTime: Date |
||||
|
worker: number |
||||
|
finishedTime: Date |
||||
|
verifyTime: Date |
||||
|
status: string |
||||
|
type: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
// 查询保养工单主列表
|
||||
|
export const getDeviceMaintainOrderMainPage = async (params) => { |
||||
|
params.type = 'DEVICE' |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/device-maintain-job-main/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-maintain-job-main/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询保养工单主详情
|
||||
|
export const getDeviceMaintainOrderMain = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/device-maintain-job-main/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增保养工单主
|
||||
|
export const createDeviceMaintainOrderMain = async (data: DeviceMaintainOrderMainVO) => { |
||||
|
return await request.post({ url: `/eam/device-maintain-job-main/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改保养工单主
|
||||
|
export const updateDeviceMaintainOrderMain = async (data: DeviceMaintainOrderMainVO) => { |
||||
|
return await request.put({ url: `/eam/device-maintain-job-main/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除保养工单主
|
||||
|
export const deleteDeviceMaintainOrderMain = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/device-maintain-job-main/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出保养工单主 Excel
|
||||
|
export const exportDeviceMaintainOrderMain = async (params) => { |
||||
|
return await request.download({ url: `/eam/device-maintain-job-main/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/device-maintain-job-main/get-import-template' }) |
||||
|
} |
||||
|
|
||||
|
// 保养接单
|
||||
|
export const orderClick = (id: number) => { |
||||
|
return request.get({ url: '/eam/device-maintain-job-main/orderClick?id=' + id }) |
||||
|
} |
||||
|
|
||||
|
// 保养完成
|
||||
|
export const orderClickFinish = (id: number) => { |
||||
|
return request.get({ url: '/eam/device-maintain-job-main/orderClickFinish?id=' + id }) |
||||
|
} |
||||
|
|
||||
|
// 验证
|
||||
|
export const orderClickApprove = (id: number,status: string,verifyContent: string) => { |
||||
|
return request.get({ url: '/eam/device-maintain-job-main/orderClickVerify?id=' + id + '&status=' + status + '&verifyContent=' + verifyContent }) |
||||
|
} |
@ -0,0 +1,55 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceMaintainPlanVO { |
||||
|
number: string |
||||
|
name: string |
||||
|
maintenanceType: string |
||||
|
cycle: string |
||||
|
times: number |
||||
|
type: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询保养计划列表
|
||||
|
export const getDeviceMaintainPlanPage = async (params) => { |
||||
|
params.type = 'DEVICE' |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/device-maintain-plan/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-maintain-plan/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询保养计划详情
|
||||
|
export const getDeviceMaintainPlan = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/device-maintain-plan/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增保养计划
|
||||
|
export const createDeviceMaintainPlan = async (data: DeviceMaintainPlanVO) => { |
||||
|
return await request.post({ url: `/eam/device-maintain-plan/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改保养计划
|
||||
|
export const updateDeviceMaintainPlan = async (data: DeviceMaintainPlanVO) => { |
||||
|
return await request.put({ url: `/eam/device-maintain-plan/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除保养计划
|
||||
|
export const deleteDeviceMaintainPlan = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/device-maintain-plan/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出保养计划 Excel
|
||||
|
export const exportDeviceMaintainPlan = async (params) => { |
||||
|
return await request.download({ url: `/eam/device-maintain-plan/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/device-maintain-plan/get-import-template' }) |
||||
|
} |
@ -0,0 +1,51 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceMaintenanceDetailVO { |
||||
|
describes: string |
||||
|
describes1: string |
||||
|
workOut: string |
||||
|
maintenances: string |
||||
|
} |
||||
|
|
||||
|
// 查询维修工单子列表
|
||||
|
export const getDeviceMaintenanceDetailPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/wms/purchasereceipt-request-detail/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-maintenance-job-detail/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询维修工单子详情
|
||||
|
export const getPurchasereceiptRequestDetail = async (id) => { |
||||
|
return await request.get({ url: `/eam/device-maintenance-job-detail/selectListByNumber?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增维修工单子
|
||||
|
export const createDeviceMaintenanceDetail = async (data: DeviceMaintenanceDetailVO) => { |
||||
|
return await request.post({ url: `/eam/device-maintenance-job-detail/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改维修工单子
|
||||
|
export const updateDeviceMaintenanceDetail = async (data: DeviceMaintenanceDetailVO) => { |
||||
|
return await request.put({ url: `/eam/device-maintenance-job-detail/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除维修工单子
|
||||
|
export const deleteDeviceMaintenanceDetail = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/device-maintenance-job-detail/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
// 导出维修工单子 Excel
|
||||
|
export const exportPurchasereceiptRequestDetail = async (params) => { |
||||
|
return await request.download({ url: `/wms/purchasereceipt-request-detail/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/wms/purchasereceipt-request-detail/get-import-template' }) |
||||
|
} |
@ -0,0 +1,94 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceMaintenanceMainVO { |
||||
|
id: number |
||||
|
number: string |
||||
|
requestNumber: string |
||||
|
describe: string |
||||
|
deviceNumber: string |
||||
|
factoryAreaNumber: string |
||||
|
maintenance: number |
||||
|
maintenancePhone: string |
||||
|
status: string |
||||
|
type: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询维修工单主列表
|
||||
|
export const getDeviceMaintenanceMainPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/device-maintenance-job-main/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-maintenance-job-main/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询维修工单主详情
|
||||
|
export const getDeviceMaintenanceMain = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/device-maintenance-job-main/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增维修工单主
|
||||
|
export const createDeviceMaintenanceMain = async (data: DeviceMaintenanceMainVO) => { |
||||
|
return await request.post({ url: `/eam/device-maintenance-job-main/createPC`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改维修工单主
|
||||
|
export const updateDeviceMaintenanceMain = async (data: DeviceMaintenanceMainVO) => { |
||||
|
return await request.put({ url: `/eam/device-maintenance-job-main/update`, data }) |
||||
|
} |
||||
|
// 删除维修工单主
|
||||
|
export const deleteDeviceMaintenanceMain = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/device-maintenance-job-main/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出维修工单主 Excel
|
||||
|
export const exportDeviceMaintenanceMain = async (params) => { |
||||
|
return await request.download({ url: `/eam/device-maintenance-job-main/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/device-maintenance-job-main/get-import-template' }) |
||||
|
} |
||||
|
|
||||
|
// 修改维修工单主
|
||||
|
export const orderStepChange = async (data: DeviceMaintenanceMainVO) => { |
||||
|
return await request.get({ url: `/eam/device-maintenance-job-main/orderClick?number=`+data.number+`&status=`+data.status+`&id=`+data.id+`&requestNumber=`+data.requestNumber }) |
||||
|
} |
||||
|
|
||||
|
// 修改维修工单主
|
||||
|
export const orderTurnTo = async (data: DeviceMaintenanceMainVO) => { |
||||
|
return await request.get({ url: `/eam/device-maintenance-job-main/turnTo?deviceNumber=`+data.deviceNumber +`&id=`+data.id + `&receiverType=`+ data.type +`&receiverUserId=` + data.maintenance }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 查询维修工单主列表不分页
|
||||
|
export const getDeviceMainTempList = async (type: String) => { |
||||
|
return await request.get({ url: `/eam/device-maintenance-job-main/getList?type=` + type }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
// 完成维修工单
|
||||
|
export const finishOrder = async (params) => { |
||||
|
return await request.get({ url: `/eam/device-maintenance-job-main/orderClickFinish`, params}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
// 校验维修工单
|
||||
|
export const verifyOrder = async (params) => { |
||||
|
return await request.get({ url: `/eam/device-maintenance-job-main/orderClickVerify`, params}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 确认维修工单
|
||||
|
export const confirmOrder = async (params) => { |
||||
|
return await request.get({ url: `/eam/device-maintenance-job-main/orderClickConfirm`, params}) |
||||
|
} |
||||
|
|
@ -0,0 +1,68 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceRepairVO { |
||||
|
id: number |
||||
|
number: string |
||||
|
describe: string |
||||
|
deviceNumber: string |
||||
|
factoryAreaNumber: string |
||||
|
declarer: number |
||||
|
declarerPhone: string |
||||
|
faultType: string |
||||
|
type: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询报修申请列表
|
||||
|
export const getDeviceRepairPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = { ...params } |
||||
|
return await request.post({ url: '/eam/device-repair-request/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-repair-request/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询报修申请详情
|
||||
|
export const getDeviceRepair = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/device-repair-request/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增报修申请
|
||||
|
export const createDeviceRepair = async (data: DeviceRepairVO) => { |
||||
|
return await request.post({ url: `/eam/device-repair-request/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改报修申请
|
||||
|
export const updateDeviceRepair = async (data: DeviceRepairVO) => { |
||||
|
return await request.put({ url: `/eam/device-repair-request/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除报修申请
|
||||
|
export const deleteDeviceRepair = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/device-repair-request/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出报修申请 Excel
|
||||
|
export const exportDeviceRepair = async (params) => { |
||||
|
return await request.download({ url: `/eam/device-repair-request/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/device-repair-request/get-import-template' }) |
||||
|
} |
||||
|
|
||||
|
// 撤销申请
|
||||
|
export const cancel = (id: Number) => { |
||||
|
return request.delete({ url: '/eam/device-repair-request/cancel?id=' + id }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 根据单号查询申请工单信息
|
||||
|
export const getOrderByNumber = (number: Number) => { |
||||
|
return request.get({ url: '/eam/device-repair-request/getOrderByNumber?number=' + number }) |
||||
|
} |
@ -0,0 +1,54 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceSpotInspectionRecordDetailVO { |
||||
|
id: number |
||||
|
number: string |
||||
|
isConform: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
masterId: number |
||||
|
name: string |
||||
|
equipmentPosition: string |
||||
|
} |
||||
|
|
||||
|
// 查询巡检点检记录子列表
|
||||
|
export const getDeviceSpotInspectionRecordDetailPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/device-spot-inspection-record-detail/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-spot-inspection-record-detail/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询巡检点检记录子详情
|
||||
|
export const getDeviceSpotInspectionRecordDetail = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/device-spot-inspection-record-detail/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增巡检点检记录子
|
||||
|
export const createDeviceSpotInspectionRecordDetail = async (data: DeviceSpotInspectionRecordDetailVO) => { |
||||
|
return await request.post({ url: `/eam/device-spot-inspection-record-detail/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改巡检点检记录子
|
||||
|
export const updateDeviceSpotInspectionRecordDetail = async (data: DeviceSpotInspectionRecordDetailVO) => { |
||||
|
return await request.put({ url: `/eam/device-spot-inspection-record-detail/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除巡检点检记录子
|
||||
|
export const deleteDeviceSpotInspectionRecordDetail = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/device-spot-inspection-record-detail/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出巡检点检记录子 Excel
|
||||
|
export const exportDeviceSpotInspectionRecordDetail = async (params) => { |
||||
|
return await request.download({ url: `/eam/device-spot-inspection-record-detail/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/device-spot-inspection-record-detail/get-import-template' }) |
||||
|
} |
@ -0,0 +1,56 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceSpotInspectionRecordMainVO { |
||||
|
number: string |
||||
|
deviceNumber: string |
||||
|
describe: string |
||||
|
maintenance: number |
||||
|
maintenancePhone: string |
||||
|
status: string |
||||
|
type: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询检修工单主列表
|
||||
|
export const getDeviceSpotInspectionRecordMainPage = async (params) => { |
||||
|
params.type = 'DEVICE' |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/device-spot-inspection-record-main/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-spot-inspection-record-main/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询检修工单主详情
|
||||
|
export const getDeviceSpotInspectionRecordMain = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/device-spot-inspection-record-main/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增检修工单主
|
||||
|
export const createDeviceSpotInspectionRecordMain = async (data: DeviceSpotInspectionRecordMainVO) => { |
||||
|
return await request.post({ url: `/eam/device-spot-inspection-record-main/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改检修工单主
|
||||
|
export const updateDeviceSpotInspectionRecordMain = async (data: DeviceSpotInspectionRecordMainVO) => { |
||||
|
return await request.put({ url: `/eam/device-spot-inspection-record-main/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除检修工单主
|
||||
|
export const deleteDeviceSpotInspectionRecordMain = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/device-spot-inspection-record-main/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出检修工单主 Excel
|
||||
|
export const exportDeviceSpotInspectionRecordMain = async (params) => { |
||||
|
return await request.download({ url: `/eam/device-spot-inspection-record-main/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/device-spot-inspection-record-main/get-import-template' }) |
||||
|
} |
@ -0,0 +1,55 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface AttachmentFileVO { |
||||
|
itemNumber: string |
||||
|
qty: number |
||||
|
areaNumber: string |
||||
|
isInAccount: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
funcCode: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询备件台账列表
|
||||
|
export const getProblemSolvingPage = async (params) => { |
||||
|
params.funcCode="problem_solving" |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/attachment-file/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/attachment-file/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询备件台账详情
|
||||
|
export const getProblemSolving = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/attachment-file/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增备件台账
|
||||
|
export const createProblemSolving = async (data: AttachmentFileVO) => { |
||||
|
data.funcCode="problem_solving" |
||||
|
return await request.post({ url: `/eam/attachment-file/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改备件台账
|
||||
|
export const updateProblemSolving = async (data: AttachmentFileVO) => { |
||||
|
return await request.put({ url: `/eam/attachment-file/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除备件台账
|
||||
|
export const deleteProblemSolving = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/attachment-file/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出备件台账 Excel
|
||||
|
export const exportProblemSolving = async (params) => { |
||||
|
return await request.download({ url: `/eam/attachment-file/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/attachment-file/get-import-template' }) |
||||
|
} |
@ -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 }) |
||||
|
} |
@ -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 }) |
||||
|
} |
@ -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' }) |
||||
|
} |
@ -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' }) |
||||
|
} |
@ -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' }) |
||||
|
} |
@ -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' }) |
||||
|
} |
@ -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' }) |
||||
|
} |
@ -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' }) |
||||
|
} |
@ -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' }) |
||||
|
} |
@ -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 }) |
||||
|
} |
@ -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' }) |
||||
|
} |
@ -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' }) |
||||
|
} |
@ -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' }) |
||||
|
} |
@ -0,0 +1,56 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface ItemLocationRecordVO { |
||||
|
itemNumber: string |
||||
|
locationNumber: string |
||||
|
transactionType: string |
||||
|
inventoryAction: string |
||||
|
businessType: string |
||||
|
inventoryStatus: string |
||||
|
uom: string |
||||
|
qty: number |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询备件库存记录列表
|
||||
|
export const getItemLocationRecordPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/item-location-record/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/item-location-record/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询备件库存记录详情
|
||||
|
export const getItemLocationRecord = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/item-location-record/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增备件库存记录
|
||||
|
export const createItemLocationRecord = async (data: ItemLocationRecordVO) => { |
||||
|
return await request.post({ url: `/eam/item-location-record/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改备件库存记录
|
||||
|
export const updateItemLocationRecord = async (data: ItemLocationRecordVO) => { |
||||
|
return await request.put({ url: `/eam/item-location-record/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除备件库存记录
|
||||
|
export const deleteItemLocationRecord = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/item-location-record/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出备件库存记录 Excel
|
||||
|
export const exportItemLocationRecord = async (params) => { |
||||
|
return await request.download({ url: `/eam/item-location-record/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/item-location-record/get-import-template' }) |
||||
|
} |
@ -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' }) |
||||
|
} |
@ -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' }) |
||||
|
} |
@ -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' }) |
||||
|
} |
@ -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' }) |
||||
|
} |
@ -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' }) |
||||
|
} |
@ -0,0 +1,55 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface AttachmentFileVO { |
||||
|
itemNumber: string |
||||
|
qty: number |
||||
|
areaNumber: string |
||||
|
isInAccount: string |
||||
|
siteId: string |
||||
|
funcCode: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询备件台账列表
|
||||
|
export const getReplaceItemDesPage = async (params) => { |
||||
|
params.funcCode="Replace_Item_Des" |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/attachment-file/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/attachment-file/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询备件台账详情
|
||||
|
export const getReplaceItemDes = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/attachment-file/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增备件台账
|
||||
|
export const createReplaceItemDes = async (data: AttachmentFileVO) => { |
||||
|
data.funcCode="Replace_Item_Des" |
||||
|
return await request.post({ url: `/eam/attachment-file/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改备件台账
|
||||
|
export const updateReplaceItemDes = async (data: AttachmentFileVO) => { |
||||
|
return await request.put({ url: `/eam/attachment-file/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除备件台账
|
||||
|
export const deleteReplaceItemDes = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/attachment-file/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出备件台账 Excel
|
||||
|
export const exportReplaceItemDes = async (params) => { |
||||
|
return await request.download({ url: `/eam/attachment-file/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/attachment-file/get-import-template' }) |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface TransactionVO { |
||||
|
itemNumber: string |
||||
|
locationNumber: string |
||||
|
transactionType: string |
||||
|
inventoryAction: string |
||||
|
businessType: string |
||||
|
inventoryStatus: string |
||||
|
uom: string |
||||
|
qty: number |
||||
|
} |
||||
|
|
||||
|
// 查询库存事务列表
|
||||
|
export const getTransactionPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/transaction/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/transaction/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询库存事务详情
|
||||
|
export const getTransaction = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/transaction/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增库存事务
|
||||
|
export const createTransaction = async (data: TransactionVO) => { |
||||
|
return await request.post({ url: `/eam/transaction/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改库存事务
|
||||
|
export const updateTransaction = async (data: TransactionVO) => { |
||||
|
return await request.put({ url: `/eam/transaction/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除库存事务
|
||||
|
export const deleteTransaction = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/transaction/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出库存事务 Excel
|
||||
|
export const exportTransaction = async (params) => { |
||||
|
return await request.download({ url: `/eam/transaction/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/transaction/get-import-template' }) |
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface MoldAccountsVO { |
||||
|
number: string |
||||
|
name: string |
||||
|
specification: string |
||||
|
type: string |
||||
|
factoryAreaNumber: string |
||||
|
purchaseTime: Date |
||||
|
deptId: number |
||||
|
purchaser: number |
||||
|
supplierNumber: string |
||||
|
productionDate: Date |
||||
|
purchasePrice: number |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
status: string |
||||
|
} |
||||
|
|
||||
|
// 查询设备台账列表
|
||||
|
export const getMoldAccountsPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/mold-accounts/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/mold-accounts/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询设备台账详情
|
||||
|
export const getMoldAccounts = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/mold-accounts/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增设备台账
|
||||
|
export const createMoldAccounts = async (data: MoldAccountsVO) => { |
||||
|
return await request.post({ url: `/eam/mold-accounts/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改设备台账
|
||||
|
export const updateMoldAccounts = async (data: MoldAccountsVO) => { |
||||
|
return await request.put({ url: `/eam/mold-accounts/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除设备台账
|
||||
|
export const deleteMoldAccounts = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/mold-accounts/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出设备台账 Excel
|
||||
|
export const exportMoldAccounts = async (params) => { |
||||
|
return await request.download({ url: `/eam/mold-accounts/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/mold-accounts/get-import-template' }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 查询模具台账列表
|
||||
|
export const getMoldAccountsNoPage = async (params) => { |
||||
|
return await request.get({ url: `/eam/mold-accounts/selectData`, params }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 查询模具台账全部列表
|
||||
|
export const getMoldAccountsAllNoPage = async (data: MoldAccountsVO) => { |
||||
|
return await request.post({ url: `/eam/mold-accounts/noPage`,data }) |
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface MoldInspectionDetailVO { |
||||
|
id: number |
||||
|
number: string |
||||
|
masterId: number |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
name: string |
||||
|
peoples: string |
||||
|
estimatedMinutes: number |
||||
|
actualMinutes: number |
||||
|
chargePeoples: string |
||||
|
completionTime: Date |
||||
|
engineer: string |
||||
|
uncompleted: string |
||||
|
status: string |
||||
|
} |
||||
|
|
||||
|
// 查询检修工单子列表
|
||||
|
export const getMoldInspectionDetailPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/mold-inspection-job-detail/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/mold-inspection-job-detail/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询检修工单子详情
|
||||
|
export const getMoldInspectionDetail = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/mold-inspection-job-detail/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增检修工单子
|
||||
|
export const createMoldInspectionDetail = async (data: MoldInspectionDetailVO) => { |
||||
|
return await request.post({ url: `/eam/mold-inspection-job-detail/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改检修工单子
|
||||
|
export const updateMoldInspectionDetail = async (data: MoldInspectionDetailVO) => { |
||||
|
return await request.put({ url: `/eam/mold-inspection-job-detail/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除检修工单子
|
||||
|
export const deleteMoldInspectionDetail = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/mold-inspection-job-detail/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出检修工单子 Excel
|
||||
|
export const exportMoldInspectionDetail = async (params) => { |
||||
|
return await request.download({ url: `/eam/mold-inspection-job-detail/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/mold-inspection-job-detail/get-import-template' }) |
||||
|
} |
@ -0,0 +1,70 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface MoldInspectionMainVO { |
||||
|
number: string |
||||
|
maintenanceNumber: string |
||||
|
deviceNumber: string |
||||
|
factoryAreaNumber: string |
||||
|
describe: string |
||||
|
maintenance: number |
||||
|
maintenancePhone: string |
||||
|
status: string |
||||
|
type: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询检修工单主列表
|
||||
|
export const getMoldInspectionMainPage = async (params) => { |
||||
|
params.type = 'MOLD' |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/mold-inspection-job-main/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/mold-inspection-job-main/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询检修工单主详情
|
||||
|
export const getMoldInspectionMain = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/mold-inspection-job-main/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增检修工单主
|
||||
|
export const createMoldInspectionMain = async (data: MoldInspectionMainVO) => { |
||||
|
return await request.post({ url: `/eam/mold-inspection-job-main/createPC`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改检修工单主
|
||||
|
export const updateMoldInspectionMain = async (data: MoldInspectionMainVO) => { |
||||
|
return await request.put({ url: `/eam/mold-inspection-job-main/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除检修工单主
|
||||
|
export const deleteMoldInspectionMain = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/mold-inspection-job-main/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出检修工单主 Excel
|
||||
|
export const exportMoldInspectionMain = async (params) => { |
||||
|
return await request.download({ url: `/eam/mold-inspection-job-main/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/mold-inspection-job-main/get-import-template' }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 查询检修工单主列表
|
||||
|
export const getMoldInspectionMainNoPage = async (params) => { |
||||
|
return await request.get({ url: `/eam/mold-inspection-job-main/noPage`, params }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
//验证
|
||||
|
export const verifyOrder = async (id: number,verifyContent: string) => { |
||||
|
return await request.get({ url: `/eam/mold-inspection-job-main/onVerify?id=`+id+`&verifyContent=` + verifyContent }) |
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface MoldMaintainOrderDetailVO { |
||||
|
id: number |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
name: string |
||||
|
number: string |
||||
|
peoples: number |
||||
|
estimatedMinutes: number |
||||
|
actualMinutes: number |
||||
|
chargePeoples: string |
||||
|
completionTime: Date |
||||
|
engineer: string |
||||
|
uncompleted: string |
||||
|
status: string |
||||
|
contents: string |
||||
|
} |
||||
|
|
||||
|
// 查询保养工单子列表
|
||||
|
export const getMoldMaintainOrderDetailPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/mold-maintain-job-detail/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/mold-maintain-job-detail/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询保养工单子详情
|
||||
|
export const getMoldMaintainOrderDetail = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/mold-maintain-job-detail/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增保养工单子
|
||||
|
export const createMoldMaintainOrderDetail = async (data: MoldMaintainOrderDetailVO) => { |
||||
|
return await request.post({ url: `/eam/mold-maintain-job-detail/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改保养工单子
|
||||
|
export const updateMoldMaintainOrderDetail = async (data: MoldMaintainOrderDetailVO) => { |
||||
|
return await request.put({ url: `/eam/mold-maintain-job-detail/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除保养工单子
|
||||
|
export const deleteMoldMaintainOrderDetail = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/mold-maintain-job-detail/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出保养工单子 Excel
|
||||
|
export const exportMoldMaintainOrderDetail = async (params) => { |
||||
|
return await request.download({ url: `/eam/mold-maintain-job-detail/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/mold-maintain-job-detail/get-import-template' }) |
||||
|
} |
@ -0,0 +1,80 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface MoldMaintainOrderMainVO { |
||||
|
number: string |
||||
|
name: string |
||||
|
planNumber: string |
||||
|
deviceNumber: string |
||||
|
factoryAreaNumber: string |
||||
|
engineer: number |
||||
|
receiveTime: Date |
||||
|
assignTime: Date |
||||
|
worker: number |
||||
|
finishedTime: Date |
||||
|
verifyTime: Date |
||||
|
status: string |
||||
|
type: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
// 查询保养工单主列表
|
||||
|
export const getMoldMaintainOrderMainPage = async (params) => { |
||||
|
params.type = 'MOLD' |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/mold-maintain-job-main/senior', data }) |
||||
|
} else { |
||||
|
params.type = 'MOLD' |
||||
|
return await request.get({ url: `/eam/mold-maintain-job-main/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询保养工单主详情
|
||||
|
export const getMoldMaintainOrderMain = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/mold-maintain-job-main/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增保养工单主
|
||||
|
export const createMoldMaintainOrderMain = async (data: MoldMaintainOrderMainVO) => { |
||||
|
return await request.post({ url: `/eam/mold-maintain-job-main/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改保养工单主
|
||||
|
export const updateMoldMaintainOrderMain = async (data: MoldMaintainOrderMainVO) => { |
||||
|
return await request.put({ url: `/eam/mold-maintain-job-main/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除保养工单主
|
||||
|
export const deleteMoldMaintainOrderMain = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/mold-maintain-job-main/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出保养工单主 Excel
|
||||
|
export const exportMoldMaintainOrderMain = async (params) => { |
||||
|
return await request.download({ url: `/eam/mold-maintain-job-main/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/mold-maintain-job-main/get-import-template' }) |
||||
|
} |
||||
|
|
||||
|
// 保养接单
|
||||
|
export const orderClick = (id: number) => { |
||||
|
return request.get({ url: '/eam/mold-maintain-job-main/orderClick?id=' + id }) |
||||
|
} |
||||
|
|
||||
|
// 保养完成
|
||||
|
export const orderClickFinish = (id: number) => { |
||||
|
return request.get({ url: '/eam/mold-maintain-job-main/orderClickFinish?id=' + id }) |
||||
|
} |
||||
|
|
||||
|
// 验证
|
||||
|
export const orderClickApprove = (id: number,status: string,verifyContent: string) => { |
||||
|
return request.get({ url: '/eam/mold-maintain-job-main/orderClickVerify?id=' + id + '&status=' + status + '&verifyContent=' + verifyContent }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
@ -0,0 +1,55 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface MoldMaintainPlanVO { |
||||
|
number: string |
||||
|
name: string |
||||
|
maintenanceType: string |
||||
|
cycle: string |
||||
|
times: number |
||||
|
type: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询保养计划列表
|
||||
|
export const getMoldMaintainPlanPage = async (params) => { |
||||
|
params.type = 'MOLD' |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/mold-maintain-plan/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/mold-maintain-plan/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询保养计划详情
|
||||
|
export const getMoldMaintainPlan = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/mold-maintain-plan/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增保养计划
|
||||
|
export const createMoldMaintainPlan = async (data: MoldMaintainPlanVO) => { |
||||
|
return await request.post({ url: `/eam/mold-maintain-plan/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改保养计划
|
||||
|
export const updateMoldMaintainPlan = async (data: MoldMaintainPlanVO) => { |
||||
|
return await request.put({ url: `/eam/mold-maintain-plan/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除保养计划
|
||||
|
export const deleteMoldMaintainPlan = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/mold-maintain-plan/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出保养计划 Excel
|
||||
|
export const exportMoldMaintainPlan = async (params) => { |
||||
|
return await request.download({ url: `/eam/mold-maintain-plan/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/mold-maintain-plan/get-import-template' }) |
||||
|
} |
@ -0,0 +1,51 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface MoldMaintenanceDetailVO { |
||||
|
describes: string |
||||
|
describes1: string |
||||
|
workOut: string |
||||
|
maintenances: string |
||||
|
} |
||||
|
|
||||
|
// 查询维修工单子列表
|
||||
|
export const getMoldMaintenanceDetailPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/wms/purchasereceipt-request-detail/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/mold-maintenance-job-detail/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询维修工单子详情
|
||||
|
export const getPurchasereceiptRequestDetail = async (id) => { |
||||
|
return await request.get({ url: `/eam/mold-maintenance-job-detail/selectListByNumber?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增维修工单子
|
||||
|
export const createMoldMaintenanceDetail = async (data: MoldMaintenanceDetailVO) => { |
||||
|
return await request.post({ url: `/eam/mold-maintenance-job-detail/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改维修工单子
|
||||
|
export const updateMoldMaintenanceDetail = async (data: MoldMaintenanceDetailVO) => { |
||||
|
return await request.put({ url: `/eam/mold-maintenance-job-detail/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除维修工单子
|
||||
|
export const deleteMoldMaintenanceDetail = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/mold-maintenance-job-detail/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
// 导出维修工单子 Excel
|
||||
|
export const exportPurchasereceiptRequestDetail = async (params) => { |
||||
|
return await request.download({ url: `/wms/purchasereceipt-request-detail/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/wms/purchasereceipt-request-detail/get-import-template' }) |
||||
|
} |
@ -0,0 +1,92 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface MoldMaintenanceMainVO { |
||||
|
id: number |
||||
|
number: string |
||||
|
requestNumber: string |
||||
|
describe: string |
||||
|
deviceNumber: string |
||||
|
factoryAreaNumber: string |
||||
|
maintenance: number |
||||
|
maintenancePhone: string |
||||
|
status: string |
||||
|
type: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询维修工单主列表
|
||||
|
export const getMoldMaintenanceMainPage = async (params) => { |
||||
|
params.type = 'MOLD' |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/mold-maintenance-job-main/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/mold-maintenance-job-main/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询维修工单主详情
|
||||
|
export const getMoldMaintenanceMain = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/mold-maintenance-job-main/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增维修工单主
|
||||
|
export const createMoldMaintenanceMain = async (data: MoldMaintenanceMainVO) => { |
||||
|
return await request.post({ url: `/eam/mold-maintenance-job-main/createPC`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改维修工单主
|
||||
|
export const updateMoldMaintenanceMain = async (data: MoldMaintenanceMainVO) => { |
||||
|
return await request.put({ url: `/eam/mold-maintenance-job-main/update`, data }) |
||||
|
} |
||||
|
// 删除维修工单主
|
||||
|
export const deleteMoldMaintenanceMain = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/mold-maintenance-job-main/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出维修工单主 Excel
|
||||
|
export const exportMoldMaintenanceMain = async (params) => { |
||||
|
return await request.download({ url: `/eam/mold-maintenance-job-main/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/mold-maintenance-job-main/get-import-template' }) |
||||
|
} |
||||
|
|
||||
|
// 修改维修工单主
|
||||
|
export const orderStepChange = async (data: MoldMaintenanceMainVO) => { |
||||
|
return await request.get({ url: `/eam/mold-maintenance-job-main/orderClick?number=`+data.number+`&status=`+data.status+`&id=`+data.id+`&requestNumber=`+data.requestNumber }) |
||||
|
} |
||||
|
|
||||
|
// 修改维修工单主
|
||||
|
export const orderTurnTo = async (data: MoldMaintenanceMainVO) => { |
||||
|
return await request.get({ url: `/eam/mold-maintenance-job-main/turnTo?deviceNumber=`+data.deviceNumber +`&id=`+data.id + `&receiverType=`+ data.type +`&receiverUserId=` + data.maintenance }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 查询维修工单主列表不分页
|
||||
|
export const getMoldMainTempList = async (type: String) => { |
||||
|
return await request.get({ url: `/eam/mold-maintenance-job-main/getList?type=` + type }) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 完成维修工单
|
||||
|
export const finishOrder = async (params) => { |
||||
|
return await request.get({ url: `/eam/mold-maintenance-job-main/orderClickFinish`, params}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 申请人确认工单
|
||||
|
export const confirmOrder = async (params) => { |
||||
|
return await request.get({ url: `/eam/mold-maintenance-job-main/orderClickConfirm`, params}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 校验维修工单
|
||||
|
export const verifyOrder = async (params) => { |
||||
|
return await request.get({ url: `/eam/mold-maintenance-job-main/orderClickVerify`, params}) |
||||
|
} |
@ -0,0 +1,62 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface MoldRepairVO { |
||||
|
number: string |
||||
|
describe: string |
||||
|
deviceNumber: string |
||||
|
factoryAreaNumber: string |
||||
|
declarer: number |
||||
|
declarerPhone: string |
||||
|
faultType: string |
||||
|
type: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询报修申请列表
|
||||
|
export const getMoldRepairPage = async (params) => { |
||||
|
params.type = 'MOLD' |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = { ...params } |
||||
|
return await request.post({ url: '/eam/mold-repair-request/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/mold-repair-request/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询报修申请详情
|
||||
|
export const getMoldRepair = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/mold-repair-request/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增报修申请
|
||||
|
export const createMoldRepair = async (data: MoldRepairVO) => { |
||||
|
return await request.post({ url: `/eam/mold-repair-request/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改报修申请
|
||||
|
export const updateMoldRepair = async (data: MoldRepairVO) => { |
||||
|
return await request.put({ url: `/eam/mold-repair-request/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除报修申请
|
||||
|
export const deleteMoldRepair = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/mold-repair-request/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出报修申请 Excel
|
||||
|
export const exportMoldRepair = async (params) => { |
||||
|
return await request.download({ url: `/eam/mold-repair-request/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/mold-repair-request/get-import-template' }) |
||||
|
} |
||||
|
|
||||
|
// 撤销申请
|
||||
|
export const rejected = (id: Number) => { |
||||
|
return request.delete({ url: '/eam/mold-repair-request/cancel?id=' + id }) |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceSpotInspectionRecordMainVO { |
||||
|
number: string |
||||
|
deviceNumber: string |
||||
|
describe: string |
||||
|
maintenance: number |
||||
|
maintenancePhone: string |
||||
|
status: string |
||||
|
type: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
approveOpinion?: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询检修工单主列表
|
||||
|
export const getDeviceSpotInspectionRecordMainPage = async (params) => { |
||||
|
params.type = 'MOLD' |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/mold-spot-inspection-record-main/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/mold-spot-inspection-record-main/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询检修工单主详情
|
||||
|
export const getDeviceSpotInspectionRecordMain = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/mold-spot-inspection-record-main/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增检修工单主
|
||||
|
export const createDeviceSpotInspectionRecordMain = async (data: DeviceSpotInspectionRecordMainVO) => { |
||||
|
return await request.post({ url: `/eam/mold-spot-inspection-record-main/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改检修工单主
|
||||
|
export const updateDeviceSpotInspectionRecordMain = async (data: DeviceSpotInspectionRecordMainVO) => { |
||||
|
return await request.put({ url: `/eam/mold-spot-inspection-record-main/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除检修工单主
|
||||
|
export const deleteDeviceSpotInspectionRecordMain = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/mold-spot-inspection-record-main/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出检修工单主 Excel
|
||||
|
export const exportDeviceSpotInspectionRecordMain = async (params) => { |
||||
|
return await request.download({ url: `/eam/mold-spot-inspection-record-main/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/eam/mold-spot-inspection-record-main/get-import-template' }) |
||||
|
} |
@ -0,0 +1,10 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
// 上传图片
|
||||
|
export const uploadImage = async (data) => { |
||||
|
return await request.post({ url: `/eam/attachment-file/upload`, data }) |
||||
|
} |
||||
|
|
||||
|
// 查询图片
|
||||
|
export const getImage = async (data) => { |
||||
|
return await request.post({ url: `/eam/attachment-file/listNoPage`, data }) |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
// 首页获取设备停机状态/设备总数/月设备保养完成率/月汇总停机时间
|
||||
|
export const getData = async () => { |
||||
|
return await request.get({ url: `/eam/home-page/select` }) |
||||
|
} |
||||
|
|
||||
|
// 获取年度指标
|
||||
|
export const getYearTarget = async () => { |
||||
|
return await request.get({ url: `/eam/home-page/selectYearIndex` }) |
||||
|
} |
||||
|
|
||||
|
// 获取年度指标
|
||||
|
export const getChartsData = async (factory) => { |
||||
|
return await request.get({ url: `/eam/home-page/selectMonthGraphByFactory?factory=`+factory }) |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface ApiAccessLogVO { |
||||
|
id: number |
||||
|
traceId: string |
||||
|
userId: number |
||||
|
userType: number |
||||
|
applicationName: string |
||||
|
requestMethod: string |
||||
|
requestParams: string |
||||
|
requestUrl: string |
||||
|
userIp: string |
||||
|
userAgent: string |
||||
|
beginTime: Date |
||||
|
endTIme: Date |
||||
|
duration: number |
||||
|
resultCode: number |
||||
|
resultMsg: string |
||||
|
createTime: Date |
||||
|
} |
||||
|
|
||||
|
// 查询列表API 访问日志
|
||||
|
export const getApiAccessLogPage = (params: PageParam) => { |
||||
|
return request.get({ url: '/infra/api-access-log/page', params }) |
||||
|
} |
||||
|
|
||||
|
// 导出API 访问日志
|
||||
|
export const exportApiAccessLog = (params) => { |
||||
|
return request.download({ url: '/infra/api-access-log/export-excel', params }) |
||||
|
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue