Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
supplier
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王宇航
supplier
Commits
b5f2771d
Commit
b5f2771d
authored
Mar 17, 2021
by
Wyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、自動接單暫時沒有orderType,打印時無法區分自取外送
parent
d088025b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
component-delivery-pick/src/main/java/com/gingersoft/gsa/delivery_pick_mode/model/viewModel/PageViewModel.kt
+5
-5
No files found.
component-delivery-pick/src/main/java/com/gingersoft/gsa/delivery_pick_mode/model/viewModel/PageViewModel.kt
View file @
b5f2771d
...
...
@@ -184,7 +184,7 @@ class PageViewModel(private val repository: WeatherRepository) : ViewModel() {
}
},
{
it
.
printStackTrace
()
LoganManager
.
w_delivery
(
LoganManager
.
EVENT_QUERY
,
"getToBeConfirmedOrderIds:${it.message}"
)
;
LoganManager
.
w_delivery
(
LoganManager
.
EVENT_QUERY
,
"getToBeConfirmedOrderIds:${it.message}"
)
})
}
}
...
...
@@ -211,11 +211,11 @@ class PageViewModel(private val repository: WeatherRepository) : ViewModel() {
//驗證訂單金額是否正確
if
(
verificationAmount
(
orderDetail
))
{
receiveNextOrder
()
LoganManager
.
w_delivery
(
LoganManager
.
EVENT_ERROR
,
"金額驗證不通過:${GsonUtils.GsonString(orderInfo)}"
)
;
LoganManager
.
w_delivery
(
LoganManager
.
EVENT_ERROR
,
"金額驗證不通過:${GsonUtils.GsonString(orderInfo)}"
)
return
@launch
}
//即時單
orderDetail
.
order_type
=
dataList
[
0
].
order_type
//
orderDetail.order_type = dataList[0].order_type
if
(
orderDetail
.
order_type
==
7
)
{
//如果是自取單,將物流類型改為本店
orderDetail
.
companyType
=
0
...
...
@@ -761,8 +761,8 @@ class PageViewModel(private val repository: WeatherRepository) : ViewModel() {
//訂單信息和廚房單,打印前需要修改dataBean的order_type和orderPayType
TakeawayOrder
.
getInstance
().
shoppingCart
.
deliveryAndPickupData
=
dataBean
va
r
contentAdapter
=
PrintContentAdapter
()
va
r
printContent
=
contentAdapter
.
adaptationPrintTakeawayFormContent
(
dataBean
)
va
l
contentAdapter
=
PrintContentAdapter
()
va
l
printContent
=
contentAdapter
.
adaptationPrintTakeawayFormContent
(
dataBean
)
CC
.
obtainBuilder
(
ComponentName
.
COMPONENT_PRINT
)
.
addParam
(
PrintConstans
.
PRINT_TYPE
,
PrintConstans
.
PRINT_OTHER_ORDER
)
...
...
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