From bcdca622b0edad8de799fcc8702efb1bffdf34bd Mon Sep 17 00:00:00 2001 From: lsymicc Date: Wed, 18 Jun 2025 14:39:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=B9=E5=99=A8=E6=98=8E=E7=BB=86=E5=AD=90?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=95=8C=E9=9D=A2=E5=8A=9F=E8=83=BD=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/bas/BasContainerMapper.xml | 3 +- ruoyi-ui/src/api/bas/container.js | 2 + ruoyi-ui/src/router/index.js | 15 ++++++ ruoyi-ui/src/views/bas/container/index.vue | 35 ++++++++++-- .../src/views/bas/containerDetails/index.vue | 54 ++++++++++++++----- 5 files changed, 91 insertions(+), 18 deletions(-) diff --git a/ruoyi-admin/src/main/resources/mapper/bas/BasContainerMapper.xml b/ruoyi-admin/src/main/resources/mapper/bas/BasContainerMapper.xml index 8007783..f1b641c 100644 --- a/ruoyi-admin/src/main/resources/mapper/bas/BasContainerMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/bas/BasContainerMapper.xml @@ -79,8 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" product_type_quantity = #{productTypeQuantity}, capacity = #{capacity}, create_time = #{createTime}, - - GETDATE(), + update_time = GETDATE(), operation_man = #{operationMan}, spare1 = #{spare1}, spare2 = #{spare2}, diff --git a/ruoyi-ui/src/api/bas/container.js b/ruoyi-ui/src/api/bas/container.js index f34b70e..b8685b3 100644 --- a/ruoyi-ui/src/api/bas/container.js +++ b/ruoyi-ui/src/api/bas/container.js @@ -50,3 +50,5 @@ export function getPortNames() { method: 'get' }); } + + diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index 0aff991..fef900a 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -162,6 +162,21 @@ export const dynamicRoutes = [ meta: { title: '修改生成配置', activeMenu: '/tool/gen' } } ] + }, + // @@@ 容器管理明细 + { + path: '/bas/containerDetails', + component: Layout, + hidden: true, + permissions: ['bas:containerDetails:query'], + children: [ + { + path: 'index/:containerId(\\d+)', + component: () => import('@/views/bas/containerDetails/index'), + name: 'ContainerDetails', + meta: { title: '容器物料明细', activeMenu: '/bas/containerDetails' } + } + ] } ] diff --git a/ruoyi-ui/src/views/bas/container/index.vue b/ruoyi-ui/src/views/bas/container/index.vue index 6a6e172..7dc9896 100644 --- a/ruoyi-ui/src/views/bas/container/index.vue +++ b/ruoyi-ui/src/views/bas/container/index.vue @@ -99,6 +99,13 @@ @@ -193,6 +206,8 @@ export default { title: "", // 是否显示弹出层 open: false, + // 是否显示详细弹出层 + openView: false, // 查询参数 queryParams: { pageNum: 1, @@ -210,7 +225,9 @@ export default { form: {}, // 表单校验 rules: { - } + }, + // 弹出框容器编号是否可编辑 + containerIdIsEnabled: true, } }, created() { @@ -285,6 +302,7 @@ export default { /** 新增按钮操作 */ handleAdd() { this.reset() + this.containerIdIsEnabled = true this.open = true this.title = "添加容器管理" }, @@ -294,10 +312,21 @@ export default { const containerId = row.containerId || this.ids getContainer(containerId).then(response => { this.form = response.data + this.containerIdIsEnabled = false this.open = true this.title = "修改容器管理" }) }, + /** 详情按钮操作 */ + handleDetails(row){ + const containerId = row.containerId + // this.$router.push("/bas/containerDetails/index/" + containerId) + this.$router.push({ + name: 'ContainerDetails', + params: { containerId: containerId } + }) + // console.log(containerId) + }, /** 提交按钮 */ submitForm() { this.$refs["form"].validate(valid => { @@ -310,7 +339,7 @@ export default { }) } else { //@@@ - this.form.productTypeQuantity = 'Type-01'; + this.form.productTypeQuantity = '3'; this.form.capacity = 10; addContainer(this.form).then(response => { this.$modal.msgSuccess("新增成功") diff --git a/ruoyi-ui/src/views/bas/containerDetails/index.vue b/ruoyi-ui/src/views/bas/containerDetails/index.vue index d1f3ffd..268a85e 100644 --- a/ruoyi-ui/src/views/bas/containerDetails/index.vue +++ b/ruoyi-ui/src/views/bas/containerDetails/index.vue @@ -33,7 +33,7 @@ @keyup.enter.native="handleQuery" /> - + 搜索 重置 @@ -105,29 +105,37 @@ >删除 - 导出 + >导出 --> + + 关闭 - + - + - +