Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
a7d5fc52
Commit
a7d5fc52
authored
Dec 20, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
e116ecf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
124 additions
and
15 deletions
+124
-15
courseprice-form.vue
src/components/course/courseprice-form.vue
+124
-15
No files found.
src/components/course/courseprice-form.vue
View file @
a7d5fc52
...
...
@@ -18,7 +18,7 @@
</
style
>
<
template
>
<q-dialog
v-model=
"persistent"
persistent
content-class=
"bg-grey-1"
transition-show=
"scale"
transition-hide=
"scale"
>
<q-card
style=
"width:
600px;max-width:6
00px;"
>
<q-card
style=
"width:
900px;max-width:9
00px;"
>
<q-card-section>
<div
class=
"text-h6"
>
设置课程价格
</div>
</q-card-section>
...
...
@@ -39,22 +39,13 @@
@
keyup
.
native=
"checkPrice(priceObj.courseObj, 'SellPrice')"
:rules=
"[val => !!val || '请填写卖价']"
/>
</td>
</tr>
<tr>
<td
style=
"width:70px;text-align:right;"
>
返佣设置
</td>
<td
colspan=
"2"
>
<q-radio
v-model=
"priceObj.courseObj.CommissionReType"
:val=
"1"
label=
"课耗返佣 "
/>
<q-radio
v-model=
"priceObj.courseObj.CommissionReType"
:val=
"2"
label=
"付款返佣"
/>
</td>
</tr>
</table>
</div>
<div
class=
"text-caption q-mb-lg q-mt-lg text-grey-6"
>
<span
class=
"course_Line"
></span>
优惠
</div>
<table
style=
"border-collapse: collapse;"
class=
"coursePrice_table"
>
<table
style=
"border-collapse: collapse;
width:100%;
"
class=
"coursePrice_table"
>
<tr
style=
"height:40px;"
>
<th>
优惠
...
...
@@ -76,14 +67,14 @@
<q-input
filled
stack-label
dense
v-model=
"priceObj.courseObj.B2CRatio"
ref=
"B2CRatio"
@
keyup
.
native=
"checkPrice(priceObj.courseObj, 'B2CRatio'),getPrePrice(1)"
suffix=
"%"
/>
</td>
<td
style=
"width:1
0
0px;text-align:center;"
>
<td
style=
"width:1
5
0px;text-align:center;"
>
{{
getPrePrice
(
1
)
}}
</td>
<td>
<q-input
filled
stack-label
dense
v-model=
"priceObj.courseObj.B2CReNewRatio"
ref=
"B2CReNewRatio"
@
keyup
.
native=
"checkPrice(priceObj.courseObj, 'B2CReNewRatio'),getPrePrice(2)"
suffix=
"%"
/>
</td>
<td
style=
"width:1
0
0px;text-align:center;"
>
<td
style=
"width:1
5
0px;text-align:center;"
>
{{
getPrePrice
(
2
)
}}
</td>
</tr>
...
...
@@ -97,17 +88,23 @@
<th>
同行
</th>
<th>
首
次
报名返佣比例
首报名返佣比例
</th>
<th>
首报返佣值
</th>
<th>
返佣设置
</th>
<th>
续费报名返佣比例
</th>
<th>
续费返佣值
</th>
<th>
返佣设置
</th>
</tr>
<tr>
<td
style=
"width:70px;"
>
...
...
@@ -120,6 +117,14 @@
<td
style=
"text-align:center;width:100px;"
>
{{
getShouBAO
(
3
)
}}
</td>
<td
style=
"width:200px;"
>
<div
class=
"row wrap"
>
<q-select
class=
"col-7"
filled
dense
v-model=
"priceObj.courseObj.B2BRebateRatioType"
:options=
"CourseRebateList"
emit-value
map-options
option-value=
"Id"
option-label=
"Name"
label=
"返佣设置"
/>
<q-input
class=
"col-5"
v-if=
"priceObj.courseObj.B2BRebateRatioType==3"
style=
"width:75px;margin-left:5px;"
filled
stack-label
dense
v-model=
"priceObj.courseObj.B2BRebateRatioValue"
@
keyup
.
native=
"checkPrice(priceObj.courseObj, 'B2BRebateRatioValue')"
/>
</div>
</td>
<td>
<q-input
filled
stack-label
dense
v-model=
"priceObj.courseObj.B2BReNewRatio"
ref=
"B2BReNewRatio"
@
keyup
.
native=
"checkPrice(priceObj.courseObj, 'B2BReNewRatio'),getShouBAO(4)"
suffix=
"%"
/>
...
...
@@ -127,6 +132,14 @@
<td
style=
"text-align:center;width:100px;"
>
{{
getShouBAO
(
4
)
}}
</td>
<td
style=
"width:200px;"
>
<div
class=
"row wrap"
>
<q-select
class=
"col-7"
filled
dense
v-model=
"priceObj.courseObj.B2BReNewRatioType"
:options=
"CourseRebateList"
emit-value
map-options
option-value=
"Id"
option-label=
"Name"
label=
"返佣设置"
/>
<q-input
class=
"col-5"
v-if=
"priceObj.courseObj.B2BReNewRatioType==3"
style=
"width:75px;margin-left:5px;"
filled
stack-label
dense
v-model=
"priceObj.courseObj.B2BReNewRatioValue"
@
keyup
.
native=
"checkPrice(priceObj.courseObj, 'B2BReNewRatioValue')"
/>
</div>
</td>
</tr>
<tr>
<td>
...
...
@@ -139,6 +152,14 @@
<td
style=
"text-align:center;"
>
{{
getShouBAO
(
5
)
}}
</td>
<td
style=
"width:200px;"
>
<div
class=
"row wrap"
>
<q-select
class=
"col-7"
filled
dense
v-model=
"priceObj.courseObj.SchoolRebateRatioType"
:options=
"CourseRebateList"
emit-value
map-options
option-value=
"Id"
option-label=
"Name"
label=
"返佣设置"
/>
<q-input
class=
"col-5"
v-if=
"priceObj.courseObj.SchoolRebateRatioType==3"
style=
"width:75px;margin-left:5px;"
filled
stack-label
dense
v-model=
"priceObj.courseObj.SchoolRebateRatioValue"
@
keyup
.
native=
"checkPrice(priceObj.courseObj, 'SchoolRebateRatioValue')"
/>
</div>
</td>
<td>
<q-input
filled
stack-label
dense
v-model=
"priceObj.courseObj.SchoolReNewRatio"
ref=
"SchoolReNewRatio"
@
keyup
.
native=
"checkPrice(priceObj.courseObj, 'SchoolReNewRatio'),getShouBAO(6)"
suffix=
"%"
/>
...
...
@@ -146,6 +167,14 @@
<td
style=
"text-align:center;"
>
{{
getShouBAO
(
6
)
}}
</td>
<td
style=
"width:200px;"
>
<div
class=
"row wrap"
>
<q-select
class=
"col-7"
filled
dense
v-model=
"priceObj.courseObj.SchoolReNewRatioType"
:options=
"CourseRebateList"
emit-value
map-options
option-value=
"Id"
option-label=
"Name"
label=
"返佣设置"
/>
<q-input
class=
"col-5"
v-if=
"priceObj.courseObj.SchoolReNewRatioType==3"
filled
stack-label
style=
"width:75px;margin-left:5px;"
dense
@
keyup
.
native=
"checkPrice(priceObj.courseObj, 'SchoolReNewRatioValue')"
v-model=
"priceObj.courseObj.SchoolReNewRatioValue"
/>
</div>
</td>
</tr>
<tr>
<td>
...
...
@@ -159,6 +188,14 @@
<td
style=
"text-align:center"
>
{{
getShouBAO
(
7
)
}}
</td>
<td
style=
"width:200px;"
>
<div
class=
"row wrap"
>
<q-select
class=
"col-7"
filled
dense
v-model=
"priceObj.courseObj.TransIntroductceRatioType"
:options=
"CourseRebateList"
emit-value
map-options
option-value=
"Id"
option-label=
"Name"
label=
"返佣设置"
/>
<q-input
class=
"col-5"
v-if=
"priceObj.courseObj.TransIntroductceRatioType==3"
filled
stack-label
dense
style=
"width:75px;margin-left:5px;"
@
keyup
.
native=
"checkPrice(priceObj.courseObj, 'TransIntroductceRatioValue')"
v-model=
"priceObj.courseObj.TransIntroductceRatioValue"
/>
</div>
</td>
<td>
<q-input
filled
stack-label
dense
v-model=
"priceObj.courseObj.TransIntroductceReNewRatio"
ref=
"TransIntroductceReNewRatio"
...
...
@@ -167,6 +204,14 @@
<td
style=
"text-align:center"
>
{{
getShouBAO
(
8
)
}}
</td>
<td
style=
"width:200px;"
>
<div
class=
"row wrap"
>
<q-select
class=
"col-7"
filled
dense
v-model=
"priceObj.courseObj.TransIntroductceReNewRatioType"
:options=
"CourseRebateList"
emit-value
map-options
option-value=
"Id"
option-label=
"Name"
label=
"返佣设置"
/>
<q-input
class=
"col-5"
v-if=
"priceObj.courseObj.TransIntroductceReNewRatioType==3"
filled
stack-label
dense
style=
"width:75px;margin-left:5px;"
@
keyup
.
native=
"checkPrice(priceObj.courseObj, 'TransIntroductceReNewRatioValue')"
v-model=
"priceObj.courseObj.TransIntroductceReNewRatioValue"
/>
</div>
</td>
</tr>
<tr>
<td>
...
...
@@ -180,6 +225,14 @@
<td
style=
"text-align:center"
>
{{
getShouBAO
(
9
)
}}
</td>
<td
style=
"width:200px;"
>
<div
class=
"row wrap"
>
<q-select
class=
"col-7"
filled
dense
v-model=
"priceObj.courseObj.InnerRecommendRatioType"
:options=
"CourseRebateList"
emit-value
map-options
option-value=
"Id"
option-label=
"Name"
label=
"返佣设置"
/>
<q-input
class=
"col-6"
v-if=
"priceObj.courseObj.InnerRecommendRatioType==3"
filled
stack-label
dense
v-model=
"priceObj.courseObj.InnerRecommendRatioValue"
@
keyup
.
native=
"checkPrice(priceObj.courseObj, 'InnerRecommendRatioValue')"
style=
"width:75px;margin-left:5px;"
/>
</div>
</td>
<td>
<q-input
filled
stack-label
dense
v-model=
"priceObj.courseObj.InnerRecommendReNewRatio"
ref=
"InnerRecommendReNewRatio"
...
...
@@ -188,6 +241,14 @@
<td
style=
"text-align:center"
>
{{
getShouBAO
(
10
)
}}
</td>
<td
style=
"width:200px;"
>
<div
class=
"row wrap"
>
<q-select
class=
"col-7"
filled
dense
v-model=
"priceObj.courseObj.InnerRecommendReNewRatioType"
:options=
"CourseRebateList"
emit-value
map-options
option-value=
"Id"
option-label=
"Name"
label=
"返佣设置"
/>
<q-input
class=
"col-5"
v-if=
"priceObj.courseObj.InnerRecommendReNewRatioType==3"
filled
stack-label
dense
v-model=
"priceObj.courseObj.InnerRecommendReNewRatioValue"
@
keyup
.
native=
"checkPrice(priceObj.courseObj, 'InnerRecommendReNewRatioValue')"
style=
"width:75px;margin-left:5px;"
/>
</div>
</td>
</tr>
</table>
...
...
@@ -207,7 +268,8 @@
saveCoursePreferential
,
queryCoursePreferentialList
,
queryCourseInfo
,
queryCoursePreferentialType
queryCoursePreferentialType
,
GetCourseRebateSetList
}
from
"../../api/course/index"
;
export
default
{
components
:
{},
...
...
@@ -232,26 +294,52 @@
B2CRatio
:
0
,
//直客首次报名优惠比例
B2CReNewRatio
:
0
,
//直客续费优惠比例
B2BRebateRatio
:
0
,
//一般同行首次报名返佣比例
B2BRebateRatioType
:
1
,
B2BRebateRatioValue
:
''
,
B2BReNewRatio
:
0
,
//一般同行续费返佣比例
B2BReNewRatioType
:
1
,
B2BReNewRatioValue
:
''
,
SchoolRebateRatio
:
0
,
//校代同行首次返佣比例
SchoolRebateRatioType
:
1
,
SchoolRebateRatioValue
:
''
,
SchoolReNewRatio
:
0
,
//校代同行续费返佣比例
SchoolReNewRatioType
:
1
,
SchoolReNewRatioValue
:
''
,
TransIntroductceRatio
:
0
,
//转介首次报名返佣比例
TransIntroductceRatioType
:
1
,
TransIntroductceRatioValue
:
''
,
TransIntroductceReNewRatio
:
0
,
//转介续费返佣比例
TransIntroductceReNewRatioType
:
1
,
TransIntroductceReNewRatioValue
:
''
,
InnerRecommendRatio
:
0
,
//內推首次报名返佣比例
InnerRecommendRatioType
:
1
,
InnerRecommendRatioValue
:
''
,
InnerRecommendReNewRatio
:
0
,
//內推续费返佣比例
InnerRecommendReNewRatioType
:
1
,
InnerRecommendReNewRatioValue
:
''
},
priceList
:
[]
//价格列表
},
CourseRebateList
:
[],
priceTypeList
:
[]
//优惠类型列表
};
},
created
()
{
this
.
getTypeList
();
this
.
getFanyong
();
},
mounted
()
{
this
.
initObj
();
},
methods
:
{
//获取返佣设置下拉
getFanyong
(){
GetCourseRebateSetList
().
then
(
res
=>
{
if
(
res
.
Code
==
1
){
this
.
CourseRebateList
=
res
.
Data
;
}
});
},
//获取优惠类型列表
getTypeList
()
{
queryCoursePreferentialType
().
then
(
res
=>
{
...
...
@@ -293,15 +381,36 @@
this
.
priceObj
.
courseObj
.
SellPrice
=
res
.
Data
.
SellPrice
;
this
.
priceObj
.
courseObj
.
CommissionReType
=
res
.
Data
.
CommissionReType
;
this
.
priceObj
.
courseObj
.
B2CRatio
=
res
.
Data
.
B2CRatio
;
this
.
priceObj
.
courseObj
.
B2CRatioType
=
res
.
Data
.
B2CRatioType
;
this
.
priceObj
.
courseObj
.
B2CRatioValue
=
res
.
Data
.
B2CRatioValue
;
this
.
priceObj
.
courseObj
.
B2CReNewRatio
=
res
.
Data
.
B2CReNewRatio
;
this
.
priceObj
.
courseObj
.
B2CReNewRatioType
=
res
.
Data
.
B2CReNewRatioType
;
this
.
priceObj
.
courseObj
.
B2CReNewRatioValue
=
res
.
Data
.
B2CReNewRatioValue
;
this
.
priceObj
.
courseObj
.
B2BRebateRatio
=
res
.
Data
.
B2BRebateRatio
;
this
.
priceObj
.
courseObj
.
B2BRebateRatioType
=
res
.
Data
.
B2BRebateRatioType
;
this
.
priceObj
.
courseObj
.
B2BRebateRatioValue
=
res
.
Data
.
B2BRebateRatioValue
;
this
.
priceObj
.
courseObj
.
B2BReNewRatio
=
res
.
Data
.
B2BReNewRatio
;
this
.
priceObj
.
courseObj
.
B2BReNewRatioType
=
res
.
Data
.
B2BReNewRatioType
;
this
.
priceObj
.
courseObj
.
B2BReNewRatioValue
=
res
.
Data
.
B2BReNewRatioValue
;
this
.
priceObj
.
courseObj
.
SchoolRebateRatio
=
res
.
Data
.
SchoolRebateRatio
;
this
.
priceObj
.
courseObj
.
SchoolRebateRatioType
=
res
.
Data
.
SchoolRebateRatioType
;
this
.
priceObj
.
courseObj
.
SchoolRebateRatioValue
=
res
.
Data
.
SchoolRebateRatioValue
;
this
.
priceObj
.
courseObj
.
SchoolReNewRatio
=
res
.
Data
.
SchoolReNewRatio
;
this
.
priceObj
.
courseObj
.
SchoolReNewRatioType
=
res
.
Data
.
SchoolReNewRatioType
;
this
.
priceObj
.
courseObj
.
SchoolReNewRatioValue
=
res
.
Data
.
SchoolReNewRatioValue
;
this
.
priceObj
.
courseObj
.
TransIntroductceRatio
=
res
.
Data
.
TransIntroductceRatio
;
this
.
priceObj
.
courseObj
.
TransIntroductceRatioType
=
res
.
Data
.
TransIntroductceRatioType
;
this
.
priceObj
.
courseObj
.
TransIntroductceRatioValue
=
res
.
Data
.
TransIntroductceRatioValue
;
this
.
priceObj
.
courseObj
.
TransIntroductceReNewRatio
=
res
.
Data
.
TransIntroductceReNewRatio
;
this
.
priceObj
.
courseObj
.
TransIntroductceReNewRatioType
=
res
.
Data
.
TransIntroductceReNewRatioType
;
this
.
priceObj
.
courseObj
.
TransIntroductceReNewRatioValue
=
res
.
Data
.
TransIntroductceReNewRatioValue
;
this
.
priceObj
.
courseObj
.
InnerRecommendRatio
=
res
.
Data
.
InnerRecommendRatio
;
this
.
priceObj
.
courseObj
.
InnerRecommendRatioType
=
res
.
Data
.
InnerRecommendRatioType
;
this
.
priceObj
.
courseObj
.
InnerRecommendRatioValue
=
res
.
Data
.
InnerRecommendRatioValue
;
this
.
priceObj
.
courseObj
.
InnerRecommendReNewRatio
=
res
.
Data
.
InnerRecommendReNewRatio
;
this
.
priceObj
.
courseObj
.
InnerRecommendReNewRatioType
=
res
.
Data
.
InnerRecommendReNewRatioType
;
this
.
priceObj
.
courseObj
.
InnerRecommendReNewRatioValue
=
res
.
Data
.
InnerRecommendReNewRatioValue
;
});
queryCoursePreferentialList
({
CourseId
:
this
.
saveObj
.
CourseId
...
...
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