质检项信息维护

master
zhouhy 1 year ago
parent 1430e4abda
commit 6ee6227417

@ -141,16 +141,15 @@
<!-- 添加或修改质检项信息维护对话框 -->
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="质量缺陷编号" prop="qualityDefectCode">
<el-input v-model="form.qualityDefectCode" placeholder="请输入质检项/质量缺陷编号" />
<el-input v-model="form.qualityDefectCode" placeholder="请输入质量缺陷编号" />
</el-form-item>
<el-form-item label="质量缺陷描述" prop="qualityDefectName">
<el-input v-model="form.qualityDefectName" placeholder="请输入质检项/质量缺陷描述" />
<el-input v-model="form.qualityDefectName" placeholder="请输入质量缺陷描述" />
</el-form-item>
<el-form-item label="父级编号" prop="parentId">
<el-select v-model="form.parentId" placeholder="请选择父">
<el-form-item label="质检项名称" prop="parentId">
<el-select v-model="form.parentId" placeholder="请选择质检项">
<el-option
v-for="item in Parents"
:key="item.qualityDefectCode"

@ -142,8 +142,15 @@
<el-input v-model="form.workUnitAddress" placeholder="请输入统计区域" />
</el-form-item>
<el-form-item label="产线/工位" prop="productLineCode">
<el-input v-model="form.productLineCode" placeholder="请输入产线/工位" />
</el-form-item>
<el-select v-model="form.productLineCode" placeholder="请输入产线/工位">
<el-option
v-for="item in ProductLineCode"
:key="item.productLineCode"
:label="item.productLineName"
:value="item.productLineCode">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="统计单元类型" prop="workUnitType">
<el-select v-model="form.workUnitType" placeholder="请选择统计单元类型">
<el-option
@ -176,6 +183,8 @@
import { listWorkUnit, getWorkUnit, delWorkUnit, addWorkUnit, updateWorkUnit } from "@/api/base/workUnit";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import { getQualityInspectionItemParent } from '@/api/base/qualityInspectionItem'
import { listProductLine } from '@/api/base/productLine'
export default {
name: "WorkUnit",
@ -185,6 +194,7 @@ export default {
},
data() {
return {
ProductLineCode:"",
//
loading: true,
//
@ -230,8 +240,16 @@ export default {
},
created() {
this.getList();
this.getproductLine();
},
methods: {
/** 查询产线/工位 */
getproductLine(){
listProductLine(this.queryParams).then(response =>{
console.log(response.rows)
this.ProductLineCode = response.rows;
})
},
/** 查询统计单元信息列表 */
getList() {
this.loading = true;

Loading…
Cancel
Save