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
5336fa0f
authored
Dec 03, 2021
by
杨铁龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
适配接口修改
parent
214700eb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
model/order.ts
service/order.ts
model/order.ts
View file @
5336fa0f
...
@@ -54,6 +54,10 @@ export interface OrderTableListItem {
...
@@ -54,6 +54,10 @@ export interface OrderTableListItem {
RefundedAmount
:
number
;
RefundedAmount
:
number
;
remarkTitle
:
string
;
remarkTitle
:
string
;
remarkContent
:
string
;
remarkContent
:
string
;
chatTypeCode
:
string
;
lastMsgContent
:
string
;
lastMsgTime
:
string
;
unreadCount
:
number
;
}
}
export
const
orderPredict
=
{
export
const
orderPredict
=
{
...
@@ -64,14 +68,17 @@ export const orderPredict = {
...
@@ -64,14 +68,17 @@ export const orderPredict = {
status
:
"Status_label"
,
status
:
"Status_label"
,
remark
:
"Remark"
,
remark
:
"Remark"
,
time
:
"CreatedDate"
,
time
:
"CreatedDate"
,
createTime
:
"CreatedDate"
,
PayAmount
:
"PayAmount"
,
PayAmount
:
"PayAmount"
,
PaidAmount
:
"PaidAmount"
,
PaidAmount
:
"PaidAmount"
,
RefundAmount
:
"RefundAmount"
,
RefundAmount
:
"RefundAmount"
,
RefundedAmount
:
"RefundedAmount"
,
RefundedAmount
:
"RefundedAmount"
,
chat
:
"UniplatImChatId"
,
chat
:
"UniplatImChatId"
,
remarkTitle
:
"Title"
,
remarkTitle
:
"Title"
,
remarkContent
:
"Remark"
remarkContent
:
"Remark"
,
chatTypeCode
:
"UniplatChatTypeCode"
,
lastMsgContent
:
"UniplatLastMsgContent"
,
lastMsgTime
:
"UniplatLastMsgTime"
,
unreadCount
:
0
};
};
export
const
enum
PayStatus
{
export
const
enum
PayStatus
{
...
...
service/order.ts
View file @
5336fa0f
...
@@ -28,7 +28,7 @@ class OrderService {
...
@@ -28,7 +28,7 @@ class OrderService {
}
}
public
openOrder
(
params
:
{
public
openOrder
(
params
:
{
product
Id
:
string
|
number
;
product
Code
:
string
;
srcPlatform
:
SrcPlatform
;
srcPlatform
:
SrcPlatform
;
createdType
:
OperationType
;
createdType
:
OperationType
;
})
{
})
{
...
@@ -36,7 +36,7 @@ class OrderService {
...
@@ -36,7 +36,7 @@ class OrderService {
.
model
(
this
.
generalOrder
)
.
model
(
this
.
generalOrder
)
.
action
(
"addOrder"
)
.
action
(
"addOrder"
)
.
addInputs_parameter
({
.
addInputs_parameter
({
Product
Id
:
params
.
productId
,
Product
Code
:
params
.
productCode
,
SrcPlatform
:
params
.
srcPlatform
,
SrcPlatform
:
params
.
srcPlatform
,
CreatedType
:
params
.
createdType
,
CreatedType
:
params
.
createdType
,
})
})
...
@@ -59,16 +59,21 @@ class OrderService {
...
@@ -59,16 +59,21 @@ class OrderService {
.
execute
();
.
execute
();
}
}
public
getOrders
(
index
:
number
)
{
public
getOrders
(
productId
:
number
,
index
:
number
,
size
=
100
)
{
return
this
.
getSdk
()
return
this
.
getSdk
()
.
model
(
this
.
generalOrder
)
.
model
(
this
.
generalOrder
)
.
list
(
"userOrderList"
)
.
list
(
"userOrderList"
)
.
query
({
item_size
:
100
,
pageIndex
:
index
})
.
addPrefilter
({
ProductId
:
productId
})
.
then
((
r
)
=>
.
query
({
item_size
:
size
,
pageIndex
:
index
})
this
.
handler
.
buildRows
<
OrderTableListItem
>
(
.
then
((
r
)
=>
{
return
{
total
:
r
.
pageData
.
record_count
,
list
:
this
.
handler
.
buildRows
<
OrderTableListItem
>
(
r
.
pageData
.
rows
,
r
.
pageData
.
rows
,
orderPredict
orderPredict
)
)
}
}
);
);
}
}
...
...
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