Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
da6ef098
authored
Dec 01, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
u
parent
8620aa88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
3 deletions
service/order.ts
service/order.ts
View file @
da6ef098
...
...
@@ -6,12 +6,14 @@ import {
OrderTableListItem
,
orderTableListItemPredict
,
SrcPlatform
,
OrderPayItem
}
from
"../model"
;
class
OrderService
{
public
generalOrder
=
"general_order_info"
;
public
generalOrderPaymentModel
=
"general_order_payment_info"
;
public
readonly
generalOrder
=
"general_order_info"
;
public
readonly
generalOrderPaymentModel
=
"general_order_payment_info"
;
private
handler
=
new
UniplatSdkExtender
();
private
readonly
handler
=
new
UniplatSdkExtender
();
public
openOrder
(
params
:
{
productId
:
number
;
...
...
@@ -58,6 +60,30 @@ class OrderService {
)
);
}
public
getPayments
(
id
:
number
)
{
return
Chat
.
getSdk
()
.
model
(
orderService
.
generalOrderPaymentModel
)
.
list
()
.
addPrefilter
({
OrderId
:
id
})
.
query
({
pageIndex
:
1
,
item_size
:
100
})
.
then
((
r
)
=>
{
if
(
r
&&
r
.
pageData
&&
r
.
pageData
.
rows
)
{
return
this
.
handler
.
buildRows
<
OrderPayItem
>
(
r
.
pageData
.
rows
,
{
status
:
"Status"
,
id
:
"ID"
,
title
:
"ItemName"
,
time
:
"PaymentDate"
,
deadLine
:
"PaymentDueDate"
,
value
:
"Amount"
,
}
);
}
return
[];
});
}
}
export
const
orderService
=
new
OrderService
();
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