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
6c026289
Commit
6c026289
authored
Dec 14, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
9fded566
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
337 additions
and
65 deletions
+337
-65
orderlist.vue
src/components/sale/orderlist.vue
+262
-13
orderremark-form.vue
src/components/sale/orderremark-form.vue
+75
-52
No files found.
src/components/sale/orderlist.vue
View file @
6c026289
This diff is collapsed.
Click to expand it.
src/components/sale/orderremark-form.vue
View file @
6c026289
<!--修改-订单备注-->
<!--修改-订单备注-->
<
template
>
<
template
>
<q-dialog
v-model=
"dialog"
maximized
full-height
seamless
position=
"right"
>
<q-dialog
v-model=
"IsShowOrderRemarkDialog"
content-class=
"bg-grey-1"
persistent
transition-show=
"scale"
<q-card
style=
"margin-top:61px;width:500px"
class=
"no-border-radius classinfo_Dialog"
>
transition-hide=
"scale"
>
<div
class=
"drawerTop"
>
<q-card
style=
"width: 400px;max-width:500px;"
>
<div
style=
"display:flex;align-items:center;margin:20px 0 0 20px;"
>
<q-card-section>
<span
class=
"drawer_Span"
>
{{
title
}}
</span>
<div
class=
"text-h6"
>
{{
RemarkTitle
}}
</div>
</q-card-section>
<q-card-section
class=
"q-pt-none scroll"
style=
"max-height: 70vh"
>
<div
class=
"row wrap"
>
<q-input
filled
stack-label
maxlength=
"500"
:dense=
"false"
v-model=
"OrderRemarkMsg.Remark"
class=
"col-12"
label=
"备注"
/>
</div>
</div>
</div>
</q-card-section>
<div
style=
"padding:20px 15px;"
>
<q-separator
/>
<q-input
filled
stack-label
maxlength=
"100"
:dense=
"false"
v-model=
"OrderMsg.GuestNum"
type=
"number"
<q-card-actions
align=
"right"
class=
"bg-white"
>
@
input=
"peopleNumber"
class=
"col-12"
label=
"人数"
:rules=
"[val => !!val || '请填写人数']"
/>
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"closeRemarkForm"
/>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.Unit_Price"
:disable=
"UPrice==true?false:true"
<q-btn
label=
"立即提交"
color=
"accent"
class=
"q-px-md"
style=
"font-weight:400 !important"
@
blur=
"priceNumber"
class=
"col-12"
label=
"成交单价"
:rules=
"[val => !!val || '请填成交单价']"
/>
@
click=
"saveOrderRemark"
/>
<q-toggle
v-model=
"UPrice"
label=
"高于定价收生"
class=
"q-mb-md"
@
change=
"resetSearch"
/>
</q-card-actions>
<q-select
standout=
"bg-primary text-white"
option-value=
"Id"
option-label=
"Name"
v-model=
"OrderMsg.OrderSource"
:options=
"SourceEnumList"
emit-value
map-options
label=
"客人来源"
/>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.SaleRemark"
style=
"margin-top: 20px"
type=
"textarea"
class=
"col-12"
label=
"备注"
/>
<div
style=
"margin:30px 10px 0 0;"
>
<q-btn
class=
"q-mr-md"
label=
"取消"
@
click=
"dialog=false"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
label=
"保存"
@
click=
"saveSatMsg()"
/>
</div>
</div>
</q-card>
</q-card>
<div
class=
"dialog-out-close"
@
click=
"dialog=false"
style=
"height:40px !important;border-top-left-radius: 4px !important;border-bottom-left-radius: 4px !important;"
>
<q-icon
name=
"iconfont icon-jujue1"
size=
"26px"
/>
</div>
</q-dialog>
</q-dialog>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
updateOrderRemark
,
//修改订单备注
}
from
'../../api/sale/sale'
export
default
{
export
default
{
name
:
"orderremark-form"
,
name
:
"orderremark-form"
,
props
:
{
props
:
{
saveObj
:
{
saveObj
:
{
type
:
Object
,
type
:
Object
,
default
:
null
,
default
:
null
,
},
remarkType
:
{
type
:
Number
,
default
:
0
,
}
}
},
},
data
()
{
data
()
{
return
{
return
{
dialog
:
true
,
IsShowOrderRemarkDialog
:
true
,
title
:
''
,
RemarkTitle
:
''
,
OrderMsg
:
{
OrderRemarkMsg
:
{
ClassId
:
0
,
//班级编号
OrderId
:
0
,
GuestNum
:
0
,
//人数
Type
:
0
,
Unit_Price
:
0
,
Remark
:
""
PreferPrice
:
0
,
OrderSource
:
0
,
SaleRemark
:
""
,
Class_Price
:
0
,
},
},
StepPriceList
:
[],
UnitPrice
:
0
,
}
}
},
},
created
()
{
created
()
{
this
.
initData
();
},
},
methods
:
{
methods
:
{
//关闭弹窗
closeRemarkForm
()
{
this
.
IsShowOrderRemarkDialog
=
false
;
this
.
$emit
(
'close'
);
},
//初始化数据
initData
()
{
this
.
OrderRemarkMsg
.
OrderId
=
this
.
saveObj
.
OrderId
;
switch
(
this
.
remarkType
)
{
case
1
:
this
.
RemarkTitle
=
"修改销售备注"
;
this
.
OrderRemarkMsg
.
Type
=
1
;
this
.
OrderRemarkMsg
.
Remark
=
this
.
saveObj
.
SaleRemark
;
break
;
case
2
:
this
.
RemarkTitle
=
"修改教务备注"
;
this
.
OrderRemarkMsg
.
Type
=
2
;
this
.
OrderRemarkMsg
.
Remark
=
this
.
saveObj
.
TeacherRemark
;
break
;
case
3
:
this
.
RemarkTitle
=
"修改校长备注"
;
this
.
OrderRemarkMsg
.
Type
=
3
;
this
.
OrderRemarkMsg
.
Remark
=
this
.
saveObj
.
RectorRemark
;
break
;
case
4
:
this
.
RemarkTitle
=
"修改经理备注"
;
this
.
OrderRemarkMsg
.
Type
=
4
;
this
.
OrderRemarkMsg
.
Remark
=
this
.
saveObj
.
DirectorRemark
;
break
;
}
},
//获取订单信息
//获取订单信息
getOrderInfo
()
{
saveOrderRemark
()
{
getClassOrderInfo
({
updateOrderRemark
(
this
.
OrderRemarkMsg
).
then
(
res
=>
{
OrderId
:
saveObj
.
OrderId
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
OrderMsg
.
ClassId
=
res
.
Data
.
OrderInfo
.
ClassId
;
this
.
$q
.
notify
({
this
.
OrderMsg
.
GuestNum
=
res
.
Data
.
OrderInfo
.
GuestNum
;
icon
:
'iconfont icon-chenggong'
,
this
.
OrderMsg
.
Unit_Price
=
res
.
Data
.
OrderInfo
.
Unit_Price
;
color
:
'accent'
,
this
.
OrderMsg
.
PreferPrice
=
res
.
Data
.
OrderInfo
.
PreferPrice
;
timeout
:
2000
,
this
.
OrderMsg
.
OrderSource
=
res
.
Data
.
OrderInfo
.
OrderSource
;
message
:
'修改成功!'
,
this
.
OrderMsg
.
SaleRemark
=
res
.
Data
.
OrderInfo
.
SaleRemark
;
position
:
'top'
this
.
OrderMsg
.
Class_Price
=
res
.
Data
.
OrderInfo
.
Class_Price
;
})
this
.
UnitPrice
=
this
.
OrderMsg
.
Unit_Price
//调用父页面成功方法
this
.
StepPriceList
=
res
.
Data
.
StepPriceList
;
this
.
$emit
(
'success'
)
;
this
.
dialog
=
tru
e
this
.
IsShowOrderRemarkDialog
=
fals
e
}
}
})
})
}
}
}
}
}
}
</
script
>
</
script
>
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