统计单元信息修改

master
zhouhy 11 months ago
parent 6ee6227417
commit bc54f5be2e

@ -181,7 +181,7 @@
<el-radio
v-for="dict in dict.type.material_categories"
:key="dict.value"
:label="dict.value"
:label="parseInt(dict.value)"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
@ -190,7 +190,7 @@
<el-radio
v-for="dict in dict.type.material_subclass"
:key="dict.value"
:label="dict.value"
:label="parseInt(dict.value)"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
@ -309,11 +309,11 @@ export default {
qualityDefectCode: null,
qualityDefectName: null,
parentId: null,
materialCategories: null,
materialSubclass: null,
materialCategories: 0,
materialSubclass: 0,
plantCode: null,
remark: null,
isFlag: null,
isFlag: 0,
createdBy: null,
createdTime: null,
updatedBy: null,
@ -340,10 +340,6 @@ export default {
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.form.parentId = 0;
this.form.materialCategories = 0;
this.form.materialSubclass = 0;
this.form.isFlag = 0;
this.open = true;
this.title = "添加质检项信息维护";
},

@ -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();
},
methods: {
/** 查询产线/工位 */
getproductLine(){
listProductLine(this.queryParams).then(response =>{
console.log(response.rows)
// console.log(response)
this.ProductLineCode = response.rows;
})
},
methods: {
/** 查询统计单元信息列表 */
getList() {
this.loading = true;
listWorkUnit(this.queryParams).then(response => {
this.workUnitList = this.handleTree(response.data, "workUnitCode", "parentId");
this.loading = false;
console.log(response.data)
});
},
/** 转换统计单元信息数据结构 */

Loading…
Cancel
Save