Browse Source

2024-01-10 bom routing提交2

master
fengyuan_yang 2 years ago
parent
commit
b6f8c2d342
  1. 27
      src/views/modules/part/bomManagement.vue
  2. 22
      src/views/modules/part/routingManagement.vue

27
src/views/modules/part/bomManagement.vue

@ -62,10 +62,11 @@
fixed="right"
header-align="center"
align="center"
width="100"
width="120"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" @click="updateModal(scope.row)">编辑</a>
<a type="text" size="small" @click="checkOutToRouting(scope.row.partNo)">切换Routing</a>
</template>
</el-table-column>
</el-table>
@ -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}})
}
}
}
}

22
src/views/modules/part/routingManagement.vue

@ -62,10 +62,11 @@
fixed="right"
header-align="center"
align="center"
width="100"
width="120"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" @click="updateModal(scope.row)">编辑</a>
<a type="text" size="small" @click="checkOutToBom(scope.row.partNo)">切换Bom</a>
</template>
</el-table-column>
</el-table>
@ -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}})
}
}
}
}

Loading…
Cancel
Save