Jelajahi Sumber

feat: 修改列表权限

aXin-0810 2 tahun lalu
induk
melakukan
4bc7eed0a4

+ 0 - 6
src/components/template/template-page-1.vue

@@ -195,12 +195,6 @@ export default {
         },
         {
           columnAttributes: {
-            label: '万能id',
-            prop: 'objId'
-          }
-        },
-        {
-          columnAttributes: {
             label: '模块名称',
             prop: 'moduleName'
           }

+ 13 - 1
src/views/supply/apply/apply_list.vue

@@ -12,6 +12,7 @@
       :columnParsing="columnParsing"
       :optionsEvensGroup="optionsEvensGroup"
       :replaceOrNotMap="false"
+      :fieldBeansHook="fieldBeansHook"
     >
     </template-page>
     <ExamineDialog
@@ -236,6 +237,18 @@ export default {
     selectionChange(data) {
       this.multipleSelection = data
     },
+    fieldBeansHook(list) {
+      var listcp = [...list]
+      if (!~['100093', '600023', ''].indexOf(this.$store.state?.user?.userInfo?.customerId)) {
+        for (var i = 0; i < listcp.length; i++) {
+          if (~['是否同步到格匠采购入库单', '同步格匠失败原因'].indexOf(listcp[i].label)) {
+            listcp.splice(i, 1)
+            i--
+          }
+        }
+      }
+      return listcp
+    },
     operation() {
       return (h, { row, index, column }) => {
         return (
@@ -485,7 +498,6 @@ export default {
       this.isShowForm = false
       this.isShowReturnForm = false
       this.$refs.pageRef.refreshList()
-
     },
 
     handleDelete(id) {