diff --git a/src/views/modules/part/bomManagement.vue b/src/views/modules/part/bomManagement.vue
index 59df5ff..1b36108 100644
--- a/src/views/modules/part/bomManagement.vue
+++ b/src/views/modules/part/bomManagement.vue
@@ -62,10 +62,11 @@
fixed="right"
header-align="center"
align="center"
- width="100"
+ width="120"
label="操作">
编辑
+ 切换Routing
@@ -1303,14 +1304,23 @@ export default {
operationModelFlag: false,
}
},
+
mounted () {
this.$nextTick(() => {
this.height = window.innerHeight - 180
})
},
+
created () {
this.getDataList()
},
+
+ activated() {
+ if (this.$route.params.partNo) {
+ this.searchData.partNo = this.$route.params.partNo
+ }
+ this.getDataList()
+ },
// js
methods: {
// ======== 分页相关方法 ========
@@ -2498,10 +2508,8 @@ export default {
})
return this.resultList
},
- startDownload () {
- },
- finishDownload () {
- },
+ startDownload () {},
+ finishDownload () {},
fields () {
let json = '{'
this.columnList.forEach((item, index) => {
@@ -2514,6 +2522,15 @@ export default {
json += '}'
let s = eval('(' + json + ')')
return s
+ },
+
+ // 切换到routing
+ checkOutToRouting (partNo) {
+ if (this.$router.resolve('part-routingManagement').resolved.name === '404') {
+ this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',})
+ } else {
+ this.$router.push({name:"part-routingManagement",params:{partNo: partNo}})
+ }
}
}
}
diff --git a/src/views/modules/part/routingManagement.vue b/src/views/modules/part/routingManagement.vue
index c7e69e3..5ce07f8 100644
--- a/src/views/modules/part/routingManagement.vue
+++ b/src/views/modules/part/routingManagement.vue
@@ -62,10 +62,11 @@
fixed="right"
header-align="center"
align="center"
- width="100"
+ width="120"
label="操作">
编辑
+ 切换Bom
@@ -1239,14 +1240,24 @@ export default {
componentDisableFlag: false
}
},
+
mounted () {
this.$nextTick(() => {
this.height = window.innerHeight - 180
})
},
+
created () {
this.getDataList()
},
+
+ activated() {
+ if (this.$route.params.partNo) {
+ this.searchData.partNo = this.$route.params.partNo
+ }
+ this.getDataList()
+ },
+
// js
methods: {
// ======== 分页相关方法 ========
@@ -2396,6 +2407,15 @@ export default {
json += '}'
let s = eval('(' + json + ')')
return s
+ },
+
+ // 切换到Bom
+ checkOutToBom (partNo) {
+ if (this.$router.resolve('part-bomManagement').resolved.name === '404') {
+ this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',})
+ } else {
+ this.$router.push({name:"part-bomManagement",params:{partNo: partNo}})
+ }
}
}
}