ソースを参照

Merge branch 'master' into 测试

lxf 1 年間 前
コミット
12c1dbfce7
1 ファイル変更15 行追加8 行削除
  1. 15 8
      src/views/production/warehouse/putInStorage/index.vue

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

@@ -11,10 +11,12 @@
             :searchConfig="searchConfig"
             highlight-current-row
             :action-list="[
-              // {
-              //   text: '入库登记',
-              //   action: () => clickModal(),
-              // },
+              judgeUser()
+                ? {
+                    text: '入库登记',
+                    action: () => clickModal(),
+                  }
+                : {},
             ]"
             @get-list="getList"
             @clickReset="clickReset">
@@ -34,10 +36,12 @@
             :searchConfig="searchConfigTwo"
             highlight-current-row
             :action-list="[
-              // {
-              //   text: '入库登记',
-              //   action: () => clickModal(),
-              // },
+              judgeUser()
+                ? {
+                    text: '入库登记',
+                    action: () => clickModal(),
+                  }
+                : {},
               {
                 text: '导出Excel',
                 action: () => deriveExcel(),
@@ -437,6 +441,9 @@ const deriveExcel = () => {
     })
     .catch(() => {});
 };
+const judgeUser = () => {
+  return proxy.useUserStore().user.userId === "1";
+};
 </script>
 
 <style lang="scss" scoped>