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
9cf74048
You need to sign in or sign up before continuing.
Commit
9cf74048
authored
Oct 23, 2022
by
季圣华
Browse files
给角色页面增加价格屏蔽字段
parent
927a4fa1
Changes
2
Show whitespace changes
Inline
Side-by-side
jshERP-web/src/views/system/RoleList.vue
View file @
9cf74048
...
@@ -134,6 +134,9 @@
...
@@ -134,6 +134,9 @@
{
{
title
:
'
数据类型
'
,
align
:
"
left
"
,
dataIndex
:
'
type
'
,
width
:
100
title
:
'
数据类型
'
,
align
:
"
left
"
,
dataIndex
:
'
type
'
,
width
:
100
},
},
{
title
:
'
价格屏蔽
'
,
align
:
"
left
"
,
dataIndex
:
'
priceLimitStr
'
,
width
:
100
},
{
{
title
:
'
描述
'
,
align
:
"
left
"
,
dataIndex
:
'
description
'
,
width
:
150
title
:
'
描述
'
,
align
:
"
left
"
,
dataIndex
:
'
description
'
,
width
:
150
},
},
...
...
jshERP-web/src/views/system/modules/RoleModal.vue
View file @
9cf74048
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
@
cancel=
"handleCancel"
@
cancel=
"handleCancel"
cancelText=
"关闭"
cancelText=
"关闭"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:2
5
%;height:
5
0%;overflow-y: hidden"
>
style=
"top:2
0
%;height:
6
0%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<template
slot=
"footer"
>
<a-button
key=
"back"
v-if=
"isReadOnly"
@
click=
"handleCancel"
>
<a-button
key=
"back"
v-if=
"isReadOnly"
@
click=
"handleCancel"
>
关闭
关闭
...
@@ -20,13 +20,20 @@
...
@@ -20,13 +20,20 @@
<a-input
placeholder=
"请输入角色名称"
v-decorator.trim=
"[ 'name', validatorRules.name]"
/>
<a-input
placeholder=
"请输入角色名称"
v-decorator.trim=
"[ 'name', validatorRules.name]"
/>
</a-form-item>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"数据类型"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"数据类型"
>
<a-tooltip
title=
"1、全部数据-该角色对应的用户可以看到全部单据;2、本机构数据-该角色对应的用户可以看到自己所在机构的全部单据;
<a-select
placeholder=
"请选择数据类型"
v-decorator=
"[ 'type', validatorRules.type]"
style=
"width:94%"
>
3、个人数据-该角色对应的用户只可以看到自己的单据。单据是指采购入库、销售出库等"
>
<a-select
placeholder=
"请选择数据类型"
v-decorator=
"[ 'type', validatorRules.type]"
>
<a-select-option
value=
"全部数据"
>
全部数据
</a-select-option>
<a-select-option
value=
"全部数据"
>
全部数据
</a-select-option>
<a-select-option
value=
"本机构数据"
>
本机构数据
</a-select-option>
<a-select-option
value=
"本机构数据"
>
本机构数据
</a-select-option>
<a-select-option
value=
"个人数据"
>
个人数据
</a-select-option>
<a-select-option
value=
"个人数据"
>
个人数据
</a-select-option>
</a-select>
</a-select>
<a-tooltip
title=
"1、全部数据-该角色对应的用户可以看到全部单据;2、本机构数据-该角色对应的用户可以看到自己所在机构的全部单据;
3、个人数据-该角色对应的用户只可以看到自己的单据。单据是指采购入库、销售出库等"
>
<a-icon
type=
"question-circle"
style=
"width:6%; padding-left: 5px; font-size: 18px;"
/>
</a-tooltip>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"价格屏蔽"
>
<j-select-multiple
style=
"width:94%"
placeholder=
"请选择价格屏蔽"
v-model=
"priceLimitList.value"
:options=
"priceLimitList.options"
/>
<a-tooltip
title=
"价格屏蔽支持多选,主要用于控制首页界面和物料的价格屏蔽"
>
<a-icon
type=
"question-circle"
style=
"width:6%; padding-left: 5px; font-size: 18px;"
/>
</a-tooltip>
</a-tooltip>
</a-form-item>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"描述"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"描述"
>
...
@@ -41,10 +48,14 @@
...
@@ -41,10 +48,14 @@
</template>
</template>
<
script
>
<
script
>
import
pick
from
'
lodash.pick
'
import
pick
from
'
lodash.pick
'
import
JSelectMultiple
from
'
@/components/jeecg/JSelectMultiple
'
import
{
addRole
,
editRole
,
checkRole
}
from
'
@/api/api
'
import
{
addRole
,
editRole
,
checkRole
}
from
'
@/api/api
'
import
{
autoJumpNextInput
}
from
"
@/utils/util
"
import
{
autoJumpNextInput
}
from
"
@/utils/util
"
export
default
{
export
default
{
name
:
"
RoleModal
"
,
name
:
"
RoleModal
"
,
components
:
{
JSelectMultiple
},
data
()
{
data
()
{
return
{
return
{
title
:
"
操作
"
,
title
:
"
操作
"
,
...
@@ -59,6 +70,14 @@
...
@@ -59,6 +70,14 @@
xs
:
{
span
:
24
},
xs
:
{
span
:
24
},
sm
:
{
span
:
16
},
sm
:
{
span
:
16
},
},
},
priceLimitList
:
{
options
:
[
{
'
value
'
:
'
1
'
,
'
text
'
:
'
屏蔽采购价
'
},
{
'
value
'
:
'
2
'
,
'
text
'
:
'
屏蔽零售价
'
},
{
'
value
'
:
'
3
'
,
'
text
'
:
'
屏蔽销售价
'
}
],
value
:
''
},
confirmLoading
:
false
,
confirmLoading
:
false
,
form
:
this
.
$form
.
createForm
(
this
),
form
:
this
.
$form
.
createForm
(
this
),
validatorRules
:{
validatorRules
:{
...
@@ -91,6 +110,7 @@
...
@@ -91,6 +110,7 @@
edit
(
record
)
{
edit
(
record
)
{
this
.
form
.
resetFields
();
this
.
form
.
resetFields
();
this
.
model
=
Object
.
assign
({},
record
);
this
.
model
=
Object
.
assign
({},
record
);
this
.
priceLimitList
.
value
=
this
.
model
.
priceLimit
this
.
visible
=
true
;
this
.
visible
=
true
;
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
name
'
,
'
type
'
,
'
sort
'
,
'
description
'
))
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
name
'
,
'
type
'
,
'
sort
'
,
'
description
'
))
...
@@ -108,6 +128,7 @@
...
@@ -108,6 +128,7 @@
if
(
!
err
)
{
if
(
!
err
)
{
that
.
confirmLoading
=
true
;
that
.
confirmLoading
=
true
;
let
formData
=
Object
.
assign
(
this
.
model
,
values
);
let
formData
=
Object
.
assign
(
this
.
model
,
values
);
formData
.
priceLimit
=
this
.
priceLimitList
.
value
let
obj
;
let
obj
;
if
(
!
this
.
model
.
id
){
if
(
!
this
.
model
.
id
){
obj
=
addRole
(
formData
);
obj
=
addRole
(
formData
);
...
...
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