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
a3a1d64c
Commit
a3a1d64c
authored
May 18, 2021
by
季圣华
Browse files
权限控制
parent
ba4819f3
Changes
52
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/system/modules/DepotModal.vue
View file @
a3a1d64c
...
@@ -9,6 +9,11 @@
...
@@ -9,6 +9,11 @@
cancelText=
"关闭"
cancelText=
"关闭"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 98%;overflow-y: hidden"
>
style=
"top:5%;height: 98%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
key=
"back"
v-if=
"isReadOnly"
@
click=
"handleCancel"
>
关闭
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"仓库名称"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"仓库名称"
>
...
@@ -51,6 +56,7 @@
...
@@ -51,6 +56,7 @@
visible
:
false
,
visible
:
false
,
model
:
{},
model
:
{},
userList
:
[],
userList
:
[],
isReadOnly
:
false
,
labelCol
:
{
labelCol
:
{
xs
:
{
span
:
24
},
xs
:
{
span
:
24
},
sm
:
{
span
:
5
},
sm
:
{
span
:
5
},
...
...
jshERP-web/src/views/system/modules/FunctionModal.vue
View file @
a3a1d64c
...
@@ -9,6 +9,11 @@
...
@@ -9,6 +9,11 @@
cancelText=
"关闭"
cancelText=
"关闭"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:10%;height: 100%;overflow-y: hidden"
>
style=
"top:10%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
key=
"back"
v-if=
"isReadOnly"
@
click=
"handleCancel"
>
关闭
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"编号"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"编号"
>
...
@@ -54,6 +59,7 @@
...
@@ -54,6 +59,7 @@
visible
:
false
,
visible
:
false
,
model
:
{},
model
:
{},
enabledSwitch
:
true
,
//是否启用
enabledSwitch
:
true
,
//是否启用
isReadOnly
:
false
,
jselectMultiple
:
{
jselectMultiple
:
{
options
:
[
options
:
[
{
text
:
'
编辑
'
,
value
:
'
1
'
},
{
text
:
'
编辑
'
,
value
:
'
1
'
},
...
...
jshERP-web/src/views/system/modules/InOutItemModal.vue
View file @
a3a1d64c
...
@@ -9,6 +9,11 @@
...
@@ -9,6 +9,11 @@
cancelText=
"关闭"
cancelText=
"关闭"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:25%;height: 60%;overflow-y: hidden"
>
style=
"top:25%;height: 60%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
key=
"back"
v-if=
"isReadOnly"
@
click=
"handleCancel"
>
关闭
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"名称"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"名称"
>
...
@@ -37,6 +42,7 @@
...
@@ -37,6 +42,7 @@
title
:
"
操作
"
,
title
:
"
操作
"
,
visible
:
false
,
visible
:
false
,
model
:
{},
model
:
{},
isReadOnly
:
false
,
labelCol
:
{
labelCol
:
{
xs
:
{
span
:
24
},
xs
:
{
span
:
24
},
sm
:
{
span
:
5
},
sm
:
{
span
:
5
},
...
...
jshERP-web/src/views/system/modules/MemberModal.vue
View file @
a3a1d64c
...
@@ -9,6 +9,11 @@
...
@@ -9,6 +9,11 @@
cancelText=
"关闭"
cancelText=
"关闭"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
key=
"back"
v-if=
"isReadOnly"
@
click=
"handleCancel"
>
关闭
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-col
:span=
"24/2"
>
<a-col
:span=
"24/2"
>
...
@@ -105,6 +110,7 @@
...
@@ -105,6 +110,7 @@
title
:
"
操作
"
,
title
:
"
操作
"
,
visible
:
false
,
visible
:
false
,
model
:
{},
model
:
{},
isReadOnly
:
false
,
labelCol
:
{
labelCol
:
{
xs
:
{
span
:
24
},
xs
:
{
span
:
24
},
sm
:
{
span
:
6
},
sm
:
{
span
:
6
},
...
...
jshERP-web/src/views/system/modules/PersonModal.vue
View file @
a3a1d64c
...
@@ -9,6 +9,11 @@
...
@@ -9,6 +9,11 @@
cancelText=
"关闭"
cancelText=
"关闭"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:25%;height: 50%;overflow-y: hidden"
>
style=
"top:25%;height: 50%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
key=
"back"
v-if=
"isReadOnly"
@
click=
"handleCancel"
>
关闭
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"姓名"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"姓名"
>
...
@@ -35,6 +40,7 @@
...
@@ -35,6 +40,7 @@
title
:
"
操作
"
,
title
:
"
操作
"
,
visible
:
false
,
visible
:
false
,
model
:
{},
model
:
{},
isReadOnly
:
false
,
labelCol
:
{
labelCol
:
{
xs
:
{
span
:
24
},
xs
:
{
span
:
24
},
sm
:
{
span
:
5
},
sm
:
{
span
:
5
},
...
...
jshERP-web/src/views/system/modules/RoleModal.vue
View file @
a3a1d64c
...
@@ -9,6 +9,11 @@
...
@@ -9,6 +9,11 @@
cancelText=
"关闭"
cancelText=
"关闭"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 85%;overflow-y: hidden"
>
style=
"top:5%;height: 85%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
key=
"back"
v-if=
"isReadOnly"
@
click=
"handleCancel"
>
关闭
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"角色名称"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"角色名称"
>
...
@@ -38,6 +43,7 @@
...
@@ -38,6 +43,7 @@
title
:
"
操作
"
,
title
:
"
操作
"
,
visible
:
false
,
visible
:
false
,
model
:
{},
model
:
{},
isReadOnly
:
false
,
labelCol
:
{
labelCol
:
{
xs
:
{
span
:
24
},
xs
:
{
span
:
24
},
sm
:
{
span
:
5
},
sm
:
{
span
:
5
},
...
...
jshERP-web/src/views/system/modules/SerialNumberModal.vue
View file @
a3a1d64c
...
@@ -9,6 +9,11 @@
...
@@ -9,6 +9,11 @@
cancelText=
"关闭"
cancelText=
"关闭"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:15%;height: 70%;overflow-y: hidden"
>
style=
"top:15%;height: 70%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
key=
"back"
v-if=
"isReadOnly"
@
click=
"handleCancel"
>
关闭
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"序列号"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"序列号"
>
...
@@ -43,6 +48,7 @@
...
@@ -43,6 +48,7 @@
title
:
"
操作
"
,
title
:
"
操作
"
,
visible
:
false
,
visible
:
false
,
model
:
{},
model
:
{},
isReadOnly
:
false
,
labelCol
:
{
labelCol
:
{
xs
:
{
span
:
24
},
xs
:
{
span
:
24
},
sm
:
{
span
:
5
},
sm
:
{
span
:
5
},
...
...
jshERP-web/src/views/system/modules/SystemConfigModal.vue
View file @
a3a1d64c
...
@@ -9,6 +9,11 @@
...
@@ -9,6 +9,11 @@
cancelText=
"关闭"
cancelText=
"关闭"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
key=
"back"
v-if=
"isReadOnly"
@
click=
"handleCancel"
>
关闭
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"公司名称"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"公司名称"
>
...
@@ -58,6 +63,7 @@
...
@@ -58,6 +63,7 @@
depotFlagSwitch
:
false
,
//仓库权限状态
depotFlagSwitch
:
false
,
//仓库权限状态
customerFlagSwitch
:
false
,
//客户权限状态
customerFlagSwitch
:
false
,
//客户权限状态
minusStockFlagSwitch
:
false
,
//负库存状态
minusStockFlagSwitch
:
false
,
//负库存状态
isReadOnly
:
false
,
labelCol
:
{
labelCol
:
{
xs
:
{
span
:
24
},
xs
:
{
span
:
24
},
sm
:
{
span
:
5
},
sm
:
{
span
:
5
},
...
...
jshERP-web/src/views/system/modules/UnitModal.vue
View file @
a3a1d64c
...
@@ -9,6 +9,11 @@
...
@@ -9,6 +9,11 @@
cancelText=
"关闭"
cancelText=
"关闭"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:20%;height: 70%;overflow-y: hidden"
>
style=
"top:20%;height: 70%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
key=
"back"
v-if=
"isReadOnly"
@
click=
"handleCancel"
>
关闭
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"基本单位"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"基本单位"
>
...
@@ -38,6 +43,7 @@
...
@@ -38,6 +43,7 @@
title
:
"
操作
"
,
title
:
"
操作
"
,
visible
:
false
,
visible
:
false
,
model
:
{},
model
:
{},
isReadOnly
:
false
,
labelCol
:
{
labelCol
:
{
xs
:
{
span
:
24
},
xs
:
{
span
:
24
},
sm
:
{
span
:
5
},
sm
:
{
span
:
5
},
...
...
jshERP-web/src/views/system/modules/UserModal.vue
View file @
a3a1d64c
...
@@ -9,6 +9,11 @@
...
@@ -9,6 +9,11 @@
cancelText=
"关闭"
cancelText=
"关闭"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
key=
"back"
v-if=
"isReadOnly"
@
click=
"handleCancel"
>
关闭
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-form-item
label=
"登录名称"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
>
<a-form-item
label=
"登录名称"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
>
...
@@ -75,6 +80,7 @@
...
@@ -75,6 +80,7 @@
orgaTree
:
[],
orgaTree
:
[],
roleList
:
[],
roleList
:
[],
userId
:
""
,
//保存用户id
userId
:
""
,
//保存用户id
isReadOnly
:
false
,
disableSubmit
:
false
,
disableSubmit
:
false
,
dateFormat
:
"
YYYY-MM-DD
"
,
dateFormat
:
"
YYYY-MM-DD
"
,
validatorRules
:{
validatorRules
:{
...
...
jshERP-web/src/views/system/modules/VendorModal.vue
View file @
a3a1d64c
...
@@ -9,6 +9,11 @@
...
@@ -9,6 +9,11 @@
cancelText=
"关闭"
cancelText=
"关闭"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
key=
"back"
v-if=
"isReadOnly"
@
click=
"handleCancel"
>
关闭
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-col
:span=
"24/2"
>
<a-col
:span=
"24/2"
>
...
@@ -105,6 +110,7 @@
...
@@ -105,6 +110,7 @@
title
:
"
操作
"
,
title
:
"
操作
"
,
visible
:
false
,
visible
:
false
,
model
:
{},
model
:
{},
isReadOnly
:
false
,
labelCol
:
{
labelCol
:
{
xs
:
{
span
:
24
},
xs
:
{
span
:
24
},
sm
:
{
span
:
6
},
sm
:
{
span
:
6
},
...
...
jshERP-web/src/views/user/Login.vue
View file @
a3a1d64c
...
@@ -225,6 +225,7 @@
...
@@ -225,6 +225,7 @@
if
(
res
.
code
==
200
){
if
(
res
.
code
==
200
){
let
err
=
{};
let
err
=
{};
if
(
res
.
data
.
msgTip
==
'
user can login
'
){
if
(
res
.
data
.
msgTip
==
'
user can login
'
){
Vue
.
ls
.
set
(
'
winBtnStrList
'
,
res
.
data
.
userBtn
,
7
*
24
*
60
*
60
*
1000
);
this
.
loginSuccess
()
this
.
loginSuccess
()
}
else
if
(
res
.
data
.
msgTip
==
'
user is not exist
'
){
}
else
if
(
res
.
data
.
msgTip
==
'
user is not exist
'
){
err
.
message
=
'
用户不存在
'
;
err
.
message
=
'
用户不存在
'
;
...
...
Prev
1
2
3
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