|
|
@@ -12,6 +12,9 @@
|
|
|
></el-tab-pane>
|
|
|
<el-tab-pane label="工艺路线">
|
|
|
<ele-pro-table :columns="pathColumn" :datasource="pathData">
|
|
|
+ <template v-slot:bomCategoryType="{ row }">
|
|
|
+ {{ row.bomCategoryType == 2 ? 'MBOM' : row.bomCategoryType == 1 ? 'PBOM' : row.bomCategoryType == 3 ? 'ABom' : '' }}
|
|
|
+ </template>
|
|
|
</ele-pro-table
|
|
|
></el-tab-pane>
|
|
|
<!-- <el-tab-pane label="质量标准"></el-tab-pane> -->
|
|
|
@@ -104,7 +107,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import { getBomRoutingList } from '@/api/material/list.js';
|
|
|
+ import { getBomRoutingList, getBomAssociationList } from '@/api/material/list.js';
|
|
|
import { saveSupplier, deleteSupplie } from '@/api/material/BOM.js';
|
|
|
import { getRelatesInformationList } from '@/api/material/product.js';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
@@ -176,7 +179,7 @@
|
|
|
},
|
|
|
{
|
|
|
label: '版本号',
|
|
|
- prop: 'version'
|
|
|
+ prop: 'versions'
|
|
|
},
|
|
|
{
|
|
|
label: '基本数量',
|
|
|
@@ -188,6 +191,23 @@
|
|
|
}
|
|
|
],
|
|
|
pathColumn: [
|
|
|
+ {
|
|
|
+ label: 'BOM编码',
|
|
|
+ prop: 'bomCategoryCode'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: 'BOM名称',
|
|
|
+ prop: 'bomCategoryName'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ slot: 'bomCategoryType',
|
|
|
+ label: 'BOM类型',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: 'BOM版本',
|
|
|
+ prop: 'bomCategoryVersion'
|
|
|
+ },
|
|
|
{
|
|
|
label: '工艺路线编码',
|
|
|
prop: 'code'
|
|
|
@@ -356,7 +376,8 @@
|
|
|
id: {
|
|
|
handler(val) {
|
|
|
if (val) {
|
|
|
- this.getData();
|
|
|
+ this.getBomData();
|
|
|
+ this.getRoutingData();
|
|
|
this.contactQueryByCategoryIdsAPI(2);
|
|
|
this.contactQueryByCategoryIdsAPI(3);
|
|
|
}
|
|
|
@@ -377,11 +398,20 @@
|
|
|
this.requestDict('重量单位');
|
|
|
},
|
|
|
methods: {
|
|
|
- async getData() {
|
|
|
- const data = await getBomRoutingList(this.id);
|
|
|
-
|
|
|
- this.bomData = data?.bomList || [];
|
|
|
- this.pathData = data?.routingList || [];
|
|
|
+ //BOM列表
|
|
|
+ async getBomData() {
|
|
|
+ const data = await getBomAssociationList({
|
|
|
+ categoryId: this.id,
|
|
|
+ versions: '',
|
|
|
+ bomType: 1,
|
|
|
+ isTemp: 0
|
|
|
+ });
|
|
|
+ this.bomData = data || [];
|
|
|
+ },
|
|
|
+ //工艺路线
|
|
|
+ async getRoutingData(){
|
|
|
+ const data =await getBomRoutingList(this.id);
|
|
|
+ this.pathData = data || [];
|
|
|
},
|
|
|
// 关联设备
|
|
|
async getEqData() {
|