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