通过权限来控制子用户的新增供应商、客户、会员、结算账户等功能
This commit is contained in:
parent
80f9ec4633
commit
c585ebdf37
@ -39,7 +39,13 @@ export const BillModalMixin = {
|
||||
billStatus: '0',
|
||||
minWidth: 1100,
|
||||
isCanCheck: true,
|
||||
isTenant: false,
|
||||
quickBtn: {
|
||||
vendor: false,
|
||||
customer: false,
|
||||
member: false,
|
||||
account: false,
|
||||
depot: false
|
||||
},
|
||||
billPrintFlag: false,
|
||||
/* 是否显示打印按钮 */
|
||||
isShowPrintBtn: true,
|
||||
@ -68,8 +74,6 @@ export const BillModalMixin = {
|
||||
};
|
||||
},
|
||||
created () {
|
||||
let userInfo = Vue.ls.get(USER_INFO)
|
||||
this.isTenant = userInfo.id === userInfo.tenantId? true:false
|
||||
let realScreenWidth = window.screen.width
|
||||
this.width = realScreenWidth<1500?'1200px':'1550px'
|
||||
this.minWidth = realScreenWidth<1500?1150:1500
|
||||
@ -1020,6 +1024,21 @@ export const BillModalMixin = {
|
||||
this.billPrintFlag = res.data.platformValue==='1'?true:false
|
||||
}
|
||||
})
|
||||
},
|
||||
//加载快捷按钮:供应商、客户、会员、结算账户、仓库
|
||||
initQuickBtn() {
|
||||
let btnStrList = Vue.ls.get('winBtnStrList') //按钮功能列表 JSON字符串
|
||||
if (btnStrList) {
|
||||
for (let i = 0; i < btnStrList.length; i++) {
|
||||
if (btnStrList[i].btnStr) {
|
||||
this.quickBtn.vendor = btnStrList[i].url === '/system/vendor'?btnStrList[i].btnStr.indexOf(1)>-1:this.quickBtn.vendor
|
||||
this.quickBtn.customer = btnStrList[i].url === '/system/customer'?btnStrList[i].btnStr.indexOf(1)>-1:this.quickBtn.customer
|
||||
this.quickBtn.member = btnStrList[i].url === '/system/member'?btnStrList[i].btnStr.indexOf(1)>-1:this.quickBtn.member
|
||||
this.quickBtn.account = btnStrList[i].url === '/system/account'?btnStrList[i].btnStr.indexOf(1)>-1:this.quickBtn.account
|
||||
this.quickBtn.depot = btnStrList[i].url === '/system/depot'?btnStrList[i].btnStr.indexOf(1)>-1:this.quickBtn.depot
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -64,8 +64,8 @@
|
||||
<a-icon type="down" @click="handleBatchSetDepot" />
|
||||
</template>
|
||||
<template #depotAdd>
|
||||
<a-divider v-if="isTenant" style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
<a-divider v-if="quickBtn.depot" style="margin: 4px 0;" />
|
||||
<div v-if="quickBtn.depot" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
</template>
|
||||
</j-editable-table>
|
||||
<a-row class="form-row" :gutter="24">
|
||||
@ -222,6 +222,7 @@
|
||||
this.initSystemConfig()
|
||||
this.initDepot()
|
||||
this.initPlatform()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -63,8 +63,8 @@
|
||||
<a-icon type="down" @click="handleBatchSetDepot" />
|
||||
</template>
|
||||
<template #depotAdd>
|
||||
<a-divider v-if="isTenant" style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
<a-divider v-if="quickBtn.depot" style="margin: 4px 0;" />
|
||||
<div v-if="quickBtn.depot" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
</template>
|
||||
</j-editable-table>
|
||||
<a-row class="form-row" :gutter="24">
|
||||
@ -220,6 +220,7 @@
|
||||
this.initSystemConfig()
|
||||
this.initDepot()
|
||||
this.initPlatform()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -63,8 +63,8 @@
|
||||
<a-icon type="down" @click="handleBatchSetDepot" />
|
||||
</template>
|
||||
<template #depotAdd>
|
||||
<a-divider v-if="isTenant" style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
<a-divider v-if="quickBtn.depot" style="margin: 4px 0;" />
|
||||
<div v-if="quickBtn.depot" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
</template>
|
||||
</j-editable-table>
|
||||
<a-row class="form-row" :gutter="24">
|
||||
@ -219,6 +219,7 @@
|
||||
this.initSystemConfig()
|
||||
this.initDepot()
|
||||
this.initPlatform()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.vendor" 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">
|
||||
@ -86,8 +86,8 @@
|
||||
<a-icon type="down" @click="handleBatchSetDepot" />
|
||||
</template>
|
||||
<template #depotAdd>
|
||||
<a-divider v-if="isTenant" style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
<a-divider v-if="quickBtn.depot" style="margin: 4px 0;" />
|
||||
<div v-if="quickBtn.depot" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
</template>
|
||||
</j-editable-table>
|
||||
<a-row class="form-row" :gutter="24">
|
||||
@ -274,6 +274,7 @@
|
||||
this.initSupplier(0)
|
||||
this.initDepot()
|
||||
this.initPlatform()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.customer" style="padding: 4px 8px; cursor: pointer;"
|
||||
@mousedown="e => e.preventDefault()" @click="addCustomer"><a-icon type="plus" /> 新增客户</div>
|
||||
</div>
|
||||
<a-select-option v-for="(item,index) in cusList" :key="index" :value="item.id">
|
||||
@ -86,8 +86,8 @@
|
||||
<a-icon type="down" @click="handleBatchSetDepot" />
|
||||
</template>
|
||||
<template #depotAdd>
|
||||
<a-divider v-if="isTenant" style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
<a-divider v-if="quickBtn.depot" style="margin: 4px 0;" />
|
||||
<div v-if="quickBtn.depot" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
</template>
|
||||
</j-editable-table>
|
||||
<a-row class="form-row" :gutter="24">
|
||||
@ -274,6 +274,7 @@
|
||||
this.initCustomer(0)
|
||||
this.initDepot()
|
||||
this.initPlatform()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -241,6 +241,7 @@
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initPlatform()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
/** 整理成formData */
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.vendor" 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">
|
||||
@ -83,8 +83,8 @@
|
||||
<a-icon type="down" @click="handleBatchSetDepot" />
|
||||
</template>
|
||||
<template #depotAdd>
|
||||
<a-divider v-if="isTenant" style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
<a-divider v-if="quickBtn.depot" style="margin: 4px 0;" />
|
||||
<div v-if="quickBtn.depot" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
</template>
|
||||
</j-editable-table>
|
||||
<a-row class="form-row" :gutter="24">
|
||||
@ -124,7 +124,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.account" 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">
|
||||
@ -346,6 +346,7 @@
|
||||
this.initDepot()
|
||||
this.initAccount(0)
|
||||
this.initPlatform()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.vendor" 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">
|
||||
@ -98,8 +98,8 @@
|
||||
<a-icon type="down" @click="handleBatchSetDepot" />
|
||||
</template>
|
||||
<template #depotAdd>
|
||||
<a-divider v-if="isTenant" style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
<a-divider v-if="quickBtn.depot" style="margin: 4px 0;" />
|
||||
<div v-if="quickBtn.depot" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
</template>
|
||||
</j-editable-table>
|
||||
<a-row class="form-row" :gutter="24">
|
||||
@ -144,7 +144,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.account" 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">
|
||||
@ -395,6 +395,7 @@
|
||||
this.initDepot()
|
||||
this.initAccount(0)
|
||||
this.initPlatform()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.vendor" 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">
|
||||
@ -139,7 +139,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.account" 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">
|
||||
@ -353,6 +353,7 @@
|
||||
this.initSupplier(0)
|
||||
this.initAccount(0)
|
||||
this.initPlatform()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
/** 整理成formData */
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.member" style="padding: 4px 8px; cursor: pointer;"
|
||||
@mousedown="e => e.preventDefault()" @click="addMember"><a-icon type="plus" /> 新增会员</div>
|
||||
</div>
|
||||
<a-select-option v-for="(item,index) in retailList" :key="index" :value="item.id">
|
||||
@ -85,8 +85,8 @@
|
||||
<a-icon type="down" @click="handleBatchSetDepot" />
|
||||
</template>
|
||||
<template #depotAdd>
|
||||
<a-divider v-if="isTenant" style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
<a-divider v-if="quickBtn.depot" style="margin: 4px 0;" />
|
||||
<div v-if="quickBtn.depot" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
</template>
|
||||
</j-editable-table>
|
||||
<a-row class="form-row" :gutter="24">
|
||||
@ -133,7 +133,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.account" 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">
|
||||
@ -328,6 +328,7 @@
|
||||
this.initDepot()
|
||||
this.initAccount(0)
|
||||
this.initPlatform()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.member" style="padding: 4px 8px; cursor: pointer;"
|
||||
@mousedown="e => e.preventDefault()" @click="addMember"><a-icon type="plus" /> 新增会员</div>
|
||||
</div>
|
||||
<a-select-option v-for="(item,index) in retailList" :key="index" :value="item.id">
|
||||
@ -95,8 +95,8 @@
|
||||
<a-icon type="down" @click="handleBatchSetDepot" />
|
||||
</template>
|
||||
<template #depotAdd>
|
||||
<a-divider v-if="isTenant" style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
<a-divider v-if="quickBtn.depot" style="margin: 4px 0;" />
|
||||
<div v-if="quickBtn.depot" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
</template>
|
||||
</j-editable-table>
|
||||
<a-row class="form-row" :gutter="24">
|
||||
@ -148,7 +148,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.account" 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">
|
||||
@ -338,6 +338,7 @@
|
||||
this.initDepot()
|
||||
this.initAccount(0)
|
||||
this.initPlatform()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.customer" style="padding: 4px 8px; cursor: pointer;"
|
||||
@mousedown="e => e.preventDefault()" @click="addCustomer"><a-icon type="plus" /> 新增客户</div>
|
||||
</div>
|
||||
<a-select-option v-for="(item,index) in cusList" :key="index" :value="item.id">
|
||||
@ -83,8 +83,8 @@
|
||||
<a-icon type="down" @click="handleBatchSetDepot" />
|
||||
</template>
|
||||
<template #depotAdd>
|
||||
<a-divider v-if="isTenant" style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
<a-divider v-if="quickBtn.depot" style="margin: 4px 0;" />
|
||||
<div v-if="quickBtn.depot" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
</template>
|
||||
</j-editable-table>
|
||||
<a-row class="form-row" :gutter="24">
|
||||
@ -124,7 +124,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.account" 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">
|
||||
@ -354,6 +354,7 @@
|
||||
this.initDepot()
|
||||
this.initAccount(0)
|
||||
this.initPlatform()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.customer" style="padding: 4px 8px; cursor: pointer;"
|
||||
@mousedown="e => e.preventDefault()" @click="addCustomer"><a-icon type="plus" /> 新增客户</div>
|
||||
</div>
|
||||
<a-select-option v-for="(item,index) in cusList" :key="index" :value="item.id">
|
||||
@ -132,7 +132,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.account" 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">
|
||||
@ -329,6 +329,7 @@
|
||||
this.initSalesman()
|
||||
this.initAccount(0)
|
||||
this.initPlatform()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.customer" style="padding: 4px 8px; cursor: pointer;"
|
||||
@mousedown="e => e.preventDefault()" @click="addCustomer"><a-icon type="plus" /> 新增客户</div>
|
||||
</div>
|
||||
<a-select-option v-for="(item,index) in cusList" :key="index" :value="item.id">
|
||||
@ -99,8 +99,8 @@
|
||||
<a-icon type="down" @click="handleBatchSetDepot" />
|
||||
</template>
|
||||
<template #depotAdd>
|
||||
<a-divider v-if="isTenant" style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
<a-divider v-if="quickBtn.depot" style="margin: 4px 0;" />
|
||||
<div v-if="quickBtn.depot" style="padding: 4px 8px; cursor: pointer;" @click="addDepot"><a-icon type="plus" /> 新增仓库</div>
|
||||
</template>
|
||||
</j-editable-table>
|
||||
<a-row class="form-row" :gutter="24">
|
||||
@ -145,7 +145,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.account" 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">
|
||||
@ -413,6 +413,7 @@
|
||||
this.initDepot()
|
||||
this.initAccount(0)
|
||||
this.initPlatform()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -17,7 +17,9 @@ export const FinancialModalMixin = {
|
||||
accountList: [],
|
||||
billStatus: '0',
|
||||
isCanCheck: true,
|
||||
isTenant: false,
|
||||
quickBtn: {
|
||||
person: false
|
||||
},
|
||||
/* 原始审核是否开启 */
|
||||
checkFlag: true,
|
||||
spans: {
|
||||
@ -36,8 +38,6 @@ export const FinancialModalMixin = {
|
||||
};
|
||||
},
|
||||
created () {
|
||||
let userInfo = Vue.ls.get(USER_INFO)
|
||||
this.isTenant = userInfo.id === userInfo.tenantId? true:false
|
||||
let realScreenWidth = window.screen.width
|
||||
this.width = realScreenWidth<1500?'1200px':'1550px'
|
||||
this.minWidth = realScreenWidth<1500?1150:1500
|
||||
@ -327,5 +327,19 @@ export const FinancialModalMixin = {
|
||||
this.$message.warning('请先保存单据后再提交流程!');
|
||||
}
|
||||
},
|
||||
//加载快捷按钮:供应商、客户、结算账户、经手人
|
||||
initQuickBtn() {
|
||||
let btnStrList = Vue.ls.get('winBtnStrList') //按钮功能列表 JSON字符串
|
||||
if (btnStrList) {
|
||||
for (let i = 0; i < btnStrList.length; i++) {
|
||||
if (btnStrList[i].btnStr) {
|
||||
this.quickBtn.vendor = btnStrList[i].url === '/system/vendor'?btnStrList[i].btnStr.indexOf(1)>-1:this.quickBtn.vendor
|
||||
this.quickBtn.customer = btnStrList[i].url === '/system/customer'?btnStrList[i].btnStr.indexOf(1)>-1:this.quickBtn.customer
|
||||
this.quickBtn.account = btnStrList[i].url === '/system/account'?btnStrList[i].btnStr.indexOf(1)>-1:this.quickBtn.account
|
||||
this.quickBtn.person = btnStrList[i].url === '/system/person'?btnStrList[i].btnStr.indexOf(1)>-1:this.quickBtn.person
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -46,7 +46,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.person" style="padding: 4px 8px; cursor: pointer;"
|
||||
@mousedown="e => e.preventDefault()" @click="addPerson"><a-icon type="plus" /> 新增经手人</div>
|
||||
</div>
|
||||
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
||||
@ -207,6 +207,7 @@
|
||||
this.initRetail()
|
||||
this.initPerson()
|
||||
this.initDetailAccount()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.person" style="padding: 4px 8px; cursor: pointer;"
|
||||
@mousedown="e => e.preventDefault()" @click="addPerson"><a-icon type="plus" /> 新增经手人</div>
|
||||
</div>
|
||||
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
||||
@ -75,7 +75,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.account" 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">
|
||||
@ -218,6 +218,7 @@
|
||||
this.initPerson()
|
||||
this.initAccount()
|
||||
this.initDetailAccount()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.person" style="padding: 4px 8px; cursor: pointer;"
|
||||
@mousedown="e => e.preventDefault()" @click="addPerson"><a-icon type="plus" /> 新增经手人</div>
|
||||
</div>
|
||||
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
||||
@ -83,7 +83,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.account" 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">
|
||||
@ -232,6 +232,7 @@
|
||||
this.initPerson()
|
||||
this.initInOutItem('in')
|
||||
this.initAccount()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.person" style="padding: 4px 8px; cursor: pointer;"
|
||||
@mousedown="e => e.preventDefault()" @click="addPerson"><a-icon type="plus" /> 新增经手人</div>
|
||||
</div>
|
||||
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
||||
@ -83,7 +83,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.account" 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">
|
||||
@ -232,6 +232,7 @@
|
||||
this.initPerson()
|
||||
this.initInOutItem('out')
|
||||
this.initAccount()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.customer" style="padding: 4px 8px; cursor: pointer;"
|
||||
@mousedown="e => e.preventDefault()" @click="addCustomer"><a-icon type="plus" /> 新增客户</div>
|
||||
</div>
|
||||
<a-select-option v-for="(item,index) in cusList" :key="index" :value="item.id">
|
||||
@ -52,7 +52,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.person" style="padding: 4px 8px; cursor: pointer;"
|
||||
@mousedown="e => e.preventDefault()" @click="addPerson"><a-icon type="plus" /> 新增经手人</div>
|
||||
</div>
|
||||
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
||||
@ -104,7 +104,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.account" 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">
|
||||
@ -256,6 +256,7 @@
|
||||
this.initCustomer()
|
||||
this.initPerson()
|
||||
this.initAccount()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.vendor" 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">
|
||||
@ -52,7 +52,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.person" style="padding: 4px 8px; cursor: pointer;"
|
||||
@mousedown="e => e.preventDefault()" @click="addPerson"><a-icon type="plus" /> 新增经手人</div>
|
||||
</div>
|
||||
<a-select-option v-for="(item,index) in personList" :key="index" :value="item.id">
|
||||
@ -104,7 +104,7 @@
|
||||
<div slot="dropdownRender" slot-scope="menu">
|
||||
<v-nodes :vnodes="menu" />
|
||||
<a-divider style="margin: 4px 0;" />
|
||||
<div v-if="isTenant" style="padding: 4px 8px; cursor: pointer;"
|
||||
<div v-if="quickBtn.account" 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">
|
||||
@ -259,6 +259,7 @@
|
||||
this.initSupplier()
|
||||
this.initPerson()
|
||||
this.initAccount()
|
||||
this.initQuickBtn()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
classifyIntoFormData(allValues) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user