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
ceb284bc
Commit
ceb284bc
authored
May 10, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
432c7d1a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
24 deletions
+22
-24
quotation-form.vue
src/components/sale/quotation-form.vue
+4
-21
courseList.vue
src/pages/sale/courseList.vue
+18
-3
No files found.
src/components/sale/quotation-form.vue
View file @
ceb284bc
...
...
@@ -53,25 +53,6 @@
<span>
选择课程
</span>
</div>
<div
class=
"row"
>
<!-- <div class="col-5 q-mr-md">
<q-select
dense
standout
behavior="menu"
v-model="chosenCategory"
:options="categoryOptions"
@filter="filterFn"
input-debounce="0"
use-input
option-label="CateName"
option-value="CateId"
emit-value
map-options
@input="changeCategory"
:placeholder="!chosenCategory?'选择系类':''"
clearable
/>
</div> -->
<div
class=
"col"
>
<q-select
dense
standout
behavior=
"menu"
filled
v-model=
"chosenCourse"
:options=
"courseOptions"
@
filter=
"filterCourseFn"
input-debounce=
"0"
use-input
option-label=
"CourseName"
option-value=
"CourseId"
...
...
@@ -399,8 +380,10 @@
let
offer
=
this
.
genernalOffer
(
val
);
if
(
this
.
chosenCourses
.
length
>
0
)
{
offer
.
DiscountPrice
+=
500
;
offer
.
ActualPrice
-=
500
;
offer
.
Remark
+=
`^购买多项课程再减500`
;
if
(
offer
.
OriginalPrice
>
5000
)
{
offer
.
ActualPrice
-=
500
;
offer
.
Remark
+=
`^购买多项课程再减500`
;
}
}
this
.
chosenCourses
.
push
(
offer
);
this
.
SumMoney
();
...
...
src/pages/sale/courseList.vue
View file @
ceb284bc
...
...
@@ -149,13 +149,28 @@
买
{{
x
.
BuyNum
}}
送
{{
x
.
SendNum
}}
</div>
<div
class=
"border-bottom"
v-if=
"x.PriceDiscountType == 2"
>
单人报名享
{{
100
-
x
.
PriceMoney
}}
折优惠
<template
v-if=
"x.PriceMoney>0"
>
单人报名享
{{
((
100
-
x
.
PriceMoney
)
/
10
).
toFixed
(
2
)
}}
折优惠
</
template
>
<
template
v-else
>
单人报名无优惠
</
template
>
</div>
<div
class=
"border-bottom"
v-if=
"x.PriceDiscountType == 3"
>
双人报名享
{{
100
-
x
.
PriceMoney
}}
折优惠
<
template
v-if=
"x.PriceMoney>0"
>
双人报名享
{{
((
100
-
x
.
PriceMoney
)
/
10
).
toFixed
(
2
)
}}
折优惠
</
template
>
<
template
v-else
>
双人报名无优惠
</
template
>
</div>
<div
class=
"border-bottom"
v-if=
"x.PriceDiscountType == 4"
>
续费享
{{
100
-
x
.
PriceMoney
}}
折优惠
<
template
v-if=
"x.PriceMoney>0"
>
续费享
{{
((
100
-
x
.
PriceMoney
)
/
10
).
toFixed
(
2
)
}}
折优惠
</
template
>
<
template
v-else
>
续费无优惠
</
template
>
</div>
<div
class=
"remark-font"
v-if=
"x.PriceDiscountType == 0"
>
暂无优惠政策
...
...
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