From b6f8c2d342b84b2357ba9d73d3bf88610bc84f3b Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Wed, 10 Jan 2024 14:21:29 +0800 Subject: [PATCH] =?UTF-8?q?2024-01-10=20bom=20routing=E6=8F=90=E4=BA=A42?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/part/bomManagement.vue | 27 ++++++++++++++++---- src/views/modules/part/routingManagement.vue | 22 +++++++++++++++- 2 files changed, 43 insertions(+), 6 deletions(-) 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="操作"> @@ -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="操作"> @@ -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}}) + } } } }