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