|
|
|
@ -72,11 +72,11 @@
|
|
|
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="统计单元编号" prop="workUnitCode" />
|
|
|
|
|
<el-table-column width="90px" label="统计单元编号" prop="workUnitCode" />
|
|
|
|
|
<el-table-column label="父级编号" align="center" prop="parentId" />
|
|
|
|
|
<el-table-column label="统计单元名称" align="center" prop="workUnitName" />
|
|
|
|
|
<el-table-column label="统计区域" align="center" prop="workUnitAddress" />
|
|
|
|
|
<el-table-column label="产线/工位" align="center" prop="productLineCode" />
|
|
|
|
|
<el-table-column label="产线/工位" align="center" prop="productLineName"/>
|
|
|
|
|
<el-table-column label="统计单元类型" align="center" prop="workUnitType">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.work_unit_type" :value="scope.row.workUnitType"/>
|
|
|
|
@ -194,7 +194,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
ProductLineCode:"",
|
|
|
|
|
ProductLineCode:[],
|
|
|
|
|
// 遮罩层
|
|
|
|
|
loading: true,
|
|
|
|
|
// 显示搜索条件
|
|
|
|
@ -240,22 +240,21 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getproductLine();
|
|
|
|
|
listProductLine(this.queryParams).then(response =>{
|
|
|
|
|
// console.log(response)
|
|
|
|
|
this.ProductLineCode = response.rows;
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
/** 查询产线/工位 */
|
|
|
|
|
getproductLine(){
|
|
|
|
|
listProductLine(this.queryParams).then(response =>{
|
|
|
|
|
console.log(response.rows)
|
|
|
|
|
this.ProductLineCode = response.rows;
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 查询统计单元信息列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
listWorkUnit(this.queryParams).then(response => {
|
|
|
|
|
this.workUnitList = this.handleTree(response.data, "workUnitCode", "parentId");
|
|
|
|
|
this.loading = false;
|
|
|
|
|
console.log(response.data)
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 转换统计单元信息数据结构 */
|
|
|
|
|