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
Show 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) {
...
@@ -410,3 +410,11 @@ export function exportSettlementExcel(params) {
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 @@
...
@@ -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"
>
<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"
/>
<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-dialog>
</el-row>
</el-row>
</template>
</template>
...
...
src/views/ecw/box/ladingBill/makeLadingBill.vue
View file @
9947dbb4
...
@@ -63,7 +63,7 @@ export default {
...
@@ -63,7 +63,7 @@ export default {
currData
:
Object
,
currData
:
Object
,
currRow
:
Object
,
currRow
:
Object
,
dialogCfg
:
Object
,
dialogCfg
:
Object
,
selfNo
:
String
selfNo
:
String
,
},
},
data
()
{
data
()
{
return
{
return
{
...
...
src/views/ecw/box/ladingBill/previewBill.vue
View file @
9947dbb4
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<el-row
v-if=
"currRow.status === 2 && type === 'previewBill'"
style=
"text-align: center;"
>
<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=
"download"
>
{{
$t
(
'
下载
'
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"print"
>
{{
$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>
</el-row>
</el-row>
</
template
>
</
template
>
...
@@ -16,6 +16,7 @@ import FileSaver from "file-saver";
...
@@ -16,6 +16,7 @@ import FileSaver from "file-saver";
import
html2canvas
from
'
html2canvas
'
;
import
html2canvas
from
'
html2canvas
'
;
import
{
jsPDF
}
from
"
jspdf
"
;
import
{
jsPDF
}
from
"
jspdf
"
;
import
{
uploadFile
}
from
'
@/api/infra/file
'
import
{
uploadFile
}
from
'
@/api/infra/file
'
import
{
updateAirBill
}
from
"
@/api/ecw/box
"
;
export
default
{
export
default
{
name
:
"
previewBill
"
,
name
:
"
previewBill
"
,
...
@@ -23,8 +24,22 @@ export default {
...
@@ -23,8 +24,22 @@ export default {
contentHtml
:
String
,
contentHtml
:
String
,
currRow
:
Object
,
currRow
:
Object
,
type
:
String
,
type
:
String
,
// 是否是空运
air
:
Boolean
,
},
},
methods
:
{
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
()
{
download
()
{
_BOX
[
"
downloadBillService
"
]({
id
:
this
.
currRow
.
id
}).
then
((
res
)
=>
{
_BOX
[
"
downloadBillService
"
]({
id
:
this
.
currRow
.
id
}).
then
((
res
)
=>
{
if
(
res
.
data
&&
res
.
data
.
imgUrl
)
{
if
(
res
.
data
&&
res
.
data
.
imgUrl
)
{
...
...
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