|
@@ -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
|