容器明细子页面界面功能调整
This commit is contained in:
@@ -99,6 +99,13 @@
|
||||
<el-table-column label="操作人" align="center" prop="operationMan" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-view"
|
||||
@click="handleDetails(scope.row)"
|
||||
v-hasPermi="['bas:container:edit']"
|
||||
>详情</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
@@ -129,7 +136,7 @@
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="容器编号" prop="containerId">
|
||||
<el-input v-model="form.containerId" placeholder="请输入容器编号" />
|
||||
<el-input v-model="form.containerId" placeholder="请输入容器编号" :disabled="!containerIdIsEnabled"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="点位名称" prop="portName">
|
||||
<el-select v-model="form.portName" placeholder="请选择点位名称" clearable>
|
||||
@@ -163,6 +170,12 @@
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 容器管理详细 -->
|
||||
<el-dialog title="容器管理详细" :visible.sync="openView" width="700px" append-to-body>
|
||||
|
||||
</el-dialog>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -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("新增成功")
|
||||
|
||||
Reference in New Issue
Block a user