update - 工序/工位

master
yinq 12 months ago
parent 22a3353e2b
commit 8346aade28

@ -218,6 +218,20 @@ export const dynamicRoutes = [
},
],
},
{
path: "/base/productProcess-station",
component: Layout,
hidden: true,
permissions: ["base:processStation:list"],
children: [
{
path:"index/:processCode",
component:() => import("@/views/base/productStation/index"),
name:"childStation",
meta: {title: "工位信息",activeMenu: "/base/productStation"},
},
],
},
{
path: "/wcs/space-info",
component: Layout,

@ -119,6 +119,12 @@
</el-table-column>
<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-s-grid"
@click="findStation(scope.row)"
>所属工位</el-button>
<el-button
size="mini"
type="text"
@ -332,6 +338,11 @@ export default {
this.open = true;
this.title = "添加生产工序/工位信息";
},
/** 查看所属工位 */
findStation: function(row) {
const processCode = row.processCode;
this.$router.push("/base/productProcess-station/index/" + processCode);
},
/** 返回按钮操作 */
handleClose() {
const obj = { path: "/base/productLine" };

@ -11,6 +11,14 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="工序编号" prop="processCode">
<el-input
v-model="queryParams.processCode"
placeholder="请输入工位名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="工位名称" prop="productLineName">
<el-input
v-model="queryParams.productLineName"
@ -240,7 +248,8 @@ export default {
createdBy: null,
createdTime: null,
updatedBy: null,
updatedTime: null
updatedTime: null,
processCode: null
},
//
form: {},
@ -268,6 +277,7 @@ export default {
},
created() {
this.queryParams.parentId = this.$route.params && this.$route.params.productLineCode;
this.queryParams.processCode = this.$route.params && this.$route.params.processCode;
this.getList();
findFactoryList().then(response => {
this.factoryList = response.data;
@ -342,7 +352,7 @@ export default {
},
/** 返回按钮操作 */
handleClose() {
const obj = { path: "/base/productLine" };
const obj = { path: "/base/processStation" };
this.$tab.closeOpenPage(obj);
},
/** 提交按钮 */

Loading…
Cancel
Save