Jelajahi Sumber

退货申请单权限

zhouhao 2 tahun lalu
induk
melakukan
8284a0d1b9

+ 5 - 0
src/views/supply/apply/apply_list.vue

@@ -384,6 +384,7 @@
                     $checkBtnRole('apply', $route.meta.roles) &&
                    ( !scope.row.automaticStatus &&
                     scope.row.examineStatus === 'SAVE') ||
+                     $checkBtnRole('apply', $route.meta.roles) &&
                     ( scope.row.automaticStatus &&
                       scope.row.examineStatus === 'SAVE' &&
                       scope.row.type == 2)
@@ -399,6 +400,7 @@
                     $checkBtnRole('apply', $route.meta.roles) &&
                     (!scope.row.automaticStatus &&
                     scope.row.examineStatus === 'WAIT') ||
+                     $checkBtnRole('apply', $route.meta.roles) &&
                     (scope.row.automaticStatus &&
                       scope.row.examineStatus === 'WAIT' &&
                       scope.row.type == 2)
@@ -414,6 +416,7 @@
                     $checkBtnRole('examine', $route.meta.roles) &&
                     (!scope.row.automaticStatus &&
                     scope.row.examineStatus === 'OK') ||
+                     $checkBtnRole('apply', $route.meta.roles) &&
                     (scope.row.automaticStatus &&
                       scope.row.examineStatus === 'OK' &&
                       scope.row.type == 2)
@@ -442,6 +445,7 @@
                       (!scope.row.automaticStatus &&
                       (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL') &&
                       scope.row.type === 2) )||
+                       $checkBtnRole('apply', $route.meta.roles) &&
                     (scope.row.automaticStatus &&
                       scope.row.examineStatus === 'SAVE' &&
                       scope.row.type == 2)
@@ -456,6 +460,7 @@
                     $checkBtnRole('examine', $route.meta.roles) &&
                     (!scope.row.automaticStatus &&
                     scope.row.examineStatus === 'WAIT') ||
+                     $checkBtnRole('apply', $route.meta.roles) &&
                     (scope.row.automaticStatus &&
                       scope.row.examineStatus === 'WAIT' &&
                       scope.row.type == 2)

+ 5 - 0
src/views/supply/apply/engin_list.vue

@@ -409,6 +409,7 @@
                                       $checkBtnRole('apply', $route.meta.roles) &&
                     (!scope.row.automaticStatus &&
                     scope.row.examineStatus === 'SAVE' )||
+                     $checkBtnRole('apply', $route.meta.roles) &&
                     (scope.row.automaticStatus &&
                       scope.row.examineStatus === 'SAVE' &&
                       scope.row.type == 2)
@@ -424,6 +425,7 @@
                                       $checkBtnRole('apply', $route.meta.roles) &&
                     (!scope.row.automaticStatus &&
                     scope.row.examineStatus === 'WAIT') ||
+                     $checkBtnRole('apply', $route.meta.roles) &&
                       (scope.row.automaticStatus &&
                       scope.row.examineStatus === 'OK' &&
                       scope.row.type == 2)
@@ -439,6 +441,7 @@
                     $checkBtnRole('examine', $route.meta.roles) &&
                     (!scope.row.automaticStatus &&
                     scope.row.examineStatus === 'OK') ||
+                     $checkBtnRole('apply', $route.meta.roles) &&
                       (scope.row.automaticStatus &&
                       scope.row.examineStatus === 'OK' &&
                       scope.row.type == 2)
@@ -467,6 +470,7 @@
                        (!scope.row.automaticStatus &&
                       (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL') &&
                       scope.row.type === 2) ||
+                       $checkBtnRole('apply', $route.meta.roles) &&
                       (scope.row.automaticStatus &&
                       scope.row.examineStatus === 'SAVE' &&
                       scope.row.type == 2)
@@ -481,6 +485,7 @@
                   $checkBtnRole('examine', $route.meta.roles) &&
                     (!scope.row.automaticStatus &&
                     scope.row.examineStatus === 'WAIT') ||
+                     $checkBtnRole('apply', $route.meta.roles) &&
                      (scope.row.automaticStatus &&
                       scope.row.examineStatus === 'WAIT' &&
                       scope.row.type == 2)