Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
eba381c7
Commit
eba381c7
authored
Feb 02, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
少价管理修改
parent
b3299ace
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
403 additions
and
318 deletions
+403
-318
roleManagement.vue
src/components/platformModule/roleManagement.vue
+212
-226
LessPriceManagement.vue
src/components/systemManagement/LessPriceManagement.vue
+191
-92
No files found.
src/components/platformModule/roleManagement.vue
View file @
eba381c7
This diff is collapsed.
Click to expand it.
src/components/systemManagement/LessPriceManagement.vue
View file @
eba381c7
<
style
>
<
style
>
.LM_mainDiv
{
.LM_mainDiv
{
overflow-y
:
auto
;
overflow-y
:
auto
;
}
}
.LP_table
{
.LP_table
{
margin-top
:
10px
;
margin-top
:
10px
;
background-color
:
#fff
;
background-color
:
#fff
;
border-top
:
1px
solid
#d1d1d1
;
border-top
:
1px
solid
#d1d1d1
;
border-left
:
1px
solid
#d1d1d1
;
border-left
:
1px
solid
#d1d1d1
;
border-right
:
1px
solid
#d1d1d1
;
border-right
:
1px
solid
#d1d1d1
;
font-size
:
14px
;
font-size
:
14px
;
}
}
.LP_table
tr
{
height
:
40px
;
.LP_table
tr
{
}
height
:
40px
;
.LP_table
tr
th
{
}
border-bottom
:
1px
solid
#d1d1d1
;
border-right
:
1px
solid
#d1d1d1
;
.LP_table
tr
th
{
border-bottom
:
1px
solid
#d1d1d1
;
border-right
:
1px
solid
#d1d1d1
;
position
:
relative
;
position
:
relative
;
background-color
:
#E6E6E6
;
background-color
:
#E6E6E6
;
}
}
th
[
class
=
first
]
:before
{
th
[
class
=
first
]
:before
{
content
:
""
;
content
:
""
;
position
:
absolute
;
position
:
absolute
;
width
:
1px
;
width
:
1px
;
height
:
252px
;
/*这里需要自己调整,根据td的宽度和高度*/
height
:
252px
;
top
:
0
;
/*这里需要自己调整,根据td的宽度和高度*/
left
:
0
;
top
:
0
;
left
:
0
;
background-color
:
#d1d1d1
;
background-color
:
#d1d1d1
;
display
:
block
;
display
:
block
;
transform
:
rotate
(
-81deg
);
/*这里需要自己调整,根据线的位置*/
transform
:
rotate
(
-81deg
);
/*这里需要自己调整,根据线的位置*/
transform-origin
:
top
;
transform-origin
:
top
;
}
}
.LP_table
td
{
.LP_table
td
{
border-bottom
:
1px
solid
#d1d1d1
;
border-bottom
:
1px
solid
#d1d1d1
;
border-right
:
1px
solid
#d1d1d1
;
border-right
:
1px
solid
#d1d1d1
;
text-align
:
center
;
text-align
:
center
;
padding
:
5px
;
padding
:
5px
;
min-width
:
250px
;
min-width
:
250px
;
}
}
.LP_table
.el-button--primary
{
padding
:
5px
;
.LP_table
.el-button--primary
{
}
padding
:
5px
;
.Lp_role
{
}
.Lp_role
{
position
:
absolute
;
position
:
absolute
;
top
:
15px
;
top
:
15px
;
left
:
30px
;
left
:
30px
;
}
}
.Lp_company
{
.Lp_company
{
position
:
absolute
;
position
:
absolute
;
right
:
30px
;
right
:
30px
;
top
:
5px
;
top
:
5px
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<div>
<div>
<div
class=
"LM_mainDiv"
>
<div
class=
"LM_mainDiv"
>
<table
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"LP_table"
>
<!--保存-->
<tr>
<th
class=
"first"
>
<table
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"LP_table"
>
<span
class=
"Lp_role"
>
角色
</span>
<tr>
<span
class=
"Lp_company"
>
公司
</span>
<th
class=
"first"
>
</th>
<span
class=
"Lp_role"
>
角色
</span>
<th>
成都
</th>
<span
class=
"Lp_company"
>
公司
</span>
<th>
成都
</th>
</th>
<th>
成都
</th>
<template
v-for=
"item in BranchList"
>
<th>
成都
</th>
<th>
<th>
成都
</th>
{{
item
.
BName
}}
<th>
操作
</th>
</th>
</tr>
</
template
>
<tr>
<th>
<td>
操作
<el-select
filterable
:placeholder=
"$t('pub.pleaseSel')"
class=
"w150"
>
</th>
<el-option
label=
"不限"
value=
"-1"
></el-option>
</tr>
</el-select>
<tr
v-for=
"(item,index) in PageData"
>
</td>
<td>
<td>
<el-select
:placeholder=
"$t('pub.pleaseSel')"
class=
"w150"
v-model=
"item.RoleId"
>
<el-input
class=
"w80"
placeholder=
"金額"
></el-input>
<el-option
label=
"不限"
:value=
"0"
></el-option>
<el-input
class=
"w80"
placeholder=
"百分比"
></el-input>
<el-option
v-for=
"item in RoleList"
:label=
"item.Name"
:value=
"item.Id"
:key=
"item.Id"
></el-option>
</td>
</el-select>
<td>
</td>
<el-input
class=
"w80"
placeholder=
"金額"
></el-input>
<
template
v-for=
"subItem in item.DetailExtList"
>
<el-input
class=
"w80"
placeholder=
"百分比"
></el-input>
<td>
</td>
<el-input
class=
"w80"
placeholder=
"金額"
v-model=
"subItem.LessMoney"
></el-input>
<td>
<el-input
class=
"w80"
placeholder=
"百分比"
v-model=
"subItem.LessPercent"
></el-input>
<el-input
class=
"w80"
placeholder=
"金額"
></el-input>
</td>
<el-input
class=
"w80"
placeholder=
"百分比"
></el-input>
</
template
>
</td>
<td>
<td>
<input
type=
'button'
class=
"normalBtn"
@
click=
"SaveLessPrice(item)"
value=
"保存"
></input>
<el-input
class=
"w80"
placeholder=
"金額"
></el-input>
<input
type=
'button'
class=
"normalBtn"
@
click=
"RemoveItem(item,index)"
value=
"删除"
></input>
<el-input
class=
"w80"
placeholder=
"百分比"
></el-input>
</td>
</td>
</tr>
<td>
<tfoot>
<el-input
class=
"w80"
placeholder=
"金額"
></el-input>
<tr>
<el-input
class=
"w80"
placeholder=
"百分比"
></el-input>
<td
:colspan=
"1+BranchList.length"
>
</td>
<input
type=
'button'
class=
"normalBtn"
@
click=
"AddItem()"
value=
"新增"
></input>
<td>
</td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"保存"
placement=
"top-start"
>
</tr>
<el-button
type=
"primary"
icon=
"iconfont icon-baocun"
circle
></el-button>
</tfoot>
</el-tooltip>
</table>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
getCompanyList
:
[],
//分公司列表
};
BranchList
:
[],
},
qMsg
:
{
methods
:
{
PageIndex
:
1
,
PageSize
:
100
},
},
mounted
()
{
PageData
:
[],
//角色列表
RoleList
:
[]
};
},
methods
:
{
AddItem
()
{
var
obj
=
{
Id
:
0
,
RoleId
:
0
,
DetailExtList
:
[],
};
this
.
BranchList
.
forEach
(
item
=>
{
obj
.
DetailExtList
.
push
({
Id
:
0
,
ManagerId
:
0
,
RB_Branch_Id
:
item
.
Id
,
LessMoney
:
0
,
LessPercent
:
0
});
});
if
(
this
.
PageData
==
null
)
{
this
.
PageData
=
[];
}
this
.
PageData
.
push
(
obj
);
},
//保存少价管理
SaveLessPrice
(
item
)
{
this
.
apipost
(
"lessprice_post_Set"
,
item
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
"操作成功!"
);
this
.
GetList
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
},
//获取列表
GetList
()
{
this
.
apipost
(
"lessprice_get_GetPageList"
,
this
.
qMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
BranchList
=
res
.
data
.
data
.
branchList
;
this
.
PageData
=
res
.
data
.
data
.
DataList
.
pageData
;
}
},
err
=>
{}
);
},
//获取列表
GetRoleList
()
{
this
.
apipost
(
"admin_get_RoleGetList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
RoleList
=
res
.
data
.
data
;
}
},
err
=>
{}
);
},
//获取列表
RemoveItem
(
item
,
index
)
{
var
that
=
this
;
this
.
Confirm
(
"是否删除此少价信息?"
,
function
()
{
if
(
item
.
Id
>
0
)
{
that
.
apipost
(
"lessprice_post_Remove"
,
{
ID
:
item
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
"操作成功!"
);
that
.
GetList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
}
else
{
that
.
PageData
.
splice
(
index
,
1
);
}
});
},
},
mounted
()
{
this
.
GetRoleList
();
this
.
GetList
();
},
};
},
};
</
script
>
</
script
>
Write
Preview
Markdown
is supported
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