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 @@
+ 详情
-
+
@@ -163,6 +170,12 @@
取 消
+
+
+
+
+
+
@@ -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 @@
>删除
- 导出
+ >导出 -->
+
+ 关闭
-
+
-
+
-
+
-
+
@@ -174,7 +182,7 @@
-
+