feat(物料管理): 添加MRP清单功能模块

新增MRP清单管理页面及相关API接口,包括:
1. 添加mmMrpManagement.js API文件,提供MRP清单查询和生成接口
2. 创建MrpList.vue和WorkOrder.vue视图组件
3. 配置vue.config.js代理规则对接总成MES系统
4. 移除废弃的production_track.vue文件
This commit is contained in:
2025-08-13 18:08:08 +08:00
parent 09de578c24
commit 262a5b19e2
6 changed files with 508 additions and 4 deletions

View File

@@ -37,11 +37,28 @@ module.exports = {
port: 8887, // 项目启动port,
open: true,
proxy: {
'/dev-api/assembly-api': {
target: 'http://localhost:7000', // 后端接口地址
changeOrigin: true,
logLevel: 'debug',
onProxyReq: (proxyReq, req) => {
// http请求
console.log('[HPM] %s %s %s %s', req.method, req.originalUrl, '->', req.url);
},
pathRewrite: {
'^/dev-api/assembly-api': '', //需要rewrite的
},
},
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: 'http://localhost:8888', // 后端接口地址
// target: 'http://192.168.0.31:8888/', // 后端接口地址
changeOrigin: true,
logLevel: 'debug',
onProxyReq: (proxyReq, req) => {
// http请求
console.log('[HPM] %s %s %s %s', req.method, req.originalUrl, '->', req.url);
},
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '', //需要rewrite的
},
@@ -128,10 +145,10 @@ module.exports = {
},
})
config.optimization.runtimeChunk('single'),
{
from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
to: './', //到根目录下
}
{
from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
to: './', //到根目录下
}
})
},
}