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
f808410d
Commit
f808410d
authored
Sep 03, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7cd7066a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1952 additions
and
437 deletions
+1952
-437
sale.js
src/api/sale/sale.js
+2
-2
orderlist.vue
src/components/sale/orderlist.vue
+7
-1
transfer-order.vue
src/components/school/student/transfer-order.vue
+33
-7
order-form copy.vue
...ponents/school/student/transfer-order/order-form copy.vue
+1448
-0
order-form.vue
src/components/school/student/transfer-order/order-form.vue
+462
-427
No files found.
src/api/sale/sale.js
View file @
f808410d
...
@@ -28,7 +28,7 @@ export function getOrderSourceEnumList(data) {
...
@@ -28,7 +28,7 @@ export function getOrderSourceEnumList(data) {
*/
*/
export
function
setClassOrder
(
data
)
{
export
function
setClassOrder
(
data
)
{
return
request
({
return
request
({
url
:
'/order/SetClassOrder'
,
url
:
'/order/Set
New
ClassOrder'
,
method
:
'post'
,
method
:
'post'
,
data
data
})
})
...
@@ -40,7 +40,7 @@ export function setClassOrder(data) {
...
@@ -40,7 +40,7 @@ export function setClassOrder(data) {
*/
*/
export
function
SetClassOrderBatch
(
data
)
{
export
function
SetClassOrderBatch
(
data
)
{
return
request
({
return
request
({
url
:
'/order/SetClassOrderBatch'
,
url
:
'/order/Set
New
ClassOrderBatch'
,
method
:
'post'
,
method
:
'post'
,
data
data
})
})
...
...
src/components/sale/orderlist.vue
View file @
f808410d
...
@@ -198,7 +198,13 @@
...
@@ -198,7 +198,13 @@
</div>
</div>
</template>
</template>
<
template
v-if=
"item.OrderType == 1"
>
<
template
v-if=
"item.OrderType == 1"
>
<div
v-if=
"item.CourseName"
>
<div
v-if=
"item.ClassList&&item.ClassList.length>0"
>
课程名称:
<span
v-for=
"(itemc, indexc) in item.ClassList"
>
{{
indexc
>
1
?
','
:
""
}}{{
itemc
.
CourseName
}}
</span>
</div>
<div
v-else=
"item.CourseName"
>
课程名称:
{{
item
.
CourseName
}}
课程名称:
{{
item
.
CourseName
}}
</div>
</div>
<div
v-if=
"item.CourseSubjectName"
>
<div
v-if=
"item.CourseSubjectName"
>
...
...
src/components/school/student/transfer-order.vue
View file @
f808410d
...
@@ -311,14 +311,40 @@ export default {
...
@@ -311,14 +311,40 @@ export default {
selectCourse
(
val
)
{
selectCourse
(
val
)
{
this
.
selectedCourseList
=
[]
this
.
selectedCourseList
=
[]
if
(
val
.
length
>
0
)
{
if
(
val
.
length
>
0
)
{
this
.
saveObj
=
val
[
0
];
//
this.saveObj = val[0];
this
.
saveObj
.
Unit_Price
=
this
.
saveObj
.
SellPrice
;
//
this.saveObj.Unit_Price = this.saveObj.SellPrice;
this
.
selectedCourseList
=
val
;
this
.
selectedCourseList
=
val
;
}
else
{
}
this
.
saveObj
=
{};
this
.
saveObj
=
{};
this
.
saveObj
.
Unit_Price
=
0
;
this
.
saveObj
.
Unit_Price
=
0
;
this
.
selectedCourseList
=
[];
this
.
saveObj
.
OrderCourseList
=
[];
if
(
this
.
selectedCourseList
&&
this
.
selectedCourseList
.
length
>
0
){
this
.
selectedCourseList
.
forEach
((
item
,
index
)
=>
{
if
(
index
==
0
){
this
.
saveObj
=
JSON
.
parse
(
JSON
.
stringify
(
item
));
console
.
log
(
"this.saveObj111"
,
this
.
saveObj
);
this
.
saveObj
.
Unit_Price
=
item
.
SellPrice
;
this
.
saveObj
.
PreferPrice
=
item
.
SellPrice
;
console
.
log
(
"this.saveObj111.Unit_Price"
,
this
.
saveObj
.
Unit_Price
);
}
}
else
{
this
.
saveObj
.
CourseName
+=
","
+
item
.
CourseName
this
.
saveObj
.
SellPrice
+=
Number
(
item
.
SellPrice
)
this
.
saveObj
.
Unit_Price
+=
Number
(
item
.
SellPrice
)
this
.
saveObj
.
TotalClassHours
+=
Number
(
item
.
TotalClassHours
)
this
.
saveObj
.
DiscountMoney
=
0
;
//number(item.DiscountMoney)
this
.
saveObj
.
LessPrice
=
0
;
this
.
saveObj
.
TextbookFee
+=
Number
(
item
.
TextbookFee
)
this
.
saveObj
.
PreferPrice
+=
Number
(
item
.
SellPrice
)
this
.
saveObj
.
CoursewareFee
+=
Number
(
item
.
CoursewareFee
)
}
});
this
.
saveObj
.
OrderCourseList
=
[];
this
.
saveObj
.
OrderCourseList
=
this
.
selectedCourseList
;
}
console
.
log
(
"this.saveObj"
,
this
.
saveObj
);
console
.
log
(
"this.selectedCourseList"
,
this
.
selectedCourseList
);
},
},
next
()
{
next
()
{
if
(
this
.
step
==
1
&&
this
.
mode
<=
0
)
{
if
(
this
.
step
==
1
&&
this
.
mode
<=
0
)
{
...
...
src/components/school/student/transfer-order/order-form copy.vue
0 → 100644
View file @
f808410d
This diff is collapsed.
Click to expand it.
src/components/school/student/transfer-order/order-form.vue
View file @
f808410d
This diff is collapsed.
Click to expand it.
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