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
6a79db31
Commit
6a79db31
authored
Feb 19, 2023
by
houjn@hikoon.cn
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.jdshangmen.com/jiedao-app/jiedao-app-operator
into dev
parents
dc66a6d9
9cf52d03
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
8 deletions
+21
-8
box.js
src/api/ecw/box.js
+9
-0
makeLadingBill.vue
src/views/ecw/box/ladingBill/makeLadingBill.vue
+1
-1
previewBill.vue
src/views/ecw/box/ladingBill/previewBill.vue
+8
-5
SplitDetail.vue
src/views/ecw/order/components/SplitDetail.vue
+1
-0
detail.vue
src/views/ecw/order/detail.vue
+2
-2
No files found.
src/api/ecw/box.js
View file @
6a79db31
...
...
@@ -326,3 +326,12 @@ export function updateAbnormalOrder(data) {
data
,
});
}
// 更新提单URL
export
function
updateUrl
(
data
)
{
return
request
({
url
:
"
/shipment/make-bill-of-lading/updateUrl
"
,
method
:
"
put
"
,
data
,
});
}
\ No newline at end of file
src/views/ecw/box/ladingBill/makeLadingBill.vue
View file @
6a79db31
...
...
@@ -195,7 +195,7 @@ export default {
let
form
=
new
FormData
()
let
file
=
this
.
selfNo
+
'
-
'
+
this
.
currRow
.
tidanNo
+
'
.pdf
'
form
.
append
(
'
file
'
,
new
File
([
doc
.
output
(
'
arraybuffer
'
)],
file
,
{
type
:
'
application/pdf
'
}))
form
.
append
(
'
path
'
,
file
)
form
.
append
(
'
path
'
,
`admin/shipment/
${
this
.
selfNo
}
/pdf/
${
file
}
`
)
// 最前面不能有/,否则返回的url会有两个/
/* let blob = new Blob([doc.output('arraybuffer')], {type: "application/pdf"})
FileSaver.saveAs(blob, file);
...
...
src/views/ecw/box/ladingBill/previewBill.vue
View file @
6a79db31
...
...
@@ -4,7 +4,7 @@
<el-row
v-if=
"currRow.status === 2 && type === 'previewBill'"
style=
"text-align: center;"
>
<el-button
type=
"primary"
@
click=
"download"
>
{{
$t
(
'
下载
'
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"print"
>
{{
$t
(
'
打印
'
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"createPdf"
>
{{
$t
(
'
刷新
'
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"createPdf"
>
{{
$t
(
'
刷新
提单文件
'
)
}}
</el-button>
</el-row>
</el-row>
</
template
>
...
...
@@ -51,12 +51,15 @@ export default {
}).
then
(
res
=>
{
let
form
=
new
FormData
()
let
file
=
(
new
URL
(
res
.
data
.
imgUrl
)).
pathname
if
(
file
.
substring
(
0
,
1
)
==
'
/
'
)
file
=
file
.
substring
(
1
)
// 替换掉最前面的/
form
.
append
(
'
file
'
,
new
File
([
doc
.
output
(
'
arraybuffer
'
)],
file
,
{
type
:
'
application/pdf
'
}))
form
.
append
(
'
path
'
,
file
)
let
pathname
=
(
new
URL
(
res
.
data
.
imgUrl
)).
pathname
let
fileName
=
pathname
.
substring
(
pathname
.
lastIndexOf
(
'
/
'
)).
substring
(
1
)
let
selfNo
=
fileName
.
split
(
'
-
'
)[
0
]
form
.
append
(
'
file
'
,
new
File
([
doc
.
output
(
'
arraybuffer
'
)],
fileName
,
{
type
:
'
application/pdf
'
}))
form
.
append
(
'
path
'
,
`admin/shipment/
${
selfNo
}
/pdf/
${
fileName
}
`
)
// 最前面不能有/,否则返回的url会有两个/
return
uploadFile
(
form
)
}).
then
(
res
=>
{
_BOX
[
'
updateUrl
'
]({
id
:
this
.
currRow
.
id
,
imgUrl
:
res
.
data
})
}).
finally
(
res
=>
{
loading
.
close
()
})
...
...
src/views/ecw/order/components/SplitDetail.vue
View file @
6a79db31
...
...
@@ -42,6 +42,7 @@
</el-table-column>
<el-table-column
:label=
"$t('品牌')"
>
<
template
slot-scope=
"{row}"
>
<template
v-if=
"row.brandName"
>
{{
row
.
brandName
}}
</
template
>
<dict-tag
:type=
"DICT_TYPE.ECW_IS_BRAND"
:value=
"row.brandType"
/>
</template>
</el-table-column>
...
...
src/views/ecw/order/detail.vue
View file @
6a79db31
...
...
@@ -186,10 +186,10 @@
<
template
slot-scope=
"{row}"
>
<template
v-if=
"row.charging ==1"
>
<template
v-if=
"!row.
s
eaFreight"
>
{{
$t
(
'
未报价
'
)
}}
</
template
>
<template
v-if=
"!row.
oneS
eaFreight"
>
{{
$t
(
'
未报价
'
)
}}
</
template
>
<el-link
type=
"primary"
@
click=
"showFeeDetail(row, 'clearance')"
v-else
>
{{$t('全包价')}} {{row.oneSeaFreight}} {{currencyMap[row.seaFreightCurrency]}} / {{unitMap[row.seaFreightVolume]}}
</el-link>
</template>
<
template
v-else-if=
"!row.
seaFreight && !row.c
learanceFreight"
>
{{
$t
(
'
未报价
'
)
}}
</
template
>
<
template
v-else-if=
"!row.
oneSeaFreight && !row.oneC
learanceFreight"
>
{{
$t
(
'
未报价
'
)
}}
</
template
>
<
template
v-else
>
<el-link
type=
"primary"
@
click=
"showFeeDetail(row, 'freight')"
>
{{
$t
(
'
运费
'
)
}}
:
{{
row
.
oneSeaFreight
}}
{{
currencyMap
[
row
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
row
.
seaFreightVolume
]
}}
...
...
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