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
d62d22e2
Commit
d62d22e2
authored
Jun 11, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
20bb0909
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
editOrder-form.vue
src/components/sale/editOrder-form.vue
+5
-0
No files found.
src/components/sale/editOrder-form.vue
View file @
d62d22e2
...
@@ -152,6 +152,7 @@
...
@@ -152,6 +152,7 @@
EmployeeList
:
[],
//员工列表
EmployeeList
:
[],
//员工列表
AllemployeeList
:
[],
//所有员工列表
AllemployeeList
:
[],
//所有员工列表
CourseList
:
[],
//课程列表
CourseList
:
[],
//课程列表
choiceObj
:{}
}
}
},
},
created
()
{
created
()
{
...
@@ -193,6 +194,8 @@
...
@@ -193,6 +194,8 @@
//选择课程切换价格
//选择课程切换价格
changePrice
()
{
changePrice
()
{
let
temp
=
this
.
CourseList
.
find
(
x
=>
x
.
CourseId
==
this
.
OrderMsg
.
CourseId
);
let
temp
=
this
.
CourseList
.
find
(
x
=>
x
.
CourseId
==
this
.
OrderMsg
.
CourseId
);
console
.
log
(
temp
,
'temp'
);
this
.
choiceObj
=
temp
;
if
(
temp
)
{
if
(
temp
)
{
this
.
OrderMsg
.
Unit_Price
=
temp
.
SellPrice
;
this
.
OrderMsg
.
Unit_Price
=
temp
.
SellPrice
;
this
.
UnitPrice
=
temp
.
SellPrice
;
this
.
UnitPrice
=
temp
.
SellPrice
;
...
@@ -320,6 +323,8 @@
...
@@ -320,6 +323,8 @@
if
(
this
.
OrderMsg
.
Unit_Price
&&
this
.
OrderMsg
.
Unit_Price
>
0
)
{
if
(
this
.
OrderMsg
.
Unit_Price
&&
this
.
OrderMsg
.
Unit_Price
>
0
)
{
unit_price
=
Number
(
this
.
OrderMsg
.
Unit_Price
);
unit_price
=
Number
(
this
.
OrderMsg
.
Unit_Price
);
}
}
//计算应收价格
this
.
OrderMsg
.
PreferPrice
=
Number
(
guestNum
*
unit_price
).
toFixed
(
2
);
this
.
OrderMsg
.
PreferPrice
=
Number
(
guestNum
*
unit_price
).
toFixed
(
2
);
if
(
this
.
OrderMsg
.
OrderType
==
2
)
{
if
(
this
.
OrderMsg
.
OrderType
==
2
)
{
this
.
OrderMsg
.
OldPreferPrice
=
Number
(
guestNum
*
unit_price
).
toFixed
(
2
);
this
.
OrderMsg
.
OldPreferPrice
=
Number
(
guestNum
*
unit_price
).
toFixed
(
2
);
...
...
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