浏览代码

事业部增加出入库菜单, 只能查看数据

lxf 1 年之前
父节点
当前提交
ba1af62dc3

+ 3 - 3
src/views/shengde/warehouse/outbound/details.vue

@@ -57,8 +57,8 @@
     </el-form>
 
     <el-row :gutter="10" style="margin-bottom: 10px">
-      <el-col :span="1.5">
-        <el-button type="primary" size="mini" @click="handleAdd" v-db-click>出库登记</el-button>
+      <el-col :span="24">
+        <el-button type="primary" size="mini" @click="handleAdd" v-if="!userInfo.subsidiaryId" v-db-click>出库登记</el-button>
         <el-button type="primary" size="mini" @click="handleExcel" v-db-click>导出Excel</el-button>
       </el-col>
     </el-row>
@@ -160,7 +160,7 @@ export default {
       this.getList()
     })
   },
-  computed: mapGetters(['dictData']),
+  computed: mapGetters(['dictData', 'userInfo']),
   methods: {
     getList() {
       this.loading = true

+ 3 - 3
src/views/shengde/warehouse/outbound/single.vue

@@ -50,8 +50,8 @@
       </el-form-item>
     </el-form>
 
-    <el-row :gutter="10" style="margin-bottom: 10px">
-      <el-col :span="1.5">
+    <el-row :gutter="10" style="margin-bottom: 10px" v-if="!userInfo.subsidiaryId">
+      <el-col :span="24">
         <el-button type="primary" size="mini" @click="handleAdd" v-db-click>出库登记</el-button>
       </el-col>
     </el-row>
@@ -148,7 +148,7 @@ export default {
       this.getList()
     })
   },
-  computed: mapGetters(['dictData']),
+  computed: mapGetters(['dictData', 'userInfo']),
   methods: {
     getList() {
       this.loading = true

+ 4 - 4
src/views/shengde/warehouse/putInStorage/details.vue

@@ -60,9 +60,9 @@
     </el-form>
 
     <el-row :gutter="10" style="margin-bottom: 10px">
-      <el-col :span="5">
-        <el-button type="primary" size="mini" @click="handleAdd" v-db-click>入库登记</el-button>
-        <el-button type="primary" size="mini" @click="handleTransfer" v-db-click>调拨登记</el-button>
+      <el-col :span="24">
+        <el-button type="primary" size="mini" @click="handleAdd" v-if="!userInfo.subsidiaryId" v-db-click>入库登记</el-button>
+        <el-button type="primary" size="mini" @click="handleTransfer" v-if="!userInfo.subsidiaryId" v-db-click>调拨登记</el-button>
         <el-button type="primary" size="mini" @click="handleExcel" v-db-click>导出Excel</el-button>
       </el-col>
     </el-row>
@@ -172,7 +172,7 @@ export default {
       this.getList()
     })
   },
-  computed: mapGetters(['dictData']),
+  computed: mapGetters(['dictData', 'userInfo']),
   methods: {
     getList() {
       this.loading = true

+ 3 - 3
src/views/shengde/warehouse/putInStorage/single.vue

@@ -50,8 +50,8 @@
       </el-form-item>
     </el-form>
 
-    <el-row :gutter="10" style="margin-bottom: 10px">
-      <el-col :span="1.5">
+    <el-row :gutter="10" style="margin-bottom: 10px" v-if="!userInfo.subsidiaryId">
+      <el-col :span="24">
         <el-button type="primary" size="mini" @click="handleAdd" v-db-click>入库登记</el-button>
       </el-col>
     </el-row>
@@ -148,7 +148,7 @@ export default {
       this.getList()
     })
   },
-  computed: mapGetters(['dictData']),
+  computed: mapGetters(['dictData', 'userInfo']),
   methods: {
     getList() {
       this.loading = true