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
9947dbb4
Commit
9947dbb4
authored
Dec 06, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
空运提单刷新
parent
65ac2ad3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
5 deletions
+28
-5
box.js
src/api/ecw/box.js
+8
-0
index.vue
src/views/ecw/box/ladingBill/index.vue
+1
-1
makeLadingBill.vue
src/views/ecw/box/ladingBill/makeLadingBill.vue
+1
-1
previewBill.vue
src/views/ecw/box/ladingBill/previewBill.vue
+18
-3
No files found.
src/api/ecw/box.js
View file @
9947dbb4
...
...
@@ -410,3 +410,11 @@ export function exportSettlementExcel(params) {
params
,
});
}
// 刷新空运提单
export
function
updateAirBill
(
id
)
{
return
request
({
url
:
"
/shipment/make-bill-of-lading/updateAirBill?ids=
"
+
id
,
method
:
"
get
"
});
}
src/views/ecw/box/ladingBill/index.vue
View file @
9947dbb4
...
...
@@ -101,7 +101,7 @@
<el-dialog
:title=
"dialogCfg.title"
:visible.sync=
"dialogCfg.visible"
:width=
"dialogCfg.width"
:fullscreen=
"dialogCfg.fullscreen"
append-to-body
class=
"shippingSea-dialog"
@
closed=
"dialogclosed"
>
<makeLadingBill
v-if=
"dialogCfg.visible && ['makeBill','queryBill','resetBill'].includes(dialogCfg.type)"
:currData=
"currData"
:currRow=
"currRow"
:dialogCfg=
"dialogCfg"
@
closeDialog=
"closeDialog"
:selfNo=
"shipmentObj.selfNo"
/>
<previewBill
v-if=
"dialogCfg.type === 'previewBill'"
:contentHtml=
"currData.billContent"
:currRow=
"currRow"
:type=
"dialogCfg.type"
/>
<previewBill
v-if=
"dialogCfg.type === 'previewBill'"
:contentHtml=
"currData.billContent"
:currRow=
"currRow"
:type=
"dialogCfg.type"
:air=
"type === 'air'"
/>
</el-dialog>
</el-row>
</template>
...
...
src/views/ecw/box/ladingBill/makeLadingBill.vue
View file @
9947dbb4
...
...
@@ -63,7 +63,7 @@ export default {
currData
:
Object
,
currRow
:
Object
,
dialogCfg
:
Object
,
selfNo
:
String
selfNo
:
String
,
},
data
()
{
return
{
...
...
src/views/ecw/box/ladingBill/previewBill.vue
View file @
9947dbb4
...
...
@@ -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=
"
update
"
>
{{
$t
(
'
刷新提单文件
'
)
}}
</el-button>
</el-row>
</el-row>
</
template
>
...
...
@@ -16,6 +16,7 @@ import FileSaver from "file-saver";
import
html2canvas
from
'
html2canvas
'
;
import
{
jsPDF
}
from
"
jspdf
"
;
import
{
uploadFile
}
from
'
@/api/infra/file
'
import
{
updateAirBill
}
from
"
@/api/ecw/box
"
;
export
default
{
name
:
"
previewBill
"
,
...
...
@@ -23,8 +24,22 @@ export default {
contentHtml
:
String
,
currRow
:
Object
,
type
:
String
,
// 是否是空运
air
:
Boolean
,
},
methods
:
{
// 刷新提单
update
(){
if
(
this
.
air
){
let
loading
=
this
.
$loading
()
return
updateAirBill
(
this
.
currRow
.
orderId
).
then
(
res
=>
{
this
.
$message
.
success
(
this
.
$t
(
'
刷新成功
'
))
}).
finally
(()
=>
{
loading
.
close
()
})
}
this
.
createPdf
()
},
download
()
{
_BOX
[
"
downloadBillService
"
]({
id
:
this
.
currRow
.
id
}).
then
((
res
)
=>
{
if
(
res
.
data
&&
res
.
data
.
imgUrl
)
{
...
...
@@ -46,9 +61,9 @@ export default {
}
const
_left
=
(
595.28
-
_w
)
/
2
;
doc
.
addImage
(
canvas
,
'
PNG
'
,
_left
,
0
,
_w
,
_h
,
''
,
'
FAST
'
);
return
_BOX
[
"
downloadBillService
"
]({
id
:
this
.
currRow
.
id
})
}).
then
(
res
=>
{
let
form
=
new
FormData
()
let
pathname
=
(
new
URL
(
res
.
data
.
imgUrl
)).
pathname
...
...
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