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
5973674a
authored
Dec 03, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
u
parent
d6a7d544
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
10 deletions
components/message.vue
model/index.ts
service/order.ts
components/message.vue
View file @
5973674a
...
...
@@ -184,6 +184,7 @@
[
dto
.
MessageType
.
QuestionAnswer
,
"question-answer-message"
],
[
dto
.
MessageType
.
Action
,
"action-message"
],
[
dto
.
MessageType
.
Pay
,
"pay-message"
],
[
dto
.
MessageType
.
Refund
,
"pay-message"
],
]);
@
Component
({
...
...
@@ -265,7 +266,10 @@
}
private
get
needReadTip
()
{
return
this
.
data
.
type
!==
dto
.
MessageType
.
Pay
;
return
(
this
.
data
.
type
!==
dto
.
MessageType
.
Pay
&&
this
.
data
.
type
!==
dto
.
MessageType
.
Refund
);
}
private
get
isWithdrawMessage
()
{
...
...
model/index.ts
View file @
5973674a
...
...
@@ -115,6 +115,7 @@ export const enum MessageType {
Notify
=
"notify"
,
MpNavigate
=
"mp-navigate"
,
Pay
=
"gpay2"
,
Refund
=
"grefund2"
,
}
export
const
enum
MessageHandled
{
...
...
service/order.ts
View file @
5973674a
...
...
@@ -38,7 +38,7 @@ class OrderService {
})
{
return
this
.
getSdk
()
.
model
(
this
.
generalOrder
)
.
action
(
params
.
forceNewOrder
?
"addOrder"
:
'getOrAddOrder'
)
.
action
(
params
.
forceNewOrder
?
"addOrder"
:
"getOrAddOrder"
)
.
addInputs_parameter
({
ProductCode
:
params
.
productCode
,
SrcPlatform
:
params
.
srcPlatform
,
...
...
@@ -75,10 +75,9 @@ class OrderService {
list
:
this
.
handler
.
buildRows
<
OrderTableListItem
>
(
r
.
pageData
.
rows
,
orderPredict
)
}
}
);
),
};
});
}
/**
...
...
@@ -89,7 +88,7 @@ class OrderService {
public
getPayments
(
id
:
number
,
withActions
=
false
)
{
return
this
.
getSdk
()
.
model
(
orderService
.
generalOrderPaymentModel
)
.
list
(
'userOrderPaymentList'
)
.
list
(
withActions
?
""
:
"userOrderPaymentList"
)
.
addPrefilter
({
OrderId
:
id
})
.
query
({
pageIndex
:
1
,
item_size
:
100
})
.
then
((
r
)
=>
{
...
...
@@ -153,13 +152,17 @@ class OrderService {
}
/** 设置备注 */
public
setRemark
(
id
:
string
,
v
:
number
,
data
:
{
Title
:
string
,
Remark
:
string
})
{
public
setRemark
(
id
:
string
,
v
:
number
,
data
:
{
Title
:
string
;
Remark
:
string
}
)
{
return
Chat
.
getSdk
()
.
model
(
this
.
generalOrder
)
.
action
(
'editTitle'
)
.
action
(
"editTitle"
)
.
updateInitialParams
({
selected_list
:
[{
v
,
id
:
+
id
}]
})
.
addInputs_parameter
(
data
)
.
execute
()
.
execute
()
;
}
}
...
...
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