This commit is contained in:
gtz217 2021-10-20 16:25:18 +08:00
parent a62e9a9dce
commit c951ee56f5
686 changed files with 75106 additions and 5870 deletions

7
.dockerignore Normal file
View File

@ -0,0 +1,7 @@
.vscode/
.idea/
node_modules/
dist/
**/*.log
LICENSE
README.md

41
.drone.yml Normal file
View File

@ -0,0 +1,41 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: docker:dind
volumes:
- name: dockersock
path: /var/run/docker.sock
- name: dockerconfig
path: /root/.docker
commands:
- docker build -t harbor.picaiba.com/mes/mes-cigs-ui ./ && docker push harbor.picaiba.com/mes/mes-cigs-ui
- name: deploy
image: harbor.picaiba.com/tools/kubectl:1.19.8
commands:
- echo "172.27.0.20 lb.kubesphere.local" >> /etc/hosts
#- echo "52.74.223.119 github.com" >> /etc/hosts
- sleep 1
- kubectl scale --replicas=0 deployment/mes-ui -n mes-cigs
- sleep 3
- kubectl scale --replicas=1 deployment/mes-ui -n mes-cigs
depends_on:
- build
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
- name: dockerconfig
host:
path: /root/.docker
trigger:
branch:
- develop
event:
- push

View File

@ -2,4 +2,16 @@
ENV = 'development'
# base api
VUE_APP_BASE_API = '/dev-api'
# 这里修改成api服务器地址
VUE_APP_BASE_API = '/api'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
# to control whether the babel-plugin-dynamic-import-node plugin is enabled.
# It only does one thing by converting all import() to require().
# This configuration can significantly increase the speed of hot updates,
# when you have a large number of pages.
# Detail: https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js
VUE_CLI_BABEL_TRANSPILE_MODULES = true
VUE_APP_REPORT_DESIGN_URL = 'http://127.0.0.1:8080/ureport/designer'
VUE_APP_REPORT_VIEW_URL = 'http://127.0.0.1:8080/ureport/preview'

View File

@ -2,5 +2,6 @@
ENV = 'production'
# base api
VUE_APP_BASE_API = '/prod-api'
VUE_APP_BASE_API = '/api'
VUE_APP_REPORT_DESIGN_URL = '/ureport/designer'
VUE_APP_REPORT_VIEW_URL = '/ureport/preview'

4
.github/FUNDING.yml vendored
View File

@ -1,4 +0,0 @@
# These are supported funding model platforms
patreon: panjiachen
custom: https://panjiachen.github.io/vue-element-admin-site/donate

View File

@ -1,33 +0,0 @@
---
name: Bug report报告问题
about: Create a report to help us improve
---
<!--
注意:为更好的解决你的问题,请参考模板提供完整信息,准确描述问题,信息不全的 issue 将被关闭。
Note: In order to better solve your problem, please refer to the template to provide complete information, accurately describe the problem, and the incomplete information issue will be closed.
-->
## Bug report问题描述
#### Steps to reproduce问题复现步骤
<!--
1. [xxx]
2. [xxx]
3. [xxxx]
-->
#### Screenshot or Gif截图或动态图
#### Link to minimal reproduction最小可在线还原demo
<!--
Please only use Codepen, JSFiddle, CodeSandbox or a github repo
-->
#### Other relevant information格外信息
- Your OS:
- Node.js version:
- vue-element-admin version:

View File

@ -1,7 +0,0 @@
---
name: Feature Request新功能建议
about: Suggest an idea for this project
---
## Feature request新功能建议

View File

@ -1,35 +0,0 @@
---
name: Question提问
about: Asking questions about use
---
## Question提问
<!--
提问之前,请确定你已经过自己的努力,尝试解决过这个问题。
若是代码相关问题,请不要只截图,请提供在线 demo以便节约彼此的时间。
Before asking a question, please make sure that you have tried your best to solve this problem.
If it's a code-related issue, please don't just take screenshots. Please provide an online demo to save each other's time.
-->
#### Steps to reproduce问题复现步骤
<!--
1. [xxx]
2. [xxx]
3. [xxxx]
-->
#### Screenshot or Gif截图或动态图
#### Link to minimal reproduction最小可在线还原demo
<!--
Please only use Codepen, JSFiddle, CodeSandbox or a github repo
-->
#### Other relevant information格外信息
- Your OS:
- Node.js version:
- vue-element-admin version:

2
.gitignore vendored
View File

@ -21,3 +21,5 @@ selenium-debug.log
package-lock.json
yarn.lock
/.env.development
/vue.config.js

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM node:12 AS builder
WORKDIR /app
ADD package.json /app/
RUN npm install \
--registry=https://registry.npm.taobao.org \
--disturl=https://npm.taobao.org/dist
ADD . /app
RUN npm run build:prod
FROM busybox
LABEL maintainer thomas.hairong@gmail.com
COPY --from=builder /app/dist /html

BIN
QR.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 717 B

View File

@ -1,10 +1,50 @@
<!--
* @Author: gtz
* @Date: 2021-01-27 10:07:42
* @LastEditors: gtz
* @LastEditTime: 2021-04-22 09:58:18
* @Description: file content
-->
# Readme
页面原型地址: http://rp.picaiba.com/qj/2021-9-22
页面原型地址: http://rp.picaiba.com/mes/2020-12-29
element 表单生成工具: https://mrhj.gitee.io/form-generator/#/
***
* 顶栏右上角设置的配置在 @/layout/components/Navbar.vue 中
* 富文本编辑器中 右上角上传图片的目标地址需要修改,在@/components/Tinymce/components/EditorImage.vue 中
##### echarts封装
* 考虑使用mixin加入部分功能
* option配置分离再复用
* 定义统一输入的数据格式通过props
##### 国际化注意事项
* 所有methodbtn的tableBtn配置中的btnName写成下种形式具体配置项在@/lang/i18n.js 中,若无想要的自行添加
```
btnName: 'btn.edit'
```
* 所有hidden不为true的路由的mate中的title写成下种形式位置同上
```
meta: { title: routerTitle.dashboard.dashboard?.[language] || routerTitle.dashboard.dashboard.en, icon: 'dashboard', affix: true }
```
* 所有table页引入国际化组件表格配置项中label写成下种形式具体配置需自行到@/lang/en.js 和@/lang/zh.js 中添加
```
import i18n from '@/lang'
const tableProps = [{
...
label: i18n.t('userManage.userId'),
...
}]
```
##### 切换主题色
* 主题样式文件应使用本地文件不应使用element云上的目前尝试使用本地可能因为缓存策略导致切换主题色仅第一次生效目前仍保留使用element云上的样式文件
##### 备注
* 废品报废添加时间隐藏,质量检测计划检测速率、检测内容隐藏
test

View File

@ -1,14 +1,26 @@
/*
* @Date: 2020-12-14 09:07:03
* @LastEditors: guo
* @LastEditTime: 2020-12-29 21:34:11
* @FilePath: \basic-admin\babel.config.js
* @Description: 修改babel配置
* preset-env用于适配浏览器最新4个版本
* transform-runtime 用于识别一些比较新的js语法
*/
module.exports = {
presets: [
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
'@vue/cli-plugin-babel/preset'
['@babel/preset-env', {
'useBuiltIns': 'usage',
'debug': true,
'targets': [
'last 4 versions'
]
}],
'@vue/app'
],
'env': {
'development': {
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
// https://panjiachen.github.io/vue-element-admin-site/guide/advanced/lazy-loading.html
'plugins': ['dynamic-import-node']
}
}
plugins: [
['@babel/plugin-transform-runtime', {
'corejs': 3
}]
]
}

50
default.conf Normal file
View File

@ -0,0 +1,50 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
root /usr/share/nginx/html;
index index.html index.htm;
location / {
try_files $uri $uri/ @rewrites;
}
location /spc/ {
proxy_pass http://58.210.206.230:8000/;
}
location /api {
access_log off;
add_header Access-Control-Allow-Origin * always;
add_header Access-Control-Allow-Methods GET,OPTIONS,POST,GET,PUT,DELETE always;
add_header Access-Control-Allow-Headers $http_access_control_request_headers;
add_header Access-Control-Allow-Credentials true;
add_header Access-Control-Max-Age 1800;
if ($request_method = OPTIONS){
add_header Access-Control-Allow-Origin * always;
add_header Access-Control-Allow-Methods GET,OPTIONS,POST,GET,PUT,DELETE always;
add_header Access-Control-Allow-Headers $http_access_control_request_headers;
add_header Access-Control-Allow-Credentials true;
add_header Access-Control-Max-Age 1800;
return 204;
}
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_buffering off;
proxy_pass http://mes:9090/api;
proxy_http_version 1.1;
}
location @rewrites {
rewrite ^(.+)$ /index.html last;
}
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
expires max;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
}

View File

@ -1,4 +1,4 @@
const Mock = require('mockjs')
import Mock from 'mockjs'
const List = []
const count = 100
@ -27,7 +27,7 @@ for (let i = 0; i < count; i++) {
}))
}
module.exports = [
export default [
{
url: '/vue-element-admin/article/list',
type: 'get',

View File

@ -1,10 +1,10 @@
const Mock = require('mockjs')
const { param2Obj } = require('./utils')
import Mock from 'mockjs'
import { param2Obj } from '../src/utils'
const user = require('./user')
const role = require('./role')
const article = require('./article')
const search = require('./remote-search')
import user from './user'
import role from './role'
import article from './article'
import search from './remote-search'
const mocks = [
...user,
@ -16,7 +16,7 @@ const mocks = [
// for front mock
// please use it cautiously, it will redefine XMLHttpRequest,
// which will cause many of your third-party libraries to be invalidated(like progress event).
function mockXHR() {
export function mockXHR() {
// mock patch
// https://github.com/nuysoft/Mock/issues/300
Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send
@ -54,7 +54,4 @@ function mockXHR() {
}
}
module.exports = {
mocks,
mockXHR
}
export default mocks

View File

@ -8,7 +8,7 @@ const mockDir = path.join(process.cwd(), 'mock')
function registerRoutes(app) {
let mockLastIndex
const { mocks } = require('./index.js')
const { default: mocks } = require('./index.js')
const mocksForServer = mocks.map(route => {
return responseFake(route.url, route.type, route.response)
})
@ -44,6 +44,9 @@ const responseFake = (url, type, respond) => {
}
module.exports = app => {
// es6 polyfill
require('@babel/register')
// parse app.body
// https://expressjs.com/en/4x/api.html#req.body
app.use(bodyParser.json())

View File

@ -1,4 +1,4 @@
const Mock = require('mockjs')
import Mock from 'mockjs'
const NameList = []
const count = 100
@ -10,7 +10,7 @@ for (let i = 0; i < count; i++) {
}
NameList.push({ name: 'mock-Pan' })
module.exports = [
export default [
// username search
{
url: '/vue-element-admin/search/user',

View File

@ -1,6 +1,6 @@
const Mock = require('mockjs')
const { deepClone } = require('../utils')
const { asyncRoutes, constantRoutes } = require('./routes.js')
import Mock from 'mockjs'
import { deepClone } from '../../src/utils/index.js'
import { asyncRoutes, constantRoutes } from './routes.js'
const routes = deepClone([...constantRoutes, ...asyncRoutes])
@ -35,7 +35,7 @@ const roles = [
}
]
module.exports = [
export default [
// mock get all routes form server
{
url: '/vue-element-admin/routes',

View File

@ -1,6 +1,6 @@
// Just a mock data
const constantRoutes = [
export const constantRoutes = [
{
path: '/redirect',
component: 'layout/Layout',
@ -72,7 +72,7 @@ const constantRoutes = [
}
]
const asyncRoutes = [
export const asyncRoutes = [
{
path: '/permission',
component: 'layout/Layout',
@ -523,8 +523,3 @@ const asyncRoutes = [
{ path: '*', redirect: '/404', hidden: true }
]
module.exports = {
constantRoutes,
asyncRoutes
}

View File

@ -23,7 +23,7 @@ const users = {
}
}
module.exports = [
export default [
// user login
{
url: '/vue-element-admin/user/login',

View File

@ -1,48 +0,0 @@
/**
* @param {string} url
* @returns {Object}
*/
function param2Obj(url) {
const search = decodeURIComponent(url.split('?')[1]).replace(/\+/g, ' ')
if (!search) {
return {}
}
const obj = {}
const searchArr = search.split('&')
searchArr.forEach(v => {
const index = v.indexOf('=')
if (index !== -1) {
const name = v.substring(0, index)
const val = v.substring(index + 1, v.length)
obj[name] = val
}
})
return obj
}
/**
* This is just a simple version of deep copy
* Has a lot of edge cases bug
* If you want to use a perfect deep copy, use lodash's _.cloneDeep
* @param {Object} source
* @returns {Object}
*/
function deepClone(source) {
if (!source && typeof source !== 'object') {
throw new Error('error arguments', 'deepClone')
}
const targetObj = source.constructor === Array ? [] : {}
Object.keys(source).forEach(keys => {
if (source[keys] && typeof source[keys] === 'object') {
targetObj[keys] = deepClone(source[keys])
} else {
targetObj[keys] = source[keys]
}
})
return targetObj
}
module.exports = {
param2Obj,
deepClone
}

View File

@ -1,87 +1,30 @@
{
"name": "vue-element-admin",
"version": "4.4.0",
"version": "4.2.1",
"description": "A magical vue admin. An out-of-box UI solution for enterprise applications. Newest development stack of vue. Lots of awesome features",
"author": "Pan <panfree23@gmail.com>",
"license": "MIT",
"scripts": {
"dev": "vue-cli-service serve",
"lint": "eslint --ext .js,.vue src",
"build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",
"new": "plop",
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
"lint": "eslint --ext .js,.vue src",
"test:unit": "jest --clearCache && vue-cli-service test:unit",
"test:ci": "npm run lint && npm run test:unit"
"test:ci": "npm run lint && npm run test:unit",
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
"new": "plop"
},
"dependencies": {
"axios": "0.18.1",
"clipboard": "2.0.4",
"codemirror": "5.45.0",
"core-js": "3.6.5",
"driver.js": "0.9.5",
"dropzone": "5.5.1",
"echarts": "4.2.1",
"element-ui": "2.13.2",
"file-saver": "2.0.1",
"fuse.js": "3.4.4",
"js-cookie": "2.2.0",
"jsonlint": "1.6.3",
"jszip": "3.2.1",
"normalize.css": "7.0.0",
"nprogress": "0.2.0",
"path-to-regexp": "2.4.0",
"screenfull": "4.2.0",
"script-loader": "0.7.2",
"sortablejs": "1.8.4",
"tui-editor": "1.3.3",
"vue": "2.6.10",
"vue-count-to": "1.0.13",
"vue-router": "3.0.2",
"vue-splitpane": "1.0.4",
"vuedraggable": "2.20.0",
"vuex": "3.1.0",
"xlsx": "0.14.1"
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"devDependencies": {
"@vue/cli-plugin-babel": "4.4.4",
"@vue/cli-plugin-eslint": "4.4.4",
"@vue/cli-plugin-unit-jest": "4.4.4",
"@vue/cli-service": "4.4.4",
"@vue/test-utils": "1.0.0-beta.29",
"autoprefixer": "9.5.1",
"babel-eslint": "10.1.0",
"babel-jest": "23.6.0",
"babel-plugin-dynamic-import-node": "2.3.3",
"chalk": "2.4.2",
"chokidar": "2.1.5",
"connect": "3.6.6",
"eslint": "6.7.2",
"eslint-plugin-vue": "6.2.2",
"html-webpack-plugin": "3.2.0",
"husky": "1.3.1",
"lint-staged": "8.1.5",
"mockjs": "1.0.1-beta3",
"plop": "2.3.0",
"runjs": "4.3.2",
"sass": "1.26.2",
"sass-loader": "8.0.2",
"script-ext-html-webpack-plugin": "2.1.3",
"serve-static": "1.13.2",
"svg-sprite-loader": "4.1.3",
"svgo": "1.2.0",
"vue-template-compiler": "2.6.10"
},
"browserslist": [
"> 1%",
"last 2 versions"
],
"bugs": {
"url": "https://github.com/PanJiaChen/vue-element-admin/issues"
},
"engines": {
"node": ">=8.9",
"npm": ">= 3.0.0"
"lint-staged": {
"src/**/*.{js,vue}": [
"eslint --fix",
"git add"
]
},
"keywords": [
"vue",
@ -92,20 +35,94 @@
"admin-template",
"management-system"
],
"license": "MIT",
"lint-staged": {
"src/**/*.{js,vue}": [
"eslint --fix",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/PanJiaChen/vue-element-admin.git"
}
},
"bugs": {
"url": "https://github.com/PanJiaChen/vue-element-admin/issues"
},
"dependencies": {
"axios": "0.18.1",
"clipboard": "2.0.4",
"codemirror": "5.45.0",
"desandro-matches-selector": "^2.0.2",
"driver.js": "0.9.5",
"dropzone": "5.5.1",
"echarts": "4.2.1",
"element-ui": "2.13.0",
"ev-emitter": "^2.1.0",
"file-saver": "2.0.1",
"fizzy-ui-utils": "^3.0.0",
"fuse.js": "3.4.4",
"get-size": "^2.0.3",
"js-cookie": "2.2.0",
"jsonlint": "1.6.3",
"jszip": "3.2.1",
"lodash": "^4.17.15",
"masonry-layout": "^4.2.2",
"moment": "^2.27.0",
"normalize.css": "7.0.0",
"nprogress": "0.2.0",
"outlayer": "^2.1.1",
"path-to-regexp": "2.4.0",
"screenfull": "4.2.0",
"script-loader": "0.7.2",
"showdown": "1.9.0",
"sortablejs": "1.8.4",
"tui-editor": "1.4.10",
"viewerjs": "^1.6.1",
"vue": "2.6.10",
"vue-bus": "^1.2.1",
"vue-count-to": "1.0.13",
"vue-i18n": "^8.22.2",
"vue-perfect-scrollbar": "^0.2.1",
"vue-router": "3.0.2",
"vue-splitpane": "1.0.4",
"vuedraggable": "2.20.0",
"vuex": "3.1.0",
"xlsx": "0.14.1"
},
"devDependencies": {
"@babel/core": "7.0.0",
"@babel/plugin-transform-runtime": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/register": "7.0.0",
"@babel/runtime-corejs3": "^7.12.5",
"@vue/cli-plugin-babel": "3.5.3",
"@vue/cli-plugin-eslint": "^3.9.1",
"@vue/cli-plugin-unit-jest": "3.5.3",
"@vue/cli-service": "3.5.3",
"@vue/test-utils": "1.0.0-beta.29",
"autoprefixer": "^9.5.1",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "10.0.1",
"babel-jest": "23.6.0",
"chalk": "2.4.2",
"chokidar": "2.1.5",
"connect": "3.6.6",
"eslint": "5.15.3",
"eslint-plugin-vue": "5.2.2",
"html-webpack-plugin": "3.2.0",
"husky": "1.3.1",
"lint-staged": "8.1.5",
"mockjs": "1.0.1-beta3",
"plop": "2.3.0",
"runjs": "^4.3.2",
"sass": "^1.26.10",
"sass-loader": "^7.1.0",
"script-ext-html-webpack-plugin": "2.1.3",
"serve-static": "^1.13.2",
"svg-sprite-loader": "4.1.3",
"svgo": "1.2.0",
"vue-template-compiler": "2.6.10"
},
"engines": {
"node": ">=8.9",
"npm": ">= 3.0.0"
},
"browserslist": [
"> 1%",
"last 2 versions"
]
}

View File

@ -0,0 +1,89 @@
{{#if template}}
<template>
<div class="{{ name }}-container">
<base-table :table-config="tableProps" :table-data="list" :is-loading="listLoading">
<method-btn slot="handleBtn" :method-list="tableBtn" @clickBtn="handleClick" />
</base-table>
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
</div>
</template>
{{/if}}
{{#if script}}
<script>
// edit here
const tableBtn = [{
type: 'edit',
btnName: 'btn.edit'
}, {
type: 'delete',
btnName: 'btn.delete'
}]
const tableProps = [{
prop: '',
label: '',
width: '',
filter: null,
subcomponent: null,
align: ''
}]
import BaseTable from '@/components/BaseTable'
// edit here
import { fetchList } from '@/api/article'
import Pagination from '@/components/Pagination'
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn'
export default {
name: '{{ properCase name }}',
props: {},
components: { Pagination, BaseTable, MethodBtn },
data() {
return {
tableBtn,
tableProps,
list: [],
total: 0,
listLoading: true,
listQuery: {
current: 1,
size: 10
}
}
},
created() {
this.getList()
},
mounted() {},
methods: {
handleClick(raw) {
},
getList() {
this.listLoading = true
// edit here
fetchList(this.listQuery).then(response => {
this.list = response.data.records
this.total = response.data.total
this.listLoading = false
})
}
}
}
</script>
{{/if}}
{{#if style}}
<style lang="scss" scoped>
.{{ name }}-container {
}
.edit-input {
padding-right: 100px;
}
.cancel-btn {
position: absolute;
right: 15px;
top: 10px;
}
</style>
{{/if}}

View File

@ -0,0 +1,55 @@
const { notEmpty } = require('../utils.js')
module.exports = {
description: 'generate a table-view',
prompts: [{
type: 'input',
name: 'name',
message: 'input table name please',
validate: notEmpty('name')
},
{
type: 'checkbox',
name: 'blocks',
message: 'Blocks:',
choices: [{
name: '<template>',
value: 'template',
checked: true
},
{
name: '<script>',
value: 'script',
checked: true
},
{
name: 'style',
value: 'style',
checked: true
}
],
validate(value) {
if (value.indexOf('script') === -1 && value.indexOf('template') === -1) {
return 'View require at least a <script> or <template> tag.'
}
return true
}
}
],
actions: data => {
const name = '{{name}}'
const actions = [{
type: 'add',
path: `src/views/${name}/index.vue`,
templateFile: 'plop-templates/table/index.hbs',
data: {
name: name,
template: data.blocks.includes('template'),
script: data.blocks.includes('script'),
style: data.blocks.includes('style')
}
}]
return actions
}
}

View File

@ -1,2 +1,9 @@
exports.notEmpty = name => v =>
!v || v.trim() === '' ? `${name} is required` : true
exports.notEmpty = name => {
return v => {
if (!v || v.trim === '') {
return `${name} is required`
} else {
return true
}
}
}

View File

@ -1,9 +1,11 @@
const viewGenerator = require('./plop-templates/view/prompt')
const componentGenerator = require('./plop-templates/component/prompt')
const storeGenerator = require('./plop-templates/store/prompt.js')
const tableGenerator = require('./plop-templates/table/prompt.js')
module.exports = function(plop) {
plop.setGenerator('view', viewGenerator)
plop.setGenerator('component', componentGenerator)
plop.setGenerator('store', storeGenerator)
plop.setGenerator('tablepage', tableGenerator)
}

BIN
public/Lodap.zip Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@ -1,3 +1,10 @@
<!--
* @Author: gtz
* @Date: 2021-01-27 10:07:42
* @LastEditors: gtz
* @LastEditTime: 2021-02-24 10:15:28
* @Description: file content
-->
<!DOCTYPE html>
<html>
<head>

View File

@ -6,6 +6,8 @@
<script>
export default {
name: 'App'
name: 'App',
mounted() {
}
}
</script>

126
src/api/art-manage/art.js Normal file
View File

@ -0,0 +1,126 @@
import request from '@/utils/request'
export function list(data) {
return request({
url: '/process/process-flow/page',
method: 'post',
data
})
}
export function getInfo(data) {
return request({
url: '/process/process-flow/get',
method: 'post',
data
})
}
export function enabled(data) {
return request({
url: '/process/process-flow/enabled',
method: 'post',
data
})
}
export function del(data) {
return request({
url: '/process/process-flow/delete',
method: 'post',
data
})
}
export function update(data) {
return request({
url: '/process/process-flow/update',
method: 'post',
data
})
}
export function add(data) {
return request({
url: '/process/process-flow/add',
method: 'post',
data
})
}
// 获取基板列表
export function listSubstrate(data) {
return request({
url: '/process/process-flow/substrateList',
method: 'post',
data
})
}
// 获取BOM列表
export function listBom(data) {
return request({
url: '/process/process-flow/bomList',
method: 'post',
data
})
}
// 获取某个设备下的bom
export function listEquipmentBom(data) {
return request({
url: 'process/process-flow-equipment/equipmentBomList',
method: 'post',
data
})
}
// 获取所有设备的bom
export function listAllEquipmentBom(data) {
return request({
url: '/process/process-flow-equipment/allEquipmentBomList',
method: 'post',
data
})
}
// 获取某个设备下的配方
export function listEquipmentRecipe(data) {
return request({
url: 'process/process-flow-equipment/equipmentRecipeList',
method: 'post',
data
})
}
// 获取所有设备下的配方
export function listAllEquipmentRecipe(data) {
return request({
url: '/process/process-flow-equipment/allEquipmentRecipeList',
method: 'post',
data
})
}
// 保存某个工艺下的所有节点
export function addProcessFlows(data) {
return request({
url: 'process/process-flow-equipment/add',
method: 'post',
data
})
}
// 获取工艺流程下所有节点
export function listProcessFlowNode(data) {
return request({
url: '/process/process-flow-equipment/list',
method: 'post',
data
})
}
// 获取工序列表
export function listProcess(data) {
return request({
url: '/process/work-sequence/list',
method: 'post',
data
})
}
// 获取工艺自动code
export function getCode() {
return request({
url: '/process/process-flow/getCode',
method: 'post'
})
}

View File

@ -0,0 +1,49 @@
/*
* @Author: gtz
* @Date: 2021-04-06 20:20:10
* @LastEditors: gtz
* @LastEditTime: 2021-04-07 16:14:47
* @Description: file content
*/
import request from '@/utils/request'
export function list(data) {
return request({
url: '/process/work-sequence/page',
method: 'post',
data
})
}
export function getInfo(data) {
return request({
url: '/process/work-sequence/get',
method: 'post',
data
})
}
export function del(data) {
return request({
url: '/process/work-sequence/delete',
method: 'post',
data
})
}
export function update(data) {
return request({
url: '/process/work-sequence/update',
method: 'post',
data
})
}
export function add(data) {
return request({
url: '/process/work-sequence/add',
method: 'post',
data
})
}

13
src/api/basic.js Normal file
View File

@ -0,0 +1,13 @@
/*
* @Date: 2021-01-21 17:30:30
* @LastEditors: gtz
* @LastEditTime: 2021-03-01 14:04:42
* @FilePath: \basic-admin\src\api\basic.js
* @Description: 基础功能接口定义
*/
// import request from '@/utils/request'
export const uploadPath = '/api/common/attachment/uploadFileFormData'
export const uploadOnePath = '/api/common/attachment/uploadFile'
export const cloudPath = 'http://mes.picaiba.com'

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-02-01 10:58:22
* @Description:
*/
import request from '@/utils/request'
export function alarmInfoList(data) { // 获取报警信息信息列表
return request({
url: '/basic/alarm/page',
method: 'post',
data
})
}
export function alarmInfoDetail(id) { // 获取报警信息信息单条数据
return request({
url: '/basic/alarm/get',
method: 'post',
data: { id }
})
}
export function alarmInfoUpdate(data) { // 更新报警信息信息单条数据
return request({
url: '/basic/alarm/update',
method: 'post',
data
})
}
export function alarmInfoAdd(data) { // 新增报警信息信息单条数据
return request({
url: '/basic/alarm/add',
method: 'post',
data
})
}
export function alarmInfoCode() { // 获取报警信息信息code
return request({
url: '/basic/alarm/get-code',
method: 'post'
})
}
export function alarmInfoDelete(id) { // 删除报警信息信息单条数据
return request({
url: '/basic/alarm/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-16 15:44:55
* @Description:
*/
import request from '@/utils/request'
export function alarmLevelList(data) { // 获取报警等级信息列表
return request({
url: '/basic/alarm-grade/page',
method: 'post',
data
})
}
export function alarmLevelDetail(id) { // 获取报警等级信息单条数据
return request({
url: '/basic/alarm-grade/get',
method: 'post',
data: { id }
})
}
export function alarmLevelUpdate(data) { // 更新报警等级信息单条数据
return request({
url: '/basic/alarm-grade/update',
method: 'post',
data
})
}
export function alarmLevelAdd(data) { // 新增报警等级信息单条数据
return request({
url: '/basic/alarm-grade/add',
method: 'post',
data
})
}
export function alarmLevelCode() { // 获取报警等级信息code
return request({
url: '/basic/alarm-grade/get-code',
method: 'post'
})
}
export function alarmLevelDelete(id) { // 删除报警等级信息单条数据
return request({
url: '/basic/alarm-grade/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-16 15:45:10
* @Description:
*/
import request from '@/utils/request'
export function alarmTypeList(data) { // 获取报警类型信息列表
return request({
url: '/basic/alarm-type/page',
method: 'post',
data
})
}
export function alarmTypeDetail(id) { // 获取报警类型信息单条数据
return request({
url: '/basic/alarm-type/get',
method: 'post',
data: { id }
})
}
export function alarmTypeUpdate(data) { // 更新报警类型信息单条数据
return request({
url: '/basic/alarm-type/update',
method: 'post',
data
})
}
export function alarmTypeAdd(data) { // 新增报警类型信息单条数据
return request({
url: '/basic/alarm-type/add',
method: 'post',
data
})
}
export function alarmTypeCode() { // 获取报警类型信息code
return request({
url: '/basic/alarm-type/get-code',
method: 'post'
})
}
export function alarmTypeDelete(id) { // 删除报警类型信息单条数据
return request({
url: '/basic/alarm-type/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-27 16:42:27
* @Description:
*/
import request from '@/utils/request'
export function areaList(data) { // 获取缓存区区域信息列表
return request({
url: '/basic/area/page',
method: 'post',
data
})
}
export function areaDetail(id) { // 获取缓存区区域信息单条数据
return request({
url: '/basic/area/get',
method: 'post',
data: { id }
})
}
export function areaUpdate(data) { // 更新缓存区区域信息单条数据
return request({
url: '/basic/area/update',
method: 'post',
data
})
}
export function areaAdd(data) { // 新增缓存区区域信息单条数据
return request({
url: '/basic/area/add',
method: 'post',
data
})
}
export function areaCode() { // 获取缓存区区域信息code
return request({
url: '/basic/area/get-code',
method: 'post'
})
}
export function areaDelete(id) { // 删除缓存区区域信息单条数据
return request({
url: '/basic/area/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-20 15:31:32
* @Description:
*/
import request from '@/utils/request'
export function cacheList(data) { // 获取缓存区信息列表
return request({
url: '/basic/cache/page',
method: 'post',
data
})
}
export function cacheDetail(id) { // 获取缓存区信息单条数据
return request({
url: '/basic/cache/get',
method: 'post',
data: { id }
})
}
export function cacheUpdate(data) { // 更新缓存区信息单条数据
return request({
url: '/basic/cache/update',
method: 'post',
data
})
}
export function cacheAdd(data) { // 新增缓存区信息单条数据
return request({
url: '/basic/cache/add',
method: 'post',
data
})
}
export function cacheCode() { // 获取缓存区信息code
return request({
url: '/basic/cache/get-code',
method: 'post'
})
}
export function cacheDelete(id) { // 删除缓存区信息单条数据
return request({
url: '/basic/cache/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-28 09:38:31
* @Description:
*/
import request from '@/utils/request'
export function locationList(data) { // 获取库位信息列表
return request({
url: '/basic/stock/page',
method: 'post',
data
})
}
export function locationDetail(id) { // 获取库位信息单条数据
return request({
url: '/basic/stock/get',
method: 'post',
data: { id }
})
}
export function locationUpdate(data) { // 更新库位信息单条数据
return request({
url: '/basic/stock/update',
method: 'post',
data
})
}
export function locationAdd(data) { // 新增库位信息单条数据
return request({
url: '/basic/stock/add',
method: 'post',
data
})
}
export function locationCode() { // 获取库位信息code
return request({
url: '/basic/stock/get-code',
method: 'post'
})
}
export function locationDelete(id) { // 删除库位信息单条数据
return request({
url: '/basic/stock/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-03-25 09:28:58
* @Description:
*/
import request from '@/utils/request'
export function shelfList(data) { // 获取货架信息列表
return request({
url: '/basic/shelf/page',
method: 'post',
data
})
}
export function shelfDetail(id) { // 获取货架信息单条数据
return request({
url: '/basic/shelf/get',
method: 'post',
data: { id }
})
}
export function shelfUpdate(data) { // 更新货架信息单条数据
return request({
url: '/basic/shelf/update',
method: 'post',
data
})
}
export function shelfAdd(data) { // 新增货架信息单条数据
return request({
url: '/basic/shelf/add',
method: 'post',
data
})
}
export function shelfCode() { // 获取货架信息code
return request({
url: '/basic/shelf/get-code',
method: 'post'
})
}
export function shelfDelete(id) { // 删除货架信息单条数据
return request({
url: '/basic/shelf/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,70 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-07-21 14:29:10
* @Description:
*/
import request from '@/utils/request'
export function storageBoxList(data) { // 获取存储箱列表
return request({
url: '/basic/storage-tank/page',
method: 'post',
data
})
}
export function storageBoxDetail(id) { // 获取存储箱单条数据
return request({
url: '/basic/storage-tank/get',
method: 'post',
data: { id }
})
}
export function storageBoxUpdate(data) { // 更新存储箱单条数据
return request({
url: '/basic/storage-tank/update',
method: 'post',
data
})
}
export function storageBoxAdd(data) { // 新增存储箱单条数据
return request({
url: '/basic/storage-tank/add',
method: 'post',
data
})
}
export function storageBoxCode() { // 获取存储箱code
return request({
url: '/basic/storage-tank/get-code',
method: 'post'
})
}
export function storageBoxDelete(id) { // 删除存储箱单条数据
return request({
url: '/basic/storage-tank/delete',
method: 'post',
data: { id }
})
}
export function PositionDetailInfoAdd(data) { // 新增存储箱地址单条数据
return request({
url: '/basic/storage-tank-site/add',
method: 'post',
data
})
}
export function PositionDetailInfoList(data) { // 获取存储箱地址列表
return request({
url: '/basic/storage-tank-site/page',
method: 'post',
data
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-29 10:38:02
* @Description:
*/
import request from '@/utils/request'
export function CodeRulesList(data) { // 获取编码规则列表
return request({
url: '/basic/code-rule/page',
method: 'post',
data
})
}
export function CodeRulesDetail(id) { // 获取编码规则单条数据
return request({
url: '/basic/code-rule/get',
method: 'post',
data: { id }
})
}
export function CodeRulesUpdate(data) { // 更新编码规则单条数据
return request({
url: '/basic/code-rule/update',
method: 'post',
data
})
}
export function CodeRulesAdd(data) { // 新增编码规则单条数据
return request({
url: '/basic/code-rule/add',
method: 'post',
data
})
}
export function CodeRulesCode() { // 获取编码规则code
return request({
url: '/basic/code-rule/get-code',
method: 'post'
})
}
export function CodeRulesDelete(id) { // 删除编码规则单条数据
return request({
url: '/basic/code-rule/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-02-02 11:08:34
* @Description:
*/
import request from '@/utils/request'
export function CodeRulesAttrList(data) { // 获取编码规则属性列表
return request({
url: '/basic/code-rule-arrt/page',
method: 'post',
data
})
}
export function CodeRulesAttrDetail(id) { // 获取编码规则属性单条数据
return request({
url: '/basic/code-rule-arrt/get',
method: 'post',
data: { id }
})
}
export function CodeRulesAttrUpdate(data) { // 更新编码规则属性单条数据
return request({
url: '/basic/code-rule-arrt/update',
method: 'post',
data
})
}
export function CodeRulesAttrAdd(data) { // 新增编码规则属性单条数据
return request({
url: '/basic/code-rule-arrt/add',
method: 'post',
data
})
}
export function CodeRulesAttrCode() { // 获取编码规则属性code
return request({
url: '/basic/code-rule-arrt/get-code',
method: 'post'
})
}
export function CodeRulesAttrDelete(id) { // 删除编码规则属性单条数据
return request({
url: '/basic/code-rule-arrt/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-12 19:55:30
* @Description:
*/
import request from '@/utils/request'
export function customerList(data) { // 获取客户列表
return request({
url: '/basic/customer/page',
method: 'post',
data
})
}
export function customerDetail(id) { // 获取客户单条数据
return request({
url: '/basic/customer/get',
method: 'post',
data: { id }
})
}
export function customerUpdate(data) { // 更新客户单条数据
return request({
url: '/basic/customer/update',
method: 'post',
data
})
}
export function customerAdd(data) { // 新增客户单条数据
return request({
url: '/basic/customer/add',
method: 'post',
data
})
}
export function customerCode() { // 获取客户code
return request({
url: '/basic/customer/get-code',
method: 'post'
})
}
export function customerDelete(id) { // 删除客户单条数据
return request({
url: '/basic/customer/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-12 19:56:00
* @Description:
*/
import request from '@/utils/request'
export function supplierList(data) { // 获取供应商列表
return request({
url: '/basic/supplier/page',
method: 'post',
data
})
}
export function supplierDetail(id) { // 获取供应商单条数据
return request({
url: '/basic/supplier/get',
method: 'post',
data: { id }
})
}
export function supplierUpdate(data) { // 更新供应商单条数据
return request({
url: '/basic/supplier/update',
method: 'post',
data
})
}
export function supplierAdd(data) { // 新增供应商单条数据
return request({
url: '/basic/supplier/add',
method: 'post',
data
})
}
export function supplierCode() { // 获取供应商code
return request({
url: '/basic/supplier/get-code',
method: 'post'
})
}
export function supplierDelete(id) { // 删除供应商单条数据
return request({
url: '/basic/supplier/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-03-12 15:40:20
* @Description:
*/
import request from '@/utils/request'
export function equipmentAlarmList(data) { // 获取设备报警列表
return request({
url: '/basic/equipment-alarm/page',
method: 'post',
data
})
}
export function equipmentAlarmDetail(id) { // 获取设备报警单条数据
return request({
url: '/basic/equipment-alarm/get',
method: 'post',
data: { id }
})
}
export function equipmentAlarmUpdate(data) { // 更新设备报警单条数据
return request({
url: '/basic/equipment-alarm/update',
method: 'post',
data
})
}
export function equipmentAlarmAdd(data) { // 新增设备报警单条数据
return request({
url: '/basic/equipment-alarm/add',
method: 'post',
data
})
}
export function equipmentAlarmCode() { // 获取设备报警code
return request({
url: '/basic/equipment-alarm/get-code',
method: 'post'
})
}
export function equipmentAlarmDelete(id) { // 删除设备报警单条数据
return request({
url: '/basic/equipment-alarm/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-02-02 16:00:23
* @Description:
*/
import request from '@/utils/request'
export function equipmentAlarmAttrList(data) { // 获取设备报警列表
return request({
url: '/basic/equipment-alarm-type/page',
method: 'post',
data
})
}
export function equipmentAlarmAttrDetail(id) { // 获取设备报警单条数据
return request({
url: '/basic/equipment-alarm-type/get',
method: 'post',
data: { id }
})
}
export function equipmentAlarmAttrUpdate(data) { // 更新设备报警单条数据
return request({
url: '/basic/equipment-alarm-type/update',
method: 'post',
data
})
}
export function equipmentAlarmAttrAdd(data) { // 新增设备报警单条数据
return request({
url: '/basic/equipment-alarm-type/add',
method: 'post',
data
})
}
export function equipmentAlarmAttrCode() { // 获取设备报警code
return request({
url: '/basic/equipment-alarm-type/get-code',
method: 'post'
})
}
export function equipmentAlarmAttrDelete(id) { // 删除设备报警单条数据
return request({
url: '/basic/equipment-alarm-type/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,63 @@
/*
* @Author: zwq
* @Date: 2021-01-29 09:39:04
* @LastEditors: zwq
* @LastEditTime: 2021-06-10 15:22:55
* @Description:
*/
import request from '@/utils/request'
export function equipmentDetectAreaList(data) { // 获取设备区域列表
return request({
url: '/basic/detect-distribution-area/page',
method: 'post',
data
})
}
export function equipmentDetectTreeList() { // 获取检测设备树形图
return request({
url: '/basic/detect-distribution-area/detect-area',
method: 'post'
})
}
export function equipmentDetectAreaDetail(id) { // 获取设备区域单条数据
return request({
url: '/basic/detect-distribution-area/get',
method: 'post',
data: { id }
})
}
export function equipmentDetectAreaUpdate(data) { // 更新设备区域单条数据
return request({
url: '/basic/detect-distribution-area/update',
method: 'post',
data
})
}
export function equipmentDetectAreaAdd(data) { // 新增设备区域单条数据
return request({
url: '/basic/detect-distribution-area/add',
method: 'post',
data
})
}
export function equipmentDetectAreaCode() { // 获取设备区域code
return request({
url: '/basic/detect-distribution-area/get-code',
method: 'post'
})
}
export function equipmentDetectAreaDelete(id) { // 删除设备区域单条数据
return request({
url: '/basic/detect-distribution-area/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,56 @@
/*
* @Author: zwq
* @Date: 2021-01-29 09:39:04
* @LastEditors: zwq
* @LastEditTime: 2021-05-28 09:44:01
* @Description:
*/
import request from '@/utils/request'
export function equipmentDetectAreaAttrList(data) { // 获取设备关联列表
return request({
url: '/basic/detect-equ-area-re/page',
method: 'post',
data
})
}
export function equipmentDetectAreaAttrDetail(id) { // 获取设备关联单条数据
return request({
url: '/basic/detect-equ-area-re/get',
method: 'post',
data: { id }
})
}
export function equipmentDetectAreaAttrUpdate(data) { // 更新设备关联单条数据
return request({
url: '/basic/detect-equ-area-re/update',
method: 'post',
data
})
}
export function equipmentDetectAreaAttrAdd(data) { // 新增设备关联单条数据
return request({
url: '/basic/detect-equ-area-re/add',
method: 'post',
data
})
}
export function equipmentDetectAreaAttrCode() { // 获取设备关联code
return request({
url: '/basic/detect-equ-area-re/get-code',
method: 'post'
})
}
export function equipmentDetectAreaAttrDelete(id) { // 删除设备关联单条数据
return request({
url: '/basic/detect-equ-area-re/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,56 @@
/*
* @Author: zwq
* @Date: 2021-01-29 09:39:04
* @LastEditors: zwq
* @LastEditTime: 2021-05-21 10:26:40
* @Description:
*/
import request from '@/utils/request'
export function equipmentDetectAreaSystemList(data) { // 获取设备关联列表
return request({
url: '/basic/detect-area-system/page',
method: 'post',
data
})
}
export function equipmentDetectAreaSystemDetail(id) { // 获取设备关联单条数据
return request({
url: '/basic/detect-area-system/get',
method: 'post',
data: { id }
})
}
export function equipmentDetectAreaSystemUpdate(data) { // 更新设备关联单条数据
return request({
url: '/basic/detect-area-system/update',
method: 'post',
data
})
}
export function equipmentDetectAreaSystemAdd(data) { // 新增设备关联单条数据
return request({
url: '/basic/detect-area-system/add',
method: 'post',
data
})
}
export function equipmentDetectAreaSystemCode() { // 获取设备关联code
return request({
url: '/basic/detect-area-system/get-code',
method: 'post'
})
}
export function equipmentDetectAreaSystemDelete(id) { // 删除设备关联单条数据
return request({
url: '/basic/detect-area-system/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,56 @@
/*
* @Author: zwq
* @Date: 2021-01-29 09:39:04
* @LastEditors: zwq
* @LastEditTime: 2021-05-28 10:47:41
* @Description:
*/
import request from '@/utils/request'
export function DetectAreaSystemAttrList(data) { // 获取设备关联列表
return request({
url: '/basic/detect-equipment-area/page',
method: 'post',
data
})
}
export function DetectAreaSystemAttrDetail(id) { // 获取设备关联单条数据
return request({
url: '/basic/detect-equipment-area/get',
method: 'post',
data: { id }
})
}
export function DetectAreaSystemAttrUpdate(data) { // 更新设备关联单条数据
return request({
url: '/basic/detect-equipment-area/update',
method: 'post',
data
})
}
export function DetectAreaSystemAttrAdd(data) { // 新增设备关联单条数据
return request({
url: '/basic/detect-equipment-area/add',
method: 'post',
data
})
}
export function DetectAreaSystemAttrCode() { // 获取设备关联code
return request({
url: '/basic/detect-equipment-area/get-code',
method: 'post'
})
}
export function DetectAreaSystemAttrDelete(id) { // 删除设备关联单条数据
return request({
url: '/basic/detect-equipment-area/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,56 @@
/*
* @Author: zwq
* @Date: 2021-01-29 09:39:04
* @LastEditors: zwq
* @LastEditTime: 2021-04-08 15:56:09
* @Description:
*/
import request from '@/utils/request'
export function equipmentDetectParamList(data) { // 获取设备参数列表
return request({
url: '/basic/detect-equipment-param/page',
method: 'post',
data
})
}
export function equipmentDetectParamDetail(id) { // 获取设备参数单条数据
return request({
url: '/basic/detect-equipment-param/get',
method: 'post',
data: { id }
})
}
export function equipmentDetectParamUpdate(data) { // 更新设备参数单条数据
return request({
url: '/basic/detect-equipment-param/update',
method: 'post',
data
})
}
export function equipmentDetectParamAdd(data) { // 新增设备参数单条数据
return request({
url: '/basic/detect-equipment-param/add',
method: 'post',
data
})
}
export function equipmentDetectParamCode() { // 获取设备参数code
return request({
url: '/basic/detect-equipment-param/get-code',
method: 'post'
})
}
export function equipmentDetectParamDelete(id) { // 删除设备参数单条数据
return request({
url: '/basic/detect-equipment-param/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-05-21 10:03:53
* @Description:
*/
import request from '@/utils/request'
export function equipmentDetectSystemList(data) { // 获取检测系统列表
return request({
url: '/basic/detect-system/page',
method: 'post',
data
})
}
export function equipmentDetectSystemDetail(id) { // 获取检测系统单条数据
return request({
url: '/basic/detect-system/get',
method: 'post',
data: { id }
})
}
export function equipmentDetectSystemUpdate(data) { // 更新检测系统单条数据
return request({
url: '/basic/detect-system/update',
method: 'post',
data
})
}
export function equipmentDetectSystemAdd(data) { // 新增检测系统单条数据
return request({
url: '/basic/detect-system/add',
method: 'post',
data
})
}
export function equipmentDetectSystemCode() { // 获取检测系统code
return request({
url: '/basic/detect-system/get-code',
method: 'post'
})
}
export function equipmentDetectSystemDelete(id) { // 删除检测系统单条数据
return request({
url: '/basic/detect-system/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,57 @@
/*
* @Author: zwq
* @Date: 2021-01-29 09:39:04
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-05-13 10:34:03
* @Description:
*/
import request from '@/utils/request'
export function equipmentGroupList(data) { // 获取设备分组列表
return request({
url: '/equipment/equipment-group/findAll',
method: 'post',
data
})
}
export function equipmentGroupDetail(id) { // 获取设备分组列表
return request({
url: '/equipment/equipment-group/findById',
method: 'post',
data: { id }
})
}
export function equipmentGroupUpdate(data) { // 更新设备分组单条数据
return request({
url: '/equipment/equipment-group/update',
method: 'post',
data
})
}
export function equipmentGroupAdd(data) { // 新增设备分组单条数据
return request({
url: '/equipment/equipment-group/create',
method: 'post',
data
})
}
export function equipmentGroupGetCode(data) { // 获取随机生成的设备编码
return request({
url: '/equipment/equipment-group/getCode',
method: 'post',
data
})
}
export function equipmentGroupDelete(id) { // 删除设备分组单条数据
return request({
url: '/equipment/equipment-group/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,71 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-03-12 09:40:01
* @Description:
*/
import request from '@/utils/request'
export function equipmentInfoList(data) { // 获取设备信息列表
return request({
url: '/basic/equipment/page',
method: 'post',
data
})
}
export function equipmentInfoDetail(id) { // 获取设备信息单条数据
return request({
url: '/basic/equipment/get',
method: 'post',
data: { id }
})
}
export function equipmentInfoUpdate(data) { // 更新设备信息单条数据
return request({
url: '/basic/equipment/update',
method: 'post',
data
})
}
export function equipmentInfoAdd(data) { // 新增设备信息单条数据
return request({
url: '/basic/equipment/add',
method: 'post',
data
})
}
export function equipmentInfoCode() { // 获取设备信息code
return request({
url: '/basic/equipment/get-code',
method: 'post'
})
}
export function equipmentInfoDelete(id) { // 删除设备信息单条数据
return request({
url: '/basic/equipment/delete',
method: 'post',
data: { id }
})
}
export function equipmentInfoFileAdd(data) { // 设备信息上传
return request({
url: '/basic/equipment-file/update-file',
method: 'post',
data
})
}
export function getEquipmentInfoFile(data) { // 设备信息下载
return request({
url: '/basic/equipment-file/get-by-param',
method: 'post',
data
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-20 12:00:52
* @Description:
*/
import request from '@/utils/request'
export function equipmentInfoAttrList(data) { // 获取设备属性列表
return request({
url: '/basic/equipment-attr/page',
method: 'post',
data
})
}
export function equipmentInfoAttrDetail(id) { // 获取设备属性单条数据
return request({
url: '/basic/equipment-attr/get',
method: 'post',
data: { id }
})
}
export function equipmentInfoAttrUpdate(data) { // 更新设备属性单条数据
return request({
url: '/basic/equipment-attr/update',
method: 'post',
data
})
}
export function equipmentInfoAttrAdd(data) { // 新增设备属性单条数据
return request({
url: '/basic/equipment-attr/add',
method: 'post',
data
})
}
export function equipmentInfoAttrCode() { // 获取设备属性code
return request({
url: '/basic/equipment-attr/get-code',
method: 'post'
})
}
export function equipmentInfoAttrDelete(id) { // 删除设备属性单条数据
return request({
url: '/basic/equipment-attr/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,72 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-03-12 09:25:09
* @Description:
*/
import request from '@/utils/request'
export function equipmentLinkList(data) { // 获取连线设备列表
return request({
url: '/basic/connecting-device/page',
method: 'post',
data
})
}
export function equipmentLinkDetail(id) { // 获取连线设备单条数据
return request({
url: '/basic/connecting-device/get',
method: 'post',
data: { id }
})
}
export function equipmentLinkUpdate(data) { // 更新连线设备单条数据
return request({
url: '/basic/connecting-device/update',
method: 'post',
data
})
}
export function equipmentLinkAdd(data) { // 新增连线设备单条数据
return request({
url: '/basic/connecting-device/add',
method: 'post',
data
})
}
export function equipmentLinkCode() { // 获取连线设备code
return request({
url: '/basic/connecting-device/get-code',
method: 'post'
})
}
export function equipmentLinkDelete(id) { // 删除连线设备单条数据
return request({
url: '/basic/connecting-device/delete',
method: 'post',
data: { id }
})
}
export function equipmentLinkFileAdd(data) { // 连线设备上传
return request({
url: '/basic/connecting-device-file/update-file',
method: 'post',
data
})
}
export function getEquipmentLinkFile(data) { // 连线设备下载
return request({
url: '/basic/connecting-device-file/get-by-param',
method: 'post',
data
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-20 10:35:56
* @Description:
*/
import request from '@/utils/request'
export function equipmentLinkAttrList(data) { // 获取连线设备属性列表
return request({
url: '/basic/connecting-device-attr/page',
method: 'post',
data
})
}
export function equipmentLinkAttrDetail(id) { // 获取连线设备属性单条数据
return request({
url: '/basic/connecting-device-attr/get',
method: 'post',
data: { id }
})
}
export function equipmentLinkAttrUpdate(data) { // 更新连线设备属性单条数据
return request({
url: '/basic/connecting-device-attr/update',
method: 'post',
data
})
}
export function equipmentLinkAttrAdd(data) { // 新增连线设备属性单条数据
return request({
url: '/basic/connecting-device-attr/add',
method: 'post',
data
})
}
export function equipmentLinkAttrCode() { // 获取连线设备属性code
return request({
url: '/basic/connecting-device-attr/get-code',
method: 'post'
})
}
export function equipmentLinkAttrDelete(id) { // 删除连线设备属性单条数据
return request({
url: '/basic/connecting-device-attr/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,78 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-03-11 18:56:39
* @Description:
*/
import request from '@/utils/request'
export function equipmentTypeList(data) { // 获取设备类型列表
return request({
url: '/basic/equipment-type/page',
method: 'post',
data
})
}
export function equipmentTypeDetail(id) { // 获取设备类型单条数据
return request({
url: '/basic/equipment-type/get',
method: 'post',
data: { id }
})
}
export function equipmentTypeUpdate(data) { // 更新设备类型单条数据
return request({
url: '/basic/equipment-type/update',
method: 'post',
data
})
}
export function equipmentTypeAdd(data) { // 新增设备类型单条数据
return request({
url: '/basic/equipment-type/add',
method: 'post',
data
})
}
export function equipmentTypeCode() { // 获取设备类型code
return request({
url: '/basic/equipment-type/get-code',
method: 'post'
})
}
export function equipmentTypeDelete(id) { // 删除设备类型单条数据
return request({
url: '/basic/equipment-type/delete',
method: 'post',
data: { id }
})
}
export function equipmentTypeListAll() { // 获取全部设备类型层级关系
return request({
url: '/basic/equipment-type/list-all',
method: 'post'
})
}
export function equipmentTypeFileAdd(data) { // 新增设备类型上传
return request({
url: '/basic/equipment-type-file/update-file',
method: 'post',
data
})
}
export function getEquipmentTypeFile(data) { // 获取设备类型上传列表
return request({
url: '/basic/equipment-type-file/get-by-param',
method: 'post',
data
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-19 19:59:16
* @Description:
*/
import request from '@/utils/request'
export function maintenanceCycleList(data) { // 获取保养列表
return request({
url: '/basic/maintenance-period/page',
method: 'post',
data
})
}
export function maintenanceCycleDetail(id) { // 获取保养单条数据
return request({
url: '/basic/maintenance-period/get',
method: 'post',
data: { id }
})
}
export function maintenanceCycleUpdate(data) { // 更新保养单条数据
return request({
url: '/basic/maintenance-period/update',
method: 'post',
data
})
}
export function maintenanceCycleAdd(data) { // 新增保养单条数据
return request({
url: '/basic/maintenance-period/add',
method: 'post',
data
})
}
export function maintenanceCycleCode() { // 获取保养code
return request({
url: '/basic/maintenance-period/get-code',
method: 'post'
})
}
export function maintenanceCycleDelete(id) { // 删除保养单条数据
return request({
url: '/basic/maintenance-period/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-19 19:52:52
* @Description:
*/
import request from '@/utils/request'
export function maintenanceTypeList(data) { // 获取维修列表
return request({
url: '/basic/maintenance-type/page',
method: 'post',
data
})
}
export function maintenanceTypeDetail(id) { // 获取维修单条数据
return request({
url: '/basic/maintenance-type/get',
method: 'post',
data: { id }
})
}
export function maintenanceTypeUpdate(data) { // 更新维修单条数据
return request({
url: '/basic/maintenance-type/update',
method: 'post',
data
})
}
export function maintenanceTypeAdd(data) { // 新增维修单条数据
return request({
url: '/basic/maintenance-type/add',
method: 'post',
data
})
}
export function maintenanceTypeCode() { // 获取维修code
return request({
url: '/basic/maintenance-type/get-code',
method: 'post'
})
}
export function maintenanceTypeDelete(id) { // 删除维修单条数据
return request({
url: '/basic/maintenance-type/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,56 @@
/*
* @Author: zwq
* @Date: 2021-01-29 09:39:04
* @LastEditors: zwq
* @LastEditTime: 2021-01-29 09:40:21
* @Description:
*/
import request from '@/utils/request'
export function sparePartsList(data) { // 获取备品备件列表
return request({
url: '/basic/tool-spare-part/page',
method: 'post',
data
})
}
export function sparePartsDetail(id) { // 获取备品备件单条数据
return request({
url: '/basic/tool-spare-part/get',
method: 'post',
data: { id }
})
}
export function sparePartsUpdate(data) { // 更新备品备件单条数据
return request({
url: '/basic/tool-spare-part/update',
method: 'post',
data
})
}
export function sparePartsAdd(data) { // 新增备品备件单条数据
return request({
url: '/basic/tool-spare-part/add',
method: 'post',
data
})
}
export function sparePartsCode() { // 获取备品备件code
return request({
url: '/basic/tool-spare-part/get-code',
method: 'post'
})
}
export function sparePartsDelete(id) { // 删除备品备件单条数据
return request({
url: '/basic/tool-spare-part/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,48 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-07-06 11:10:22
* @Description:
*/
import request from '@/utils/request'
export function EquipmentScrapGradeList(data) { // 获取废片等级列表
return request({
url: '/basic/equipment-scraps-grade/pageForEquipmentGrade',
method: 'post',
data
})
}
export function EquipmentScrapGradeDetail(id) { // 获取废片等级单条数据
return request({
url: '/basic/equipment-scraps-grade/get',
method: 'post',
data: { id }
})
}
export function EquipmentScrapGradeUpdate(data) { // 更新废片等级单条数据
return request({
url: '/basic/equipment-scraps-grade/update',
method: 'post',
data
})
}
export function EquipmentScrapGradeAdd(data) { // 新增废片等级单条数据
return request({
url: '/basic/equipment-scraps-grade/add',
method: 'post',
data
})
}
export function EquipmentScrapGradeDelete(id) { // 删除废片等级单条数据
return request({
url: '/basic/equipment-scraps-grade/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,58 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2020-12-30 11:54:24
* @Description:
*/
import request from '@/utils/request'
export function factoryList(data) { // 获取工厂列表
return request({
url: '/basic/factory/page',
method: 'post',
data
})
}
export function factoryDetail(id) { // 获取工厂单条数据
const data = {
'id': id
}
return request({
url: '/basic/factory/get',
method: 'post',
data
})
}
export function factoryUpdate(data) { // 更新工厂单条数据
return request({
url: '/basic/factory/update',
method: 'post',
data
})
}
export function factoryAdd(data) { // 新增工厂单条数据
return request({
url: '/basic/factory/add',
method: 'post',
data
})
}
export function factoryCode() { // 获取工厂code
return request({
url: '/basic/factory/get-code',
method: 'post'
})
}
export function factoryDelete(id) { // 删除工厂单条数据
return request({
url: '/basic/factory/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-12 10:57:09
* @Description:
*/
import request from '@/utils/request'
export function lineList(data) { // 获取产线列表
return request({
url: '/basic/production-line/page',
method: 'post',
data
})
}
export function lineDetail(id) { // 获取产线单条数据
return request({
url: '/basic/production-line/get',
method: 'post',
data: { id }
})
}
export function lineUpdate(data) { // 更新产线单条数据
return request({
url: '/basic/production-line/update',
method: 'post',
data
})
}
export function lineAdd(data) { // 新增产线单条数据
return request({
url: '/basic/production-line/add',
method: 'post',
data
})
}
export function lineCode() { // 获取产线code
return request({
url: '/basic/production-line/get-code',
method: 'post'
})
}
export function lineDelete(id) { // 删除产线单条数据
return request({
url: '/basic/production-line/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-12 10:56:44
* @Description:
*/
import request from '@/utils/request'
export function sectionList(data) { // 获取工段列表
return request({
url: '/basic/workshop-section/page',
method: 'post',
data
})
}
export function sectionDetail(id) { // 获取工段单条数据
return request({
url: '/basic/workshop-section/get',
method: 'post',
data: { id }
})
}
export function sectionUpdate(data) { // 更新工段单条数据
return request({
url: '/basic/workshop-section/update',
method: 'post',
data
})
}
export function sectionAdd(data) { // 新增工段单条数据
return request({
url: '/basic/workshop-section/add',
method: 'post',
data
})
}
export function sectionCode() { // 获取工段code
return request({
url: '/basic/workshop-section/get-code',
method: 'post'
})
}
export function sectionDelete(id) { // 删除工段单条数据
return request({
url: '/basic/workshop-section/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-12 15:38:59
* @Description:
*/
import request from '@/utils/request'
export function groupList(data) { // 获取班组列表
return request({
url: '/basic/team/page',
method: 'post',
data
})
}
export function groupDetail(id) { // 获取班组单条数据
return request({
url: '/basic/team/get',
method: 'post',
data: { id }
})
}
export function groupUpdate(data) { // 更新班组单条数据
return request({
url: '/basic/team/update',
method: 'post',
data
})
}
export function groupAdd(data) { // 新增班组单条数据
return request({
url: '/basic/team/add',
method: 'post',
data
})
}
export function groupCode() { // 获取班组code
return request({
url: '/basic/team/get-code',
method: 'post'
})
}
export function groupDelete(id) { // 删除班组单条数据
return request({
url: '/basic/team/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-02-08 09:51:54
* @Description:
*/
import request from '@/utils/request'
export function groupAttrList(data) { // 获取班组列表
return request({
url: '/basic/team-det/page',
method: 'post',
data
})
}
export function groupAttrDetail(id) { // 获取班组单条数据
return request({
url: '/basic/team-det/get',
method: 'post',
data: { id }
})
}
export function groupAttrUpdate(data) { // 更新班组单条数据
return request({
url: '/basic/team-det/update',
method: 'post',
data
})
}
export function groupAttrAdd(data) { // 新增班组单条数据
return request({
url: '/basic/team-det/add',
method: 'post',
data
})
}
export function groupAttrCode() { // 获取班组code
return request({
url: '/basic/team-det/get-code',
method: 'post'
})
}
export function groupAttrDelete(data) { // 删除班组单条数据
return request({
url: '/basic/team-det/delete',
method: 'post',
data
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-12 16:38:42
* @Description:
*/
import request from '@/utils/request'
export function majorList(data) { // 获取专业列表
return request({
url: '/basic/major/page',
method: 'post',
data
})
}
export function majorDetail(id) { // 获取专业单条数据
return request({
url: '/basic/major/get',
method: 'post',
data: { id }
})
}
export function majorUpdate(data) { // 更新专业单条数据
return request({
url: '/basic/major/update',
method: 'post',
data
})
}
export function majorAdd(data) { // 新增专业单条数据
return request({
url: '/basic/major/add',
method: 'post',
data
})
}
export function majorCode() { // 获取专业code
return request({
url: '/basic/major/get-code',
method: 'post'
})
}
export function majorDelete(id) { // 删除专业单条数据
return request({
url: '/basic/major/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,75 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: gtz
* @LastEditTime: 2021-04-17 16:04:51
* @Description:
*/
import request from '@/utils/request'
export function staffList(data) { // 获取员工列表
return request({
url: '/basic/worker/page',
method: 'post',
data
})
}
export function staffDetail(id) { // 获取员工单条数据
return request({
url: '/basic/worker/get',
method: 'post',
data: { id }
})
}
export function staffUpdate(data) { // 更新员工单条数据
return request({
url: '/basic/worker/update',
method: 'post',
data
})
}
export function staffAdd(data) { // 新增员工单条数据
return request({
url: '/basic/worker/add',
method: 'post',
data
})
}
export function staffCode() { // 获取员工code
return request({
url: '/basic/worker/get-code',
method: 'post'
})
}
export function staffDelete(id) { // 删除员工单条数据
return request({
url: '/basic/worker/delete',
method: 'post',
data: { id }
})
}
export function workerList(data) { // 添加组员列表
return request({
url: '/basic/team-det/workerList',
method: 'post',
data
})
}
export function getRoleList() {
return request({
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
method: 'post',
data: {
dictTypeId: '1383318968677273601',
current: 1,
size: 999
}
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-15 16:03:31
* @Description:
*/
import request from '@/utils/request'
export function materialList(data) { // 获取物料信息列表
return request({
url: '/basic/material/page',
method: 'post',
data
})
}
export function materialDetail(id) { // 获取物料信息单条数据
return request({
url: '/basic/material/get',
method: 'post',
data: { id }
})
}
export function materialUpdate(data) { // 更新物料信息单条数据
return request({
url: '/basic/material/update',
method: 'post',
data
})
}
export function materialAdd(data) { // 新增物料信息单条数据
return request({
url: '/basic/material/add',
method: 'post',
data
})
}
export function materialCode() { // 获取物料信息code
return request({
url: '/basic/material/get-code',
method: 'post'
})
}
export function materialDelete(id) { // 删除物料信息单条数据
return request({
url: '/basic/material/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-16 12:09:29
* @Description:
*/
import request from '@/utils/request'
export function materialAttrList(data) { // 获取物料属性列表
return request({
url: '/basic/material-attr/page',
method: 'post',
data
})
}
export function materialAttrDetail(id) { // 获取物料属性单条数据
return request({
url: '/basic/material-attr/get',
method: 'post',
data: { id }
})
}
export function materialAttrUpdate(data) { // 更新物料属性单条数据
return request({
url: '/basic/material-attr/update',
method: 'post',
data
})
}
export function materialAttrAdd(data) { // 新增物料属性单条数据
return request({
url: '/basic/material-attr/add',
method: 'post',
data
})
}
export function materialAttrCode() { // 获取物料属性code
return request({
url: '/basic/material-attr/get-code',
method: 'post'
})
}
export function materialAttrDelete(id) { // 删除物料属性单条数据
return request({
url: '/basic/material-attr/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-16 11:52:14
* @Description:
*/
import request from '@/utils/request'
export function materialsTypeList(data) { // 获取物料类型列表
return request({
url: '/basic/material-type/page',
method: 'post',
data
})
}
export function materialsTypeDetail(id) { // 获取物料类型单条数据
return request({
url: '/basic/material-type/get',
method: 'post',
data: { id }
})
}
export function materialsTypeUpdate(data) { // 更新物料类型单条数据
return request({
url: '/basic/material-type/update',
method: 'post',
data
})
}
export function materialsTypeAdd(data) { // 新增物料类型单条数据
return request({
url: '/basic/material-type/add',
method: 'post',
data
})
}
export function materialsTypeCode() { // 获取物料类型code
return request({
url: '/basic/material-type/get-code',
method: 'post'
})
}
export function materialsTypeDelete(id) { // 删除物料类型单条数据
return request({
url: '/basic/material-type/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-29 10:47:49
* @Description:
*/
import request from '@/utils/request'
export function productList(data) { // 获取产品信息列表
return request({
url: '/basic/product-arrt/page',
method: 'post',
data
})
}
export function productDetail(id) { // 获取产品信息单条数据
return request({
url: '/basic/product-arrt/get',
method: 'post',
data: { id }
})
}
export function productUpdate(data) { // 更新产品信息单条数据
return request({
url: '/basic/product-arrt/update',
method: 'post',
data
})
}
export function productAdd(data) { // 新增产品信息单条数据
return request({
url: '/basic/product-arrt/add',
method: 'post',
data
})
}
export function productCode() { // 获取产品信息code
return request({
url: '/basic/product-arrt/get-code',
method: 'post'
})
}
export function productDelete(id) { // 删除产品信息单条数据
return request({
url: '/basic/product-arrt/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,62 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-25 09:59:10
* @Description:
*/
import request from '@/utils/request'
export function ProductPoolList(data) { // 获取产品池列表
return request({
url: '/basic/product/page',
method: 'post',
data
})
}
export function ProductPoolDetail(id) { // 获取产品池单条数据
return request({
url: '/basic/product/get',
method: 'post',
data: { id }
})
}
export function ProductPoolUpdate(data) { // 更新产品池单条数据
return request({
url: '/basic/product/update',
method: 'post',
data
})
}
export function ProductPoolAdd(data) { // 新增产品池单条数据
return request({
url: '/basic/product/add',
method: 'post',
data
})
}
export function ProductPoolCode() { // 获取产品池code
return request({
url: '/basic/product/get-code',
method: 'post'
})
}
export function ProductPoolDelete(id) { // 删除产品池单条数据
return request({
url: '/basic/product/delete',
method: 'post',
data: { id }
})
}
export function ProductPoolUnit() { // 获取产品池单位数据
return request({
url: '/common/data-dictionary/sysDictDataList',
method: 'post'
})
}

View File

@ -0,0 +1,58 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-03-10 14:25:18
* @Description:
*/
import request from '@/utils/request'
export function scrapInfoList(data) { // 获取报废信息列表
return request({
url: '/basic/scrap-information/page',
method: 'post',
data
})
}
export function scrapInfoDetail(id) { // 获取报废信息单条数据
const data = {
'id': id
}
return request({
url: '/basic/scrap-information/get',
method: 'post',
data
})
}
export function scrapInfoUpdate(data) { // 更新报废信息单条数据
return request({
url: '/basic/scrap-information/update',
method: 'post',
data
})
}
export function scrapInfoAdd(data) { // 新增报废信息单条数据
return request({
url: '/basic/scrap-information/add',
method: 'post',
data
})
}
export function scrapInfoCode() { // 获取报废信息code
return request({
url: '/basic/scrap-information/get-code',
method: 'post'
})
}
export function scrapInfoDelete(id) { // 删除报废信息单条数据
return request({
url: '/basic/scrap-information/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,58 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-03-10 14:25:59
* @Description:
*/
import request from '@/utils/request'
export function scrapTypeList(data) { // 获取报废类型列表
return request({
url: '/basic/scrap-type-information/page',
method: 'post',
data
})
}
export function scrapTypeDetail(id) { // 获取报废类型单条数据
const data = {
'id': id
}
return request({
url: '/basic/scrap-type-information/get',
method: 'post',
data
})
}
export function scrapTypeUpdate(data) { // 更新报废类型单条数据
return request({
url: '/basic/scrap-type-information/update',
method: 'post',
data
})
}
export function scrapTypeAdd(data) { // 新增报废类型单条数据
return request({
url: '/basic/scrap-type-information/add',
method: 'post',
data
})
}
export function scrapTypeCode() { // 获取报废类型code
return request({
url: '/basic/scrap-type-information/get-code',
method: 'post'
})
}
export function scrapTypeDelete(id) { // 删除报废类型单条数据
return request({
url: '/basic/scrap-type-information/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-18 14:48:49
* @Description:
*/
import request from '@/utils/request'
export function ScrapInfoList(data) { // 获取废品报废信息列表
return request({
url: '/basic/scrap/page',
method: 'post',
data
})
}
export function ScrapInfoDetail(id) { // 获取废品报废信息单条数据
return request({
url: '/basic/scrap/get',
method: 'post',
data: { id }
})
}
export function ScrapInfoUpdate(data) { // 更新废品报废信息单条数据
return request({
url: '/basic/scrap/update',
method: 'post',
data
})
}
export function ScrapInfoAdd(data) { // 新增废品报废信息单条数据
return request({
url: '/basic/scrap/add',
method: 'post',
data
})
}
export function ScrapInfoCode() { // 获取废品报废信息code
return request({
url: '/basic/scrap/get-code',
method: 'post'
})
}
export function ScrapInfoDelete(id) { // 删除废品报废信息单条数据
return request({
url: '/basic/scrap/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-13 16:11:45
* @Description:
*/
import request from '@/utils/request'
export function StateConfigList(data) { // 获取状态列表
return request({
url: '/basic/configure-display/page',
method: 'post',
data
})
}
export function StateConfigDetail(id) { // 获取状态单条数据
return request({
url: '/basic/configure-display/get',
method: 'post',
data: { id }
})
}
export function StateConfigUpdate(data) { // 更新状态单条数据
return request({
url: '/basic/configure-display/update',
method: 'post',
data
})
}
export function StateConfigAdd(data) { // 新增状态单条数据
return request({
url: '/basic/configure-display/add',
method: 'post',
data
})
}
export function StateConfigCode() { // 获取状态code
return request({
url: '/basic/configure-display/get-code',
method: 'post'
})
}
export function StateConfigDelete(id) { // 删除状态单条数据
return request({
url: '/basic/configure-display/delete',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,48 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-05-19 15:57:56
* @Description:
*/
import request from '@/utils/request'
export function dataDictionaryDataList(data) { // 获取字典类型列表
return request({
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
method: 'post',
data
})
}
export function dataDictionaryDataDetail(id) { // 获取字典类型单条数据
return request({
url: '/basic/platform-dict/selectPlatformDictDataById',
method: 'post',
data: { id }
})
}
export function dataDictionaryDataUpdate(data) { // 更新字典类型单条数据
return request({
url: '/basic/platform-dict/updatePlatformDictData',
method: 'post',
data
})
}
export function dataDictionaryDataAdd(data) { // 新增字典类型单条数据
return request({
url: '/basic/platform-dict/savePlatformDictData',
method: 'post',
data
})
}
export function dataDictionaryDataDelete(id) { // 删除字典类型单条数据
return request({
url: '/basic/platform-dict/deletePlatformDictData',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,48 @@
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-04-16 12:51:29
* @Description:
*/
import request from '@/utils/request'
export function dataDictionaryTypeList(data) { // 获取字典类型列表
return request({
url: '/basic/platform-dict/selectPlatformDictTypeListByPage',
method: 'post',
data
})
}
export function dataDictionaryTypeDetail(id) { // 获取字典类型单条数据
return request({
url: '/basic/platform-dict/selectDictTypeById',
method: 'post',
data: { id }
})
}
export function dataDictionaryTypeUpdate(data) { // 更新字典类型单条数据
return request({
url: '/basic/platform-dict/updatePlatformDictType',
method: 'post',
data
})
}
export function dataDictionaryTypeAdd(data) { // 新增字典类型单条数据
return request({
url: '/basic/platform-dict/savePlatformDictType',
method: 'post',
data
})
}
export function dataDictionaryTypeDelete(id) { // 删除字典类型单条数据
return request({
url: '/basic/platform-dict/deletePlatformDictType',
method: 'post',
data: { id }
})
}

View File

@ -0,0 +1,90 @@
/*
* @Author: gtz
* @Date: 2021-02-27 17:23:17
* @LastEditors: gtz
* @LastEditTime: 2021-03-25 16:21:36
* @Description: file content
*/
import request from '@/utils/request'
// 获取可视化布局图列表
export function VisualList(data) {
return request({
url: '/visual/visual/page',
method: 'post',
data
})
}
// 获取设备数据字典
export function eqList(data) {
return request({
url: '/basic/equipment/page',
method: 'post',
data
})
}
// 获取库位列表
export function locationList(data) {
return request({
url: '/basic/stock/list',
method: 'post',
data
})
}
// 获取可视化布局图信息单条数据
export function VisualDetail(id) {
return request({
url: '/visual/visual/get',
method: 'post',
data: { id }
})
}
// 更新可视化布局图信息单条数据
export function VisualUpdate(data) {
return request({
url: '/visual/visual/update',
method: 'post',
data
})
}
// 新增可视化布局图信息单条数据
export function VisualAdd(data) {
return request({
url: '/visual/visual/add',
method: 'post',
data
})
}
// 删除可视化布局图单条数据
export function VisualDelete(id) {
return request({
url: '/visual/visual/delete',
method: 'post',
data: { id }
})
}
// 获取可视化实时信息
export function VisualEqData(data) {
return request({
url: '/visual/visual/equipmentStatusList',
method: 'post',
data
})
}
// 获取可视化库位信息
export function VisualLocationData(data) {
return request({
url: '/visual/visual/stroageBoxForStockList',
method: 'post',
data
})
}

373
src/api/dict/index.js Normal file
View File

@ -0,0 +1,373 @@
/*
* @Date: 2021-01-21 18:08:29
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-07-12 10:11:14
* @FilePath: \basic-admin\src\api\dict\index.js
* @Description: 数据字典定义
*/
// import request from '@/utils/request'
import { requestWithCache } from '@/utils/request'
// 获取设备列表列表
export function getDictDevice(data) {
return requestWithCache({
url: '/basic/equipment/page',
method: 'post',
data
}).then(res => {
if (res.code === 0) {
return res.data.records
} else {
return []
}
})
}
// 获取设备类型列表
export function getDictDeviceType(data) {
return requestWithCache({
url: '/common/data-dictionary/equipmentTypeList',
method: 'post',
data
}).then(res => {
if (res.code === 0) {
return res.data
} else {
return []
}
})
}
// 获取物料列表
export function getDictBom(data) {
return requestWithCache({
url: '/basic/material/page',
method: 'post',
data
}).then(res => {
if (res.code === 0) {
return res.data.records
} else {
return []
}
})
}
// 获取供应商列表
export function getDictSupplier(data) {
return requestWithCache({
url: '/common/data-dictionary/supplierList',
method: 'post',
data
}).then(res => {
if (res.code === 0) {
return res.data
} else {
return []
}
})
}
// 获取单位列表
export function getDictUnit(data) {
return requestWithCache({
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
method: 'post',
data: {
current: 1,
size: 999,
dictTypeId: '1392033901169348609'
}
}).then(res => {
if (res.code === 0) {
return res.data
} else {
return []
}
})
}
// 获取物料列表
export function getDictMaterial(data) {
return requestWithCache({
url: '/material/material-date/materialList',
method: 'post',
data
}).then(res => {
if (res.code === 0) {
return res.data
} else {
return []
}
})
}
// 获取维修类型
export function getDictRepairType(data) {
return requestWithCache({
url: '/basic/maintenance-type/page',
method: 'post',
data: {
current: 1,
enabled: 1,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.name
}
})
} else {
return []
}
})
}
// 获取员工列表
export function getDictWorker() {
return requestWithCache({
url: '/basic/worker/page',
method: 'post',
data: {
current: 1,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.name,
telephone: item.telephone ? item.telephone : ''
}
})
} else {
return []
}
})
}
// 获取基础备品备件列表
export function getDictSparepart(data) {
return requestWithCache({
url: '/basic/tool-spare-part/page',
method: 'post',
data: {
current: 1,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.name + (item.model ? ' - ' + item.model : '')
}
})
} else {
return []
}
})
}
// 获取备件型号
export function getDictModel(data) {
return requestWithCache({
url: '/basic/tool-spare-part/list',
method: 'post',
data: {
current: 1,
size: 999,
...data
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.name
}
})
} else {
return []
}
})
}
// 质量---报废: 报废原因
export function scrapReasonList(data) {
return requestWithCache({
url: '/basic/scrap-information/page',
method: 'post',
data: {
current: 1,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.scrap
}
})
} else {
return []
}
})
}
// 获取故障等级
export function faultLevelList(data) {
return requestWithCache({
url: '/common/data-dictionary-business/findAllByTypeOrCategory',
method: 'post',
subname: 'faultLevelList',
data: {
current: 1,
dataCategory: '故障',
dataType: '状况',
enabled: 1,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.dataValue
}
})
} else {
return []
}
})
}
// 获取保养周期
export function maintainPeriod(data) {
return requestWithCache({
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
method: 'post',
data: {
current: 1,
enabled: 1,
size: 999,
dictTypeId: '1393406291017252866'
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.dataName
}
})
} else {
return []
}
})
}
// 质量检测计划 获取检测频率
export function detectionPeriod(data) {
return requestWithCache({
url: '/common/data-dictionary-business/findAllByTypeOrCategory',
method: 'post',
subname: 'detectionPeriod',
data: {
current: 1,
dataCategory: '时间',
dataType: '频率',
enabled: 1,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.dataValue
}
})
} else {
return []
}
})
}
// 获取设备类型的参数
export function equipmentTypeParam(id) {
return requestWithCache({
url: '/equipment/equipment-parameter/findAllByIdOrName',
method: 'post',
data: {
current: 1,
equipmentTypeId: id,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.paramName
}
})
} else {
return []
}
})
}
// 获取设备状态
export function statusList(id) {
return requestWithCache({
url: '/basic/configure-display/page',
method: 'post',
data: {
current: 1,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.status
}
})
} else {
return []
}
})
}
// 获取角色列表
export function workerRoleList() {
return requestWithCache({
url: '/basic/platform-dict/selectPlatformDictDataListByPage',
method: 'post',
data: {
dictTypeId: '1383318968677273601',
current: 1,
size: 999
}
}).then(res => {
if (res.code === 0) {
return res.data.records.map(item => {
return {
id: item.id,
name: item.dataName
}
})
} else {
return []
}
})
}

108
src/api/equipment/bom.js Normal file
View File

@ -0,0 +1,108 @@
/*
* @Date: 2021-01-05 15:25:38
* @LastEditors: gtz
* @LastEditTime: 2021-04-21 13:26:36
* @FilePath: \basic-admin\src\api\equipment\bom.js
* @Description: 设备管理设备物料bom管理 接口定义
*/
import request from '@/utils/request'
// 获取物料bom列表
export function getBOMList(data) {
return request({
url: '/equipment/equipment-bom/findAllByEQNameOrEQCodeOrMaterialNameWithPage',
method: 'post',
data
})
}
// 新增物料bom
export function addBOM(data) {
return request({
url: '/equipment/equipment-bom/create',
method: 'post',
data
})
}
// 修改物料bom
export function editBOM(data) {
return request({
url: '/equipment/equipment-bom/update',
method: 'post',
data
})
}
// 删除物料bom
export function delBOM(data) {
return request({
url: '/equipment/equipment-bom/delete',
method: 'post',
data
})
}
// 根据id获取物料bom
export function getBOMInfo(data) {
return request({
url: '/equipment/equipment-bom/findById',
method: 'post',
data
})
}
// 获取设备物料bom列表
export function getDeviceBOMList(data) {
return request({
url: '/equipment/equipment-bom-detail/findAllByEQBomIdWithPage',
method: 'post',
data
})
}
// 新增设备物料bom
export function addDeviceBOM(data) {
return request({
url: '/equipment/equipment-bom-detail/create',
method: 'post',
data
})
}
// 修改设备物料bom
export function editDeviceBOM(data) {
return request({
url: '/equipment/equipment-bom-detail/update',
method: 'post',
data
})
}
// 删除设备物料bom
export function delDeviceBOM(data) {
return request({
url: '/equipment/equipment-bom-detail/delete',
method: 'post',
data
})
}
// 根据id获取设备物料bom详细
export function getDeviceBOMInfo(data) {
return request({
url: '/equipment/equipment-bom-detail/findById',
method: 'post',
data
})
}
// 获取基础物料
export function getMaterialList(data) {
return request({
url: '/basic/material/page',
method: 'post',
data
})
}

View File

@ -0,0 +1,80 @@
/*
* @Author: gtz
* @Date: 2021-04-16 16:23:35
* @LastEditors: gtz
* @LastEditTime: 2021-04-17 15:59:16
* @Description: file content
*/
import request from '@/utils/request'
// 获取设备管理员列表
export function page(data) {
return request({
url: '/equipment/equipment-operator-relation/findAll',
method: 'post',
data
})
}
// 添加设备管理员
export function add(data) {
return request({
url: '/equipment/equipment-operator-relation/create',
method: 'post',
data
})
}
// 编辑设备管理员
export function edit(data) {
return request({
url: '/equipment/equipment-operator-relation/update',
method: 'post',
data
})
}
// 删除设备管理员
export function del(data) {
return request({
url: '/equipment/equipment-operator-relation/delete',
method: 'post',
data
})
}
// 获取设备管理员详情
export function getInfo(data) {
return request({
url: '/equipment/equipment-operator-relation/findById',
method: 'post',
data
})
}
export function getWorkerList(data) {
return request({
url: '/basic/worker/page',
method: 'post',
data
})
}
export function getEqList(data) {
return request({
url: '/basic/equipment/page',
method: 'post',
data
})
}
export function getRoleList() {
return request({
url: '/equipment/equipment-operator-relation/findAllOperator',
method: 'post',
data: {
roleId: '1410037914748780545'
}
})
}

View File

@ -0,0 +1,18 @@
/*
* @Author: gtz
* @Date: 2021-06-17 15:20:52
* @LastEditors: gtz
* @LastEditTime: 2021-06-17 15:23:05
* @Description: file content
*/
import request from '@/utils/request'
// 获取设备管理员列表
export function getEqList(data) {
return request({
url: '/material/substrate-tree/getTree',
method: 'post',
data
})
}

View File

@ -0,0 +1,27 @@
/*
* @Date: 2021-01-14 19:17:57
* @LastEditors: guo
* @LastEditTime: 2021-01-14 19:56:16
* @FilePath: \basic-admin\src\api\equipment\index.js
* @Description: 设备部分基础接口
*/
import request from '@/utils/request'
// 获取设备状态配置列表
export function getStatusSettingList(data) {
return request({
url: '/equipment/equipment/list',
method: 'post',
data
})
}
// 修改设备状态配置
export function editStatusSetting(data) {
return request({
url: '/equipment/equipment/updateById',
method: 'post',
data
})
}

View File

@ -0,0 +1,134 @@
/*
* @Date: 2021-01-15 17:42:07
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-07-12 10:31:01
* @FilePath: \basic-admin\src\api\equipment\maintain.js
* @Description: 保养计划 & 保养记录 接口定义
*/
import request from '@/utils/request'
// 获取保养计划列表
export function getMaintainPlanList(data) {
return request({
url: '/equipment/equipment-maintenace-plan/list',
method: 'post',
data
})
}
// 添加保养计划
export function addMaintainPlan(data) {
return request({
url: '/equipment/equipment-maintenace-plan/create',
method: 'post',
data
})
}
// 编辑保养计划
export function editMaintainPlan(data) {
return request({
url: '/equipment/equipment-maintenace-plan/update',
method: 'post',
data
})
}
// 删除保养计划
export function delMaintainPlan(data) {
return request({
url: '/equipment/equipment-maintenace-plan/delete',
method: 'post',
data
})
}
// 获取保养计划详情
export function getMaintainPlan(data) {
return request({
url: '/equipment/equipment-maintenace-plan/list',
method: 'post',
data
})
}
// 获取保养日志列表
export function getMaintainLogList(data) {
return request({
url: '/equipment/equipment-maintenace-log/list',
method: 'post',
data
})
}
// 获取独立的保养日志列表
export function getSingleMaintainLogList(data) {
return request({
url: '/equipment/equipment-maintenace-log/listForOnlyLog',
method: 'post',
data
})
}
// 添加保养日志
export function addMaintainLog(data) {
return request({
url: '/equipment/equipment-maintenace-log/create',
method: 'post',
data
})
}
// 编辑保养日志
export function editMaintainLog(data) {
return request({
url: '/equipment/equipment-maintenace-log/update',
method: 'post',
data
})
}
// 删除保养日志
export function delMaintainLog(data) {
return request({
url: '/equipment/equipment-maintenace-log/delete',
method: 'post',
data
})
}
// 获取保养日志详情
export function getMaintainLog(data) {
return request({
url: '/equipment/equipment-maintenace-log/findById',
method: 'post',
data
})
}
// 获取设备列表
export function getEqList(data) {
return request({
url: '/basic/equipment/page',
method: 'post',
data
})
}
// 获取保养计划单号
export function getPlanCode(data) {
return request({
url: '/equipment/equipment-maintenace-plan/getEquipmentMaintenancePlanCode',
method: 'post',
data
})
}
// 获取保养记录单号
export function getLogCode(data) {
return request({
url: '/equipment/equipment-maintenace-plan/getEquipmentMaintenancePlanCode',
method: 'post',
data
})
}

View File

@ -0,0 +1,17 @@
/*
* @Date: 2021-02-01 19:01:56
* @LastEditors: guo
* @LastEditTime: 2021-02-01 19:02:43
* @FilePath: \basic-admin\src\api\equipment\monitoring.js
* @Description: 设备监控
*/
import request from '@/utils/request'
// 获取设备监控列表
export function getDeviceMonitoringList(data) {
return request({
url: '/equipment/monitor/list',
method: 'post',
data
})
}

187
src/api/equipment/param.js Normal file
View File

@ -0,0 +1,187 @@
/*
* @Date: 2021-02-01 19:33:11
* @LastEditors: gtz
* @LastEditTime: 2021-04-23 15:45:32
* @FilePath: \basic-admin\src\api\equipment\param.js
* @Description: 设备类型参数
*/
import request from '@/utils/request'
// 获取设备类型列表
export function getDeviceList(data) {
return request({
url: '/basic/equipment/page',
method: 'post',
data
})
}
// 获取设备类型详情
export function getDeviceInfo(data) {
return request({
url: '/basic/equipment/get',
method: 'post',
data
})
}
// 获取设备类型参数列表
export function getDeviceParamList(data) {
return request({
url: '/equipment/equipment-parameter/findAllByIdOrName',
method: 'post',
data
})
}
// 新增设备类型参数
export function addDeviceParam(data) {
return request({
url: '/equipment/equipment-parameter/create',
method: 'post',
data
})
}
// 编辑设备类型参数
export function editDeviceParam(data) {
return request({
url: '/equipment/equipment-parameter/update',
method: 'post',
data
})
}
// 删除设备类型参数
export function delDeviceParam(data) {
return request({
url: '/equipment/equipment-parameter/delete',
method: 'post',
data
})
}
// 查询设备类型参数
export function getDeviceParam(data) {
return request({
url: '/equipment/equipment-parameter/findById',
method: 'post',
data
})
}
// 获取设备类型参数code
export function getDeviceParamCode(data) {
return request({
url: '/equipment/equipment-parameter/getEquipmentParamCode',
method: 'post',
data
})
}
// 获取设备类型参数 事件配置列表
export function getDeviceEventSettingList(data) {
return request({
url: '/equipment/equipment-event/findAllByIdOrName',
method: 'post',
data
})
}
// 获取设备类型参数 事件配置详细
export function getDeviceEventSetting(data) {
return request({
url: '/equipment/equipment-event/findById',
method: 'post',
data
})
}
// 添加设备类型参数事件配置
export function addDeviceEventSetting(data) {
return request({
url: '/equipment/equipment-event/create',
method: 'post',
data
})
}
// 编辑设备类型参数事件配置
export function editDeviceEventSetting(data) {
return request({
url: 'equipment/equipment-event/update',
method: 'post',
data
})
}
// 删除设备类型参数事件配置
export function delDeviceEventSetting(data) {
return request({
url: '/equipment/equipment-event/delete',
method: 'post',
data
})
}
// 获取设备类型参数事件code
export function getDeviceEventCode(data) {
return request({
url: '/equipment/equipment-event/getEquipmentEventCode',
method: 'post',
data
})
}
// 获取设备类型报警列表
export function getDeviceAlarmSettingList(data) {
return request({
url: '/equipment/equipment-manage-alarm/findAllByALID',
method: 'post',
data
})
}
// 获取设备类型报警详细
export function getDeviceAlarmSetting(data) {
return request({
url: '/equipment/equipment-manage-alarm/findById',
method: 'post',
data
})
}
// 新增设备类型报警详细
export function addDeviceAlarmSetting(data) {
return request({
url: '/equipment/equipment-manage-alarm/create',
method: 'post',
data
})
}
// 编辑设备类型报警详细
export function editDeviceAlarmSetting(data) {
return request({
url: '/equipment/equipment-manage-alarm/update',
method: 'post',
data
})
}
// 删除设备类型报警详细
export function delDeviceAlarmSetting(data) {
return request({
url: '/equipment/equipment-manage-alarm/delete',
method: 'post',
data
})
}
// 获取设备类型报警编码
export function getDeviceAlarmCode(data) {
return request({
url: '/equipment/equipment-manage-alarm/getEquipmentAlarmCode',
method: 'post',
data
})
}

View File

@ -0,0 +1,16 @@
/*
* @Author: your name
* @Date: 2021-06-29 17:25:28
* @LastEditTime: 2021-06-30 09:06:28
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \mt-bus-fe\src\api\equipment\process.js
*/
import request from '@/utils/request'
export function getProcess(data) {
return request({
url: '/equipment/substrate-equipment-event-parameter/getAllEquipmentEventParameter',
method: 'post',
data
})
}

108
src/api/equipment/recipe.js Normal file
View File

@ -0,0 +1,108 @@
/*
* @Date: 2021-01-28 15:01:57
* @LastEditors: gtz
* @LastEditTime: 2021-04-20 10:50:48
* @FilePath: \basic-admin\src\api\equipment\recipe.js
* @Description: 设备配方设置
*/
import request from '@/utils/request'
// 获取设备配方CODE
export function getDeviceRecipeCode(data) {
return request({
url: '/equipment/equipment-recipe/getEquipmentRecipeCode',
method: 'post',
data
})
}
// 获取设备配方列表
export function getDeviceRecipeList(data) {
return request({
url: '/equipment/equipment-recipe/findAllByEquipmentTypeAndRecipeName',
method: 'post',
data
})
}
// 新建设备配方
export function addDeviceRecipe(data) {
return request({
url: '/equipment/equipment-recipe/create',
method: 'post',
data
})
}
// 编辑设备配方
export function editDeviceRecipe(data) {
return request({
url: '/equipment/equipment-recipe/update',
method: 'post',
data
})
}
// 删除设备配方
export function delDeviceRecipe(data) {
return request({
url: '/equipment/equipment-recipe/delete',
method: 'post',
data
})
}
// 获取设备配方
export function getDeviceRecipe(data) {
return request({
url: '/equipment/equipment-recipe/findById',
method: 'post',
data
})
}
// 根据id获取设备配方参数列表
export function getDeviceRecipeParamList(data) {
return request({
url: '/equipment/equipment-recipe-parameter/findAllByRecipeIdWithPage',
method: 'post',
data
})
}
// 新增设备配方参数
export function addDeviceRecipeParam(data) {
return request({
url: '/equipment/equipment-recipe-parameter/create',
method: 'post',
data
})
}
// 修改设备配方参数
export function editDeviceRecipeParam(data) {
return request({
url: '/equipment/equipment-recipe-parameter/update',
method: 'post',
data
})
}
// 删除设备配方参数
export function delDeviceRecipeParam(data) {
return request({
url: '/equipment/equipment-recipe-parameter/delete',
method: 'post',
data
})
}
// 获取设备配方参数详细 (等待接口补全)
export function getDeviceRecipeParam(data) {
return request({
url: '/equipment/equipment-recipe-parameter/findById',
method: 'post',
data
})
}

View File

@ -0,0 +1,62 @@
/*
* @Date: 2021-01-12 14:29:35
* @LastEditors: guo
* @LastEditTime: 2021-03-01 10:02:07
* @FilePath: \basic-admin\src\api\equipment\repair.js
* @Description: 设备维修管理 接口定义
*/
import request from '@/utils/request'
// 获取设备维修列表
export function getRepairList(data) {
return request({
url: '/equipment/equipment-repair/findAllByMaintenanceStatusOrTime',
method: 'post',
data
})
}
// 新增设备维护信息
export function addRepairInfo(data) {
return request({
url: '/equipment/equipment-repair/create',
method: 'post',
data
})
}
// 删除设备维护信息
export function delRepairInfo(data) {
return request({
url: '/equipment/equipment-repair/delete',
method: 'post',
data
})
}
// 修改设备维护信息
export function editRepairInfo(data) {
return request({
url: '/equipment/equipment-repair/update',
method: 'post',
data
})
}
// 获取维修信息详细
export function getRepairInfo(data) {
return request({
url: '/equipment/equipment-repair/findById',
method: 'post',
data
})
}
// 获取维修单号code
export function getCode() {
return request({
url: '/equipment/equipment-repair/getEquipmentRepairCode',
method: 'post'
})
}

View File

@ -0,0 +1,62 @@
/*
* @Date: 2021-01-05 15:25:38
* @LastEditors: guo
* @LastEditTime: 2021-03-16 13:49:23
* @FilePath: \basic-admin\src\api\equipment\spare.js
* @Description: 设备管理备品备件管理
*/
import request from '@/utils/request'
// 获取备品备件列表
export function getSpareList(data) {
return request({
url: '/equipment/spare-parts/page',
method: 'post',
data
})
}
// 新增备品备件
export function addSapre(data) {
return request({
url: '/equipment/spare-parts/create',
method: 'post',
data
})
}
// 修改备品备件
export function editSpare(data) {
return request({
url: '/equipment/spare-parts/update',
method: 'post',
data
})
}
// 删除备品备件
export function delSpare(data) {
return request({
url: '/equipment/spare-parts/delete',
method: 'post',
data
})
}
// 获取备品备件详情
export function getSpareInfo(data) {
return request({
url: '/equipment/spare-parts/findById',
method: 'post',
data
})
}
// 获取备件型号
export function getSpareModel(data) {
return request({
url: '/basic/tool-spare-part/list',
method: 'post',
data
})
}

View File

@ -0,0 +1,62 @@
/*
* @Author: gtz
* @Date: 2021-03-21 15:14:22
* @LastEditors: gtz
* @LastEditTime: 2021-03-21 18:13:56
* @Description: file content
*/
import request from '@/utils/request'
// 获取告警列表
export function list(data) {
return request({
url: '/team/team-alarmHandle/page',
method: 'post',
data
})
}
// id获取告警
export function getInfo(data) {
return request({
url: '/team/team-alarmHandle/get',
method: 'post',
data
})
}
// 删除告警
export function del(data) {
return request({
url: '/team/team-alarmHandle/delete',
method: 'post',
data
})
}
// 新增告警
export function add(data) {
return request({
url: '/team/team-alarmHandle/add',
method: 'post',
data
})
}
// 更新告警
export function update(data) {
return request({
url: '/team/team-alarmHandle/update',
method: 'post',
data
})
}
// 获取员工列表
export function getWorkerList(data) {
return request({
url: '/basic/worker/page',
method: 'post',
data
})
}

30
src/api/file.js Normal file
View File

@ -0,0 +1,30 @@
/*
* @Author: gtz
* @Date: 2021-02-27 16:05:34
* @LastEditors: gtz
* @LastEditTime: 2021-03-11 20:10:43
* @Description: file content
*/
import request from '@/utils/request'
// 获取文件流
export function getUrl(params) {
return request({
url: '/common/attachment/downloadFile',
method: 'get',
responseType: 'blob',
params,
timeout: 60000
})
}
// 上传文件
export function UploadFile(data, params) {
return request({
url: '/common/attachment/uploadFile',
method: 'post',
data,
params: { typeCode: params }
})
}

View File

@ -0,0 +1,63 @@
/*
* @Author: gtz
* @Date: 2021-01-27 10:07:42
* @LastEditors: gtz
* @LastEditTime: 2021-03-30 16:58:47
* @Description: file content
*/
import request from '@/utils/request'
export function list(data) {
return request({
url: '/material/material-date/page',
method: 'post',
data
})
}
export function getInfo(data) {
return request({
url: '/material/material-date/get',
method: 'post',
data
})
}
export function getByCode(data) {
return request({
url: '/material/material-date/getByCode',
method: 'post',
data
})
}
export function del(data) {
return request({
url: '/material/material-date/delete',
method: 'post',
data
})
}
export function update(data) {
return request({
url: '/material/material-date/update',
method: 'post',
data
})
}
export function add(data) {
return request({
url: '/material/material-date/add',
method: 'post',
data
})
}
export function getCode() {
return request({
url: '/material/material-date/getCode',
method: 'post'
})
}

View File

@ -0,0 +1,41 @@
import request from '@/utils/request'
export function list(data) {
return request({
url: '/material/material-bom-detail/page',
method: 'post',
data
})
}
export function getInfo(data) {
return request({
url: '/material/material-bom-detail/get',
method: 'post',
data
})
}
export function del(data) {
return request({
url: '/material/material-bom-detail/delete',
method: 'post',
data
})
}
export function add(data) {
return request({
url: '/material/material-bom-detail/add',
method: 'post',
data
})
}
export function update(data) {
return request({
url: '/material/material-bom-detail/update',
method: 'post',
data
})
}

View File

@ -0,0 +1,55 @@
/*
* @Author: gtz
* @Date: 2021-01-27 10:07:42
* @LastEditors: gtz
* @LastEditTime: 2021-03-30 16:31:18
* @Description: file content
*/
import request from '@/utils/request'
export function list(data) {
return request({
url: 'material/material-bom/page',
method: 'post',
data
})
}
export function getInfo(data) {
return request({
url: '/material/material-bom/get',
method: 'post',
data
})
}
export function del(data) {
return request({
url: '/material/material-bom/delete',
method: 'post',
data
})
}
export function add(data) {
return request({
url: '/material/material-bom/add',
method: 'post',
data
})
}
export function getCode() {
return request({
url: '/material/material-bom/getCode',
method: 'post'
})
}
export function update(data) {
return request({
url: '/material/material-bom/update',
method: 'post',
data
})
}

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