Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
黄媛媛
ElectricitySheep
Commits
d9b40e3e
Commit
d9b40e3e
authored
Aug 17, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
fc199717
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
27 deletions
+20
-27
memberPrice.vue
src/components/pintuan/pintuanPlugin/memberPrice.vue
+20
-27
No files found.
src/components/pintuan/pintuanPlugin/memberPrice.vue
View file @
d9b40e3e
...
...
@@ -13,8 +13,8 @@
<el-button
@
click=
"CommonJump('setMember')"
size=
"small"
type=
"danger"
>
如需设置请先添加会员
</el-button>
</el-form-item>
<el-form-item
v-if=
"addMsg.SeparateSetMember== 1&&SpecificationPriceList.length>0"
label=
"会员价设置"
>
<template
v-for=
"(rootItem,rootIndex) in
member
List"
>
<el-form-item
v-if=
"addMsg.SeparateSetMember== 1&&
addMsg.
SpecificationPriceList.length>0"
label=
"会员价设置"
>
<template
v-for=
"(rootItem,rootIndex) in
addMsg.Group
List"
>
<div
class=
"app-attr"
:key=
"rootIndex"
>
<div
class=
"box"
>
<div
style=
"display:inline-block;"
>
...
...
@@ -32,11 +32,11 @@
</el-input>
</el-form-item>
</div>
<el-table
ref=
"table"
border
style=
"width: 100%"
:data=
"rootItem.
GradeMember
List"
<el-table
ref=
"table"
border
style=
"width: 100%"
:data=
"rootItem.
Memberprice
List"
@
selection-change=
"TbaleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
>
</el-table-column>
<template
v-for=
"(item, index) in
Spec
List"
>
<template
v-for=
"(item, index) in
addMsg.Specification
List"
>
<el-table-column
:key=
"index+'16'"
:label=
"item.Name"
width=
"100"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"index == index2"
v-for=
"(item2, index2) in scope.row.AttrList"
:key=
"index2+'17'"
>
...
...
@@ -79,16 +79,16 @@
immediate
:
true
,
handler
:
function
(
val
,
oldval
)
{
if
(
val
!=
oldval
)
{
this
.
memberList
=
[];
if
(
this
.
SpecificationPriceList
&&
this
.
SpecificationPriceList
.
length
>
0
)
{
if
(
this
.
SpecificationPriceList
[
0
].
MemberpriceList
&&
this
.
SpecificationPriceList
[
0
]
if
(
this
.
addMsg
.
SpecificationPriceList
&&
this
.
addMsg
.
SpecificationPriceList
.
length
>
0
)
{
if
(
this
.
addMsg
.
SpecificationPriceList
[
0
].
MemberpriceList
&&
this
.
addMsg
.
SpecificationPriceList
[
0
]
.
MemberpriceList
.
length
>
0
)
{
this
.
SpecificationPriceList
.
forEach
(
item
=>
{
this
.
addMsg
.
SpecificationPriceList
.
forEach
(
item
=>
{
var
obj
=
{
People_Num
:
item
.
People_Num
,
GradeMemberList
:
item
.
MemberpriceList
,
};
this
.
member
List
.
push
(
obj
);
this
.
addMsg
.
Memberprice
List
.
push
(
obj
);
})
}
else
{
...
...
@@ -98,30 +98,19 @@
}
}
},
"memberList"
:
{
handler
:
function
(
val
,
oldval
)
{
this
.
$emit
(
'getMemberList'
,
this
.
memberList
);
},
deep
:
true
},
},
methods
:
{
//数据改变
memberChange
()
{
this
.
memberList
=
[];
if
(
this
.
addMsg
.
SeparateSetMember
==
1
)
{
this
.
SpecificationPriceList
.
forEach
(
rootItem
=>
{
var
obj
=
{
People_Num
:
rootItem
.
People_Num
,
GradeMemberList
:
[],
}
this
.
addMsg
.
GroupList
.
forEach
((
rootItem
,
rootIndex
)
=>
{
rootItem
.
MemberpriceList
=
[];
rootItem
.
StepPriceList
.
forEach
(
subItem
=>
{
var
tempObj
=
JSON
.
parse
(
JSON
.
stringify
(
subItem
));
var
memObj
=
{
AttrList
:
tempObj
.
AttrList
,
AttrList
:
JSON
.
parse
(
JSON
.
stringify
(
subItem
.
AttrList
))
,
Id
:
0
,
Name
:
0
,
SpecificationSort
:
tempObj
.
SpecificationSort
,
SpecificationSort
:
JSON
.
parse
(
JSON
.
stringify
(
subItem
.
SpecificationSort
))
,
GradeMemberPriceList
:
[],
};
this
.
configMemberList
.
forEach
(
childItem
=>
{
...
...
@@ -130,10 +119,14 @@
MemberPrice
:
0
});
});
obj
.
GradeMemberList
.
push
(
memObj
);
});
this
.
memberList
.
push
(
obj
);
rootItem
.
MemberpriceList
.
push
(
memObj
)
})
});
console
.
log
(
"this.addMsg.GroupList"
,
this
.
addMsg
.
GroupList
);
this
.
$forceUpdate
();
}
else
{
}
},
//获取系统配置的会员列表
...
...
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