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
3184114a
Commit
3184114a
authored
Jan 04, 2022
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
18d6efb1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
192 additions
and
97 deletions
+192
-97
studyproaudit-form.vue
src/components/studyAbroad/studyproaudit-form.vue
+162
-67
studyproauditinfo-form.vue
src/components/studyAbroad/studyproauditinfo-form.vue
+30
-30
No files found.
src/components/studyAbroad/studyproaudit-form.vue
View file @
3184114a
...
...
@@ -168,9 +168,9 @@
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-6"
>
<
!-- <
div class="col-6">
<span>建议卖价:{{Number(saveObj.SuggestPrice).toFixed(2)}}</span>
</div>
</div>
-->
<div
class=
"col-6"
>
<span>
实际卖价:{{Number(saveObj.SellPrice).toFixed(2)}}
</span>
</div>
...
...
@@ -191,89 +191,76 @@
<span>
优惠信息
</span>
</div>
</div>
<div
class=
"row studyHeader"
>
<div
class=
"row studyHeader"
>
<div
class=
"col-4"
>
优惠政策
</div>
<div
class=
"col-4"
>
销售佣金
优惠比例
</div>
<div
class=
"col-4"
>
同行佣金
优惠价格
</div>
</div>
<div
class=
"row audit_List"
v-for=
"(x,index) in saveObj.PreferentialList"
:key=
"index"
>
<div
class=
"row audit_List"
>
<div
class=
"col-4"
>
<
template
v-if=
"saveObj.PreferentialList.length>0"
>
<div
class=
"border-bottom"
v-if=
"x.PriceDiscountType == 1"
>
买
{{
x
.
BuyNum
}}
送
{{
x
.
SendNum
}}
</div>
<div
class=
"border-bottom"
v-if=
"x.PriceDiscountType == 2"
>
单人报名享
<template
v-if=
"x.PriceType==0"
>
{{
100
-
x
.
PriceMoney
}}
折
</
template
>
<
template
v-else
>
{{
x
.
PriceMoney
}}
元
</
template
>
优惠
</div>
<div
class=
"border-bottom"
v-if=
"x.PriceDiscountType == 3"
>
双人报名享
<
template
v-if=
"x.PriceType==0"
>
{{
100
-
x
.
PriceMoney
}}
折
</
template
>
<
template
v-else
>
{{
x
.
PriceMoney
}}
元
</
template
>
优惠
</div>
<div
class=
"border-bottom"
v-if=
"x.PriceDiscountType == 4"
>
续费享
<
template
v-if=
"x.PriceType==0"
>
{{
100
-
x
.
PriceMoney
}}
折
</
template
>
<
template
v-else
>
{{
x
.
PriceMoney
}}
元
</
template
>
优惠
</div>
<div
class=
"remark-font"
v-if=
"x.PriceDiscountType == 0"
>
暂无优惠政策
</div>
</template>
<
template
v-else
>
<span>
暂无优惠政策
</span>
</
template
>
<div
class=
"border-bottom"
>
首次报名优惠
</div>
<div
class=
"border-bottom"
>
续费报名优惠
</div>
</div>
<div
class=
"col-4"
>
<
template
v-if=
"saveObj.PreferentialList.length>0"
>
<div
class=
"border-bottom"
style=
"padding-left: 16px;padding-right: 16px"
:class=
"
{ 'text-red': x.SaleCommissionType == 1 }" v-if="x.PriceDiscountType != 0">
{{
x
.
SaleCommissionType
==
1
?
"¥"
:
""
}}{{
x
.
SaleCommissionMoney
}}{{
x
.
SaleCommissionType
==
0
?
"%"
:
""
}}
<div
class=
"border-bottom"
style=
"padding-left: 16px;padding-right: 16px"
>
{{saveObj.B2CRatio}}%
</div>
<div
v-if=
"x.PriceDiscountType == 0"
>
<div
class=
"remark-font"
>
暂无佣金信息
</div>
<div
class=
"border-bottom"
style=
"padding-left: 16px;padding-right: 16px"
>
{{saveObj.B2CReNewRatio}}%
</div>
</
template
>
<
template
v-else
>
<span>
暂无优惠政策
</span>
</
template
>
</div>
<div
class=
"col-4"
>
<
template
v-if=
"saveObj.PreferentialList.length>0"
>
<div
class=
"border-bottom"
style=
"padding-left: 16px"
:class=
"
{ 'text-red': x.B2BCommissionType == 1 }"
v-if="x.PriceDiscountType != 0">
{{
x
.
B2BCommissionType
==
1
?
"¥"
:
""
}}{{
x
.
B2BCommissionMoney
}}{{
x
.
B2BCommissionType
==
0
?
"%"
:
""
}}
<div
class=
"border-bottom"
>
{{getPrePrice(1)}}
</div>
<div
v-if=
"x.PriceDiscountType == 0"
>
<div
class=
"remark-font"
>
暂无佣金信息
</div>
<div
class=
"border-bottom"
>
{{getPrePrice(2)}}
</div>
</
template
>
<
template
v-else
>
<span>
暂无优惠政策
</span>
</
template
>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-12"
>
<span
class=
"stidyRoleLine"
></span>
<span>
返佣
</span>
</div>
<div
style=
"margin-top: 10px;"
v-if=
"saveObj.CommissionReType==1"
>
返佣类型:比例返佣
</div>
<div
style=
"margin-top: 10px;"
v-if=
"saveObj.CommissionReType==2"
>
返佣类型:固定金额返佣
</div>
<table
class=
"payTable"
>
<tr>
<th>
同行
</th>
<th>
{{saveObj.CommissionReType==1?'首报返佣比例':'首报固定金额'}}
</th>
<th
v-if=
"saveObj.CommissionReType==1"
>
首报返佣值
</th>
<th>
{{saveObj.CommissionReType==1?'续费比例':'续费固定金额'}}
</th>
<th
v-if=
"saveObj.CommissionReType==1"
>
续费返佣值
</th>
</tr>
<tr
v-for=
"(item,index) in saveObj.scalelist"
:key=
"index"
>
<td>
<span>
{{item.Name}}
</span>
</td>
<td>
<span>
{{item.scale}}{{saveObj.CommissionReType==1?'%':''}}
</span>
</td>
<td
v-if=
"saveObj.CommissionReType==1"
>
<span>
{{item.scalevalue}}
</span>
</td>
<td>
<span>
{{item.continue}}{{saveObj.CommissionReType==1?'%':''}}
</span>
</td>
<td
v-if=
"saveObj.CommissionReType==1"
>
<span>
{{item.continuevalue}}
</span>
</td>
</tr>
</table>
</div>
</div>
...
...
@@ -407,6 +394,8 @@
</div>
</div>
</
template
>
<div
style=
"margin-bottom: 100px;"
></div>
</q-card>
<div
class=
"dialog-out-close"
@
click=
"closeperForm"
style=
"height:40px !important;border-top-left-radius: 4px !important;border-bottom-left-radius: 4px !important;"
>
...
...
@@ -508,6 +497,14 @@
initObj
()
{
queryStudyAbroadInfo
(
this
.
msg
).
then
(
res
=>
{
this
.
saveObj
=
res
.
Data
;
let
scalelist
=
[
{
Name
:
'同行返佣'
,
scale
:
this
.
saveObj
.
B2BRebateRatio
,
scalevalue
:
this
.
getShouBAO
(
3
),
continue
:
this
.
saveObj
.
B2BReNewRatio
,
continuevalue
:
this
.
getShouBAO
(
4
)},
{
Name
:
'校代返佣'
,
scale
:
this
.
saveObj
.
SchoolRebateRatio
,
scalevalue
:
this
.
getShouBAO
(
5
),
continue
:
this
.
saveObj
.
SchoolReNewRatio
,
continuevalue
:
this
.
getShouBAO
(
6
)},
{
Name
:
'学员转介返佣'
,
scale
:
this
.
saveObj
.
TransIntroductceRatio
,
scalevalue
:
this
.
getShouBAO
(
7
),
continue
:
this
.
saveObj
.
TransIntroductceReNewRatio
,
continuevalue
:
this
.
getShouBAO
(
8
)},
{
Name
:
'内推返佣'
,
scale
:
this
.
saveObj
.
InnerRecommendRatio
,
scalevalue
:
this
.
getShouBAO
(
9
),
continue
:
this
.
saveObj
.
InnerRecommendReNewRatio
,
continuevalue
:
this
.
getShouBAO
(
10
)},
{
Name
:
'直客返佣'
,
scale
:
this
.
saveObj
.
B2CRbRatio
,
scalevalue
:
this
.
getShouBAO
(
11
),
continue
:
this
.
saveObj
.
B2CRNRatio
,
continuevalue
:
this
.
getShouBAO
(
12
)},
]
this
.
saveObj
.
scalelist
=
scalelist
})
.
catch
(()
=>
{});
},
...
...
@@ -567,6 +564,104 @@
closeperForm
()
{
this
.
$emit
(
"close"
);
this
.
persistent
=
false
;
},
getPrePrice
(
type
)
{
//首次优惠
var
Count
=
''
if
(
type
==
1
)
{
if
(
this
.
saveObj
.
B2CRatio
)
{
let
num
=
Number
(
100
-
this
.
saveObj
.
B2CRatio
)
/
100
;
Count
=
(
num
*
this
.
saveObj
.
SellPrice
).
toFixed
(
2
);
}
else
{
Count
=
this
.
saveObj
.
SellPrice
}
}
if
(
type
==
2
)
{
if
(
this
.
saveObj
.
B2CReNewRatio
)
{
let
num
=
Number
(
100
-
this
.
saveObj
.
B2CReNewRatio
)
/
100
;
Count
=
(
num
*
this
.
saveObj
.
SellPrice
).
toFixed
(
2
);
}
else
{
Count
=
this
.
saveObj
.
SellPrice
}
}
return
Count
;
},
//获取首报返佣比例
getShouBAO
(
type
)
{
//首次优惠
var
Count
=
''
var
currentPrice
=
Number
(
100
-
this
.
saveObj
.
B2CRatio
)
*
this
.
saveObj
.
SellPrice
/
100
;
var
currrntXufei
=
Number
(
100
-
this
.
saveObj
.
B2CReNewRatio
)
*
this
.
saveObj
.
SellPrice
/
100
;
if
(
type
==
3
)
{
if
(
this
.
saveObj
.
B2BRebateRatio
)
{
let
num
=
currentPrice
*
Number
(
this
.
saveObj
.
B2BRebateRatio
)
/
100
;
Count
=
num
.
toFixed
(
2
);
return
Count
;
}
}
if
(
type
==
4
)
{
if
(
this
.
saveObj
.
B2BReNewRatio
)
{
let
num
=
currrntXufei
*
Number
(
this
.
saveObj
.
B2BReNewRatio
)
/
100
;
Count
=
num
.
toFixed
(
2
);
return
Count
;
}
}
if
(
type
==
5
)
{
if
(
this
.
saveObj
.
SchoolRebateRatio
)
{
let
num
=
currentPrice
*
Number
(
this
.
saveObj
.
SchoolRebateRatio
)
/
100
;
Count
=
num
.
toFixed
(
2
);
return
Count
;
}
}
if
(
type
==
6
)
{
if
(
this
.
saveObj
.
SchoolReNewRatio
)
{
let
num
=
currrntXufei
*
Number
(
this
.
saveObj
.
SchoolReNewRatio
)
/
100
;
Count
=
num
.
toFixed
(
2
);
return
Count
;
}
}
if
(
type
==
7
)
{
if
(
this
.
saveObj
.
TransIntroductceRatio
)
{
let
num
=
currentPrice
*
Number
(
this
.
saveObj
.
TransIntroductceRatio
)
/
100
;
Count
=
num
.
toFixed
(
2
);
return
Count
;
}
}
if
(
type
==
8
)
{
if
(
this
.
saveObj
.
TransIntroductceReNewRatio
)
{
let
num
=
currrntXufei
*
Number
(
this
.
saveObj
.
TransIntroductceReNewRatio
)
/
100
;
Count
=
num
.
toFixed
(
2
);
return
Count
;
}
}
if
(
type
==
9
)
{
if
(
this
.
saveObj
.
InnerRecommendRatio
)
{
let
num
=
currentPrice
*
Number
(
this
.
saveObj
.
InnerRecommendRatio
)
/
100
;
Count
=
num
.
toFixed
(
2
);
return
Count
;
}
}
if
(
type
==
10
)
{
if
(
this
.
saveObj
.
InnerRecommendReNewRatio
)
{
let
num
=
currrntXufei
*
Number
(
this
.
saveObj
.
InnerRecommendReNewRatio
)
/
100
;
Count
=
num
.
toFixed
(
2
);
return
Count
;
}
}
if
(
type
==
11
)
{
if
(
this
.
saveObj
.
B2CRbRatio
)
{
let
num
=
currentPrice
*
Number
(
this
.
saveObj
.
B2CRbRatio
)
/
100
;
Count
=
num
.
toFixed
(
2
);
return
Count
;
}
}
if
(
type
==
12
)
{
if
(
this
.
saveObj
.
B2CRNRatio
)
{
let
num
=
currrntXufei
*
Number
(
this
.
saveObj
.
B2CRNRatio
)
/
100
;
Count
=
num
.
toFixed
(
2
);
return
Count
;
}
}
}
}
}
...
...
src/components/studyAbroad/studyproauditinfo-form.vue
View file @
3184114a
...
...
@@ -199,9 +199,9 @@
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-6"
>
<
!-- <
div class="col-6">
<span>建议卖价:{{Number(saveObj.SuggestPrice).toFixed(2)}}</span>
</div>
</div>
-->
<div
class=
"col-6"
>
<span>
实际卖价:{{Number(saveObj.SellPrice).toFixed(2)}}
</span>
</div>
...
...
@@ -257,7 +257,7 @@
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-12"
>
<span
class=
"stidyRoleLine"
></span>
<span>
返佣
</span>
...
...
@@ -265,33 +265,33 @@
<div
style=
"margin-top: 10px;"
v-if=
"saveObj.CommissionReType==1"
>
返佣类型:比例返佣
</div>
<div
style=
"margin-top: 10px;"
v-if=
"saveObj.CommissionReType==2"
>
返佣类型:固定金额返佣
</div>
<table
class=
"payTable"
>
<tr>
<th>
同行
</th>
<th>
{{saveObj.CommissionReType==1?'首报返佣比例':'首报固定金额'}}
</th>
<th
v-if=
"saveObj.CommissionReType==1"
>
首报返佣值
</th>
<th>
{{saveObj.CommissionReType==1?'续费比例':'续费固定金额'}}
</th>
<th
v-if=
"saveObj.CommissionReType==1"
>
续费返佣值
</th>
</tr>
<tr
v-for=
"(item,index) in saveObj.scalelist"
:key=
"index"
>
<td>
<span>
{{item.Name}}
</span>
</td>
<td>
<span>
{{item.scale}}{{saveObj.CommissionReType==1?'%':''}}
</span>
</td>
<td
v-if=
"saveObj.CommissionReType==1"
>
<span>
{{item.scalevalue}}
</span>
</td>
<td>
<span>
{{item.continue}}{{saveObj.CommissionReType==1?'%':''}}
</span>
</td>
<td
v-if=
"saveObj.CommissionReType==1"
>
<span>
{{item.continuevalue}}
</span>
</td>
</tr>
</table>
<tr>
<th>
同行
</th>
<th>
{{saveObj.CommissionReType==1?'首报返佣比例':'首报固定金额'}}
</th>
<th
v-if=
"saveObj.CommissionReType==1"
>
首报返佣值
</th>
<th>
{{saveObj.CommissionReType==1?'续费比例':'续费固定金额'}}
</th>
<th
v-if=
"saveObj.CommissionReType==1"
>
续费返佣值
</th>
</tr>
<tr
v-for=
"(item,index) in saveObj.scalelist"
:key=
"index"
>
<td>
<span>
{{item.Name}}
</span>
</td>
<td>
<span>
{{item.scale}}{{saveObj.CommissionReType==1?'%':''}}
</span>
</td>
<td
v-if=
"saveObj.CommissionReType==1"
>
<span>
{{item.scalevalue}}
</span>
</td>
<td>
<span>
{{item.continue}}{{saveObj.CommissionReType==1?'%':''}}
</span>
</td>
<td
v-if=
"saveObj.CommissionReType==1"
>
<span>
{{item.continuevalue}}
</span>
</td>
</tr>
</table>
</div>
<
template
>
<div
class=
"studyDrawerTop"
>
...
...
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