项目初始化
22
ruoyi-ui/.editorconfig
Normal file
@@ -0,0 +1,22 @@
|
||||
# 告诉EditorConfig插件,这是根文件,不用继续往上查找
|
||||
root = true
|
||||
|
||||
# 匹配全部文件
|
||||
[*]
|
||||
# 设置字符集
|
||||
charset = utf-8
|
||||
# 缩进风格,可选space、tab
|
||||
indent_style = space
|
||||
# 缩进的空格数
|
||||
indent_size = 2
|
||||
# 结尾换行符,可选lf、cr、crlf
|
||||
end_of_line = lf
|
||||
# 在文件结尾插入新行
|
||||
insert_final_newline = true
|
||||
# 删除一行中的前后空格
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
# 匹配md结尾的文件
|
||||
[*.md]
|
||||
insert_final_newline = false
|
||||
trim_trailing_whitespace = false
|
||||
11
ruoyi-ui/.env.development
Normal file
@@ -0,0 +1,11 @@
|
||||
# 页面标题
|
||||
VUE_APP_TITLE = "ForTucky WMS system"
|
||||
|
||||
# 开发环境配置
|
||||
ENV = 'development'
|
||||
|
||||
# 若依管理系统/开发环境
|
||||
VUE_APP_BASE_API = '/dev-api'
|
||||
|
||||
# 路由懒加载
|
||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||
8
ruoyi-ui/.env.production
Normal file
@@ -0,0 +1,8 @@
|
||||
# 页面标题
|
||||
VUE_APP_TITLE = "ForTucky WMS system"
|
||||
|
||||
# 生产环境配置
|
||||
ENV = 'production'
|
||||
|
||||
# 若依管理系统/生产环境
|
||||
VUE_APP_BASE_API = '/prod-api'
|
||||
12
ruoyi-ui/.env.staging
Normal file
@@ -0,0 +1,12 @@
|
||||
# 页面标题
|
||||
VUE_APP_TITLE = "ForTucky WMS system"
|
||||
|
||||
BABEL_ENV = production
|
||||
|
||||
NODE_ENV = production
|
||||
|
||||
# 测试环境配置
|
||||
ENV = 'staging'
|
||||
|
||||
# 若依管理系统/测试环境
|
||||
VUE_APP_BASE_API = '/stage-api'
|
||||
23
ruoyi-ui/.gitignore
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
.DS_Store
|
||||
node_modules/
|
||||
dist/
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
**/*.log
|
||||
|
||||
tests/**/coverage/
|
||||
tests/e2e/reports
|
||||
selenium-debug.log
|
||||
|
||||
# Editor directories and files
|
||||
.idea
|
||||
.vscode
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.local
|
||||
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
30
ruoyi-ui/README.md
Normal file
@@ -0,0 +1,30 @@
|
||||
## 开发
|
||||
|
||||
```bash
|
||||
# 克隆项目
|
||||
git clone https://gitee.com/y_project/RuoYi-Vue
|
||||
|
||||
# 进入项目目录
|
||||
cd ruoyi-ui
|
||||
|
||||
# 安装依赖
|
||||
npm install
|
||||
|
||||
# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
|
||||
npm install --registry=https://registry.npmmirror.com
|
||||
|
||||
# 启动服务
|
||||
npm run dev
|
||||
```
|
||||
|
||||
浏览器访问 http://localhost:80
|
||||
|
||||
## 发布
|
||||
|
||||
```bash
|
||||
# 构建测试环境
|
||||
npm run build:stage
|
||||
|
||||
# 构建生产环境
|
||||
npm run build:prod
|
||||
```
|
||||
13
ruoyi-ui/babel.config.js
Normal file
@@ -0,0 +1,13 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
|
||||
'@vue/cli-plugin-babel/preset'
|
||||
],
|
||||
'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.
|
||||
'plugins': ['dynamic-import-node']
|
||||
}
|
||||
}
|
||||
}
|
||||
12
ruoyi-ui/bin/build.bat
Normal file
@@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
echo.
|
||||
echo [<5B><>Ϣ] <20><><EFBFBD><EFBFBD>Web<65><62><EFBFBD>̣<EFBFBD><CCA3><EFBFBD><EFBFBD><EFBFBD>dist<73>ļ<EFBFBD><C4BC><EFBFBD>
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
cd ..
|
||||
npm run build:prod
|
||||
|
||||
pause
|
||||
12
ruoyi-ui/bin/package.bat
Normal file
@@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
echo.
|
||||
echo [<5B><>Ϣ] <20><>װWeb<65><62><EFBFBD>̣<EFBFBD><CCA3><EFBFBD><EFBFBD><EFBFBD>node_modules<65>ļ<EFBFBD><C4BC><EFBFBD>
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
cd ..
|
||||
npm install --registry=https://registry.npmmirror.com
|
||||
|
||||
pause
|
||||
12
ruoyi-ui/bin/run-web.bat
Normal file
@@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
echo.
|
||||
echo [<5B><>Ϣ] ʹ<><CAB9> Vue CLI <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Web <20><><EFBFBD>̡<EFBFBD>
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
cd ..
|
||||
npm run dev
|
||||
|
||||
pause
|
||||
35
ruoyi-ui/build/index.js
Normal file
@@ -0,0 +1,35 @@
|
||||
const { run } = require('runjs')
|
||||
const chalk = require('chalk')
|
||||
const config = require('../vue.config.js')
|
||||
const rawArgv = process.argv.slice(2)
|
||||
const args = rawArgv.join(' ')
|
||||
|
||||
if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
|
||||
const report = rawArgv.includes('--report')
|
||||
|
||||
run(`vue-cli-service build ${args}`)
|
||||
|
||||
const port = 9526
|
||||
const publicPath = config.publicPath
|
||||
|
||||
var connect = require('connect')
|
||||
var serveStatic = require('serve-static')
|
||||
const app = connect()
|
||||
|
||||
app.use(
|
||||
publicPath,
|
||||
serveStatic('./dist', {
|
||||
index: ['index.html', '/']
|
||||
})
|
||||
)
|
||||
|
||||
app.listen(port, function () {
|
||||
console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`))
|
||||
if (report) {
|
||||
console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`))
|
||||
}
|
||||
|
||||
})
|
||||
} else {
|
||||
run(`vue-cli-service build ${args}`)
|
||||
}
|
||||
77
ruoyi-ui/package.json
Normal file
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"name": "ruoyi",
|
||||
"version": "3.9.0",
|
||||
"description": "若依管理系统",
|
||||
"author": "若依",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"dev": "vue-cli-service serve",
|
||||
"build:prod": "vue-cli-service build",
|
||||
"build:stage": "vue-cli-service build --mode staging",
|
||||
"preview": "node build/index.js --preview"
|
||||
},
|
||||
"keywords": [
|
||||
"vue",
|
||||
"admin",
|
||||
"dashboard",
|
||||
"element-ui",
|
||||
"boilerplate",
|
||||
"admin-template",
|
||||
"management-system"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://gitee.com/y_project/RuoYi-Vue.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@riophae/vue-treeselect": "0.4.0",
|
||||
"axios": "0.28.1",
|
||||
"clipboard": "2.0.8",
|
||||
"core-js": "3.37.1",
|
||||
"echarts": "5.4.0",
|
||||
"element-ui": "2.15.14",
|
||||
"file-saver": "2.0.5",
|
||||
"fuse.js": "6.4.3",
|
||||
"highlight.js": "^9.18.5",
|
||||
"js-beautify": "1.13.0",
|
||||
"js-cookie": "3.0.1",
|
||||
"jsencrypt": "3.0.0-rc.1",
|
||||
"marked": "^4.3.0",
|
||||
"nprogress": "0.2.0",
|
||||
"quill": "2.0.2",
|
||||
"rxjs": "^7.8.2",
|
||||
"screenfull": "5.0.2",
|
||||
"sortablejs": "1.10.2",
|
||||
"splitpanes": "2.4.1",
|
||||
"vue": "2.6.12",
|
||||
"vue-count-to": "1.0.13",
|
||||
"vue-cropper": "0.5.5",
|
||||
"vue-easy-print": "^0.0.8",
|
||||
"vue-i18n": "7.3.2",
|
||||
"vue-qr": "^4.0.9",
|
||||
"vue-router": "3.4.9",
|
||||
"vuedraggable": "2.24.3",
|
||||
"vuex": "3.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "4.4.6",
|
||||
"@vue/cli-service": "4.4.6",
|
||||
"babel-plugin-dynamic-import-node": "2.3.3",
|
||||
"chalk": "4.1.0",
|
||||
"compression-webpack-plugin": "6.1.2",
|
||||
"connect": "3.6.6",
|
||||
"sass": "1.32.13",
|
||||
"sass-loader": "10.1.1",
|
||||
"script-ext-html-webpack-plugin": "2.1.5",
|
||||
"svg-sprite-loader": "5.1.1",
|
||||
"vue-template-compiler": "2.6.12"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.9",
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"browserslist": [
|
||||
"> 1%",
|
||||
"last 2 versions"
|
||||
]
|
||||
}
|
||||
BIN
ruoyi-ui/public/favicon.ico
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
46
ruoyi-ui/public/html/ie.html
Normal file
208
ruoyi-ui/public/index.html
Normal file
@@ -0,0 +1,208 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
<title><%= webpackConfig.name %></title>
|
||||
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
|
||||
<style>
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
height: 100%;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
.chromeframe {
|
||||
margin: 0.2em 0;
|
||||
background: #ccc;
|
||||
color: #000;
|
||||
padding: 0.2em 0;
|
||||
}
|
||||
|
||||
#loader-wrapper {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 999999;
|
||||
}
|
||||
|
||||
#loader {
|
||||
display: block;
|
||||
position: relative;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
margin: -75px 0 0 -75px;
|
||||
border-radius: 50%;
|
||||
border: 3px solid transparent;
|
||||
border-top-color: #FFF;
|
||||
-webkit-animation: spin 2s linear infinite;
|
||||
-ms-animation: spin 2s linear infinite;
|
||||
-moz-animation: spin 2s linear infinite;
|
||||
-o-animation: spin 2s linear infinite;
|
||||
animation: spin 2s linear infinite;
|
||||
z-index: 1001;
|
||||
}
|
||||
|
||||
#loader:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
right: 5px;
|
||||
bottom: 5px;
|
||||
border-radius: 50%;
|
||||
border: 3px solid transparent;
|
||||
border-top-color: #FFF;
|
||||
-webkit-animation: spin 3s linear infinite;
|
||||
-moz-animation: spin 3s linear infinite;
|
||||
-o-animation: spin 3s linear infinite;
|
||||
-ms-animation: spin 3s linear infinite;
|
||||
animation: spin 3s linear infinite;
|
||||
}
|
||||
|
||||
#loader:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
left: 15px;
|
||||
right: 15px;
|
||||
bottom: 15px;
|
||||
border-radius: 50%;
|
||||
border: 3px solid transparent;
|
||||
border-top-color: #FFF;
|
||||
-moz-animation: spin 1.5s linear infinite;
|
||||
-o-animation: spin 1.5s linear infinite;
|
||||
-ms-animation: spin 1.5s linear infinite;
|
||||
-webkit-animation: spin 1.5s linear infinite;
|
||||
animation: spin 1.5s linear infinite;
|
||||
}
|
||||
|
||||
|
||||
@-webkit-keyframes spin {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
-ms-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
-ms-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
-ms-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
-ms-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#loader-wrapper .loader-section {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 51%;
|
||||
height: 100%;
|
||||
background: #7171C6;
|
||||
z-index: 1000;
|
||||
-webkit-transform: translateX(0);
|
||||
-ms-transform: translateX(0);
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
#loader-wrapper .loader-section.section-left {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
#loader-wrapper .loader-section.section-right {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
|
||||
.loaded #loader-wrapper .loader-section.section-left {
|
||||
-webkit-transform: translateX(-100%);
|
||||
-ms-transform: translateX(-100%);
|
||||
transform: translateX(-100%);
|
||||
-webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||
}
|
||||
|
||||
.loaded #loader-wrapper .loader-section.section-right {
|
||||
-webkit-transform: translateX(100%);
|
||||
-ms-transform: translateX(100%);
|
||||
transform: translateX(100%);
|
||||
-webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||
}
|
||||
|
||||
.loaded #loader {
|
||||
opacity: 0;
|
||||
-webkit-transition: all 0.3s ease-out;
|
||||
transition: all 0.3s ease-out;
|
||||
}
|
||||
|
||||
.loaded #loader-wrapper {
|
||||
visibility: hidden;
|
||||
-webkit-transform: translateY(-100%);
|
||||
-ms-transform: translateY(-100%);
|
||||
transform: translateY(-100%);
|
||||
-webkit-transition: all 0.3s 1s ease-out;
|
||||
transition: all 0.3s 1s ease-out;
|
||||
}
|
||||
|
||||
.no-js #loader-wrapper {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.no-js h1 {
|
||||
color: #222222;
|
||||
}
|
||||
|
||||
#loader-wrapper .load_title {
|
||||
font-family: 'Open Sans';
|
||||
color: #FFF;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
z-index: 9999999999999;
|
||||
position: absolute;
|
||||
top: 60%;
|
||||
opacity: 1;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
#loader-wrapper .load_title span {
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
font-size: 13px;
|
||||
color: #FFF;
|
||||
opacity: 0.5;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div id="loader-wrapper">
|
||||
<div id="loader"></div>
|
||||
<div class="loader-section section-left"></div>
|
||||
<div class="loader-section section-right"></div>
|
||||
<div class="load_title">正在加载系统资源,请耐心等待</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
2
ruoyi-ui/public/robots.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow: /
|
||||
1
ruoyi-ui/public/styles/theme-chalk/index.css
Normal file
33
ruoyi-ui/src/App.vue
Normal file
@@ -0,0 +1,33 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<router-view />
|
||||
<theme-picker />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ThemePicker from "@/components/ThemePicker"
|
||||
|
||||
export default {
|
||||
name: "App",
|
||||
components: { ThemePicker },
|
||||
computed: {
|
||||
sideTheme() {
|
||||
return this.$store.state.settings.sideTheme
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
sideTheme: {
|
||||
immediate: true,
|
||||
handler(val) {
|
||||
document.documentElement.setAttribute('data-theme', val)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
#app .theme-picker {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
44
ruoyi-ui/src/api/ai/conversations.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询RAG项目会话管理列表
|
||||
export function listConversations(query) {
|
||||
return request({
|
||||
url: '/ai/conversations/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询RAG项目会话管理详细
|
||||
export function getConversations(id) {
|
||||
return request({
|
||||
url: '/ai/conversations/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增RAG项目会话管理
|
||||
export function addConversations(data) {
|
||||
return request({
|
||||
url: '/ai/conversations',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改RAG项目会话管理
|
||||
export function updateConversations(data) {
|
||||
return request({
|
||||
url: '/ai/conversations',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除RAG项目会话管理
|
||||
export function delConversations(id) {
|
||||
return request({
|
||||
url: '/ai/conversations/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/ai/message.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询聊天消息列表
|
||||
export function listMessage(query) {
|
||||
return request({
|
||||
url: '/ai/message/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询聊天消息详细
|
||||
export function getMessage(id) {
|
||||
return request({
|
||||
url: '/ai/message/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增聊天消息
|
||||
export function addMessage(data) {
|
||||
return request({
|
||||
url: '/ai/message',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改聊天消息
|
||||
export function updateMessage(data) {
|
||||
return request({
|
||||
url: '/ai/message',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除聊天消息
|
||||
export function delMessage(id) {
|
||||
return request({
|
||||
url: '/ai/message/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/bas/BasCustomer.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询客户管理列表
|
||||
export function listBasCustomer(query) {
|
||||
return request({
|
||||
url: '/bas/BasCustomer/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询客户管理详细
|
||||
export function getBasCustomer(id) {
|
||||
return request({
|
||||
url: '/bas/BasCustomer/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增客户管理
|
||||
export function addBasCustomer(data) {
|
||||
return request({
|
||||
url: '/bas/BasCustomer',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改客户管理
|
||||
export function updateBasCustomer(data) {
|
||||
return request({
|
||||
url: '/bas/BasCustomer',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除客户管理
|
||||
export function delBasCustomer(id) {
|
||||
return request({
|
||||
url: '/bas/BasCustomer/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/bas/BasProduct.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询物料管理列表
|
||||
export function listBasProduct(query) {
|
||||
return request({
|
||||
url: '/bas/BasProduct/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询物料管理详细
|
||||
export function getBasProduct(productGuid) {
|
||||
return request({
|
||||
url: '/bas/BasProduct/' + productGuid,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增物料管理
|
||||
export function addBasProduct(data) {
|
||||
return request({
|
||||
url: '/bas/BasProduct',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改物料管理
|
||||
export function updateBasProduct(data) {
|
||||
return request({
|
||||
url: '/bas/BasProduct',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除物料管理
|
||||
export function delBasProduct(productGuid) {
|
||||
return request({
|
||||
url: '/bas/BasProduct/' + productGuid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/bas/BasSupplier.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询供应商管理列表
|
||||
export function listBasSupplier(query) {
|
||||
return request({
|
||||
url: '/bas/BasSupplier/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询供应商管理详细
|
||||
export function getBasSupplier(id) {
|
||||
return request({
|
||||
url: '/bas/BasSupplier/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增供应商管理
|
||||
export function addBasSupplier(data) {
|
||||
return request({
|
||||
url: '/bas/BasSupplier',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改供应商管理
|
||||
export function updateBasSupplier(data) {
|
||||
return request({
|
||||
url: '/bas/BasSupplier',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除供应商管理
|
||||
export function delBasSupplier(id) {
|
||||
return request({
|
||||
url: '/bas/BasSupplier/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
61
ruoyi-ui/src/api/bas/basstandPosition.js
Normal file
@@ -0,0 +1,61 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询点位类型为6的基础点位列表,并关联容器和容器明细数据
|
||||
export function getPortType6List(query) {
|
||||
return request({
|
||||
url: '/bas/basstandPosition/portType6',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询所有无料架信息的点位数据
|
||||
export function getNoContainerList(query) {
|
||||
return request({
|
||||
url: '/bas/basstandPosition/noContainer',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询所有有料架信息的点位数据
|
||||
export function getHasContainerList(query) {
|
||||
return request({
|
||||
url: '/bas/basstandPosition/hasContainer',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查看容器详情
|
||||
export function getContainerDetail(containerId) {
|
||||
return request({
|
||||
url: '/bas/basstandPosition/containerDetail/' + containerId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 配送容器
|
||||
export function deliverContainer(sourcePortName, targetPortName, containerId) {
|
||||
return request({
|
||||
url: '/bas/basstandPosition/deliver/' + sourcePortName + '/' + targetPortName + '/' + containerId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 呼叫料架
|
||||
export function callMaterialRack(sourcePortName, targetPortName, containerId) {
|
||||
return request({
|
||||
url: '/bas/basstandPosition/call/' + sourcePortName + '/' + targetPortName + '/' + containerId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 推送AGV搬运作业
|
||||
export function pushAgvMoveJob(data) {
|
||||
return request({
|
||||
url: '/api2wcs/pushAgvMoveJob',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/bas/cargoSpace.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询库存信息列表
|
||||
export function listCargoSpace(query) {
|
||||
return request({
|
||||
url: '/bas/cargoSpace/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询库存信息详细
|
||||
export function getCargoSpace(cargoSpaceId) {
|
||||
return request({
|
||||
url: '/bas/cargoSpace/' + cargoSpaceId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增库存信息
|
||||
export function addCargoSpace(data) {
|
||||
return request({
|
||||
url: '/bas/cargoSpace',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改库存信息
|
||||
export function updateCargoSpace(data) {
|
||||
return request({
|
||||
url: '/bas/cargoSpace',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除库存信息
|
||||
export function delCargoSpace(cargoSpaceId) {
|
||||
return request({
|
||||
url: '/bas/cargoSpace/' + cargoSpaceId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
54
ruoyi-ui/src/api/bas/container.js
Normal file
@@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询容器管理列表
|
||||
export function listContainer(query) {
|
||||
return request({
|
||||
url: '/bas/container/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询容器管理详细
|
||||
export function getContainer(containerId) {
|
||||
return request({
|
||||
url: '/bas/container/' + containerId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增容器管理
|
||||
export function addContainer(data) {
|
||||
return request({
|
||||
url: '/bas/container',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改容器管理
|
||||
export function updateContainer(data) {
|
||||
return request({
|
||||
url: '/bas/container',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除容器管理
|
||||
export function delContainer(containerId) {
|
||||
return request({
|
||||
url: '/bas/container/' + containerId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取点位名称
|
||||
export function getPortNames() {
|
||||
return request({
|
||||
url: '/bas/container/portNames',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
44
ruoyi-ui/src/api/bas/containerDetails.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询容器物料明细列表
|
||||
export function listContainerDetails(query) {
|
||||
return request({
|
||||
url: '/bas/containerDetails/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询容器物料明细详细
|
||||
export function getContainerDetails(id) {
|
||||
return request({
|
||||
url: '/bas/containerDetails/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增容器物料明细
|
||||
export function addContainerDetails(data) {
|
||||
return request({
|
||||
url: '/bas/containerDetails',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改容器物料明细
|
||||
export function updateContainerDetails(data) {
|
||||
return request({
|
||||
url: '/bas/containerDetails',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除容器物料明细
|
||||
export function delContainerDetails(id) {
|
||||
return request({
|
||||
url: '/bas/containerDetails/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/bas/knowledge.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询知识库主列表
|
||||
export function listKnowledge(query) {
|
||||
return request({
|
||||
url: '/bas/knowledge/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询知识库主详细
|
||||
export function getKnowledge(id) {
|
||||
return request({
|
||||
url: '/bas/knowledge/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增知识库主
|
||||
export function addKnowledge(data) {
|
||||
return request({
|
||||
url: '/bas/knowledge',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改知识库主
|
||||
export function updateKnowledge(data) {
|
||||
return request({
|
||||
url: '/bas/knowledge',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除知识库主
|
||||
export function delKnowledge(id) {
|
||||
return request({
|
||||
url: '/bas/knowledge/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/bas/model.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询聊天模型列表
|
||||
export function listModel(query) {
|
||||
return request({
|
||||
url: '/bas/model/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询聊天模型详细
|
||||
export function getModel(id) {
|
||||
return request({
|
||||
url: '/bas/model/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增聊天模型
|
||||
export function addModel(data) {
|
||||
return request({
|
||||
url: '/bas/model',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改聊天模型
|
||||
export function updateModel(data) {
|
||||
return request({
|
||||
url: '/bas/model',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除聊天模型
|
||||
export function delModel(id) {
|
||||
return request({
|
||||
url: '/bas/model/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/bas/port.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询基础点位列表
|
||||
export function listPort(query) {
|
||||
return request({
|
||||
url: '/bas/port/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询基础点位详细
|
||||
export function getPort(id) {
|
||||
return request({
|
||||
url: '/bas/port/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增基础点位
|
||||
export function addPort(data) {
|
||||
return request({
|
||||
url: '/bas/port',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改基础点位
|
||||
export function updatePort(data) {
|
||||
return request({
|
||||
url: '/bas/port',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除基础点位
|
||||
export function delPort(id) {
|
||||
return request({
|
||||
url: '/bas/port/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
45
ruoyi-ui/src/api/bas/portProductRel.js
Normal file
@@ -0,0 +1,45 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询点位与物料关联列表
|
||||
export function listPortProductRel(query) {
|
||||
return request({
|
||||
url: '/bas/portProductRel/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询点位与物料关联详细
|
||||
export function getPortProductRel(id) {
|
||||
return request({
|
||||
url: '/bas/portProductRel/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增点位与物料关联
|
||||
export function addPortProductRel(data) {
|
||||
return request({
|
||||
url: '/bas/portProductRel',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改点位与物料关联
|
||||
export function updatePortProductRel(data) {
|
||||
return request({
|
||||
url: '/bas/portProductRel',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除点位与物料关联
|
||||
export function delPortProductRel(data) {
|
||||
return request({
|
||||
url: '/bas/portProductRel/unbind',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/bas/traycode.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询条码信息列表
|
||||
export function listTraycode(query) {
|
||||
return request({
|
||||
url: '/bas/traycode/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询条码信息详细
|
||||
export function getTraycode(id) {
|
||||
return request({
|
||||
url: '/bas/traycode/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增条码信息
|
||||
export function addTraycode(data) {
|
||||
return request({
|
||||
url: '/bas/traycode',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改条码信息
|
||||
export function updateTraycode(data) {
|
||||
return request({
|
||||
url: '/bas/traycode',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除条码信息
|
||||
export function delTraycode(id) {
|
||||
return request({
|
||||
url: '/bas/traycode/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
53
ruoyi-ui/src/api/bas/traycodeFormat.js
Normal file
@@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询条码生成规则列表
|
||||
export function listTraycodeFormat(query) {
|
||||
return request({
|
||||
url: '/bas/traycodeFormat/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询条码生成规则详细
|
||||
export function getTraycodeFormat(id) {
|
||||
return request({
|
||||
url: '/bas/traycodeFormat/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增条码生成规则
|
||||
export function addTraycodeFormat(data) {
|
||||
return request({
|
||||
url: '/bas/traycodeFormat',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改条码生成规则
|
||||
export function updateTraycodeFormat(data) {
|
||||
return request({
|
||||
url: '/bas/traycodeFormat',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除条码生成规则
|
||||
export function delTraycodeFormat(id) {
|
||||
return request({
|
||||
url: '/bas/traycodeFormat/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 打印条码
|
||||
export function printTraycodeFormat(data) {
|
||||
return request({
|
||||
url: '/bas/traycodeFormat/print',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/bas/warehouse.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询仓库管理列表
|
||||
export function listWarehouse(query) {
|
||||
return request({
|
||||
url: '/bas/warehouse/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询仓库管理详细
|
||||
export function getWarehouse(warehouseId) {
|
||||
return request({
|
||||
url: '/bas/warehouse/' + warehouseId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增仓库管理
|
||||
export function addWarehouse(data) {
|
||||
return request({
|
||||
url: '/bas/warehouse',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改仓库管理
|
||||
export function updateWarehouse(data) {
|
||||
return request({
|
||||
url: '/bas/warehouse',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除仓库管理
|
||||
export function delWarehouse(warehouseId) {
|
||||
return request({
|
||||
url: '/bas/warehouse/' + warehouseId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/bas/warehousePort.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询仓库出入管理列表
|
||||
export function listWarehousePort(query) {
|
||||
return request({
|
||||
url: '/bas/warehousePort/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询仓库出入管理详细
|
||||
export function getWarehousePort(id) {
|
||||
return request({
|
||||
url: '/bas/warehousePort/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增仓库出入管理
|
||||
export function addWarehousePort(data) {
|
||||
return request({
|
||||
url: '/bas/warehousePort',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改仓库出入管理
|
||||
export function updateWarehousePort(data) {
|
||||
return request({
|
||||
url: '/bas/warehousePort',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除仓库出入管理
|
||||
export function delWarehousePort(id) {
|
||||
return request({
|
||||
url: '/bas/warehousePort/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/check/DifferenceRecordFinish.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询盘点差异历史列表
|
||||
export function listDifferenceRecordFinish(query) {
|
||||
return request({
|
||||
url: '/check/DifferenceRecordFinish/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询盘点差异历史详细
|
||||
export function getDifferenceRecordFinish(checkGuid) {
|
||||
return request({
|
||||
url: '/check/DifferenceRecordFinish/' + checkGuid,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增盘点差异历史
|
||||
export function addDifferenceRecordFinish(data) {
|
||||
return request({
|
||||
url: '/check/DifferenceRecordFinish',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改盘点差异历史
|
||||
export function updateDifferenceRecordFinish(data) {
|
||||
return request({
|
||||
url: '/check/DifferenceRecordFinish',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除盘点差异历史
|
||||
export function delDifferenceRecordFinish(checkGuid) {
|
||||
return request({
|
||||
url: '/check/DifferenceRecordFinish/' + checkGuid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
53
ruoyi-ui/src/api/check/difference.js
Normal file
@@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询盘点差异列表
|
||||
export function listDifference(query) {
|
||||
return request({
|
||||
url: '/check/difference/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询盘点差异详细
|
||||
export function getDifference(checkGuid) {
|
||||
return request({
|
||||
url: '/check/difference/' + checkGuid,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增盘点差异
|
||||
export function addDifference(data) {
|
||||
return request({
|
||||
url: '/check/difference',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改盘点差异
|
||||
export function updateDifference(data) {
|
||||
return request({
|
||||
url: '/check/difference',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除盘点差异
|
||||
export function delDifference(checkGuid) {
|
||||
return request({
|
||||
url: '/check/difference/' + checkGuid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 审核盘点差异
|
||||
export function auditDifference(checkGuids) {
|
||||
return request({
|
||||
url: '/check/difference/audit',
|
||||
method: 'put',
|
||||
data: checkGuids
|
||||
})
|
||||
}
|
||||
60
ruoyi-ui/src/api/check/stockCheck.js
Normal file
@@ -0,0 +1,60 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询盘库单据主信息列表
|
||||
export function listStockCheck(query) {
|
||||
return request({
|
||||
url: '/check/stockCheck/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询盘库单据主信息详细
|
||||
export function getStockCheck(stockGuid) {
|
||||
return request({
|
||||
url: '/check/stockCheck/' + stockGuid,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增盘库单据主信息
|
||||
export function addStockCheck(data) {
|
||||
return request({
|
||||
url: '/check/stockCheck',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}// 新增盘库单据主信息
|
||||
export function saveCheckStock(data) {
|
||||
return request({
|
||||
url: '/check/stockCheck/saveBill',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改盘库单据主信息
|
||||
export function updateStockCheck(data) {
|
||||
return request({
|
||||
url: '/check/stockCheck',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除盘库单据主信息
|
||||
export function delStockCheck(stockGuid) {
|
||||
return request({
|
||||
url: '/check/stockCheck/' + stockGuid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出盘库单据主信息
|
||||
export function autoAllocation(data) {
|
||||
return request({
|
||||
url: '/check/stockCheck/autoAllocation',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/check/stockCheckDetail.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询盘库单据子信息列表
|
||||
export function listStockCheckDetail(query) {
|
||||
return request({
|
||||
url: '/check/stockCheckDetail/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询盘库单据子信息详细
|
||||
export function getStockCheckDetail(stockCheckDetailId) {
|
||||
return request({
|
||||
url: '/check/stockCheckDetail/' + stockCheckDetailId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增盘库单据子信息
|
||||
export function addStockCheckDetail(data) {
|
||||
return request({
|
||||
url: '/check/stockCheckDetail',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改盘库单据子信息
|
||||
export function updateStockCheckDetail(data) {
|
||||
return request({
|
||||
url: '/check/stockCheckDetail',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除盘库单据子信息
|
||||
export function delStockCheckDetail(stockCheckDetailId) {
|
||||
return request({
|
||||
url: '/check/stockCheckDetail/' + stockCheckDetailId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/check/stockCheckDetailFinish.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询盘库历史单据子信息列表
|
||||
export function listStockCheckDetailFinish(query) {
|
||||
return request({
|
||||
url: '/check/stockCheckDetailFinish/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询盘库历史单据子信息详细
|
||||
export function getStockCheckDetailFinish(stockCheckDetailId) {
|
||||
return request({
|
||||
url: '/check/stockCheckDetailFinish/' + stockCheckDetailId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增盘库历史单据子信息
|
||||
export function addStockCheckDetailFinish(data) {
|
||||
return request({
|
||||
url: '/check/stockCheckDetailFinish',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改盘库历史单据子信息
|
||||
export function updateStockCheckDetailFinish(data) {
|
||||
return request({
|
||||
url: '/check/stockCheckDetailFinish',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除盘库历史单据子信息
|
||||
export function delStockCheckDetailFinish(stockCheckDetailId) {
|
||||
return request({
|
||||
url: '/check/stockCheckDetailFinish/' + stockCheckDetailId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/check/stockCheckFinish.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询盘库历史单据主信息列表
|
||||
export function listStockCheckFinish(query) {
|
||||
return request({
|
||||
url: '/check/stockCheckFinish/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询盘库历史单据主信息详细
|
||||
export function getStockCheckFinish(stockGuid) {
|
||||
return request({
|
||||
url: '/check/stockCheckFinish/' + stockGuid,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增盘库历史单据主信息
|
||||
export function addStockCheckFinish(data) {
|
||||
return request({
|
||||
url: '/check/stockCheckFinish',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改盘库历史单据主信息
|
||||
export function updateStockCheckFinish(data) {
|
||||
return request({
|
||||
url: '/check/stockCheckFinish',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除盘库历史单据主信息
|
||||
export function delStockCheckFinish(stockGuid) {
|
||||
return request({
|
||||
url: '/check/stockCheckFinish/' + stockGuid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
70
ruoyi-ui/src/api/in/stockIn.js
Normal file
@@ -0,0 +1,70 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询入库单据列表
|
||||
export function listStockIn(query) {
|
||||
return request({
|
||||
url: '/in/stockIn/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询入库单据详细
|
||||
export function getStockIn(stockinGuid) {
|
||||
return request({
|
||||
url: '/in/stockIn/' + stockinGuid,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增入库单据
|
||||
export function addStockIn(data) {
|
||||
return request({
|
||||
url: '/in/stockIn',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改入库单据
|
||||
export function updateStockIn(data) {
|
||||
return request({
|
||||
url: '/in/stockIn',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除入库单据
|
||||
export function delStockIn(stockinGuid) {
|
||||
return request({
|
||||
url: '/in/stockIn/' + stockinGuid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
// 作废入库单据
|
||||
export function invalidatedStockIn(data) {
|
||||
return request({
|
||||
url: '/in/stockIn',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 审核入库单据
|
||||
export function reviewStockIn(data) {
|
||||
return request({
|
||||
url: '/in/stockIn',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 确认入库单据
|
||||
export function confirmationStockIn(data) {
|
||||
return request({
|
||||
url: '/in/stockIn',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
52
ruoyi-ui/src/api/in/stockInDetail.js
Normal file
@@ -0,0 +1,52 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询入库单据子表列表
|
||||
export function listStockInDetail(query) {
|
||||
return request({
|
||||
url: '/in/stockInDetail/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询入库单据子表详细
|
||||
export function getStockInDetail(stockinDetailId) {
|
||||
return request({
|
||||
url: '/in/stockInDetail/' + stockinDetailId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增入库单据子表
|
||||
export function addStockInDetail(data) {
|
||||
return request({
|
||||
url: '/in/stockInDetail',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改入库单据子表
|
||||
export function updateStockInDetail(data) {
|
||||
return request({
|
||||
url: '/in/stockInDetail',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除入库单据子表
|
||||
export function delStockInDetail(stockinDetailId) {
|
||||
return request({
|
||||
url: '/in/stockInDetail/' + stockinDetailId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function barcodePrinting(data) {
|
||||
return request({
|
||||
url: '/in/stockInDetail/barcodePrinting',
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
42
ruoyi-ui/src/api/index.js
Normal file
@@ -0,0 +1,42 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 所有的单据数量
|
||||
export function finishCount(query) {
|
||||
return request({
|
||||
url: '/index/finishCount',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
//周出库入库作业数量
|
||||
export function weekjob(query) {
|
||||
return request({
|
||||
url: '/index/weekjob/count',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 库位统计
|
||||
export function cargospace(query) {
|
||||
return request({
|
||||
url: '/index/cargospace/count',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 单据列表
|
||||
export function billStatus(query) {
|
||||
return request({
|
||||
url: '/index/bill/status',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
//正执行待执行任务
|
||||
export function jobStatus(query) {
|
||||
return request({
|
||||
url: '/index/job/status',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
40
ruoyi-ui/src/api/job/OutmydoJob.js
Normal file
@@ -0,0 +1,40 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
|
||||
// 查询任务表列表
|
||||
export function listMydoJobOut(query) {
|
||||
return request({
|
||||
url: '/job/outmydoJob/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 手动完成任务
|
||||
export function handFinish(jobIds) {
|
||||
return request({
|
||||
url: '/job/outmydoJob/OuthandFinish',
|
||||
method: 'get',
|
||||
params: { jobIds: jobIds }
|
||||
})
|
||||
}
|
||||
|
||||
// 手动作废任务
|
||||
export function hangInvalidJob(jobIds) {
|
||||
return request({
|
||||
url: '/job/outmydoJob/OuthandInvalidation',
|
||||
method: 'get',
|
||||
params: { jobIds: jobIds }
|
||||
})
|
||||
}
|
||||
|
||||
export function pointOut(stockIds,exitId) {
|
||||
return request({
|
||||
url: '/job/outmydoJob/pointOut',
|
||||
method: 'get',
|
||||
params: {
|
||||
stockIds: stockIds.join(',') ,// 将数组转换为逗号分隔的字符串
|
||||
exitId:exitId
|
||||
}
|
||||
})
|
||||
}
|
||||
61
ruoyi-ui/src/api/job/inmydoJob.js
Normal file
@@ -0,0 +1,61 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询任务表列表
|
||||
export function listMydoJob(query) {
|
||||
return request({
|
||||
url: '/job/inmydoJob/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询任务表详细
|
||||
export function getMydoJob(jobId) {
|
||||
return request({
|
||||
url: '/job/inmydoJob/' + jobId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增任务表
|
||||
export function addMydoJob(data) {
|
||||
return request({
|
||||
url: '/job/inmydoJob',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改任务表
|
||||
export function updateMydoJob(data) {
|
||||
return request({
|
||||
url: '/job/inmydoJob',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除任务表
|
||||
export function delMydoJob(jobId) {
|
||||
return request({
|
||||
url: '/job/inmydoJob/' + jobId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
// 新增任务表
|
||||
export function manualInvalidation(data) {
|
||||
return request({
|
||||
url: '/job/inmydoJob/manualInvalidation',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 新增任务表
|
||||
export function manualCompleted(data) {
|
||||
return request({
|
||||
url: '/job/inmydoJob/manualCompleted',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
44
ruoyi-ui/src/api/job/mydoJobDetail.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询子任务表列表
|
||||
export function listMydoJobDetail(query) {
|
||||
return request({
|
||||
url: '/job/mydoJobDetail/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询子任务表详细
|
||||
export function getMydoJobDetail(jobId) {
|
||||
return request({
|
||||
url: '/job/mydoJobDetail/' + jobId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增子任务表
|
||||
export function addMydoJobDetail(data) {
|
||||
return request({
|
||||
url: '/job/mydoJobDetail',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改子任务表
|
||||
export function updateMydoJobDetail(data) {
|
||||
return request({
|
||||
url: '/job/mydoJobDetail',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除子任务表
|
||||
export function delMydoJobDetail(jobId) {
|
||||
return request({
|
||||
url: '/job/mydoJobDetail/' + jobId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
18
ruoyi-ui/src/api/kpi/inAnalysis.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getInAnalysisList(query) {
|
||||
return request({
|
||||
url: '/kpi/inAnalysis',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获取入库数量统计数据
|
||||
export function getInAnalysisData(query) {
|
||||
return request({
|
||||
url: '/kpi/inAnalysisByData',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
9
ruoyi-ui/src/api/kpi/outAnalysis.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getOutAnalysisList(query) {
|
||||
return request({
|
||||
url: '/kpi/outAnalysis',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
9
ruoyi-ui/src/api/kpi/roadwayAnalysis.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getRoadwayAnalysisList(query) {
|
||||
return request({
|
||||
url: '/kpi/roadwayAnalysis',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
9
ruoyi-ui/src/api/kpi/spaceAnalysis.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getSpaceAnalysisList(query) {
|
||||
return request({
|
||||
url: '/kpi/spaceAnalysis',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
35
ruoyi-ui/src/api/kpi/spacePlan.js
Normal file
@@ -0,0 +1,35 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
|
||||
//获取巷道列表
|
||||
export function getRoadways(query) {
|
||||
return request({
|
||||
url: '/kpi/getRoadways',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
//获取排列表
|
||||
export function getPlatoons(query) {
|
||||
return request({
|
||||
url: '/kpi/getPlatoons',
|
||||
method: 'get',
|
||||
params:query
|
||||
})
|
||||
}
|
||||
// 获取库存图表
|
||||
export function getChartData(query) {
|
||||
return request({
|
||||
url: '/kpi/getChartData',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getChartMag(query){
|
||||
return request({
|
||||
url: '/kpi/getChartMag',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
74
ruoyi-ui/src/api/login.js
Normal file
@@ -0,0 +1,74 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 登录方法
|
||||
export function login(username, password, code, uuid) {
|
||||
const data = {
|
||||
username,
|
||||
password,
|
||||
code,
|
||||
uuid
|
||||
}
|
||||
return request({
|
||||
url: '/login',
|
||||
headers: {
|
||||
isToken: false,
|
||||
repeatSubmit: false
|
||||
},
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 注册方法
|
||||
export function register(data) {
|
||||
return request({
|
||||
url: '/register',
|
||||
headers: {
|
||||
isToken: false
|
||||
},
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改语言
|
||||
export function changeLanguage(lang){
|
||||
return request({
|
||||
url: '/changeLanguage',
|
||||
method: 'get',
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
params: {
|
||||
lang: lang
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 获取用户详细信息
|
||||
export function getInfo() {
|
||||
return request({
|
||||
url: '/getInfo',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 退出方法
|
||||
export function logout() {
|
||||
return request({
|
||||
url: '/logout',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取验证码
|
||||
export function getCodeImg() {
|
||||
return request({
|
||||
url: '/captchaImage',
|
||||
headers: {
|
||||
isToken: false
|
||||
},
|
||||
method: 'get',
|
||||
timeout: 20000
|
||||
})
|
||||
}
|
||||
9
ruoyi-ui/src/api/menu.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取路由
|
||||
export const getRouters = () => {
|
||||
return request({
|
||||
url: '/getRouters',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
57
ruoyi-ui/src/api/monitor/cache.js
Normal file
@@ -0,0 +1,57 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询缓存详细
|
||||
export function getCache() {
|
||||
return request({
|
||||
url: '/monitor/cache',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询缓存名称列表
|
||||
export function listCacheName() {
|
||||
return request({
|
||||
url: '/monitor/cache/getNames',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询缓存键名列表
|
||||
export function listCacheKey(cacheName) {
|
||||
return request({
|
||||
url: '/monitor/cache/getKeys/' + cacheName,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询缓存内容
|
||||
export function getCacheValue(cacheName, cacheKey) {
|
||||
return request({
|
||||
url: '/monitor/cache/getValue/' + cacheName + '/' + cacheKey,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 清理指定名称缓存
|
||||
export function clearCacheName(cacheName) {
|
||||
return request({
|
||||
url: '/monitor/cache/clearCacheName/' + cacheName,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 清理指定键名缓存
|
||||
export function clearCacheKey(cacheKey) {
|
||||
return request({
|
||||
url: '/monitor/cache/clearCacheKey/' + cacheKey,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 清理全部缓存
|
||||
export function clearCacheAll() {
|
||||
return request({
|
||||
url: '/monitor/cache/clearCacheAll',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
71
ruoyi-ui/src/api/monitor/job.js
Normal file
@@ -0,0 +1,71 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询定时任务调度列表
|
||||
export function listJob(query) {
|
||||
return request({
|
||||
url: '/monitor/job/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询定时任务调度详细
|
||||
export function getJob(jobId) {
|
||||
return request({
|
||||
url: '/monitor/job/' + jobId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增定时任务调度
|
||||
export function addJob(data) {
|
||||
return request({
|
||||
url: '/monitor/job',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改定时任务调度
|
||||
export function updateJob(data) {
|
||||
return request({
|
||||
url: '/monitor/job',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除定时任务调度
|
||||
export function delJob(jobId) {
|
||||
return request({
|
||||
url: '/monitor/job/' + jobId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 任务状态修改
|
||||
export function changeJobStatus(jobId, status) {
|
||||
const data = {
|
||||
jobId,
|
||||
status
|
||||
}
|
||||
return request({
|
||||
url: '/monitor/job/changeStatus',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 定时任务立即执行一次
|
||||
export function runJob(jobId, jobGroup) {
|
||||
const data = {
|
||||
jobId,
|
||||
jobGroup
|
||||
}
|
||||
return request({
|
||||
url: '/monitor/job/run',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
26
ruoyi-ui/src/api/monitor/jobLog.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询调度日志列表
|
||||
export function listJobLog(query) {
|
||||
return request({
|
||||
url: '/monitor/jobLog/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 删除调度日志
|
||||
export function delJobLog(jobLogId) {
|
||||
return request({
|
||||
url: '/monitor/jobLog/' + jobLogId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 清空调度日志
|
||||
export function cleanJobLog() {
|
||||
return request({
|
||||
url: '/monitor/jobLog/clean',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
34
ruoyi-ui/src/api/monitor/logininfor.js
Normal file
@@ -0,0 +1,34 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询登录日志列表
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/monitor/logininfor/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 删除登录日志
|
||||
export function delLogininfor(infoId) {
|
||||
return request({
|
||||
url: '/monitor/logininfor/' + infoId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 解锁用户登录状态
|
||||
export function unlockLogininfor(userName) {
|
||||
return request({
|
||||
url: '/monitor/logininfor/unlock/' + userName,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 清空登录日志
|
||||
export function cleanLogininfor() {
|
||||
return request({
|
||||
url: '/monitor/logininfor/clean',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
18
ruoyi-ui/src/api/monitor/online.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询在线用户列表
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/monitor/online/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 强退用户
|
||||
export function forceLogout(tokenId) {
|
||||
return request({
|
||||
url: '/monitor/online/' + tokenId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
26
ruoyi-ui/src/api/monitor/operlog.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询操作日志列表
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/monitor/operlog/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 删除操作日志
|
||||
export function delOperlog(operId) {
|
||||
return request({
|
||||
url: '/monitor/operlog/' + operId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 清空操作日志
|
||||
export function cleanOperlog() {
|
||||
return request({
|
||||
url: '/monitor/operlog/clean',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
9
ruoyi-ui/src/api/monitor/server.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取服务信息
|
||||
export function getServer() {
|
||||
return request({
|
||||
url: '/monitor/server',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/out/exception.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询出库异常列表
|
||||
export function listException(query) {
|
||||
return request({
|
||||
url: '/out/exception/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询出库异常详细
|
||||
export function getException(outGuid) {
|
||||
return request({
|
||||
url: '/out/exception/' + outGuid,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增出库异常
|
||||
export function addException(data) {
|
||||
return request({
|
||||
url: '/out/exception',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改出库异常
|
||||
export function updateException(data) {
|
||||
return request({
|
||||
url: '/out/exception',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除出库异常
|
||||
export function delException(outGuid) {
|
||||
return request({
|
||||
url: '/out/exception/' + outGuid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
71
ruoyi-ui/src/api/out/outStockout.js
Normal file
@@ -0,0 +1,71 @@
|
||||
import request from '@/utils/request'
|
||||
// 查询出库主单列表
|
||||
export function listOutStockout(query) {
|
||||
return request({
|
||||
url: '/out/outStockout/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询出库子单详细
|
||||
export function getOutStockoutDetail(query) {
|
||||
return request({
|
||||
url: '/out/outStockoutDetail/getDetailByGuid',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// 查询可出库的库存物资信息列表
|
||||
export function listProductAndStock(query) {
|
||||
return request({
|
||||
url: '/out/productAndStock/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
//单据保存
|
||||
export function saveOutStock(data)
|
||||
{
|
||||
return request({
|
||||
url: '/out/outStockout/saveBill',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
//修改单据状态
|
||||
export function updateOutStockStatus(params)
|
||||
{
|
||||
const searchParams = new URLSearchParams();
|
||||
if (Array.isArray(params.stockoutIds)) {
|
||||
params.stockoutIds.forEach(id => searchParams.append('stockoutIds', id));
|
||||
}
|
||||
if (params.status) {
|
||||
searchParams.append('status', params.status);
|
||||
}
|
||||
if (params.newStatus) {
|
||||
searchParams.append('newStatus', params.newStatus);
|
||||
}
|
||||
if (params.exitId) {
|
||||
searchParams.append('exitId', params.exitId);
|
||||
}
|
||||
return request({
|
||||
url: '/out/outStockout/changeStatus?' + searchParams.toString(),
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function autoAllot(data) {
|
||||
return request({
|
||||
url: '/out/outStockout/autoAllot',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
53
ruoyi-ui/src/api/receive/stockInDetail.js
Normal file
@@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询收货单据子单列表
|
||||
export function listStockInDetail(query) {
|
||||
return request({
|
||||
url: '/receive/stockInDetail/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询收货单据子单详细
|
||||
export function getStockInDetail(stockinDetailId) {
|
||||
return request({
|
||||
url: '/receive/stockInDetail/' + stockinDetailId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增收货单据子单
|
||||
export function addStockInDetail(data) {
|
||||
return request({
|
||||
url: '/receive/stockInDetail',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改收货单据子单
|
||||
export function updateStockInDetail(data) {
|
||||
return request({
|
||||
url: '/receive/stockInDetail',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除收货单据子单
|
||||
export function delStockInDetail(stockinDetailId) {
|
||||
return request({
|
||||
url: '/receive/stockInDetail/' + stockinDetailId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 质检收货子单据
|
||||
export function qualityInspection(data) {
|
||||
return request({
|
||||
url: '/receive/stockInDetail/qualityInspection',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
65
ruoyi-ui/src/api/receive/stockin.js
Normal file
@@ -0,0 +1,65 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询收货单据列表
|
||||
export function listStockin(query) {
|
||||
return request({
|
||||
url: '/receive/stockin/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询收货单据详细
|
||||
export function getStockin(stockinGuid) {
|
||||
return request({
|
||||
url: '/receive/stockin/' + stockinGuid,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
//创建入库单据
|
||||
export function createStockin(data) {
|
||||
return request({
|
||||
url: '/receive/stockin/createStockin',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 新增收货单据
|
||||
export function addStockin(data) {
|
||||
return request({
|
||||
url: '/receive/stockin',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 解析导入文件
|
||||
export function analyseExportFile(file) {
|
||||
return request({
|
||||
url: '/receive/stockin/analyseExportFile',
|
||||
method: 'post',
|
||||
data: file,
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 修改收货单据
|
||||
export function updateStockin(data) {
|
||||
return request({
|
||||
url: '/receive/stockin',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除收货单据
|
||||
export function delStockin(stockinGuid) {
|
||||
return request({
|
||||
url: '/receive/stockin/' + stockinGuid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/requestInterface/log.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询接口记录列表
|
||||
export function listLog(query) {
|
||||
return request({
|
||||
url: '/requestInterface/log/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询接口记录详细
|
||||
export function getLog(requestId) {
|
||||
return request({
|
||||
url: '/requestInterface/log/' + requestId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增接口记录
|
||||
export function addLog(data) {
|
||||
return request({
|
||||
url: '/requestInterface/log',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改接口记录
|
||||
export function updateLog(data) {
|
||||
return request({
|
||||
url: '/requestInterface/log',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除接口记录
|
||||
export function delLog(requestId) {
|
||||
return request({
|
||||
url: '/requestInterface/log/' + requestId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/search/StockSummary.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询库存汇总列表
|
||||
export function listStockSummary(query) {
|
||||
return request({
|
||||
url: '/search/StockSummary/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询库存汇总详细
|
||||
export function getStockSummary(onlyIdentity) {
|
||||
return request({
|
||||
url: '/search/StockSummary/' + onlyIdentity,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增库存汇总
|
||||
export function addStockSummary(data) {
|
||||
return request({
|
||||
url: '/search/StockSummary',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改库存汇总
|
||||
export function updateStockSummary(data) {
|
||||
return request({
|
||||
url: '/search/StockSummary',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除库存汇总
|
||||
export function delStockSummary(onlyIdentity) {
|
||||
return request({
|
||||
url: '/search/StockSummary/' + onlyIdentity,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
50
ruoyi-ui/src/api/search/ViewFlatWarehouseInFlow.js
Normal file
@@ -0,0 +1,50 @@
|
||||
import request from '@/utils/request'
|
||||
// 查询仓库列表
|
||||
export function warehouseList() {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseInFlow/warehouseList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 查询平库入库流水列表
|
||||
export function listViewFlatWarehouseInFlow(query) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseInFlow/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询平库入库流水详细
|
||||
export function getViewFlatWarehouseInFlow(id) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseInFlow/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增平库入库流水
|
||||
export function addViewFlatWarehouseInFlow(data) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseInFlow',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改平库入库流水
|
||||
export function updateViewFlatWarehouseInFlow(data) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseInFlow',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除平库入库流水
|
||||
export function delViewFlatWarehouseInFlow(id) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseInFlow/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
51
ruoyi-ui/src/api/search/ViewFlatWarehouseOutFlow.js
Normal file
@@ -0,0 +1,51 @@
|
||||
import request from '@/utils/request'
|
||||
// 查询仓库列表
|
||||
export function warehouseList() {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseInFlow/warehouseList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询平库出库流水列表
|
||||
export function listViewFlatWarehouseOutFlow(query) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseOutFlow/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询平库出库流水详细
|
||||
export function getViewFlatWarehouseOutFlow(id) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseOutFlow/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增平库出库流水
|
||||
export function addViewFlatWarehouseOutFlow(data) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseOutFlow',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改平库出库流水
|
||||
export function updateViewFlatWarehouseOutFlow(data) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseOutFlow',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除平库出库流水
|
||||
export function delViewFlatWarehouseOutFlow(id) {
|
||||
return request({
|
||||
url: '/search/ViewFlatWarehouseOutFlow/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
50
ruoyi-ui/src/api/search/ViewInJobFlow.js
Normal file
@@ -0,0 +1,50 @@
|
||||
import request from '@/utils/request'
|
||||
// 查询仓库列表
|
||||
export function warehouseList() {
|
||||
return request({
|
||||
url: '/bas/warehouse/list',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 查询入库作业流水列表
|
||||
export function listViewInJobFlow(query) {
|
||||
return request({
|
||||
url: '/search/ViewInJobFlow/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询入库作业流水详细
|
||||
export function getViewInJobFlow(jobId) {
|
||||
return request({
|
||||
url: '/search/ViewInJobFlow/' + jobId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增入库作业流水
|
||||
export function addViewInJobFlow(data) {
|
||||
return request({
|
||||
url: '/search/ViewInJobFlow',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改入库作业流水
|
||||
export function updateViewInJobFlow(data) {
|
||||
return request({
|
||||
url: '/search/ViewInJobFlow',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除入库作业流水
|
||||
export function delViewInJobFlow(jobId) {
|
||||
return request({
|
||||
url: '/search/ViewInJobFlow/' + jobId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/search/ViewOutJobFlow.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询出库做业流水列表
|
||||
export function listViewOutJobFlow(query) {
|
||||
return request({
|
||||
url: '/search/ViewOutJobFlow/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询出库做业流水详细
|
||||
export function getViewOutJobFlow(jobId) {
|
||||
return request({
|
||||
url: '/search/ViewOutJobFlow/' + jobId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增出库做业流水
|
||||
export function addViewOutJobFlow(data) {
|
||||
return request({
|
||||
url: '/search/ViewOutJobFlow',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改出库做业流水
|
||||
export function updateViewOutJobFlow(data) {
|
||||
return request({
|
||||
url: '/search/ViewOutJobFlow',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除出库做业流水
|
||||
export function delViewOutJobFlow(jobId) {
|
||||
return request({
|
||||
url: '/search/ViewOutJobFlow/' + jobId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/search/ViewStockDetail.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询库存明细查询列表
|
||||
export function listViewStockDetail(query) {
|
||||
return request({
|
||||
url: '/search/ViewStockDetail/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询库存明细查询详细
|
||||
export function getViewStockDetail(onlyIdentity) {
|
||||
return request({
|
||||
url: '/search/ViewStockDetail/' + onlyIdentity,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增库存明细查询
|
||||
export function addViewStockDetail(data) {
|
||||
return request({
|
||||
url: '/search/ViewStockDetail',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改库存明细查询
|
||||
export function updateViewStockDetail(data) {
|
||||
return request({
|
||||
url: '/search/ViewStockDetail',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除库存明细查询
|
||||
export function delViewStockDetail(onlyIdentity) {
|
||||
return request({
|
||||
url: '/search/ViewStockDetail/' + onlyIdentity,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/search/ViewStockSecure.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询安全库存查询列表
|
||||
export function listViewStockSecure(query) {
|
||||
return request({
|
||||
url: '/search/ViewStockSecure/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询安全库存查询详细
|
||||
export function getViewStockSecure(stockId) {
|
||||
return request({
|
||||
url: '/search/ViewStockSecure/' + stockId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增安全库存查询
|
||||
export function addViewStockSecure(data) {
|
||||
return request({
|
||||
url: '/search/ViewStockSecure',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改安全库存查询
|
||||
export function updateViewStockSecure(data) {
|
||||
return request({
|
||||
url: '/search/ViewStockSecure',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除安全库存查询
|
||||
export function delViewStockSecure(stockId) {
|
||||
return request({
|
||||
url: '/search/ViewStockSecure/' + stockId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/search/ViewStockWarning.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询库存预警报表列表
|
||||
export function listViewStockWarning(query) {
|
||||
return request({
|
||||
url: '/search/ViewStockWarning/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询库存预警报表详细
|
||||
export function getViewStockWarning(stockId) {
|
||||
return request({
|
||||
url: '/search/ViewStockWarning/' + stockId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增库存预警报表
|
||||
export function addViewStockWarning(data) {
|
||||
return request({
|
||||
url: '/search/ViewStockWarning',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改库存预警报表
|
||||
export function updateViewStockWarning(data) {
|
||||
return request({
|
||||
url: '/search/ViewStockWarning',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除库存预警报表
|
||||
export function delViewStockWarning(stockId) {
|
||||
return request({
|
||||
url: '/search/ViewStockWarning/' + stockId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/search/ViewStockinHistory.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询入库单据历史列表
|
||||
export function listViewStockinHistory(query) {
|
||||
return request({
|
||||
url: '/search/ViewStockinHistory/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询入库单据历史详细
|
||||
export function getViewStockinHistory(stockinGuid) {
|
||||
return request({
|
||||
url: '/search/ViewStockinHistory/' + stockinGuid,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增入库单据历史
|
||||
export function addViewStockinHistory(data) {
|
||||
return request({
|
||||
url: '/search/ViewStockinHistory',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改入库单据历史
|
||||
export function updateViewStockinHistory(data) {
|
||||
return request({
|
||||
url: '/search/ViewStockinHistory',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除入库单据历史
|
||||
export function delViewStockinHistory(stockinGuid) {
|
||||
return request({
|
||||
url: '/search/ViewStockinHistory/' + stockinGuid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/search/ViewStockoutHistory.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询出库单据历史列表
|
||||
export function listViewStockoutHistory(query) {
|
||||
return request({
|
||||
url: '/search/ViewStockoutHistory/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询出库单据历史详细
|
||||
export function getViewStockoutHistory(stockoutId) {
|
||||
return request({
|
||||
url: '/search/ViewStockoutHistory/' + stockoutId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增出库单据历史
|
||||
export function addViewStockoutHistory(data) {
|
||||
return request({
|
||||
url: '/search/ViewStockoutHistory',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改出库单据历史
|
||||
export function updateViewStockoutHistory(data) {
|
||||
return request({
|
||||
url: '/search/ViewStockoutHistory',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除出库单据历史
|
||||
export function delViewStockoutHistory(stockoutId) {
|
||||
return request({
|
||||
url: '/search/ViewStockoutHistory/' + stockoutId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/stock/freeze.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询库存冻结记录列表
|
||||
export function listFreeze(query) {
|
||||
return request({
|
||||
url: '/stock/freeze/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询库存冻结记录详细
|
||||
export function getFreeze(whGuid) {
|
||||
return request({
|
||||
url: '/stock/freeze/' + whGuid,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增库存冻结记录
|
||||
export function addFreeze(data) {
|
||||
return request({
|
||||
url: '/stock/freeze',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改库存冻结记录
|
||||
export function updateFreeze(data) {
|
||||
return request({
|
||||
url: '/stock/freeze',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除库存冻结记录
|
||||
export function delFreeze(whGuid) {
|
||||
return request({
|
||||
url: '/stock/freeze/' + whGuid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/stock/management.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询库存信息列表
|
||||
export function listManagement(query) {
|
||||
return request({
|
||||
url: '/stock/management/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询库存信息详细
|
||||
export function getManagement(stockId) {
|
||||
return request({
|
||||
url: '/stock/management/' + stockId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增库存信息
|
||||
export function addManagement(data) {
|
||||
return request({
|
||||
url: '/stock/management',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改库存信息
|
||||
export function updateManagement(data) {
|
||||
return request({
|
||||
url: '/stock/management',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除库存信息
|
||||
export function delManagement(stockId) {
|
||||
return request({
|
||||
url: '/stock/management/' + stockId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/stock/record.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询库存操作记录列表
|
||||
export function listRecord(query) {
|
||||
return request({
|
||||
url: '/stock/record/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询库存操作记录详细
|
||||
export function getRecord(whGuid) {
|
||||
return request({
|
||||
url: '/stock/record/' + whGuid,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增库存操作记录
|
||||
export function addRecord(data) {
|
||||
return request({
|
||||
url: '/stock/record',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改库存操作记录
|
||||
export function updateRecord(data) {
|
||||
return request({
|
||||
url: '/stock/record',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除库存操作记录
|
||||
export function delRecord(whGuid) {
|
||||
return request({
|
||||
url: '/stock/record/' + whGuid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
60
ruoyi-ui/src/api/system/config.js
Normal file
@@ -0,0 +1,60 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询参数列表
|
||||
export function listConfig(query) {
|
||||
return request({
|
||||
url: '/system/config/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询参数详细
|
||||
export function getConfig(configId) {
|
||||
return request({
|
||||
url: '/system/config/' + configId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据参数键名查询参数值
|
||||
export function getConfigKey(configKey) {
|
||||
return request({
|
||||
url: '/system/config/configKey/' + configKey,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增参数配置
|
||||
export function addConfig(data) {
|
||||
return request({
|
||||
url: '/system/config',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改参数配置
|
||||
export function updateConfig(data) {
|
||||
return request({
|
||||
url: '/system/config',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除参数配置
|
||||
export function delConfig(configId) {
|
||||
return request({
|
||||
url: '/system/config/' + configId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 刷新参数缓存
|
||||
export function refreshCache() {
|
||||
return request({
|
||||
url: '/system/config/refreshCache',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
52
ruoyi-ui/src/api/system/dept.js
Normal file
@@ -0,0 +1,52 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询部门列表
|
||||
export function listDept(query) {
|
||||
return request({
|
||||
url: '/system/dept/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门列表(排除节点)
|
||||
export function listDeptExcludeChild(deptId) {
|
||||
return request({
|
||||
url: '/system/dept/list/exclude/' + deptId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门详细
|
||||
export function getDept(deptId) {
|
||||
return request({
|
||||
url: '/system/dept/' + deptId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增部门
|
||||
export function addDept(data) {
|
||||
return request({
|
||||
url: '/system/dept',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改部门
|
||||
export function updateDept(data) {
|
||||
return request({
|
||||
url: '/system/dept',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除部门
|
||||
export function delDept(deptId) {
|
||||
return request({
|
||||
url: '/system/dept/' + deptId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
52
ruoyi-ui/src/api/system/dict/data.js
Normal file
@@ -0,0 +1,52 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询字典数据列表
|
||||
export function listData(query) {
|
||||
return request({
|
||||
url: '/system/dict/data/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询字典数据详细
|
||||
export function getData(dictCode) {
|
||||
return request({
|
||||
url: '/system/dict/data/' + dictCode,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据字典类型查询字典数据信息
|
||||
export function getDicts(dictType) {
|
||||
return request({
|
||||
url: '/system/dict/data/type/' + dictType,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增字典数据
|
||||
export function addData(data) {
|
||||
return request({
|
||||
url: '/system/dict/data',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改字典数据
|
||||
export function updateData(data) {
|
||||
return request({
|
||||
url: '/system/dict/data',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除字典数据
|
||||
export function delData(dictCode) {
|
||||
return request({
|
||||
url: '/system/dict/data/' + dictCode,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
60
ruoyi-ui/src/api/system/dict/type.js
Normal file
@@ -0,0 +1,60 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询字典类型列表
|
||||
export function listType(query) {
|
||||
return request({
|
||||
url: '/system/dict/type/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询字典类型详细
|
||||
export function getType(dictId) {
|
||||
return request({
|
||||
url: '/system/dict/type/' + dictId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增字典类型
|
||||
export function addType(data) {
|
||||
return request({
|
||||
url: '/system/dict/type',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改字典类型
|
||||
export function updateType(data) {
|
||||
return request({
|
||||
url: '/system/dict/type',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除字典类型
|
||||
export function delType(dictId) {
|
||||
return request({
|
||||
url: '/system/dict/type/' + dictId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 刷新字典缓存
|
||||
export function refreshCache() {
|
||||
return request({
|
||||
url: '/system/dict/type/refreshCache',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取字典选择框列表
|
||||
export function optionselect() {
|
||||
return request({
|
||||
url: '/system/dict/type/optionselect',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
60
ruoyi-ui/src/api/system/menu.js
Normal file
@@ -0,0 +1,60 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询菜单列表
|
||||
export function listMenu(query) {
|
||||
return request({
|
||||
url: '/system/menu/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询菜单详细
|
||||
export function getMenu(menuId) {
|
||||
return request({
|
||||
url: '/system/menu/' + menuId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询菜单下拉树结构
|
||||
export function treeselect() {
|
||||
return request({
|
||||
url: '/system/menu/treeselect',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据角色ID查询菜单下拉树结构
|
||||
export function roleMenuTreeselect(roleId) {
|
||||
return request({
|
||||
url: '/system/menu/roleMenuTreeselect/' + roleId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增菜单
|
||||
export function addMenu(data) {
|
||||
return request({
|
||||
url: '/system/menu',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改菜单
|
||||
export function updateMenu(data) {
|
||||
return request({
|
||||
url: '/system/menu',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除菜单
|
||||
export function delMenu(menuId) {
|
||||
return request({
|
||||
url: '/system/menu/' + menuId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/system/notice.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询公告列表
|
||||
export function listNotice(query) {
|
||||
return request({
|
||||
url: '/system/notice/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询公告详细
|
||||
export function getNotice(noticeId) {
|
||||
return request({
|
||||
url: '/system/notice/' + noticeId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增公告
|
||||
export function addNotice(data) {
|
||||
return request({
|
||||
url: '/system/notice',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改公告
|
||||
export function updateNotice(data) {
|
||||
return request({
|
||||
url: '/system/notice',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除公告
|
||||
export function delNotice(noticeId) {
|
||||
return request({
|
||||
url: '/system/notice/' + noticeId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/system/post.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询岗位列表
|
||||
export function listPost(query) {
|
||||
return request({
|
||||
url: '/system/post/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询岗位详细
|
||||
export function getPost(postId) {
|
||||
return request({
|
||||
url: '/system/post/' + postId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增岗位
|
||||
export function addPost(data) {
|
||||
return request({
|
||||
url: '/system/post',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改岗位
|
||||
export function updatePost(data) {
|
||||
return request({
|
||||
url: '/system/post',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除岗位
|
||||
export function delPost(postId) {
|
||||
return request({
|
||||
url: '/system/post/' + postId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
119
ruoyi-ui/src/api/system/role.js
Normal file
@@ -0,0 +1,119 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询角色列表
|
||||
export function listRole(query) {
|
||||
return request({
|
||||
url: '/system/role/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询角色详细
|
||||
export function getRole(roleId) {
|
||||
return request({
|
||||
url: '/system/role/' + roleId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增角色
|
||||
export function addRole(data) {
|
||||
return request({
|
||||
url: '/system/role',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改角色
|
||||
export function updateRole(data) {
|
||||
return request({
|
||||
url: '/system/role',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 角色数据权限
|
||||
export function dataScope(data) {
|
||||
return request({
|
||||
url: '/system/role/dataScope',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 角色状态修改
|
||||
export function changeRoleStatus(roleId, status) {
|
||||
const data = {
|
||||
roleId,
|
||||
status
|
||||
}
|
||||
return request({
|
||||
url: '/system/role/changeStatus',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除角色
|
||||
export function delRole(roleId) {
|
||||
return request({
|
||||
url: '/system/role/' + roleId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询角色已授权用户列表
|
||||
export function allocatedUserList(query) {
|
||||
return request({
|
||||
url: '/system/role/authUser/allocatedList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询角色未授权用户列表
|
||||
export function unallocatedUserList(query) {
|
||||
return request({
|
||||
url: '/system/role/authUser/unallocatedList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 取消用户授权角色
|
||||
export function authUserCancel(data) {
|
||||
return request({
|
||||
url: '/system/role/authUser/cancel',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 批量取消用户授权角色
|
||||
export function authUserCancelAll(data) {
|
||||
return request({
|
||||
url: '/system/role/authUser/cancelAll',
|
||||
method: 'put',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 授权用户选择
|
||||
export function authUserSelectAll(data) {
|
||||
return request({
|
||||
url: '/system/role/authUser/selectAll',
|
||||
method: 'put',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 根据角色ID查询部门树结构
|
||||
export function deptTreeSelect(roleId) {
|
||||
return request({
|
||||
url: '/system/role/deptTree/' + roleId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
136
ruoyi-ui/src/api/system/user.js
Normal file
@@ -0,0 +1,136 @@
|
||||
import request from '@/utils/request'
|
||||
import { parseStrEmpty } from "@/utils/ruoyi";
|
||||
|
||||
// 查询用户列表
|
||||
export function listUser(query) {
|
||||
return request({
|
||||
url: '/system/user/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询用户详细
|
||||
export function getUser(userId) {
|
||||
return request({
|
||||
url: '/system/user/' + parseStrEmpty(userId),
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增用户
|
||||
export function addUser(data) {
|
||||
return request({
|
||||
url: '/system/user',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改用户
|
||||
export function updateUser(data) {
|
||||
return request({
|
||||
url: '/system/user',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除用户
|
||||
export function delUser(userId) {
|
||||
return request({
|
||||
url: '/system/user/' + userId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 用户密码重置
|
||||
export function resetUserPwd(userId, password) {
|
||||
const data = {
|
||||
userId,
|
||||
password
|
||||
}
|
||||
return request({
|
||||
url: '/system/user/resetPwd',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 用户状态修改
|
||||
export function changeUserStatus(userId, status) {
|
||||
const data = {
|
||||
userId,
|
||||
status
|
||||
}
|
||||
return request({
|
||||
url: '/system/user/changeStatus',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询用户个人信息
|
||||
export function getUserProfile() {
|
||||
return request({
|
||||
url: '/system/user/profile',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 修改用户个人信息
|
||||
export function updateUserProfile(data) {
|
||||
return request({
|
||||
url: '/system/user/profile',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 用户密码重置
|
||||
export function updateUserPwd(oldPassword, newPassword) {
|
||||
const data = {
|
||||
oldPassword,
|
||||
newPassword
|
||||
}
|
||||
return request({
|
||||
url: '/system/user/profile/updatePwd',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 用户头像上传
|
||||
export function uploadAvatar(data) {
|
||||
return request({
|
||||
url: '/system/user/profile/avatar',
|
||||
method: 'post',
|
||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询授权角色
|
||||
export function getAuthRole(userId) {
|
||||
return request({
|
||||
url: '/system/user/authRole/' + userId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 保存授权角色
|
||||
export function updateAuthRole(data) {
|
||||
return request({
|
||||
url: '/system/user/authRole',
|
||||
method: 'put',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门下拉树结构
|
||||
export function deptTreeSelect() {
|
||||
return request({
|
||||
url: '/system/user/deptTree',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
85
ruoyi-ui/src/api/tool/gen.js
Normal file
@@ -0,0 +1,85 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询生成表数据
|
||||
export function listTable(query) {
|
||||
return request({
|
||||
url: '/tool/gen/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 查询db数据库列表
|
||||
export function listDbTable(query) {
|
||||
return request({
|
||||
url: '/tool/gen/db/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询表详细信息
|
||||
export function getGenTable(tableId) {
|
||||
return request({
|
||||
url: '/tool/gen/' + tableId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 修改代码生成信息
|
||||
export function updateGenTable(data) {
|
||||
return request({
|
||||
url: '/tool/gen',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 导入表
|
||||
export function importTable(data) {
|
||||
return request({
|
||||
url: '/tool/gen/importTable',
|
||||
method: 'post',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 创建表
|
||||
export function createTable(data) {
|
||||
return request({
|
||||
url: '/tool/gen/createTable',
|
||||
method: 'post',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 预览生成代码
|
||||
export function previewTable(tableId) {
|
||||
return request({
|
||||
url: '/tool/gen/preview/' + tableId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 删除表数据
|
||||
export function delTable(tableId) {
|
||||
return request({
|
||||
url: '/tool/gen/' + tableId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 生成代码(自定义路径)
|
||||
export function genCode(tableName) {
|
||||
return request({
|
||||
url: '/tool/gen/genCode/' + tableName,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 同步数据库
|
||||
export function synchDb(tableName) {
|
||||
return request({
|
||||
url: '/tool/gen/synchDb/' + tableName,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
34
ruoyi-ui/src/api/work.js
Normal file
@@ -0,0 +1,34 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 已完成入库任务
|
||||
export function listWork1(query) {
|
||||
return request({
|
||||
url: '/work/list1',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 已完成出库任务
|
||||
export function listWork2(query) {
|
||||
return request({
|
||||
url: '/work/list2',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 未完成入库任务
|
||||
export function listWork3(query) {
|
||||
return request({
|
||||
url: '/work/list3',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 未完成出库任务
|
||||
export function listWork4(query) {
|
||||
return request({
|
||||
url: '/work/list4',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
BIN
ruoyi-ui/src/assets/401_images/401.gif
Normal file
|
After Width: | Height: | Size: 160 KiB |
BIN
ruoyi-ui/src/assets/404_images/404.png
Normal file
|
After Width: | Height: | Size: 96 KiB |
BIN
ruoyi-ui/src/assets/404_images/404_cloud.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
9
ruoyi-ui/src/assets/icons/index.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import Vue from 'vue'
|
||||
import SvgIcon from '@/components/SvgIcon'// svg component
|
||||
|
||||
// register globally
|
||||
Vue.component('svg-icon', SvgIcon)
|
||||
|
||||
const req = require.context('./svg', false, /\.svg$/)
|
||||
const requireAll = requireContext => requireContext.keys().map(requireContext)
|
||||
requireAll(req)
|
||||
1
ruoyi-ui/src/assets/icons/svg/404.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg width="128" height="128" xmlns="http://www.w3.org/2000/svg"><path d="M121.718 73.272v9.953c3.957-7.584 6.199-16.05 6.199-24.995C127.917 26.079 99.273 0 63.958 0 28.644 0 0 26.079 0 58.23c0 .403.028.806.028 1.21l22.97-25.953h13.34l-19.76 27.187h6.42V53.77l13.728-19.477v49.361H22.998V73.272H2.158c5.951 20.284 23.608 36.208 45.998 41.399-1.44 3.3-5.618 11.263-12.565 12.674-8.607 1.764 23.358.428 46.163-13.178 17.519-4.611 31.938-15.849 39.77-30.513h-13.506V73.272H85.02V59.464l22.998-25.977h13.008l-19.429 27.187h6.421v-7.433l13.727-19.402v39.433h-.027zm-78.24 2.822a10.516 10.516 0 0 1-.996-4.535V44.548c0-1.613.332-3.124.996-4.535a11.66 11.66 0 0 1 2.713-3.68c1.134-1.032 2.49-1.864 4.04-2.468 1.55-.605 3.21-.908 4.982-.908h11.292c1.77 0 3.431.303 4.981.908 1.522.604 2.85 1.41 3.986 2.418l-12.26 16.303v-2.898a1.96 1.96 0 0 0-.665-1.512c-.443-.403-.996-.604-1.66-.604-.665 0-1.218.201-1.661.604a1.96 1.96 0 0 0-.664 1.512v9.071L44.364 77.606a10.556 10.556 0 0 1-.886-1.512zm35.73-4.535c0 1.613-.332 3.124-.997 4.535a11.66 11.66 0 0 1-2.712 3.68c-1.134 1.032-2.49 1.864-4.04 2.469-1.55.604-3.21.907-4.982.907H55.185c-1.77 0-3.431-.303-4.981-.907-1.55-.605-2.906-1.437-4.041-2.47a12.49 12.49 0 0 1-1.384-1.512l13.727-18.217v6.375c0 .605.222 1.109.665 1.512.442.403.996.604 1.66.604.664 0 1.218-.201 1.66-.604a1.96 1.96 0 0 0 .665-1.512V53.87L75.97 36.838c.913.932 1.66 1.99 2.214 3.175.664 1.41.996 2.922.996 4.535v27.011h.028z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
1
ruoyi-ui/src/assets/icons/svg/bug.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg width="128" height="128" xmlns="http://www.w3.org/2000/svg"><path d="M127.88 73.143c0 1.412-.506 2.635-1.518 3.669-1.011 1.033-2.209 1.55-3.592 1.55h-17.887c0 9.296-1.783 17.178-5.35 23.645l16.609 17.044c1.011 1.034 1.517 2.257 1.517 3.67 0 1.412-.506 2.635-1.517 3.668-.958 1.033-2.155 1.55-3.593 1.55-1.438 0-2.635-.517-3.593-1.55l-15.811-16.063a15.49 15.49 0 0 1-1.196 1.06c-.532.434-1.65 1.208-3.353 2.322a50.104 50.104 0 0 1-5.192 2.974c-1.758.87-3.94 1.658-6.546 2.364-2.607.706-5.189 1.06-7.748 1.06V47.044H58.89v73.062c-2.716 0-5.417-.367-8.106-1.102-2.688-.734-5.003-1.631-6.945-2.692a66.769 66.769 0 0 1-5.268-3.179c-1.571-1.057-2.73-1.94-3.476-2.65L33.9 109.34l-14.611 16.877c-1.066 1.14-2.344 1.711-3.833 1.711-1.277 0-2.422-.434-3.434-1.304-1.012-.978-1.557-2.187-1.635-3.627-.079-1.44.333-2.705 1.236-3.794l16.129-18.51c-3.087-6.197-4.63-13.644-4.63-22.342H5.235c-1.383 0-2.58-.517-3.592-1.55S.125 74.545.125 73.132c0-1.412.506-2.635 1.518-3.668 1.012-1.034 2.21-1.55 3.592-1.55h17.887V43.939L9.308 29.833c-1.012-1.033-1.517-2.256-1.517-3.669 0-1.412.505-2.635 1.517-3.668 1.012-1.034 2.21-1.55 3.593-1.55s2.58.516 3.593 1.55l13.813 14.106h67.396l13.814-14.106c1.012-1.034 2.21-1.55 3.592-1.55 1.384 0 2.581.516 3.593 1.55 1.012 1.033 1.518 2.256 1.518 3.668 0 1.413-.506 2.636-1.518 3.67l-13.814 14.105v23.975h17.887c1.383 0 2.58.516 3.593 1.55 1.011 1.033 1.517 2.256 1.517 3.668l-.005.01zM89.552 26.175H38.448c0-7.23 2.489-13.386 7.466-18.469C50.892 2.623 56.92.082 64 .082c7.08 0 13.108 2.541 18.086 7.624 4.977 5.083 7.466 11.24 7.466 18.469z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
1
ruoyi-ui/src/assets/icons/svg/build.svg
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1568899741379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2054" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M960 591.424V368.96c0-0.288 0.16-0.512 0.16-0.768S960 367.68 960 367.424V192a32 32 0 0 0-32-32H96a32 32 0 0 0-32 32v175.424c0 0.288-0.16 0.512-0.16 0.768s0.16 0.48 0.16 0.768v222.464c0 0.288-0.16 0.512-0.16 0.768s0.16 0.48 0.16 0.768V864a32 32 0 0 0 32 32h832a32 32 0 0 0 32-32v-271.04c0-0.288 0.16-0.512 0.16-0.768S960 591.68 960 591.424z m-560-31.232v-160H608v160h-208z m208 64V832h-208v-207.808H608z m-480-224h208v160H128v-160z m544 0h224v160h-224v-160zM896 224v112.192H128V224h768zM128 624.192h208V832H128v-207.808zM672 832v-207.808h224V832h-224z" p-id="2055"></path></svg>
|
||||
|
After Width: | Height: | Size: 954 B |
1
ruoyi-ui/src/assets/icons/svg/button.svg
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1588670460195" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1314" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M230.4 307.712c13.824 0 25.088-11.264 25.088-25.088 0-100.352 81.92-182.272 182.272-182.272s182.272 81.408 182.272 182.272c0 13.824 11.264 25.088 25.088 25.088s25.088-11.264 24.576-25.088c0-127.488-103.936-231.936-231.936-231.936S205.824 154.624 205.824 282.624c-0.512 14.336 10.752 25.088 24.576 25.088z m564.736 234.496c-11.264 0-21.504 2.048-31.232 6.144 0-44.544-40.448-81.92-88.064-81.92-14.848 0-28.16 3.584-39.936 10.24-13.824-28.16-44.544-48.128-78.848-48.128-12.288 0-24.576 2.56-35.328 7.68V284.16c0-45.568-37.888-81.92-84.48-81.92s-84.48 36.864-84.48 81.92v348.672l-69.12-112.64c-18.432-28.16-58.368-36.864-91.136-19.968-26.624 14.336-46.592 47.104-30.208 88.064 3.072 8.192 76.8 205.312 171.52 311.296 0 0 28.16 24.576 43.008 58.88 4.096 9.728 13.312 15.36 22.528 15.36 3.072 0 6.656-0.512 9.728-2.048 12.288-5.12 18.432-19.968 12.8-32.256-19.456-44.544-53.76-74.752-53.76-74.752C281.6 768 209.408 573.44 208.384 570.88c-5.12-12.8-2.56-20.992 7.168-26.112 9.216-4.608 21.504-4.608 26.112 2.56l113.152 184.32c4.096 8.704 12.8 14.336 22.528 14.336 13.824 0 25.088-10.752 25.088-25.088V284.16c0-17.92 15.36-32.256 34.816-32.256s34.816 14.336 34.816 32.256v284.16c0 13.824 10.24 25.088 24.576 25.088 13.824 0 25.088-11.264 25.088-25.088v-57.344c0-17.92 15.36-32.768 34.816-32.768 19.968 0 37.376 15.36 37.376 32.768v95.232c0 7.168 3.072 13.312 7.68 17.92 4.608 4.608 10.752 7.168 17.92 7.168 13.824 0 24.576-11.264 24.576-25.088V547.84c0-18.432 13.824-32.256 32.256-32.256 20.48 0 38.912 15.36 38.912 32.256v95.232c0 13.824 11.264 25.088 25.088 25.088s24.576-11.264 25.088-25.088v-18.944c0-18.944 12.8-32.256 30.72-32.256 18.432 0 22.528 18.944 22.528 31.744 0 1.024-11.776 99.84-50.688 173.056-30.72 58.368-45.056 112.128-51.2 146.944-2.56 13.312 6.656 26.112 19.968 28.672 1.536 0 3.072 0.512 4.608 0.512 11.776 0 22.016-8.192 24.064-20.48 5.632-31.232 18.432-79.36 46.08-132.608 43.52-81.92 55.808-186.88 56.32-193.536-0.512-50.688-29.696-83.968-72.704-83.968z"></path></path></svg>
|
||||
|
After Width: | Height: | Size: 2.3 KiB |
1
ruoyi-ui/src/assets/icons/svg/cascader.svg
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1576153230908" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="971" xmlns:xlink="http://www.w3.org/1999/xlink" width="81" height="81"><defs><style type="text/css"></style></defs><path d="M772.87036133 734.06115723c-43.34106445 0-80.00793458 27.93273926-93.76831055 66.57714843H475.90991211c-56.60705567 0-102.66723633-46.06018067-102.66723633-102.66723633V600.82446289h305.859375c13.76037598 38.64440918 50.42724609 66.57714844 93.76831055 66.57714844 55.12390137 0 99.94812012-44.82421875 99.94812012-99.94812012S827.9942627 467.50537109 772.87036133 467.50537109c-43.34106445 0-80.00793458 27.93273926-93.76831055 66.57714844H373.24267578V401.01062011h321.92687989c55.12390137 0 99.94812012-44.82421875 99.94812011-99.94812011V190.07312011C795.11767578 134.94921875 750.29345703 90.125 695.16955567 90.125H251.12963867C196.0057373 90.125 151.18151855 134.94921875 151.18151855 190.07312011V301.0625c0 55.12390137 44.82421875 99.94812012 99.94812012 99.94812012h55.53588867v296.96044921c0 93.35632325 75.97045898 169.32678223 169.32678224 169.32678223h203.19213866c13.76037598 38.64440918 50.42724609 66.57714844 93.76831055 66.57714844 55.12390137 0 99.94812012-44.82421875 99.94812012-99.94812012s-44.90661622-99.86572266-100.03051758-99.86572265z m0-199.89624024c18.37463379 0 33.28857422 14.91394043 33.28857422 33.28857423s-14.91394043 33.28857422-33.28857422 33.28857421-33.28857422-14.91394043-33.28857422-33.28857421 14.91394043-33.28857422 33.28857422-33.28857422zM217.75866699 301.0625V190.07312011c0-18.37463379 14.91394043-33.28857422 33.28857423-33.28857421h444.03991698c18.37463379 0 33.28857422 14.91394043 33.28857422 33.28857422V301.0625c0 18.37463379-14.91394043 33.28857422-33.28857422 33.28857422H251.12963867c-18.37463379 0-33.37097168-14.91394043-33.37097168-33.28857422z m555.11169434 566.23535156c-18.37463379 0-33.28857422-14.91394043-33.28857422-33.28857422 0-18.37463379 14.91394043-33.28857422 33.28857422-33.28857422s33.28857422 14.91394043 33.28857422 33.28857422c0.08239747 18.29223633-14.91394043 33.28857422-33.28857422 33.28857422z" p-id="972"></path></svg>
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
1
ruoyi-ui/src/assets/icons/svg/chart.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg width="128" height="128" xmlns="http://www.w3.org/2000/svg"><path d="M0 54.857h36.571V128H0V54.857zM91.429 27.43H128V128H91.429V27.429zM45.714 0h36.572v128H45.714V0z"/></svg>
|
||||
|
After Width: | Height: | Size: 179 B |