Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
merchant-manage-ui
Commits
ad6307e9
Commit
ad6307e9
authored
Dec 10, 2020
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改下载问题
parent
c83d3ab8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
index.jsx
src/pages/orderManage/pendingDeliveryOrder/index.jsx
+2
-2
service.js
src/pages/orderManage/pendingDeliveryOrder/service.js
+6
-2
No files found.
src/pages/orderManage/pendingDeliveryOrder/index.jsx
View file @
ad6307e9
...
...
@@ -25,14 +25,14 @@ const TableList = props => {
const
actionRef
=
useRef
();
const
renderContent
=
(
record
,
key
)
=>
record
.
mchOrderSkuVoList
.
map
((
item
,
index
)
=>
(
<
td
<
p
className=
{
[
'
tableContent
'
,
index
<
record
?.
mchOrderSkuVoList
?.
length
-
1
?
'
border
'
:
null
,
].
join
(
'
'
)
}
>
{
item
[
key
]
}
</
td
>
</
p
>
));
const
columns
=
[
{
...
...
src/pages/orderManage/pendingDeliveryOrder/service.js
View file @
ad6307e9
...
...
@@ -61,11 +61,15 @@ export async function uploadFile(file) {
return
data
;
}
export
function
downTemplate
()
{
window
.
location
.
href
=
`
${
config
.
kdspApi
}
/api/kdsp/op/mch-order/import-mould-download`
;
window
.
location
.
href
=
'
https://kdspstatic.q-gp.com/%E8%AE%A2%E5%8D%95%E7%89%A9%E6%B5%81%E4%BF%A1%E6%81%AF%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF-v1.xlsx
'
;
}
export
async
function
downOrder
(
params
)
{
const
data
=
await
request
.
post
(
'
/api/kdsp/op/mch-order/order-export
'
,
{
data
:
params
,
data
:
stringify
(
params
),
headers
:
{
'
Content-Type
'
:
'
application/x-www-form-urlencoded
'
,
},
prefix
:
config
.
kdspApi
,
responseType
:
'
arrayBuffer
'
,
});
...
...
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