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
d5e1260d
Commit
d5e1260d
authored
Jun 10, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
0d216a41
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
9 deletions
+30
-9
editOrder-form.vue
src/components/sale/editOrder-form.vue
+26
-7
orderlist.vue
src/components/sale/orderlist.vue
+4
-2
No files found.
src/components/sale/editOrder-form.vue
View file @
d5e1260d
<
style
>
.editOrderDrawerTop
{
width
:
100%
;
height
:
50px
;
display
:
flex
;
justify-content
:
space-between
;
background-color
:
#f0f5fb
;
padding
:
5px
10px
;
align-items
:
center
;
}
</
style
>
<!--订单操作-->
<
template
>
<q-dialog
v-model=
"IsShowEditOrder"
maximized
full-height
seamless
position=
"right"
>
<q-card
style=
"margin-top:61px;width:500px"
class=
"no-border-radius classinfo_Dialog"
>
<div
class=
"
d
rawerTop"
>
<div
style=
"display:flex;align-items:center;margin
:20px 0 0
10px;"
>
<div
class=
"
editOrderD
rawerTop"
>
<div
style=
"display:flex;align-items:center;margin
-left:
10px;"
>
<span
class=
"drawer_Span"
>
{{
OrderMsg
.
OrderId
>
0
?
"修改订单"
:
"立即下单"
}}
</span>
</div>
</div>
...
...
@@ -12,10 +24,10 @@
@
input=
"countPrice"
class=
"col-12"
label=
"人数"
:rules=
"[val => !!val || '请填写人数']"
:disable=
"modityOrderType==2"
/>
<template
v-if=
"isChaBan==1"
>
<q-select
standout=
"bg-primary text-white"
option-value=
"CourseId"
option-label=
"CourseName
"
v-model=
"OrderMsg.CourseId"
:options=
"CourseList"
emit-value
map-options
class=
"q-pb-lg"
label=
"选择课程"
<q-select
filled
option-value=
"CourseId"
option-label=
"CourseName"
ref=
"CourseId
"
v-model=
"OrderMsg.CourseId"
:options=
"CourseList"
emit-value
map-options
class=
"q-pb-lg"
:rules=
"[val => !!val || '请选择课程']"
label=
"选择课程"
@
input=
"changePrice"
/>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.StartClassHours"
@
blur=
"countPrice"
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.StartClassHours"
ref=
"StartClassHours"
@
blur=
"countPrice"
class=
"col-12"
label=
"起始课时"
:rules=
"[val => !!val || '请填起始课时']"
/>
</
template
>
<
template
v-if=
"modityOrderType==1"
>
...
...
@@ -131,7 +143,7 @@
OrderNature
:
1
,
//订单性质
OldPreferPrice
:
0
,
//原实际应收
IsChaBan
:
0
,
//是否插班报入(1-是)
CourseId
:
0
,
//课程编号
CourseId
:
''
,
//课程编号
StartClassHours
:
0
,
//已上课时
},
IsShowUpPrice
:
false
,
//是否显示高于定价
...
...
@@ -232,7 +244,7 @@
this
.
OrderMsg
.
OrderNature
=
0
;
this
.
OrderMsg
.
OldPreferPrice
=
0
;
this
.
OrderMsg
.
GuestNum
=
1
;
this
.
OrderMsg
.
CourseId
=
0
;
this
.
OrderMsg
.
CourseId
=
''
;
this
.
OrderMsg
.
StartClassHours
=
0
;
this
.
OrderMsg
.
IsChaBan
=
this
.
isChaBan
;
this
.
OrderMsg
.
OrderType
=
this
.
orderType
;
...
...
@@ -321,6 +333,13 @@
this
.
OrderMsg
.
PreferPrice
=
(
this
.
OrderMsg
.
GuestNum
*
this
.
OrderMsg
.
Unit_Price
)
-
this
.
OrderMsg
.
LessPrice
;
}
}
if
(
this
.
isChaBan
==
1
){
this
.
$refs
.
CourseId
.
validate
();
this
.
$refs
.
StartClassHours
.
validate
();
if
(
this
.
$refs
.
CourseId
.
hasError
||
this
.
$refs
.
StartClassHours
.
hasError
){
return
;
}
}
setClassOrder
(
this
.
OrderMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
...
...
src/components/sale/orderlist.vue
View file @
d5e1260d
...
...
@@ -709,7 +709,7 @@
</div>
<!--修改课程订单-->
<editorder-form
v-if=
"isShowEditOrderForm"
:save-obj=
"orderObj"
:orderType=
"orderObj.OrderType"
@
close=
"closeOrderSaveForm"
@
success=
"refreshOrder"
:modityOrderType=
"newModityOrderType"
>
@
close=
"closeOrderSaveForm"
@
success=
"refreshOrder"
:
isChaBan=
"isChaBan"
:
modityOrderType=
"newModityOrderType"
>
</editorder-form>
<!--修改留学就业订单-->
...
...
@@ -862,6 +862,7 @@
isShowReward
:
false
,
// 是否可以修改额外金额
isEditOrder
:
false
,
//是否有【总经理】修改订单但权限
newModityOrderType
:
0
,
isChaBan
:
0
,
//是否插班(0-正常报入,1-插班报入)
}
},
created
()
{
...
...
@@ -1098,7 +1099,8 @@
}
else
{
//留学就业订单
this
.
isShowStudyOrderForm
=
true
;
}
this
.
isChaBan
=
item
.
IsChaBan
;
console
.
log
(
item
,
'item'
);
},
//刷新页面
refreshOrder
()
{
...
...
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