|
|
@@ -13,6 +13,7 @@
|
|
|
full-height="calc(100vh - 116px)"
|
|
|
tool-class="ele-toolbar-form"
|
|
|
cache-key="systemDictDataTable"
|
|
|
+ v-if="pageShow"
|
|
|
>
|
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar>
|
|
|
@@ -240,6 +241,9 @@
|
|
|
removeMaterial,
|
|
|
importCategorySparePart
|
|
|
} from '@/api/material/list.js';
|
|
|
+
|
|
|
+ import { getBomGetById } from '@/api/material/BOM.js';
|
|
|
+
|
|
|
import MaterialModal from './MaterialModal.vue';
|
|
|
import ParamEdit from '@/views/technology/productParam/components/user-edit.vue';
|
|
|
import mouldDialog from './mouldDialog';
|
|
|
@@ -281,6 +285,8 @@
|
|
|
|
|
|
bomShow: false,
|
|
|
|
|
|
+ pageShow: false,
|
|
|
+
|
|
|
// 表格列配置
|
|
|
columns: [
|
|
|
{
|
|
|
@@ -403,6 +409,8 @@
|
|
|
isProduct: row.isProduct == 1
|
|
|
};
|
|
|
|
|
|
+ console.log(rowData);
|
|
|
+
|
|
|
this.$refs.bomDrawer.open(rowData);
|
|
|
},
|
|
|
|
|
|
@@ -571,21 +579,29 @@
|
|
|
|
|
|
$route: {
|
|
|
handler(route) {
|
|
|
- console.log(66, route);
|
|
|
+ this.pageShow = false;
|
|
|
if (route.query && route.query.isWt) {
|
|
|
- let rowData = {
|
|
|
- categoryId: '1871454287584870401',
|
|
|
- categoryName: 'T8丝杠螺母',
|
|
|
- code: 'W3000056',
|
|
|
- rootPathIdParent: '9',
|
|
|
- isProduct: true,
|
|
|
- versions: '1'
|
|
|
+
|
|
|
+ getBomGetById(route.query.businessId).then((res) => {
|
|
|
+ let rowData = {
|
|
|
+ categoryId: res.data.categoryId,
|
|
|
+ categoryName: res.data.name,
|
|
|
+ code: res.data.categoryCode,
|
|
|
+ rootPathIdParent: res.data.rootCategoryLevelId,
|
|
|
+ isProduct: res.data.rootCategoryLevelId == 9 ? true : false,
|
|
|
+ versions: res.data.versions,
|
|
|
+ bomType: res.data.bomType,
|
|
|
+ isWt: true
|
|
|
};
|
|
|
-
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.bomDrawer.open(rowData);
|
|
|
+ this.pageShow = true;
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ } else {
|
|
|
+ this.pageShow = true;
|
|
|
}
|
|
|
},
|
|
|
immediate: true
|