统计单元信息修改

master
zhouhy 1 year ago
parent 6ee6227417
commit bc54f5be2e

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

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

Loading…
Cancel
Save