Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
9e8552ef
Commit
9e8552ef
authored
Apr 04, 2023
by
linweijiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jinfa-20221102' into 'jinfa-20221102'
fix:报表bug以及终止订单第一次未传id问题 See merge request project/jinfa-platform!522
parents
a6ccd870
5f2e4744
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
index.tsx
src/pages/transaction/saleOrder/index.tsx
+3
-1
downloads.ts
src/utils/downloads.ts
+4
-0
No files found.
src/pages/transaction/saleOrder/index.tsx
View file @
9e8552ef
...
...
@@ -73,6 +73,7 @@ const SaleOrder: React.FC<SaleOrderProps> = () => {
const
pauseRef
=
useRef
<
any
>
({})
const
orderIds
=
useRef
<
number
[]
>
([])
const
[
pageLoading
,
setPageLoding
]
=
useState
<
boolean
>
(
false
)
const
[
orderId
,
setOrderId
]
=
useState
<
any
>
()
const
[
payChartVisible
,
setPayChartVisible
]
=
useState
<
boolean
>
(
false
)
const
[
payForm
]
=
Form
.
useForm
();
const
[
payModel
,
setPayModel
]
=
useState
<
'web'
|
'app'
|
'miniapp'
|
null
>
(
'web'
)
...
...
@@ -147,7 +148,7 @@ const SaleOrder: React.FC<SaleOrderProps> = () => {
// 提交中止
const
handleSubmitPause
=
()
=>
{
pauseActions
.
submit
().
then
(
async
({
values
}:
any
)
=>
{
const
result
=
await
runPause
({
orderId
:
values
.
i
d
,
reason
:
values
.
auditOpinion
})
const
result
=
await
runPause
({
orderId
:
orderI
d
,
reason
:
values
.
auditOpinion
})
if
(
result
.
code
===
1000
)
{
pauseRef
.
current
.
setVisible
(
false
)
setTimeout
(()
=>
{
...
...
@@ -240,6 +241,7 @@ const SaleOrder: React.FC<SaleOrderProps> = () => {
const
handleSuspend
=
(
r
)
=>
{
pauseRef
.
current
.
setVisible
(
true
)
pauseActions
.
setFieldValue
(
'id'
,
r
.
orderId
)
setOrderId
(
r
.
orderId
)
pauseActions
.
setFieldValue
(
'state'
,
1
)
}
...
...
src/utils/downloads.ts
View file @
9e8552ef
...
...
@@ -29,6 +29,10 @@ interface ExportFileProps {
export
const
handleExportFile
=
async
(
props
:
ExportFileProps
)
=>
{
const
{
api
,
params
,
options
}
=
props
let
exportParams
=
''
if
(
params
?.
categoryCode
){
let
list
=
params
?.
categoryCode
params
.
categoryCode
=
list
[
list
.
length
-
1
]
}
Object
.
keys
(
params
).
forEach
(
item
=>
{
if
(
params
[
item
])
{
exportParams
+=
`&
${
item
}
=
${
params
[
item
]}
`
...
...
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