|
@@ -110,13 +110,13 @@
|
|
|
<ExportButton
|
|
|
class="ml"
|
|
|
:exUrl="'reserve/download'"
|
|
|
- v-if="$checkBtnRole('add', $route.meta.roles)"
|
|
|
+ v-if="!isDealer "
|
|
|
exText="下载模板"
|
|
|
:exParams="{}"
|
|
|
/>
|
|
|
<ImportButton
|
|
|
:imUrl="'reserve/importData'"
|
|
|
- v-if="$checkBtnRole('add', $route.meta.roles)"
|
|
|
+ v-if=" !isDealer "
|
|
|
@importSuccess="getList"
|
|
|
/>
|
|
|
</div>
|
|
@@ -405,7 +405,10 @@ export default {
|
|
|
status: this.screenForm.status,
|
|
|
correspondId: this.screenForm.warehouse
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ isDealer() {
|
|
|
+ return JSON.parse(localStorage.getItem("supply_user")).isCustomer;
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
beforeCreate() {
|