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
6bdbdede
authored
Dec 06, 2021
by
杨铁龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化接口
parent
2c7c0c2b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletions
model/index.ts
service/order.ts
model/index.ts
View file @
6bdbdede
import
type
{
UniplatSdk
}
from
"uniplat-sdk"
;
export
*
from
"./order"
;
export
*
from
"./order-product"
export
const
enum
ChatRole
{
Default
=
25
,
...
...
service/order.ts
View file @
6bdbdede
...
...
@@ -64,14 +64,40 @@ class OrderService {
.
execute
();
}
/** 专项工单 */
public
getOrders
(
params
:
{
productCode
?:
GeneralOrderDirection
;
index
:
number
;
size
?:
number
;
},
isHrs
=
false
)
{
const
list
=
this
.
getSdk
()
.
model
(
this
.
generalOrder
)
.
list
(
isHrs
?
"hroOrgOrderList"
:
"userOrderList"
);
if
(
params
.
productCode
)
{
list
.
addPrefilter
({
'ProductId#product.Code'
:
params
.
productCode
});
}
return
list
.
query
({
item_size
:
params
.
size
||
100
,
pageIndex
:
params
.
index
})
.
then
((
r
)
=>
{
return
{
total
:
r
.
pageData
.
record_count
,
list
:
this
.
handler
.
buildRows
<
OrderTableListItem
>
(
r
.
pageData
.
rows
,
orderPredict
),
};
});
}
public
getProcessOrders
(
params
:
{
productCode
?:
GeneralOrderDirection
;
index
:
number
;
size
?:
number
;
})
{
const
list
=
this
.
getSdk
()
.
model
(
this
.
generalOrder
)
.
list
(
"
user
OrderList"
);
.
list
(
"
hroOrgDoing
OrderList"
);
if
(
params
.
productCode
)
{
list
.
addPrefilter
({
'ProductId#product.Code'
:
params
.
productCode
});
}
...
...
@@ -184,6 +210,11 @@ class OrderService {
return
this
.
getSdk
().
domainService
(
"hro_spview"
,
"OrderSetting"
,
"sendPayAccountInfo"
)
.
request
(
"get"
,
{
params
})
}
public
sendPayAccountInfoForAgent
(
params
:
{
send
:
string
;
userOrderPaymentId
:
number
})
{
return
this
.
getSdk
().
domainService
(
"hro_spview"
,
"OrderSetting"
,
"sendPayAccountInfoForAgent"
)
.
request
(
"get"
,
{
params
})
}
}
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