|
|
@@ -3,7 +3,7 @@
|
|
|
<BOMSearch
|
|
|
@search="reload"
|
|
|
:statusOpt="statusOpt"
|
|
|
- :categoryCode="where.categoryCode"
|
|
|
+
|
|
|
/>
|
|
|
<ele-pro-table
|
|
|
ref="table"
|
|
|
@@ -64,6 +64,24 @@
|
|
|
</el-input>
|
|
|
</template>
|
|
|
|
|
|
+ <template v-slot:supplierId="{ row }">
|
|
|
+ <el-select
|
|
|
+ v-model="row.supplierId"
|
|
|
+ size="mini"
|
|
|
+ clearable
|
|
|
+ class="ele-block"
|
|
|
+ filterable
|
|
|
+ placeholder="请选择供应商"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in gysList"
|
|
|
+ :key="item.id + index"
|
|
|
+ :value="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </template>
|
|
|
+
|
|
|
<template v-slot:factories="{ row }">
|
|
|
<el-input
|
|
|
v-model="row.factories"
|
|
|
@@ -86,7 +104,7 @@
|
|
|
|
|
|
<script>
|
|
|
import BOMSearch from './BOM-search.vue';
|
|
|
- import { getBomPageCategoryId } from '@/api/material/BOM';
|
|
|
+ import { getBomPageCategoryId, contactList } from '@/api/material/BOM';
|
|
|
import { getByCode } from '@/api/system/dictionary-data';
|
|
|
export default {
|
|
|
name: 'SystemDictionary',
|
|
|
@@ -162,8 +180,8 @@
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: 'supplierName',
|
|
|
- slot: 'supplierName',
|
|
|
+ prop: 'supplierId',
|
|
|
+ slot: 'supplierId',
|
|
|
label: '供应商',
|
|
|
width: 150
|
|
|
},
|
|
|
@@ -211,9 +229,8 @@
|
|
|
0: '已停用',
|
|
|
1: '已发布'
|
|
|
},
|
|
|
- loading: false,
|
|
|
- loadingInstance: null,
|
|
|
- where: {},
|
|
|
+
|
|
|
+ gysList: [],
|
|
|
|
|
|
attrObj: {}
|
|
|
};
|
|
|
@@ -221,6 +238,8 @@
|
|
|
|
|
|
created() {
|
|
|
this.getDictList('productionType');
|
|
|
+
|
|
|
+ this.getContactList();
|
|
|
},
|
|
|
mounted() {},
|
|
|
props: {
|
|
|
@@ -272,7 +291,21 @@
|
|
|
label: item[values[0]]
|
|
|
};
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
+ getContactList() {
|
|
|
+ let param = {
|
|
|
+ pageNum: 1,
|
|
|
+ type: 2,
|
|
|
+ size: -1,
|
|
|
+ status: 1
|
|
|
+ };
|
|
|
+ contactList(param).then((res) => {
|
|
|
+ this.gysList = res.list;
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
}
|
|
|
};
|
|
|
</script>
|