1.优化和接口模板
This commit is contained in:
parent
65b050a25a
commit
65ed137522
95
README.md
95
README.md
|
|
@ -1,95 +0,0 @@
|
|||
<p align="center">
|
||||
<img alt="logo" src="https://oscimg.oschina.net/oscnet/up-d3d0a9303e11d522a06cd263f3079027715.png">
|
||||
</p>
|
||||
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">RuoYi v3.8.9</h1>
|
||||
<h4 align="center">基于SpringBoot+Vue前后端分离的Java快速开发框架</h4>
|
||||
<p align="center">
|
||||
<a href="https://gitee.com/y_project/RuoYi-Vue/stargazers"><img src="https://gitee.com/y_project/RuoYi-Vue/badge/star.svg?theme=dark"></a>
|
||||
<a href="https://gitee.com/y_project/RuoYi-Vue"><img src="https://img.shields.io/badge/RuoYi-v3.8.9-brightgreen.svg"></a>
|
||||
<a href="https://gitee.com/y_project/RuoYi-Vue/blob/master/LICENSE"><img src="https://img.shields.io/github/license/mashape/apistatus.svg"></a>
|
||||
</p>
|
||||
|
||||
## 平台简介
|
||||
|
||||
若依是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。
|
||||
|
||||
* 前端采用Vue、Element UI。
|
||||
* 后端采用Spring Boot、Spring Security、Redis & Jwt。
|
||||
* 权限认证使用Jwt,支持多终端认证系统。
|
||||
* 支持加载动态权限菜单,多方式轻松权限控制。
|
||||
* 高效率开发,使用代码生成器可以一键生成前后端代码。
|
||||
* 提供了技术栈([Vue3](https://v3.cn.vuejs.org) [Element Plus](https://element-plus.org/zh-CN) [Vite](https://cn.vitejs.dev))版本[RuoYi-Vue3](https://gitcode.com/yangzongzhuan/RuoYi-Vue3),保持同步更新。
|
||||
* 提供了单应用版本[RuoYi-Vue-fast](https://gitcode.com/yangzongzhuan/RuoYi-Vue-fast),Oracle版本[RuoYi-Vue-Oracle](https://gitcode.com/yangzongzhuan/RuoYi-Vue-Oracle),保持同步更新。
|
||||
* 不分离版本,请移步[RuoYi](https://gitee.com/y_project/RuoYi),微服务版本,请移步[RuoYi-Cloud](https://gitee.com/y_project/RuoYi-Cloud)
|
||||
* 阿里云折扣场:[点我进入](http://aly.ruoyi.vip),腾讯云秒杀场:[点我进入](http://txy.ruoyi.vip)
|
||||
|
||||
## 内置功能
|
||||
|
||||
1. 用户管理:用户是系统操作者,该功能主要完成系统用户配置。
|
||||
2. 部门管理:配置系统组织机构(公司、部门、小组),树结构展现支持数据权限。
|
||||
3. 岗位管理:配置系统用户所属担任职务。
|
||||
4. 菜单管理:配置系统菜单,操作权限,按钮权限标识等。
|
||||
5. 角色管理:角色菜单权限分配、设置角色按机构进行数据范围权限划分。
|
||||
6. 字典管理:对系统中经常使用的一些较为固定的数据进行维护。
|
||||
7. 参数管理:对系统动态配置常用参数。
|
||||
8. 通知公告:系统通知公告信息发布维护。
|
||||
9. 操作日志:系统正常操作日志记录和查询;系统异常信息日志记录和查询。
|
||||
10. 登录日志:系统登录日志记录查询包含登录异常。
|
||||
11. 在线用户:当前系统中活跃用户状态监控。
|
||||
12. 定时任务:在线(添加、修改、删除)任务调度包含执行结果日志。
|
||||
13. 代码生成:前后端代码的生成(java、html、xml、sql)支持CRUD下载 。
|
||||
14. 系统接口:根据业务代码自动生成相关的api接口文档。
|
||||
15. 服务监控:监视当前系统CPU、内存、磁盘、堆栈等相关信息。
|
||||
16. 缓存监控:对系统的缓存信息查询,命令统计等。
|
||||
17. 在线构建器:拖动表单元素生成相应的HTML代码。
|
||||
18. 连接池监视:监视当前系统数据库连接池状态,可进行分析SQL找出系统性能瓶颈。
|
||||
|
||||
## 在线体验
|
||||
|
||||
- admin/admin123
|
||||
- 陆陆续续收到一些打赏,为了更好的体验已用于演示服务器升级。谢谢各位小伙伴。
|
||||
|
||||
演示地址:http://vue.ruoyi.vip
|
||||
文档地址:http://doc.ruoyi.vip
|
||||
|
||||
## 演示图
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/cd1f90be5f2684f4560c9519c0f2a232ee8.jpg"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/1cbcf0e6f257c7d3a063c0e3f2ff989e4b3.jpg"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-8074972883b5ba0622e13246738ebba237a.png"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-9f88719cdfca9af2e58b352a20e23d43b12.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-39bf2584ec3a529b0d5a3b70d15c9b37646.png"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-936ec82d1f4872e1bc980927654b6007307.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-b2d62ceb95d2dd9b3fbe157bb70d26001e9.png"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-d67451d308b7a79ad6819723396f7c3d77a.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/5e8c387724954459291aafd5eb52b456f53.jpg"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/644e78da53c2e92a95dfda4f76e6d117c4b.jpg"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-8370a0d02977eebf6dbf854c8450293c937.png"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-49003ed83f60f633e7153609a53a2b644f7.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-d4fe726319ece268d4746602c39cffc0621.png"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-c195234bbcd30be6927f037a6755e6ab69c.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/b6115bc8c31de52951982e509930b20684a.jpg"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-5e4daac0bb59612c5038448acbcef235e3a.png"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
## 若依前后端分离交流群
|
||||
|
||||
QQ群: [](https://jq.qq.com/?_wv=1027&k=5bVB1og) [](https://jq.qq.com/?_wv=1027&k=5eiA4DH) [](https://jq.qq.com/?_wv=1027&k=5AxMKlC) [](https://jq.qq.com/?_wv=1027&k=51G72yr) [](https://jq.qq.com/?_wv=1027&k=VvjN2nvu) [](https://jq.qq.com/?_wv=1027&k=5vYAqA05) [](https://jq.qq.com/?_wv=1027&k=kOIINEb5) [](https://jq.qq.com/?_wv=1027&k=UKtX5jhs) [](https://jq.qq.com/?_wv=1027&k=EI9an8lJ) [](https://jq.qq.com/?_wv=1027&k=SWCtLnMz) [](https://jq.qq.com/?_wv=1027&k=96Dkdq0k) [](https://jq.qq.com/?_wv=1027&k=0fsNiYZt) [](https://jq.qq.com/?_wv=1027&k=7xw4xUG1) [](https://jq.qq.com/?_wv=1027&k=eCx8eyoJ) [](https://jq.qq.com/?_wv=1027&k=SpyH2875) [](https://jq.qq.com/?_wv=1027&k=tKEt51dz) [](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=0vBbSb0ztbBgVtn3kJS-Q4HUNYwip89G&authKey=8irq5PhutrZmWIvsUsklBxhj57l%2F1nOZqjzigkXZVoZE451GG4JHPOqW7AW6cf0T&noverify=0&group_code=143961921) [](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=ZFAPAbp09S2ltvwrJzp7wGlbopsc0rwi&authKey=HB2cxpxP2yspk%2Bo3WKTBfktRCccVkU26cgi5B16u0KcAYrVu7sBaE7XSEqmMdFQp&noverify=0&group_code=174951577) [](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=Fn2aF5IHpwsy8j6VlalNJK6qbwFLFHat&authKey=uyIT%2B97x2AXj3odyXpsSpVaPMC%2Bidw0LxG5MAtEqlrcBcWJUA%2FeS43rsF1Tg7IRJ&noverify=0&group_code=161281055) [](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=XIzkm_mV2xTsUtFxo63bmicYoDBA6Ifm&authKey=dDW%2F4qsmw3x9govoZY9w%2FoWAoC4wbHqGal%2BbqLzoS6VBarU8EBptIgPKN%2FviyC8j&noverify=0&group_code=138988063) [](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=DkugnCg68PevlycJSKSwjhFqfIgrWWwR&authKey=pR1Pa5lPIeGF%2FFtIk6d%2FGB5qFi0EdvyErtpQXULzo03zbhopBHLWcuqdpwY241R%2F&noverify=0&group_code=151450850) [](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=F58bgRa-Dp-rsQJThiJqIYv8t4-lWfXh&authKey=UmUs4CVG5OPA1whvsa4uSespOvyd8%2FAr9olEGaWAfdLmfKQk%2FVBp2YU3u2xXXt76&noverify=0&group_code=224622315) [](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=Nxb2EQ5qozWa218Wbs7zgBnjLSNk_tVT&authKey=obBKXj6SBKgrFTJZx0AqQnIYbNOvBB2kmgwWvGhzxR67RoRr84%2Bus5OadzMcdJl5&noverify=0&group_code=287842588) [](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=numtK1M_I4eVd2Gvg8qtbuL8JgX42qNh&authKey=giV9XWMaFZTY%2FqPlmWbkB9g3fi0Ev5CwEtT9Tgei0oUlFFCQLDp4ozWRiVIzubIm&noverify=0&group_code=187944233) [](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=G6r5KGCaa3pqdbUSXNIgYloyb8e0_L0D&authKey=4w8tF1eGW7%2FedWn%2FHAypQksdrML%2BDHolQSx7094Agm7Luakj9EbfPnSTxSi2T1LQ&noverify=0&group_code=228578329) 点击按钮入群。
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
package com.ruoyi.operation.service.impl;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class getPoundWeightData {
|
||||
|
||||
public BigDecimal getPoundWeight(String poundNumber) {
|
||||
//根据地磅编码,在系统参数中获取接口地址,调用接口返回数据。
|
||||
return BigDecimal.ZERO;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -73,10 +73,10 @@ export default {
|
|||
title: process.env.VUE_APP_TITLE,
|
||||
codeUrl: "",
|
||||
loginForm: {
|
||||
// username: "admin",
|
||||
// password: "admin123",
|
||||
username: "",
|
||||
password: "",
|
||||
username: "admin",
|
||||
password: "admin123",
|
||||
// username: "",
|
||||
// password: "",
|
||||
rememberMe: false,
|
||||
code: "",
|
||||
uuid: ""
|
||||
|
|
|
|||
|
|
@ -90,6 +90,17 @@
|
|||
v-hasPermi="['measurement/bill:poundappli:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<!-- <el-col :span="1.5">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="danger"-->
|
||||
<!-- plain-->
|
||||
<!-- icon="el-icon-delete"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- :disabled="multiple"-->
|
||||
<!-- @click="handleDownQuery"-->
|
||||
<!-- v-hasPermi="['measurement/bill:poundappli:remove']"-->
|
||||
<!-- >下查</el-button>-->
|
||||
<!-- </el-col>-->
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
|
|
@ -536,6 +547,7 @@ export default {
|
|||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.usrcodes = selection.map(item => item.usrcode)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
|
|
@ -593,7 +605,7 @@ export default {
|
|||
...this.queryParams
|
||||
}, `poundappli_${new Date().getTime()}.xlsx`)
|
||||
},
|
||||
//过磅申请单击选中,并将车号进行赋值。
|
||||
//过磅申请单击选中
|
||||
handleRowClick(row) {
|
||||
// 获取当前表格已选中的行
|
||||
const selection = this.$refs.table1.selection || [];
|
||||
|
|
@ -603,7 +615,41 @@ export default {
|
|||
|
||||
// 切换选中状态
|
||||
this.$refs.table1.toggleRowSelection(row, !isSelected);
|
||||
}
|
||||
},
|
||||
//下查
|
||||
handleDownQuery(){
|
||||
//判断是否选中一行
|
||||
if(this.ids.length !== 1){
|
||||
this.$message.warning("请选择一行数据");
|
||||
return;
|
||||
}
|
||||
//获取当前行数据
|
||||
const thisUsrcode = this.usrcodes[0];
|
||||
// const indexRouter = "measurement/bill/poundbill/index/" + thisUsrcode;
|
||||
const indexRouter = "/measurement/bill/poundbill";
|
||||
|
||||
// 1. 收集当前页面的查询条件(根据实际表单字段调整)
|
||||
const queryParams = {
|
||||
usrcode: thisUsrcode
|
||||
};
|
||||
|
||||
// 2. 检测目标页面是否已打开
|
||||
const targetPath = '/measurement/bill/poundbill';
|
||||
const isOpened = this.$store.state.tagsView.visitedViews.some(
|
||||
view => view.path === targetPath
|
||||
);
|
||||
|
||||
// 3. 跳转(区分是否已打开)
|
||||
if (isOpened) {
|
||||
// 已打开:更新路由参数并通知刷新
|
||||
this.$router.push({ path: targetPath, query: queryParams });
|
||||
// 发送事件通知目标页刷新
|
||||
this.$EventBus.$emit('refreshTargetQuery', queryParams);
|
||||
} else {
|
||||
// 未打开:直接跳转,目标页将在初始化时读取参数
|
||||
this.$router.push({ path: targetPath, query: queryParams });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,14 @@
|
|||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="申请单号" prop="wetusrcode">
|
||||
<el-input
|
||||
v-model="queryParams.wetusrcode"
|
||||
placeholder="请输入申请单号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="车号/车厢" prop="carno">
|
||||
<el-input
|
||||
v-model="queryParams.carno"
|
||||
|
|
@ -649,60 +657,13 @@ export default {
|
|||
billstate: null,
|
||||
usrcode: null,
|
||||
carno: null,
|
||||
wghmqty: null,
|
||||
empmqty: null,
|
||||
netmqty: null,
|
||||
wghdt: null,
|
||||
empdt: null,
|
||||
srcpunmqty: null,
|
||||
srcwghmqty: null,
|
||||
srcempmqty: null,
|
||||
srcnetmqty: null,
|
||||
itmname: null,
|
||||
wghdtoprname: null,
|
||||
empdtoprname: null,
|
||||
specification: null,
|
||||
msrname: null,
|
||||
poundid: null,
|
||||
poundname: null,
|
||||
empsysid: null,
|
||||
empusrcode: null,
|
||||
wghsysid: null,
|
||||
wghusrcode: null,
|
||||
recunitid: null,
|
||||
recunitname: null,
|
||||
sendunitid: null,
|
||||
sendunitname: null,
|
||||
trnunitid: null,
|
||||
trnunitname: null,
|
||||
bsnunitid: null,
|
||||
bsnunitname: null,
|
||||
bsndptid: null,
|
||||
bsndptname: null,
|
||||
wghtype: null,
|
||||
scltype: null,
|
||||
cardriver: null,
|
||||
srcblltype: null,
|
||||
pondsrc: null,
|
||||
wetusrcode: null,
|
||||
srcbllusrcode: null,
|
||||
boilerno: null,
|
||||
steeno: null,
|
||||
unitlen: null,
|
||||
indexid: null,
|
||||
carnolz: null,
|
||||
steeltype: null,
|
||||
linetype: null,
|
||||
batno: null,
|
||||
lzno: null,
|
||||
lqty: null,
|
||||
bdcode: null,
|
||||
crtorgid: null,
|
||||
isinuse: null,
|
||||
crtdt: null,
|
||||
crtopr: null,
|
||||
lstedtdt: null,
|
||||
lstedtopr: null
|
||||
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
|
|
@ -717,6 +678,10 @@ export default {
|
|||
},
|
||||
created() {
|
||||
this.loadAllSelectOptions();
|
||||
const usrcode = this.$route.query.usrcode; // 获取传递的参数
|
||||
console.log('接收的参数:', usrcode);
|
||||
//作为查询条件
|
||||
this.queryParams.wetusrcode = usrcode;
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@
|
|||
|
||||
<el-table v-loading="loading" :data="poundmstList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="id" align="center" prop="id" />
|
||||
<!-- <el-table-column label="id" align="center" prop="id" />-->
|
||||
<el-table-column label="主榜单编号" align="center" prop="usrcode" />
|
||||
<el-table-column label="来源单据类型" align="center" prop="srcbllknd" />
|
||||
<el-table-column label="来源单据号" align="center" prop="srcbllid" />
|
||||
|
|
|
|||
|
|
@ -614,7 +614,7 @@ export default {
|
|||
// },
|
||||
searchData: {
|
||||
optionsMap: {},
|
||||
selectConfigs:selectConfigs
|
||||
selectConfigs:selectConfigsto
|
||||
},
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue