|
|
|
@ -44,7 +44,8 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleAdd"
|
|
|
|
|
v-hasPermi="['base:processStation:add']"
|
|
|
|
|
>新增</el-button>
|
|
|
|
|
>新增
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
@ -55,7 +56,8 @@
|
|
|
|
|
:disabled="single"
|
|
|
|
|
@click="handleUpdate"
|
|
|
|
|
v-hasPermi="['base:processStation:edit']"
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
>修改
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
@ -66,7 +68,8 @@
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
@click="handleDelete"
|
|
|
|
|
v-hasPermi="['base:processStation:remove']"
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
>删除
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
@ -76,7 +79,8 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
v-hasPermi="['base:processStation:export']"
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
>导出
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
@ -85,7 +89,8 @@
|
|
|
|
|
icon="el-icon-close"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleClose"
|
|
|
|
|
>关闭</el-button>
|
|
|
|
|
>关闭
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
|
|
|
|
|
</el-row>
|
|
|
|
@ -126,14 +131,16 @@
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-s-grid"
|
|
|
|
|
@click="findStation(scope.row)"
|
|
|
|
|
>下级工位</el-button>
|
|
|
|
|
>下级工位
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
|
v-hasPermi="['base:processStation:edit']"
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
>修改
|
|
|
|
|
</el-button>
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- size="mini"-->
|
|
|
|
|
<!-- type="text"-->
|
|
|
|
@ -201,8 +208,15 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { listProcessStation, getProcessStation, delProcessStation, addProcessStation, updateProcessStation } from "@/api/base/processStation";
|
|
|
|
|
import {
|
|
|
|
|
listProcessStation,
|
|
|
|
|
getProcessStation,
|
|
|
|
|
delProcessStation,
|
|
|
|
|
addProcessStation,
|
|
|
|
|
updateProcessStation
|
|
|
|
|
} from "@/api/base/processStation";
|
|
|
|
|
import {findProductLineList} from "@/api/base/productLine";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "ProcessStation",
|
|
|
|
|
dicts: ['is_flag', 'process_type'],
|
|
|
|
@ -247,8 +261,7 @@ export default {
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {},
|
|
|
|
|
// 表单校验
|
|
|
|
|
rules: {
|
|
|
|
|
},
|
|
|
|
|
rules: {},
|
|
|
|
|
columns: [
|
|
|
|
|
{key: 0, label: `主键标识`, visible: false},
|
|
|
|
|
{key: 1, label: `生产工序/工位编号`, visible: true},
|
|
|
|
@ -280,17 +293,17 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
/** 查询生产工序/工位信息列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
async getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
listProcessStation(this.queryParams).then(response => {
|
|
|
|
|
await findProductLineList({productLineType: 1}).then(response => {
|
|
|
|
|
this.productLineList = response.data;
|
|
|
|
|
this.queryParams.productLineCode = response.data.find(val => val.productLineName === '一产线')?.productLineCode
|
|
|
|
|
})
|
|
|
|
|
await listProcessStation(this.queryParams).then(response => {
|
|
|
|
|
this.processStationList = response.rows;
|
|
|
|
|
this.total = response.total;
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
findProductLineList({productLineType: 1}).then(response => {
|
|
|
|
|
this.productLineList = response.data;
|
|
|
|
|
this.queryParams.productLineCode = response.data.find(val=>val.productLineName === '一产线')?.productLineCode
|
|
|
|
|
});
|
|
|
|
|
findProductLineList({productLineType: 2}).then(response => {
|
|
|
|
|
this.findStationList = response.data;
|
|
|
|
|
});
|
|
|
|
@ -397,7 +410,8 @@ export default {
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
handleExport() {
|
|
|
|
|