|
|
@@ -7,12 +7,12 @@
|
|
|
@submit.native.prevent
|
|
|
>
|
|
|
<el-row>
|
|
|
- <el-col v-bind="styleResponsive ? { lg: 5, md: 12 } : { span: 4 }">
|
|
|
+ <el-col v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }">
|
|
|
<el-form-item label="名称:">
|
|
|
<el-input clearable v-model.trim="where.name" placeholder="请输入" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col v-bind="styleResponsive ? { lg: 5, md: 12 } : { span: 4 }">
|
|
|
+ <el-col v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }">
|
|
|
<el-form-item label="所属工厂:">
|
|
|
<el-select
|
|
|
style="width: 100%"
|
|
|
@@ -32,7 +32,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col v-bind="styleResponsive ? { lg: 5, md: 12 } : { span: 4 }">
|
|
|
+ <el-col v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }">
|
|
|
<el-form-item label="所属厂房:">
|
|
|
<el-select
|
|
|
style="width: 100%"
|
|
|
@@ -51,7 +51,27 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col v-bind="styleResponsive ? { lg: 4, md: 12 } : { span: 4 }">
|
|
|
+ <el-col v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }">
|
|
|
+ <el-form-item label="工作中心:">
|
|
|
+ <el-select
|
|
|
+ style="width: 100%"
|
|
|
+ clearable
|
|
|
+ v-model="where.workCenterId"
|
|
|
+ filterable
|
|
|
+ placeholder="请选择工作中心"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in workCenterList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col v-bind="styleResponsive ? { lg: 3, md: 6 } : { span: 3 }">
|
|
|
<div class="ele-form-actions">
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
@@ -70,25 +90,29 @@
|
|
|
|
|
|
<script>
|
|
|
import { getFactoryarea } from '@/api/factoryModel';
|
|
|
+ import work from '@/api/technology/work';
|
|
|
export default {
|
|
|
data() {
|
|
|
// 默认表单数据
|
|
|
const defaultWhere = {
|
|
|
name: '',
|
|
|
factoryId: '',
|
|
|
- workshopPlanId: ''
|
|
|
+ workshopPlanId: '',
|
|
|
+ workCenterId: ''
|
|
|
};
|
|
|
return {
|
|
|
// 表单数据
|
|
|
where: { ...defaultWhere },
|
|
|
|
|
|
factoryList: [],
|
|
|
- workshopPlanList: []
|
|
|
+ workshopPlanList: [],
|
|
|
+ workCenterList: []
|
|
|
};
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
this.getFactoryList();
|
|
|
+ this.getListWorkCenter();
|
|
|
},
|
|
|
computed: {
|
|
|
// 是否开启响应式布局
|
|
|
@@ -121,6 +145,12 @@
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ async getListWorkCenter() {
|
|
|
+ await work.list({ pageNum: 1, size: -1 }).then((res) => {
|
|
|
+ this.workCenterList = res.list;
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
/* 搜索 */
|
|
|
search() {
|
|
|
this.$emit('search', this.where);
|