|
|
@@ -21,6 +21,25 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="工作中心" prop="name">
|
|
|
+ <el-select
|
|
|
+ v-model="searchData.workCenterId"
|
|
|
+ placeholder="请选择"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <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 :span="6">
|
|
|
<div class="ele-form-actions">
|
|
|
<el-button type="primary" @click="search">搜索</el-button>
|
|
|
@@ -50,6 +69,7 @@
|
|
|
|
|
|
<script>
|
|
|
import producetask from '@/api/technology/production';
|
|
|
+ import work from '@/api/technology/work';
|
|
|
export default {
|
|
|
props: {
|
|
|
disabledListId: {
|
|
|
@@ -63,7 +83,8 @@
|
|
|
selection: [],
|
|
|
searchData: {
|
|
|
code: '',
|
|
|
- name: ''
|
|
|
+ name: '',
|
|
|
+ workCenterId: ''
|
|
|
},
|
|
|
columns: [
|
|
|
{
|
|
|
@@ -104,12 +125,14 @@
|
|
|
showOverflowTooltip: true,
|
|
|
minWidth: 110
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ workCenterList: []
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
open() {
|
|
|
this.visible = true;
|
|
|
+ this.getListWorkCenter();
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.table.reload();
|
|
|
});
|
|
|
@@ -142,6 +165,12 @@
|
|
|
reset() {
|
|
|
this.searchData = {};
|
|
|
this.$refs.table.reload();
|
|
|
+ },
|
|
|
+
|
|
|
+ async getListWorkCenter() {
|
|
|
+ await work.list({ pageNum: 1, size: -1 }).then((res) => {
|
|
|
+ this.workCenterList = res.list;
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
};
|