Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
2a192c6f
Commit
2a192c6f
authored
Nov 10, 2021
by
季圣华
Browse files
限制只有租户才能在单据中显示账户/仓库等的快捷录入
parent
9dc97851
Changes
21
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/mixins/BillModalMixin.js
View file @
2a192c6f
...
@@ -3,6 +3,7 @@ import {findBySelectSup,findBySelectCus,findBySelectRetail,getMaterialByBarCode,
...
@@ -3,6 +3,7 @@ import {findBySelectSup,findBySelectCus,findBySelectRetail,getMaterialByBarCode,
getPersonByNumType
,
getBatchNumberList
}
from
'
@/api/api
'
getPersonByNumType
,
getBatchNumberList
}
from
'
@/api/api
'
import
{
getAction
,
putAction
}
from
'
@/api/manage
'
import
{
getAction
,
putAction
}
from
'
@/api/manage
'
import
{
getMpListShort
,
getNowFormatDateTime
}
from
"
@/utils/util
"
import
{
getMpListShort
,
getNowFormatDateTime
}
from
"
@/utils/util
"
import
{
USER_INFO
}
from
"
@/store/mutation-types
"
import
Vue
from
'
vue
'
import
Vue
from
'
vue
'
export
const
BillModalMixin
=
{
export
const
BillModalMixin
=
{
...
@@ -24,6 +25,7 @@ export const BillModalMixin = {
...
@@ -24,6 +25,7 @@ export const BillModalMixin = {
billUnitPirce
:
''
,
billUnitPirce
:
''
,
scanBarCode
:
''
,
scanBarCode
:
''
,
scanStatus
:
true
,
scanStatus
:
true
,
isTenant
:
false
,
spans
:
{
spans
:
{
labelCol1
:
{
span
:
2
},
labelCol1
:
{
span
:
2
},
wrapperCol1
:
{
span
:
22
},
wrapperCol1
:
{
span
:
22
},
...
@@ -40,6 +42,8 @@ export const BillModalMixin = {
...
@@ -40,6 +42,8 @@ export const BillModalMixin = {
};
};
},
},
created
()
{
created
()
{
let
userInfo
=
Vue
.
ls
.
get
(
USER_INFO
)
this
.
isTenant
=
userInfo
.
id
===
userInfo
.
tenantId
?
true
:
false
},
},
computed
:
{
computed
:
{
readOnly
:
function
()
{
readOnly
:
function
()
{
...
...
jshERP-web/src/views/bill/modules/AllocationOutModal.vue
View file @
2a192c6f
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
@
added=
"onAdded"
@
added=
"onAdded"
@
deleted=
"onDeleted"
>
@
deleted=
"onDeleted"
>
<template
#buttonAfter
>
<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-col
:md=
"24"
:sm=
"24"
>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
</a-col>
</a-col>
...
...
jshERP-web/src/views/bill/modules/AssembleModal.vue
View file @
2a192c6f
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
@
added=
"onAdded"
@
added=
"onAdded"
@
deleted=
"onDeleted"
>
@
deleted=
"onDeleted"
>
<template
#buttonAfter
>
<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-col
:md=
"24"
:sm=
"24"
>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
</a-col>
</a-col>
...
...
jshERP-web/src/views/bill/modules/DisassembleModal.vue
View file @
2a192c6f
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
@
added=
"onAdded"
@
added=
"onAdded"
@
deleted=
"onDeleted"
>
@
deleted=
"onDeleted"
>
<template
#buttonAfter
>
<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-col
:md=
"24"
:sm=
"24"
>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
</a-col>
</a-col>
...
...
jshERP-web/src/views/bill/modules/OtherInModal.vue
View file @
2a192c6f
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addSupplier"
><a-icon
type=
"plus"
/>
新增供应商
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
@
added=
"onAdded"
@
added=
"onAdded"
@
deleted=
"onDeleted"
>
@
deleted=
"onDeleted"
>
<template
#buttonAfter
>
<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-col
:md=
"24"
:sm=
"24"
>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
</a-col>
</a-col>
...
...
jshERP-web/src/views/bill/modules/OtherOutModal.vue
View file @
2a192c6f
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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=
"addCustomer"
><a-icon
type=
"plus"
/>
新增客户
</div>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addCustomer"
><a-icon
type=
"plus"
/>
新增客户
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
@
added=
"onAdded"
@
added=
"onAdded"
@
deleted=
"onDeleted"
>
@
deleted=
"onDeleted"
>
<template
#buttonAfter
>
<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-col
:md=
"24"
:sm=
"24"
>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
</a-col>
</a-col>
...
...
jshERP-web/src/views/bill/modules/PurchaseBackModal.vue
View file @
2a192c6f
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addSupplier"
><a-icon
type=
"plus"
/>
新增供应商
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
@
added=
"onAdded"
@
added=
"onAdded"
@
deleted=
"onDeleted"
>
@
deleted=
"onDeleted"
>
<template
#buttonAfter
>
<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-col
:md=
"24"
:sm=
"24"
>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
</a-col>
</a-col>
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addAccount"
><a-icon
type=
"plus"
/>
新增结算账户
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
...
...
jshERP-web/src/views/bill/modules/PurchaseInModal.vue
View file @
2a192c6f
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addSupplier"
><a-icon
type=
"plus"
/>
新增供应商
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
@
added=
"onAdded"
@
added=
"onAdded"
@
deleted=
"onDeleted"
>
@
deleted=
"onDeleted"
>
<template
#buttonAfter
>
<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-col
:md=
"24"
:sm=
"24"
>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
</a-col>
</a-col>
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addAccount"
><a-icon
type=
"plus"
/>
新增结算账户
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
...
...
jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue
View file @
2a192c6f
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addSupplier"
><a-icon
type=
"plus"
/>
新增供应商
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in supList"
:key=
"index"
:value=
"item.id"
>
...
...
jshERP-web/src/views/bill/modules/RetailBackModal.vue
View file @
2a192c6f
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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=
"addMember"
><a-icon
type=
"plus"
/>
新增会员
</div>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addMember"
><a-icon
type=
"plus"
/>
新增会员
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in retailList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in retailList"
:key=
"index"
:value=
"item.id"
>
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
@
added=
"onAdded"
@
added=
"onAdded"
@
deleted=
"onDeleted"
>
@
deleted=
"onDeleted"
>
<template
#buttonAfter
>
<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-col
:md=
"24"
:sm=
"24"
>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
</a-col>
</a-col>
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addAccount"
><a-icon
type=
"plus"
/>
新增结算账户
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
...
...
jshERP-web/src/views/bill/modules/RetailOutModal.vue
View file @
2a192c6f
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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=
"addMember"
><a-icon
type=
"plus"
/>
新增会员
</div>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addMember"
><a-icon
type=
"plus"
/>
新增会员
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in retailList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in retailList"
:key=
"index"
:value=
"item.id"
>
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
@
added=
"onAdded"
@
added=
"onAdded"
@
deleted=
"onDeleted"
>
@
deleted=
"onDeleted"
>
<template
#buttonAfter
>
<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-col
:md=
"24"
:sm=
"24"
>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
</a-col>
</a-col>
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addAccount"
><a-icon
type=
"plus"
/>
新增结算账户
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
...
...
jshERP-web/src/views/bill/modules/SaleBackModal.vue
View file @
2a192c6f
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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=
"addCustomer"
><a-icon
type=
"plus"
/>
新增客户
</div>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addCustomer"
><a-icon
type=
"plus"
/>
新增客户
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
@
added=
"onAdded"
@
added=
"onAdded"
@
deleted=
"onDeleted"
>
@
deleted=
"onDeleted"
>
<template
#buttonAfter
>
<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-col
:md=
"24"
:sm=
"24"
>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
</a-col>
</a-col>
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addAccount"
><a-icon
type=
"plus"
/>
新增结算账户
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
...
...
jshERP-web/src/views/bill/modules/SaleOrderModal.vue
View file @
2a192c6f
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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=
"addCustomer"
><a-icon
type=
"plus"
/>
新增客户
</div>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addCustomer"
><a-icon
type=
"plus"
/>
新增客户
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
...
...
jshERP-web/src/views/bill/modules/SaleOutModal.vue
View file @
2a192c6f
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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=
"addCustomer"
><a-icon
type=
"plus"
/>
新增客户
</div>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addCustomer"
><a-icon
type=
"plus"
/>
新增客户
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
@
added=
"onAdded"
@
added=
"onAdded"
@
deleted=
"onDeleted"
>
@
deleted=
"onDeleted"
>
<template
#buttonAfter
>
<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-col
:md=
"24"
:sm=
"24"
>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
</a-col>
</a-col>
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addAccount"
><a-icon
type=
"plus"
/>
新增结算账户
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
...
...
jshERP-web/src/views/financial/mixins/FinancialModalMixin.js
View file @
2a192c6f
...
@@ -2,6 +2,7 @@ import { VALIDATE_NO_PASSED, validateFormAndTables } from '@/utils/JEditableTabl
...
@@ -2,6 +2,7 @@ import { VALIDATE_NO_PASSED, validateFormAndTables } from '@/utils/JEditableTabl
import
{
findBySelectSup
,
findBySelectCus
,
findBySelectRetail
,
findBySelectOrgan
,
findStockByDepotAndBarCode
,
getAccount
,
getPersonByType
,
findInOutItemByParam
}
from
'
@/api/api
'
import
{
findBySelectSup
,
findBySelectCus
,
findBySelectRetail
,
findBySelectOrgan
,
findStockByDepotAndBarCode
,
getAccount
,
getPersonByType
,
findInOutItemByParam
}
from
'
@/api/api
'
import
{
getAction
,
putAction
}
from
'
@/api/manage
'
import
{
getAction
,
putAction
}
from
'
@/api/manage
'
import
{
getMpListShort
,
getNowFormatDateTime
}
from
"
@/utils/util
"
import
{
getMpListShort
,
getNowFormatDateTime
}
from
"
@/utils/util
"
import
{
USER_INFO
}
from
"
@/store/mutation-types
"
import
Vue
from
'
vue
'
import
Vue
from
'
vue
'
export
const
FinancialModalMixin
=
{
export
const
FinancialModalMixin
=
{
...
@@ -14,6 +15,7 @@ export const FinancialModalMixin = {
...
@@ -14,6 +15,7 @@ export const FinancialModalMixin = {
organList
:
[],
organList
:
[],
personList
:
[],
personList
:
[],
accountList
:
[],
accountList
:
[],
isTenant
:
false
,
spans
:
{
spans
:
{
labelCol1
:
{
span
:
2
},
labelCol1
:
{
span
:
2
},
wrapperCol1
:
{
span
:
22
},
wrapperCol1
:
{
span
:
22
},
...
@@ -30,6 +32,8 @@ export const FinancialModalMixin = {
...
@@ -30,6 +32,8 @@ export const FinancialModalMixin = {
};
};
},
},
created
()
{
created
()
{
let
userInfo
=
Vue
.
ls
.
get
(
USER_INFO
)
this
.
isTenant
=
userInfo
.
id
===
userInfo
.
tenantId
?
true
:
false
},
},
computed
:
{
computed
:
{
readOnly
:
function
()
{
readOnly
:
function
()
{
...
...
jshERP-web/src/views/financial/modules/AdvanceInModal.vue
View file @
2a192c6f
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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=
"addPerson"
><a-icon
type=
"plus"
/>
新增经手人
</div>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addPerson"
><a-icon
type=
"plus"
/>
新增经手人
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in personList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in personList"
:key=
"index"
:value=
"item.id"
>
...
...
jshERP-web/src/views/financial/modules/GiroModal.vue
View file @
2a192c6f
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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=
"addPerson"
><a-icon
type=
"plus"
/>
新增经手人
</div>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addPerson"
><a-icon
type=
"plus"
/>
新增经手人
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in personList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in personList"
:key=
"index"
:value=
"item.id"
>
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addAccount"
><a-icon
type=
"plus"
/>
新增结算账户
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
...
...
jshERP-web/src/views/financial/modules/ItemInModal.vue
View file @
2a192c6f
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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=
"addPerson"
><a-icon
type=
"plus"
/>
新增经手人
</div>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addPerson"
><a-icon
type=
"plus"
/>
新增经手人
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in personList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in personList"
:key=
"index"
:value=
"item.id"
>
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addAccount"
><a-icon
type=
"plus"
/>
新增结算账户
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
...
...
jshERP-web/src/views/financial/modules/ItemOutModal.vue
View file @
2a192c6f
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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=
"addPerson"
><a-icon
type=
"plus"
/>
新增经手人
</div>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addPerson"
><a-icon
type=
"plus"
/>
新增经手人
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in personList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in personList"
:key=
"index"
:value=
"item.id"
>
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addAccount"
><a-icon
type=
"plus"
/>
新增结算账户
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
...
...
jshERP-web/src/views/financial/modules/MoneyInModal.vue
View file @
2a192c6f
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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=
"addCustomer"
><a-icon
type=
"plus"
/>
新增客户
</div>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addCustomer"
><a-icon
type=
"plus"
/>
新增客户
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in cusList"
:key=
"index"
:value=
"item.id"
>
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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=
"addPerson"
><a-icon
type=
"plus"
/>
新增经手人
</div>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addPerson"
><a-icon
type=
"plus"
/>
新增经手人
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in personList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in personList"
:key=
"index"
:value=
"item.id"
>
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<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>
@
mousedown=
"e => e.preventDefault()"
@
click=
"addAccount"
><a-icon
type=
"plus"
/>
新增结算账户
</div>
</div>
</div>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment