Pārlūkot izejas kodu

前后端: 合同导入入口权限,仅限企管法规处

baichengfei 4 gadi atpakaļ
vecāks
revīzija
5547e95caa

+ 2 - 2
src/dashoo.cn/frontend_web/src/api/oilcontract/permission.js

@@ -6,9 +6,9 @@ export default {
       params: params
     })
   },
-  getDelAuditForProf (myAxios) {
+  getAuditPermForProf (myAxios) {
     return myAxios({
-      url: '/permission/delete-perm',
+      url: '/permission/is-prof-perm',
       method: 'GET'
     })
   },

+ 3 - 3
src/dashoo.cn/frontend_web/src/pages/oilcontract/contract-basis/index.vue

@@ -503,7 +503,7 @@ export default {
     // 查询列表
     this.initDatas()
     // this.getDictOptions()
-    this.getDelAuditForProf()
+    this.getAuditPermForProf()
     this.statusFun()
     // console.log(8888888,localStorage.getItem('userRoleids'))
     // if(localStorage.getItem('userRoleids')!=''&&localStorage.getItem('userRoleids')!=undefined){
@@ -706,8 +706,8 @@ export default {
       }
     },
     // 已审批完成 企管法规处有删除权限
-    getDelAuditForProf () {
-      permissionApi.getDelAuditForProf(this.$axios).then(res => {
+    getAuditPermForProf () {
+      permissionApi.getAuditPermForProf(this.$axios).then(res => {
         this.delAuditProf = res.data
       })
     },

+ 3 - 3
src/dashoo.cn/frontend_web/src/pages/oilcontract/contract-goods/index.vue

@@ -498,7 +498,7 @@ export default {
     Object.assign(this.searchFormReset, this.searchForm)
     // 查询列表
     this.initDatas()
-    this.getDelAuditForProf()
+    this.getAuditPermForProf()
     // this.getDictOptions()
     this.statusFun()
   },
@@ -693,8 +693,8 @@ export default {
       }
     },
     // 已审批完成 企管法规处有删除权限
-    getDelAuditForProf () {
-      permissionApi.getDelAuditForProf(this.$axios).then(res => {
+    getAuditPermForProf () {
+      permissionApi.getAuditPermForProf(this.$axios).then(res => {
         this.delAuditProf = res.data
       })
     },

+ 9 - 4
src/dashoo.cn/frontend_web/src/pages/oilcontract/contract-import/index.vue

@@ -15,7 +15,7 @@
           <router-link :to="'/oilcontract/contract-import/add/operation'">
             <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;">添加</el-button>
           </router-link>
-          <el-button type="primary" size="mini" @click="importExcel" style="margin-left:10px; margin-top: -4px;">导入</el-button>
+          <el-button v-if="importAuditProf" type="primary" size="mini" @click="importExcel" style="margin-left:10px; margin-top: -4px;">导入</el-button>
           <el-button type="primary" size="mini" @click="importExcelSelect" style="margin-left:10px; margin-top: -4px;">待确认列表</el-button>
           <!-- <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;">分发给二级单位评价</el-button> -->
         </span>
@@ -592,6 +592,7 @@
     name: 'oilcontract',
     data () {
       return {
+        importAuditProf: false, // 合同导入入口权限,仅限企管法规处
         tableLoading: false, // 表格loading
         dialogLoading: false,
         uploadTrueClickLoading: false,
@@ -684,8 +685,8 @@
           ModifiedOn: '',
           ModifiedUserId: '',
           ModifiedBy: '',
-          ClassName:'',
-          ImportSupplierName:''
+          ClassName: '',
+          ImportSupplierName: ''
         },
         formData: {
           Id: '',
@@ -1444,8 +1445,12 @@
               })
             })
         }
+      },
+      getAuditPermForProf () {
+        permissionApi.getAuditPermForProf(this.$axios).then(res => {
+          this.importAuditProf = res.data
+        })
       }
-
     }
   }
 </script>

+ 3 - 3
src/dashoo.cn/frontend_web/src/pages/oilcontract/contract-service/index.vue

@@ -500,7 +500,7 @@ export default {
     Object.assign(this.searchFormReset, this.searchForm)
     // 查询列表
     this.initDatas()
-    this.getDelAuditForProf()
+    this.getAuditPermForProf()
     // this.getDictOptions()
     this.statusFun()
   },
@@ -700,8 +700,8 @@ export default {
       }
     },
     // 已审批完成 企管法规处有删除权限
-    getDelAuditForProf () {
-      permissionApi.getDelAuditForProf(this.$axios).then(res => {
+    getAuditPermForProf () {
+      permissionApi.getAuditPermForProf(this.$axios).then(res => {
         this.delAuditProf = res.data
       })
     },