Browse Source

Merge branch 'master' into 测试

lxf 1 year ago
parent
commit
3604e66b26

+ 15 - 8
src/views/production/warehouse/check/index.vue

@@ -10,10 +10,12 @@
           :searchConfig="searchConfig"
           highlight-current-row
           :action-list="[
-            {
-              text: '盘点登记',
-              action: () => clickModal(),
-            },
+            judgeUser()
+              ? {
+                  text: '盘点登记',
+                  action: () => clickModal(),
+                }
+              : {},
             {
               text: '导出Excel',
               action: () => clickDerive(),
@@ -37,10 +39,12 @@
           :searchConfig="searchConfigTwo"
           highlight-current-row
           :action-list="[
-            {
-              text: '盘点登记',
-              action: () => clickModal(),
-            },
+            judgeUser()
+              ? {
+                  text: '盘点登记',
+                  action: () => clickModal(),
+                }
+              : {},
           ]"
           @get-list="getListTwo"
           @clickReset="clickResetTwo">
@@ -456,6 +460,9 @@ const clickCode = (row) => {
   sourceListTwo.value.pagination.code = row.code;
   activeName.value = "second";
 };
+const judgeUser = () => {
+  return proxy.useUserStore().user.userId === "1";
+};
 </script>
 
 <style lang="scss" scoped>

+ 6 - 4
src/views/production/warehouse/outbound/index.vue

@@ -17,10 +17,12 @@
                     action: () => clickModal(),
                   }
                 : {},
-              {
-                text: '包材出库',
-                action: () => clickPackingMaterials(),
-              },
+              status
+                ? {
+                    text: '包材出库',
+                    action: () => clickPackingMaterials(),
+                  }
+                : {},
             ]"
             @get-list="getList"
             @clickReset="clickReset">

+ 9 - 4
src/views/production/warehouse/purchase-stock-pending/index.vue

@@ -8,10 +8,12 @@
       :searchConfig="searchConfig"
       highlight-current-row
       :action-list="[
-        {
-          text: '新增采购入库清单',
-          action: () => clickModal(),
-        },
+        judgeUser()
+          ? {
+              text: '新增采购入库清单',
+              action: () => clickModal(),
+            }
+          : {},
       ]"
       @get-list="getList"
       @clickReset="clickReset">
@@ -169,6 +171,9 @@ const clickCancel = (status) => {
     getList();
   }
 };
+const judgeUser = () => {
+  return proxy.useUserStore().user.userId === "1";
+};
 </script>
 
 <style lang="scss" scoped></style>