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
cafdaa2a
Commit
cafdaa2a
authored
Aug 13, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
192fb6a7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
134 additions
and
35 deletions
+134
-35
pintuanActive.vue
src/components/pintuan/pintuanActive.vue
+4
-2
distributePrice.vue
src/components/pintuan/pintuanPlugin/distributePrice.vue
+109
-17
groupStep.vue
src/components/pintuan/pintuanPlugin/groupStep.vue
+7
-2
memberPrice.vue
src/components/pintuan/pintuanPlugin/memberPrice.vue
+14
-14
No files found.
src/components/pintuan/pintuanActive.vue
View file @
cafdaa2a
...
...
@@ -392,7 +392,7 @@
</el-card>
</el-tab-pane>
<el-tab-pane
label=
"阶梯团设置"
>
<groupStep
@
getGroup=
"getGroup"
:SpecList=
"TempSpecList"
:GroupPriceList=
"TempGroupPriceList"
<groupStep
@
getGroup=
"getGroup"
@
setNewVal=
"setNewVal"
:SpecList=
"TempSpecList"
:GroupPriceList=
"TempGroupPriceList"
:SpecPriceList=
"TempSpecPriceList"
></groupStep>
</el-tab-pane>
<el-tab-pane
label=
"分销价设置"
>
...
...
@@ -753,7 +753,9 @@
getGroup
(
group_list
)
{
this
.
TempGroupPriceList
=
group_list
;
this
.
addMsg
.
GroupList
=
group_list
;
this
.
shareGroup_list
=
group_list
;
},
setNewVal
(
val
){
this
.
shareGroup_list
=
val
;
},
//获取子组件规格
getSpecList
(
val
)
{
...
...
src/components/pintuan/pintuanPlugin/distributePrice.vue
View file @
cafdaa2a
...
...
@@ -54,26 +54,56 @@
</el-input>
<el-button
size=
"small"
type=
"primary"
>
设置
</el-button>
</div>
<el-table
ref=
"multipleTable"
:data=
"
tableData
"
tooltip-effect=
"dark"
<el-table
ref=
"multipleTable"
:data=
"
GradeCommissionList
"
tooltip-effect=
"dark"
style=
"width: 100%;border:1px solid #E8EAEE"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
>
</el-table-column>
<el-table-column
label=
"等级名称"
prop=
"leval"
width=
"100"
>
</el-table-column>
<el-table-column
label=
"一级分销"
width=
"576"
>
<
template
slot-scope=
"scope"
>
<el-input
type=
"text"
size=
"small"
v-model=
"scope.row.yiji"
>
<el-button
slot=
"append"
>
元
</el-button>
</el-input>
</
template
>
</el-table-column>
<el-table-column
label=
"二级分销"
width=
"575"
>
<
template
slot-scope=
"scope"
>
<el-input
type=
"text"
size=
"small"
v-model=
"scope.row.erji"
>
<el-button
slot=
"append"
>
元
</el-button>
</el-input>
</
template
>
<el-table-column
width=
"100"
label=
"等级名称"
>
<
template
slot-scope=
"scope"
>
<template
v-for=
"(item2, index) in DropdownList"
>
<span
:key=
"index+'9'"
v-if=
"scope.row.DistributorGrade == item2.Id"
>
{{
item2
.
Name
}}
</span>
</
template
>
</template>
</el-table-column>
<
template
v-for=
"(item, index) in butorIntList"
>
<el-table-column
:key=
"index+'10'"
:label=
"item.Name"
>
<template
slot-scope=
"scope"
>
<span>
<el-input
v-model=
"scope.row.OneCommission"
v-if=
"index == 0"
size=
"small"
>
<el-button
slot=
"append"
>
<span
v-if=
"
msg.SeparateDistributionMoneyType == 2
"
>
元
</span>
<span
v-if=
"
msg.SeparateDistributionMoneyType == 1
"
>
%
</span>
</el-button>
</el-input>
<el-input
v-model=
"scope.row.TwoCommission"
v-if=
"index == 1"
size=
"small"
>
<el-button
slot=
"append"
>
<span
v-if=
"
msg.SeparateDistributionMoneyType == 2
"
>
元
</span>
<span
v-if=
"
msg.SeparateDistributionMoneyType == 1
"
>
%
</span>
</el-button>
</el-input>
<el-input
v-model=
"scope.row.ThreeCommission"
v-if=
"index == 2"
size=
"small"
>
<el-button
slot=
"append"
>
<span
v-if=
"
msg.SeparateDistributionMoneyType == 2
"
>
元
</span>
<span
v-if=
"
msg.SeparateDistributionMoneyType == 1
"
>
%
</span>
</el-button>
</el-input>
</span>
</
template
>
</el-table-column>
</template>
</el-table>
</div>
</el-card>
...
...
@@ -90,6 +120,9 @@
fxVal
:
''
,
butorInt
:
0
,
butorIntList
:
[],
GradeCommissionList
:[],
DropdownList
:[],
msg
:
{
SeparateDistribution
:
0
,
//是否开启分销佣金
SeparateDistributionType
:
1
,
//分销类型
...
...
@@ -113,14 +146,73 @@
getDistributor
()
{
this
.
apipost
(
"/api/user/GetDistributorBasicsInfo"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
console
.
log
(
res
,
'resss'
);
console
.
log
(
res
,
'resss'
);
this
.
butorInt
=
res
.
data
.
data
.
DistributorTier
;
this
.
butorIntList
=
[];
for
(
let
i
=
0
;
i
<
this
.
butorInt
;
i
++
)
{
let
msg
=
{
Name
:
i
+
1
+
"级分销"
};
this
.
butorIntList
.
push
(
msg
);
}
}
});
},
GetDropdownList
()
{
let
msg
=
{
Id
:
0
,
Grade
:
0
,
Name
:
""
,
Enabled
:
1
};
this
.
apipost
(
"/api/user/GetDistributorGradeDropdownList"
,
msg
,
res
=>
{
this
.
DropdownList
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
data
.
data
));
let
msg
=
{
Grade
:
0
,
GradeCommissionList
:
[],
Name
:
"默认等级"
,
SpecificationSort
:
""
,
Id
:
0
};
this
.
DropdownList
.
unshift
(
msg
);
this
.
DropdownList
.
forEach
(
item
=>
{
item
.
GradeCommissionList
=
[];
item
.
SpecificationSort
=
""
;
for
(
let
i
=
0
;
i
<
this
.
butorInt
;
i
++
)
{
let
obj
=
{
DistributorGrade
:
item
.
Id
,
OneCommission
:
0
,
TwoCommission
:
0
,
ThreeCommission
:
0
};
item
.
GradeCommissionList
.
push
(
obj
);
}
});
this
.
DropdownList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
DropdownList
));
if
(
!
this
.
$route
.
query
.
Id
){
this
.
GradeCommissionList
=
[];
this
.
DropdownList
.
forEach
(
item
=>
{
let
obj2
=
{
DistributorGrade
:
item
.
Id
,
OneCommission
:
0
,
TwoCommission
:
0
,
ThreeCommission
:
0
,
Name
:
item
.
Name
};
this
.
GradeCommissionList
.
push
(
obj2
);
});
this
.
GradeCommissionList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
GradeCommissionList
)
);
}
});
},
},
mounted
()
{
this
.
getDistributor
();
this
.
GetDropdownList
();
},
computed
:
{
...
...
src/components/pintuan/pintuanPlugin/groupStep.vue
View file @
cafdaa2a
...
...
@@ -107,6 +107,13 @@
this
.
new_SpecPriceList
=
JSON
.
parse
(
JSON
.
stringify
(
val
));
},
},
'group_list'
:{
handler
:
function
(
newVal
)
{
this
.
$emit
(
'setNewVal'
,
newVal
);
//params是传递的参数
},
deep
:
true
}
},
created
()
{},
methods
:
{
...
...
@@ -173,12 +180,10 @@
Group_Num
:
0
,
StepPriceList
:
attr
});
this
.
$emit
(
'getGroup'
,
this
.
group_list
);
//params是传递的参数
},
//删除拼团
destroyPintuan
(
index
)
{
this
.
group_list
.
splice
(
index
,
1
);
this
.
$emit
(
'getGroup'
,
this
.
group_list
);
//params是传递的参数
}
},
mounted
()
{
...
...
src/components/pintuan/pintuanPlugin/memberPrice.vue
View file @
cafdaa2a
...
...
@@ -30,7 +30,7 @@
</el-input>
</el-form-item>
</div>
<el-table
ref=
"table"
:data=
"memberList2"
border
style=
"width: 100%"
<el-table
ref=
"table"
border
style=
"width: 100%"
@
selection-change=
"TbaleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
>
</el-table-column>
...
...
@@ -100,19 +100,19 @@
}
});
},
//
HySet() {
//
this.memberList2.forEach(item => {
//
this.memberCheck.forEach(check => {
//
if (item.Id == check.Id) {
//
item.GradePriceList.forEach(list1 => {
//
if (list1.MemberGrade == this.memberVal) {
//
list1.MemberPrice = this.memberinput;
//
}
//
});
//
}
//
});
//
});
//
},
HySet
()
{
//
this.memberList2.forEach(item => {
//
this.memberCheck.forEach(check => {
//
if (item.Id == check.Id) {
//
item.GradePriceList.forEach(list1 => {
//
if (list1.MemberGrade == this.memberVal) {
//
list1.MemberPrice = this.memberinput;
//
}
//
});
//
}
//
});
//
});
},
TbaleSelectionChange
(){
}
...
...
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