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