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
515362e6
authored
Dec 02, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://gitlab.corp.qinqinxiaobao.com:9880/uniplat/customer-service
parents
12cfe2d1
b164ce1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
19 deletions
model/order.ts
service/order.ts
model/order.ts
View file @
515362e6
...
@@ -28,6 +28,8 @@ export const statusMapping = new Map<OrderStatus, string>([
...
@@ -28,6 +28,8 @@ export const statusMapping = new Map<OrderStatus, string>([
export
interface
OrderTableListItem
{
export
interface
OrderTableListItem
{
id
:
string
;
id
:
string
;
v
:
string
;
no
:
string
;
title
:
string
;
title
:
string
;
time
:
string
;
time
:
string
;
chat
:
number
;
chat
:
number
;
...
@@ -50,11 +52,14 @@ export interface OrderTableListItem {
...
@@ -50,11 +52,14 @@ export interface OrderTableListItem {
RefundedAmount
:
number
;
RefundedAmount
:
number
;
}
}
export
const
order
TableListItem
Predict
=
{
export
const
orderPredict
=
{
id
:
"ID"
,
id
:
"ID"
,
v
:
'uniplat_version'
,
no
:
'OrderDocNo'
,
title
:
"ProductId#product.OuterName"
,
title
:
"ProductId#product.OuterName"
,
status
:
"Status"
,
status
:
"Status"
,
time
:
"CreatedDate"
,
time
:
"CreatedDate"
,
createTime
:
'CreatedDate'
,
PayAmount
:
"PayAmount"
,
PayAmount
:
"PayAmount"
,
PaidAmount
:
"PaidAmount"
,
PaidAmount
:
"PaidAmount"
,
RefundAmount
:
"RefundAmount"
,
RefundAmount
:
"RefundAmount"
,
...
@@ -128,14 +133,6 @@ export const enum OperationType {
...
@@ -128,14 +133,6 @@ export const enum OperationType {
Backend
,
Backend
,
}
}
export
interface
OrderRowItem
{
status
:
OrderStatus
;
no
:
string
;
createTime
:
string
;
v
:
string
;
id
:
string
;
}
export
interface
PaymentDetail
{
export
interface
PaymentDetail
{
status
:
PayStatus
;
status
:
PayStatus
;
time
:
string
;
time
:
string
;
...
...
service/order.ts
View file @
515362e6
...
@@ -4,12 +4,11 @@ import {
...
@@ -4,12 +4,11 @@ import {
OperationType
,
OperationType
,
OrderStatus
,
OrderStatus
,
OrderTableListItem
,
OrderTableListItem
,
order
TableListItem
Predict
,
orderPredict
,
SrcPlatform
,
SrcPlatform
,
OrderPayItem
,
OrderPayItem
,
PaymentDetail
,
PaymentDetail
,
UploadImageItem
,
UploadImageItem
,
OrderRowItem
}
from
"../model"
;
}
from
"../model"
;
class
OrderService
{
class
OrderService
{
...
@@ -68,7 +67,7 @@ class OrderService {
...
@@ -68,7 +67,7 @@ class OrderService {
.
then
((
r
)
=>
.
then
((
r
)
=>
this
.
handler
.
buildRows
<
OrderTableListItem
>
(
this
.
handler
.
buildRows
<
OrderTableListItem
>
(
r
.
pageData
.
rows
,
r
.
pageData
.
rows
,
order
TableListItem
Predict
orderPredict
)
)
);
);
}
}
...
@@ -148,13 +147,7 @@ class OrderService {
...
@@ -148,13 +147,7 @@ class OrderService {
}
}
public
buildOrder
(
o
:
metaRow
)
{
public
buildOrder
(
o
:
metaRow
)
{
return
this
.
handler
.
buildRow
<
OrderRowItem
>
(
o
,
{
return
this
.
handler
.
buildRow
<
OrderTableListItem
>
(
o
,
orderPredict
);
status
:
'Status'
,
no
:
'OrderDocNo'
,
createTime
:
'CreatedDate'
,
v
:
'uniplat_version'
,
id
:
'ID'
});
}
}
}
}
...
...
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