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
0059e3e9
authored
Dec 02, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
d77c09b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
1 deletions
model/order.ts
service/order.ts
model/order.ts
View file @
0059e3e9
...
@@ -134,3 +134,16 @@ export interface OrderRowItem {
...
@@ -134,3 +134,16 @@ export interface OrderRowItem {
v
:
string
;
v
:
string
;
id
:
string
;
id
:
string
;
}
}
export
interface
PaymentDetail
{
status
:
PayStatus
;
time
:
string
;
dueTime
:
string
;
method
:
PayMethod
;
method_label
:
string
;
type
:
string
;
desc
:
string
;
agent
:
string
;
id
:
number
;
v
:
number
;
}
service/order.ts
View file @
0059e3e9
...
@@ -6,7 +6,8 @@ import {
...
@@ -6,7 +6,8 @@ import {
OrderTableListItem
,
OrderTableListItem
,
orderTableListItemPredict
,
orderTableListItemPredict
,
SrcPlatform
,
SrcPlatform
,
OrderPayItem
OrderPayItem
,
PaymentDetail
}
from
"../model"
;
}
from
"../model"
;
class
OrderService
{
class
OrderService
{
...
@@ -84,6 +85,35 @@ class OrderService {
...
@@ -84,6 +85,35 @@ class OrderService {
return
[];
return
[];
});
});
}
}
public
getPayment
(
id
:
string
|
number
)
{
return
Chat
.
getSdk
()
.
model
(
orderService
.
generalOrderPaymentModel
)
.
detail
(
id
as
string
,
"userOrderPaymentDetail"
)
.
query
()
.
then
((
r
)
=>
this
.
handler
.
buildRow
<
PaymentDetail
>
(
r
.
row
,
{
status
:
"Status"
,
time
:
"PaymentDate"
,
dueTime
:
"PaymentDueDate"
,
method
:
"PaymentFunction_label"
,
type
:
"ItemName"
,
desc
:
"PaymentDesc"
,
agent
:
"ProviderCollectId#provider_agent.AgentTrueName"
,
id
:
"ID"
,
v
:
"uniplat_version"
,
})
);
}
public
addImage4Payment
(
id
:
number
|
string
,
v
:
number
,
path
:
string
)
{
return
Chat
.
getSdk
()
.
model
(
orderService
.
generalOrderPaymentModel
)
.
action
(
"addImages"
)
.
updateInitialParams
({
selected_list
:
[{
v
,
id
:
id
as
number
}]
})
.
addInputs_parameter
({
images
:
path
})
.
execute
();
}
}
}
export
const
orderService
=
new
OrderService
();
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