限制只有租户才能在单据中显示账户/仓库等的快捷录入

This commit is contained in:
季圣华
2021-11-10 00:40:45 +08:00
parent 9dc9785111
commit 2a192c6f24
21 changed files with 48 additions and 40 deletions

View File

@@ -22,7 +22,7 @@
<div slot="dropdownRender" slot-scope="menu">
<v-nodes :vnodes="menu" />
<a-divider style="margin: 4px 0;" />
<div style="padding: 4px 8px; cursor: pointer;"
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
@mousedown="e => e.preventDefault()" @click="addSupplier"><a-icon type="plus" /> 新增供应商</div>
</div>
<a-select-option v-for="(item,index) in supList" :key="index" :value="item.id">
@@ -61,7 +61,7 @@
@added="onAdded"
@deleted="onDeleted">
<template #buttonAfter>
<a-row :gutter="24" style="float:left;width:140px;">
<a-row v-if="isTenant" :gutter="24" style="float:left;width:140px;">
<a-col :md="24" :sm="24">
<a-button icon="plus" @click="addDepot">新增仓库</a-button>
</a-col>
@@ -116,7 +116,7 @@
<div slot="dropdownRender" slot-scope="menu">
<v-nodes :vnodes="menu" />
<a-divider style="margin: 4px 0;" />
<div style="padding: 4px 8px; cursor: pointer;"
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
@mousedown="e => e.preventDefault()" @click="addAccount"><a-icon type="plus" /> 新增结算账户</div>
</div>
<a-select-option v-for="(item,index) in accountList" :key="index" :value="item.id">