|
|
|
@ -1,26 +1,28 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="app-container">
|
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
|
|
|
|
|
<el-form-item label="工序/工位编号" prop="processCode">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.processCode"
|
|
|
|
|
placeholder="请输入工序/工位编号"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
<el-form-item label="所属产线" prop="productLineCode" >
|
|
|
|
|
<el-select v-model="queryParams.productLineCode" placeholder="请选择产线工位">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in productLineList"
|
|
|
|
|
:key="item.productLineCode"
|
|
|
|
|
:label="item.productLineName"
|
|
|
|
|
:value="item.productLineCode"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="工序/工位名称" prop="processName">
|
|
|
|
|
<!-- <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="processName">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.processName"
|
|
|
|
|
placeholder="请输入工序/工位名称"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="所属产线" prop="productLineCode">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.productLineCode"
|
|
|
|
|
placeholder="请输入所属产线"
|
|
|
|
|
placeholder="请输入工序名称"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
@ -74,6 +76,15 @@
|
|
|
|
|
v-hasPermi="['base:processStation:export']"
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="danger"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-close"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleClose"
|
|
|
|
|
>关闭</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
@ -254,6 +265,7 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.queryParams.productLineCode = this.$route.params && this.$route.params.productLineCode;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
@ -295,6 +307,7 @@ export default {
|
|
|
|
|
updatedTime: null,
|
|
|
|
|
parentId: null
|
|
|
|
|
};
|
|
|
|
|
this.queryParams.productLineCode = null
|
|
|
|
|
this.resetForm("form");
|
|
|
|
|
},
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
@ -319,6 +332,11 @@ export default {
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "添加生产工序/工位信息";
|
|
|
|
|
},
|
|
|
|
|
/** 返回按钮操作 */
|
|
|
|
|
handleClose() {
|
|
|
|
|
const obj = { path: "/base/productLine" };
|
|
|
|
|
this.$tab.closeOpenPage(obj);
|
|
|
|
|
},
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
|
this.reset();
|
|
|
|
|