|
|
@@ -59,6 +59,30 @@
|
|
|
>导入</el-button
|
|
|
>
|
|
|
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ size="mini"
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ plain
|
|
|
+ @click="transformation('P')"
|
|
|
+ v-if="currentNodeData.bomType == 4"
|
|
|
+ >转换PBOM</el-button
|
|
|
+ >
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ size="mini"
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ plain
|
|
|
+ @click="transformation('E')"
|
|
|
+ v-if="currentNodeData.bomType == 1"
|
|
|
+ >转换EBOM</el-button
|
|
|
+ >
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
size="mini"
|
|
|
@@ -189,7 +213,8 @@
|
|
|
@tab-click="handleClick"
|
|
|
>
|
|
|
<el-tab-pane label="属性" name="属性">
|
|
|
- <attribute :attributeData="currentNodeData"></attribute>
|
|
|
+
|
|
|
+ <attribute v-if="activeName == '属性'" :attributeData="currentNodeData"></attribute>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-tab-pane
|
|
|
@@ -206,6 +231,34 @@
|
|
|
>
|
|
|
<detailedList :attributeData="currentNodeData" :treeId="treeId"></detailedList>
|
|
|
</el-tab-pane>
|
|
|
+
|
|
|
+ <el-tab-pane
|
|
|
+ label="工艺路线"
|
|
|
+ name="工艺路线"
|
|
|
+ v-if="
|
|
|
+ currentNodeData.bomType != 4
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <routing
|
|
|
+ v-if="activeName == '工艺路线'"
|
|
|
+ ref="routingRef"
|
|
|
+ :taskParam="currentNodeData"
|
|
|
+ ></routing>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane
|
|
|
+ label="工序配置"
|
|
|
+ name="工序配置"
|
|
|
+ v-if="
|
|
|
+ currentNodeData.bomType != 1
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <workmanship
|
|
|
+ v-if="activeName == '工序配置'"
|
|
|
+ ref="workmanshipRef"
|
|
|
+ :taskParam="currentNodeData"
|
|
|
+ ></workmanship>
|
|
|
+ </el-tab-pane>
|
|
|
+
|
|
|
</el-tabs>
|
|
|
</template>
|
|
|
|
|
|
@@ -267,6 +320,8 @@
|
|
|
getBomGetById,
|
|
|
convert,
|
|
|
convertABom,
|
|
|
+ convertEBOM,
|
|
|
+ convertEBomToPBOM,
|
|
|
deleteBomTreeList,
|
|
|
bomSubmit,
|
|
|
jsBomSubmit,
|
|
|
@@ -279,6 +334,8 @@
|
|
|
import detailedList from './components/detailedList.vue';
|
|
|
import importDialog from './qualityTesting/import-dialog.vue';
|
|
|
import LCdetail from './components/LCdetail.vue';
|
|
|
+ import routing from './components/routing.vue';
|
|
|
+ import workmanship from './components/workmanship.vue';
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -287,7 +344,9 @@
|
|
|
attribute,
|
|
|
detailedList,
|
|
|
importDialog,
|
|
|
- LCdetail
|
|
|
+ LCdetail,
|
|
|
+ routing,
|
|
|
+ workmanship
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -464,8 +523,8 @@
|
|
|
text: '转换中...',
|
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
|
});
|
|
|
- let ULR = tt == 'M' ? convert : tt == 'A' ? convertABom : '';
|
|
|
- ULR({ versions: this.versions, categoryId: this.categoryId }).then(
|
|
|
+ let ULR = tt == 'M' ? convert : tt == 'A' ? convertABom : tt == 'E' ? convertEBOM : tt == 'P' ? convertEBomToPBOM : '';
|
|
|
+ ULR({ versions: this.searchObj.versions, categoryId: this.searchObj.categoryId }).then(
|
|
|
(data) => {
|
|
|
if (data.code == '0') {
|
|
|
this.loadingInstance.close();
|