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
caa8e5f5
authored
Dec 02, 2021
by
杨铁龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
设置备注
parent
483d728f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
model/order.ts
service/order.ts
model/order.ts
View file @
caa8e5f5
...
...
@@ -28,7 +28,7 @@ export const statusMapping = new Map<OrderStatus, string>([
export
interface
OrderTableListItem
{
id
:
string
;
v
:
string
;
v
:
number
;
no
:
string
;
title
:
string
;
time
:
string
;
...
...
@@ -50,6 +50,8 @@ export interface OrderTableListItem {
* 已退款金额
*/
RefundedAmount
:
number
;
remarkTitle
:
string
;
remarkContent
:
string
;
}
export
const
orderPredict
=
{
...
...
@@ -65,6 +67,8 @@ export const orderPredict = {
RefundAmount
:
"RefundAmount"
,
RefundedAmount
:
"RefundedAmount"
,
chat
:
"UniplatImChatId"
,
remarkTitle
:
"Title"
,
remarkContent
:
"Remark"
};
export
const
enum
PayStatus
{
...
...
@@ -114,6 +118,9 @@ export interface OrderPayItem {
agent
:
string
;
createdTime
:
string
;
actions
?:
any
[];
bankAccountName
?:
string
;
OpenningBankNam
?:
string
;
bankAccountNo
?:
string
;
}
export
const
orderPayItemPredict
=
{
...
...
@@ -128,7 +135,10 @@ export const orderPayItemPredict = {
v
:
"uniplat_version"
,
title
:
"ItemName"
,
value
:
"Amount"
,
createdTime
:
"CreatedDate"
createdTime
:
"CreatedDate"
,
bankAccountName
:
"ProviderHandleId#ServiceProviderBank.AccountName"
,
OpenningBankNam
:
"ProviderHandleId#ServiceProviderBank.OpenningBankNam"
,
bankAccountNo
:
"ProviderHandleId#ServiceProviderBank.AccountNo"
,
}
export
const
enum
ChatOpenDirection
{
...
...
service/order.ts
View file @
caa8e5f5
...
...
@@ -142,6 +142,16 @@ class OrderService {
public
buildOrder
(
o
:
metaRow
)
{
return
this
.
handler
.
buildRow
<
OrderTableListItem
>
(
o
,
orderPredict
);
}
/** 设置备注 */
public
setRemark
(
id
:
string
,
v
:
number
,
data
:
{
Title
:
string
,
Remark
:
string
})
{
return
Chat
.
getSdk
()
.
model
(
this
.
generalOrder
)
.
action
(
'editTitle'
)
.
updateInitialParams
({
selected_list
:
[{
v
,
id
:
+
id
}]
})
.
addInputs_parameter
(
data
)
.
execute
()
}
}
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