From 690eae9985ff73c5af0cbeaa24d67284d76a6359 Mon Sep 17 00:00:00 2001 From: zgw <13623675548@163.com> Date: Thu, 3 Sep 2026 16:56:57 +0800 Subject: [PATCH] feat: update frontend authorization and operations --- ruoyi-ui/.env.development | 2 +- ruoyi-ui/.env.production | 2 +- ruoyi-ui/.env.staging | 2 +- ruoyi-ui/src/api/agvPoint/point.js | 44 ++ ruoyi-ui/src/api/license.js | 40 ++ ruoyi-ui/src/api/requestInterface/log.js | 24 + ruoyi-ui/src/api/stock/management.js | 11 +- ruoyi-ui/src/components/Pagination/index.vue | 2 +- ruoyi-ui/src/layout/components/Navbar.vue | 68 +++ ruoyi-ui/src/store/modules/user.js | 14 +- ruoyi-ui/src/utils/request.js | 6 +- ruoyi-ui/src/views/agvPoint/point/index.vue | 314 ++++++++++++ ruoyi-ui/src/views/bas/traycode/index.vue | 72 ++- ruoyi-ui/src/views/bas/traycode/index1.vue | 474 ++++++++++++++++++ ruoyi-ui/src/views/in/job/index.vue | 14 +- ruoyi-ui/src/views/in/stockIn/index.vue | 79 +-- ruoyi-ui/src/views/job/outJobManagement.vue | 15 +- ruoyi-ui/src/views/login.vue | 48 +- ruoyi-ui/src/views/out/addOutStockout.vue | 8 +- ruoyi-ui/src/views/out/outStockoutManage.vue | 221 ++++---- .../src/views/requestInterface/log/index.vue | 219 ++++---- .../src/views/search/ViewInJobFlow/index.vue | 9 + .../src/views/search/ViewOutJobFlow/index.vue | 9 + ruoyi-ui/src/views/stock/management/index.vue | 192 ++++--- ruoyi-ui/src/views/system/license/index.vue | 205 ++++++++ ruoyi-ui/vue.config.js | 2 +- 26 files changed, 1768 insertions(+), 328 deletions(-) create mode 100644 ruoyi-ui/src/api/agvPoint/point.js create mode 100644 ruoyi-ui/src/api/license.js create mode 100644 ruoyi-ui/src/views/agvPoint/point/index.vue create mode 100644 ruoyi-ui/src/views/bas/traycode/index1.vue create mode 100644 ruoyi-ui/src/views/system/license/index.vue diff --git a/ruoyi-ui/.env.development b/ruoyi-ui/.env.development index a8531ba..bae6a96 100644 --- a/ruoyi-ui/.env.development +++ b/ruoyi-ui/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = "ForTucky WMS system" +VUE_APP_TITLE = "艾度 WMS system" # 开发环境配置 ENV = 'development' diff --git a/ruoyi-ui/.env.production b/ruoyi-ui/.env.production index 8074604..061cea2 100644 --- a/ruoyi-ui/.env.production +++ b/ruoyi-ui/.env.production @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = "ForTucky WMS system" +VUE_APP_TITLE = "艾度 WMS system" # 生产环境配置 ENV = 'production' diff --git a/ruoyi-ui/.env.staging b/ruoyi-ui/.env.staging index dbe8edd..ae39ce6 100644 --- a/ruoyi-ui/.env.staging +++ b/ruoyi-ui/.env.staging @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = "ForTucky WMS system" +VUE_APP_TITLE = "艾度 WMS system" BABEL_ENV = production diff --git a/ruoyi-ui/src/api/agvPoint/point.js b/ruoyi-ui/src/api/agvPoint/point.js new file mode 100644 index 0000000..e7fb13f --- /dev/null +++ b/ruoyi-ui/src/api/agvPoint/point.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询agv站点管理列表 +export function listPoint(query) { + return request({ + url: '/bas/agvPoint/list', + method: 'get', + params: query + }) +} + +// 查询agv站点管理详细 +export function getPoint(id) { + return request({ + url: '/bas/agvPoint' + id, + method: 'get' + }) +} + +// 新增agv站点管理 +export function addPoint(data) { + return request({ + url: '/bas/agvPoint', + method: 'post', + data: data + }) +} + +// 修改agv站点管理 +export function updatePoint(data) { + return request({ + url: '/bas/agvPoint', + method: 'put', + data: data + }) +} + +// 删除agv站点管理 +export function delPoint(id) { + return request({ + url: '/bas/agvPoint' + id, + method: 'delete' + }) +} diff --git a/ruoyi-ui/src/api/license.js b/ruoyi-ui/src/api/license.js new file mode 100644 index 0000000..2ec322f --- /dev/null +++ b/ruoyi-ui/src/api/license.js @@ -0,0 +1,40 @@ +import request from '@/utils/request' + +export function listLicense(query) { + return request({ + url: '/system/license/list', + method: 'get', + params: query + }) +} + +export function delLicense(ids) { + return request({ + url: '/system/license/remove', + method: 'post', + params: { ids } + }) +} + +export function activeLicense(licenseCode) { + return request({ + url: '/system/license/active', + method: 'post', + params: { licenseCode } + }) +} + +export function getLicenseInfo() { + return request({ + url: '/system/license/info', + method: 'get' + }) +} + +export function generateLicense(type, projectNo) { + return request({ + url: '/system/license/generate', + method: 'get', + params: { type, projectNo } + }) +} diff --git a/ruoyi-ui/src/api/requestInterface/log.js b/ruoyi-ui/src/api/requestInterface/log.js index 123dca1..39ba634 100644 --- a/ruoyi-ui/src/api/requestInterface/log.js +++ b/ruoyi-ui/src/api/requestInterface/log.js @@ -9,6 +9,30 @@ export function listLog(query) { }) } + +export function getMethod() { + return request({ + url: '/requestInterface/log/getMethod', + method: 'get' + + }) +} + +export function getSource() { + return request({ + url: '/requestInterface/log/getSource', + method: 'get' + + }) +} + +export function getTarget() { + return request({ + url: '/requestInterface/log/getTarget', + method: 'get' + + }) +} // 查询接口记录详细 export function getLog(requestId) { return request({ diff --git a/ruoyi-ui/src/api/stock/management.js b/ruoyi-ui/src/api/stock/management.js index a1873b6..3add5d7 100644 --- a/ruoyi-ui/src/api/stock/management.js +++ b/ruoyi-ui/src/api/stock/management.js @@ -10,10 +10,11 @@ export function listManagement(query) { } // 查询库存信息详细 -export function getManagement(stockId) { +export function getManagement(stockId, warehouseCode) { return request({ url: '/stock/management/' + stockId, - method: 'get' + method: 'get', + params: {"warehouseCode": warehouseCode} }) } @@ -45,12 +46,14 @@ export function updateManagement(data) { } // 删除库存信息 -export function delManagement(stockId) { +export function delManagement(stockId, warehouseCode) { return request({ url: '/stock/management/' + stockId, - method: 'delete' + method: 'delete', + params: {"warehouseCode": warehouseCode} }) } + //重置盘点记录 export function resetPdRecord() { return request({ diff --git a/ruoyi-ui/src/components/Pagination/index.vue b/ruoyi-ui/src/components/Pagination/index.vue index 08ac487..eda541b 100644 --- a/ruoyi-ui/src/components/Pagination/index.vue +++ b/ruoyi-ui/src/components/Pagination/index.vue @@ -36,7 +36,7 @@ export default { pageSizes: { type: Array, default() { - return [10, 20, 30, 50] + return [10, 50, 100, 1000] } }, // 移动端页码按钮的数量端默认值5 diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue index 8b51fc4..a210626 100644 --- a/ruoyi-ui/src/layout/components/Navbar.vue +++ b/ruoyi-ui/src/layout/components/Navbar.vue @@ -5,6 +5,11 @@ +
+ + 系统授权将于 {{ licenseExpireText }} 后过期,请及时联系管理员续期 +
+