From 48fc5c4139aec46e7b31551092ab398d18f7972a Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期三, 16 四月 2025 15:22:33 +0800 Subject: [PATCH] 管理岗权限添加原始记录查看权限 --- src/views/business/materialOrder/index.vue | 67 +++++++++++++++++++++++---------- 1 files changed, 47 insertions(+), 20 deletions(-) diff --git a/src/views/business/materialOrder/index.vue b/src/views/business/materialOrder/index.vue index 7cb87e6..bf66e82 100644 --- a/src/views/business/materialOrder/index.vue +++ b/src/views/business/materialOrder/index.vue @@ -1108,31 +1108,58 @@ let inspectorList = [] inspectorList.push(this.nickName) this.InspectInfoDialog = false - this.$router.push({ - name: "Inspection", - query: { - sonLaboratory: '鍘熸潗鏂�', - state: 3, - typeSource: this.insInfo.typeSource, - orderId: this.insInfo.enterOrderId, - inspectorList: inspectorList, - }, - }) + console.log('this.checkPermi([\'business:inspectionView\'])---', this.checkPermi(['business:inspectionView'])) + if (this.checkPermi(['business:inspectionView'])) { + this.$router.push({ + name: "InspectionView", + query: { + sonLaboratory: '鍘熸潗鏂�', + state: 3, + typeSource: this.insInfo.typeSource, + orderId: this.insInfo.enterOrderId, + inspectorList: inspectorList, + }, + }) + } else { + this.$router.push({ + name: "Inspection", + query: { + sonLaboratory: '鍘熸潗鏂�', + state: 3, + typeSource: this.insInfo.typeSource, + orderId: this.insInfo.enterOrderId, + inspectorList: inspectorList, + }, + }) + } }, viewInsInfo1() { let inspectorList = [] inspectorList.push(this.nickName) this.InspectInfoDialog = false - this.$router.push({ - name: "Inspection", - query: { - sonLaboratory: '鍘熸潗鏂�', - state: 3, - typeSource: this.insInfo.typeSource, - orderId: this.insInfo.quarterOrderId, - inspectorList: inspectorList, - }, - }) + if (this.checkPermi(['business:inspectionView'])) { + this.$router.push({ + name: "InspectionView", + query: { + sonLaboratory: '鍘熸潗鏂�', + state: 3, + typeSource: this.insInfo.typeSource, + orderId: this.insInfo.quarterOrderId, + inspectorList: inspectorList, + }, + }) + } else { + this.$router.push({ + name: "Inspection", + query: { + sonLaboratory: '鍘熸潗鏂�', + state: 3, + typeSource: this.insInfo.typeSource, + orderId: this.insInfo.quarterOrderId, + inspectorList: inspectorList, + }, + }) + } }, goback() { this.state = 0 -- Gitblit v1.9.3