Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
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
lanbaoming
jiedao-app-operator-master
Commits
04a45d44
Commit
04a45d44
authored
Oct 05, 2022
by
huhaiqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agentlist以及提单copy下载功能
parent
f8152820
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
25 deletions
+56
-25
box.js
src/api/ecw/box.js
+9
-2
indexSea.vue
src/views/ecw/box/indexSea.vue
+17
-13
query.vue
src/views/ecw/box/query.vue
+23
-10
utils.js
src/views/ecw/box/shippingSea/utils.js
+7
-0
No files found.
src/api/ecw/box.js
View file @
04a45d44
...
...
@@ -233,7 +233,6 @@ export function getBoxApproval(params) {
export
function
downloadAgentListFiles
(
params
)
{
return
request
({
url
:
"
/ecw/box-preload-goods/downloadAgentListFiles
"
,
responseType
:
"
arraybuffer
"
,
method
:
"
get
"
,
params
,
});
...
...
@@ -243,7 +242,6 @@ export function downloadAgentListFiles(params) {
export
function
downloadSoncapFiles
(
params
)
{
return
request
({
url
:
"
/ecw/box-preload-goods/downloadSoncapFiles
"
,
responseType
:
"
arraybuffer
"
,
method
:
"
get
"
,
params
,
});
...
...
@@ -288,3 +286,12 @@ export function downloadReceivableList(params) {
params
,
});
}
// 下载提单copy
export
function
downloadLadingCopy
(
params
)
{
return
request
({
url
:
"
/ecw/box-lading-copy/downloadLadingCopy
"
,
method
:
"
get
"
,
params
,
});
}
src/views/ecw/box/indexSea.vue
View file @
04a45d44
...
...
@@ -137,8 +137,8 @@
<el-dropdown-item
command=
"downloadReceivableList"
>
应收汇总表
</el-dropdown-item>
<el-dropdown-item
command=
"downloadAgentListFiles"
>
agent list
</el-dropdown-item>
<el-dropdown-item
command=
"downloadSoncapFiles"
>
soncap
</el-dropdown-item>
<el-dropdown-item
command=
""
>
提货单
</el-dropdown-item>
<el-dropdown-item
command=
""
>
提单Copy
</el-dropdown-item>
<el-dropdown-item
command=
"
zipDownload
"
>
提货单
</el-dropdown-item>
<el-dropdown-item
command=
"
downloadLadingCopy
"
>
提单Copy
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</
template
>
...
...
@@ -166,8 +166,15 @@
</template>
<
script
>
import
{
deletebox
,
getbox
,
getboxPage
,
exportboxExcel
}
from
"
@/api/ecw/box
"
;
import
{
downloadFile
}
from
"
./shippingSea/utils
"
;
import
{
deletebox
,
getbox
,
getboxPage
,
exportboxExcel
,
downloadAgentListFiles
,
downloadSoncapFiles
,
}
from
"
@/api/ecw/box
"
;
import
{
downloadFile
,
downloadFileByUrl
}
from
"
./shippingSea/utils
"
;
import
{
getCabinetPage
}
from
"
@/api/ecw/cabinet
"
;
import
{
getWarehouseList
}
from
"
@/api/ecw/warehouse
"
;
import
{
getListTree
}
from
"
@/api/ecw/region
"
;
...
...
@@ -418,21 +425,18 @@ export default {
"xlsx"
);
break;
case "
downloadAgentListFiles
":
case "
zipDownload
":
downloadFile(
command,
{ shipmentId: row.id },
`
agentList
(
$
{
row
.
selfNo
}).
xlsx
`,
"
xlsx
"
`
提货单
(
$
{
row
.
selfNo
}).
zip
`,
"
zip
"
);
break;
case "downloadAgentListFiles":
case "downloadSoncapFiles":
downloadFile(
command,
{ shipmentId: row.id },
`
soncap
(
$
{
row
.
selfNo
}).
xlsx
`,
"xlsx"
);
case "downloadLadingCopy":
downloadFileByUrl(command, { shipmentId: row.id });
break;
}
...
...
src/views/ecw/box/query.vue
View file @
04a45d44
...
...
@@ -205,6 +205,7 @@ import {
formatDate
,
serviceMsg
,
downloadFile
,
downloadFileByUrl
,
}
from
"
./shippingSea/utils
"
;
import
{
getSectionList
,
boxGoodsDetail
}
from
"
@/api/ecw/boxSea
"
;
import
{
getSupplierPage
}
from
"
@/api/ecw/supplier
"
;
...
...
@@ -275,10 +276,14 @@ export default {
{
title
:
"
预装单
"
,
serviceName
:
"
downloadPreloadGoodsList
"
},
{
title
:
"
已装单
"
,
serviceName
:
"
downloadLoadGoodsList
"
},
{
title
:
"
应收汇总表
"
,
serviceName
:
"
downloadReceivableList
"
},
{
title
:
"
提货单
"
,
serviceName
:
""
},
{
title
:
"
agent list
"
,
serviceName
:
""
},
{
title
:
"
soncap
"
,
serviceName
:
""
},
{
title
:
"
提单Copy
"
,
serviceName
:
""
},
{
title
:
"
提货单
"
,
serviceName
:
"
zipDownload
"
,
fileFormat
:
"
zip
"
},
{
title
:
"
agent list
"
,
serviceName
:
"
downloadAgentListFiles
"
,
type
:
"
url
"
,
},
{
title
:
"
soncap
"
,
serviceName
:
"
downloadSoncapFiles
"
,
type
:
"
url
"
},
{
title
:
"
提单Copy
"
,
serviceName
:
"
downloadLadingCopy
"
,
type
:
"
url
"
},
],
};
},
...
...
@@ -444,12 +449,20 @@ export default {
},
formatDate
,
downloadDetailFile
(
row
)
{
const
{
fileFormat
,
type
}
=
row
;
if
(
type
===
"
url
"
)
{
downloadFileByUrl
(
row
.
serviceName
,
{
shipmentId
:
this
.
shipmentId
});
}
else
{
let
fileName
=
`
${
row
.
title
}
(
${
this
.
shipmentObj
.
selfNo
}
).
${
fileFormat
??
"
xlsx
"
}
`;
downloadFile(
row.serviceName,
{ shipmentId: this.shipmentId },
`
${
row
.
title
}
(
${
this
.
shipmentObj
.
selfNo
}
).xlsx`
,
"
xlsx
"
fileName
,
fileFormat ??
"xlsx"
);
}
},
},
computed: {
...
...
src/views/ecw/box/shippingSea/utils.js
View file @
04a45d44
...
...
@@ -1501,6 +1501,12 @@ function downloadFile(funName, params, fileName, fileFormat) {
});
}
function downloadFileByUrl(funName, params) {
_BOX[funName](params).then((res) => {
if (res.data) FileSaver.saveAs(res.data);
});
}
export {
getStatusName,
getColmnMapping,
...
...
@@ -1518,4 +1524,5 @@ export {
serviceMsg,
toReviewDetail,
downloadFile,
downloadFileByUrl,
};
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