Commit c7cc161f authored by huhaiqing's avatar huhaiqing

修改海运

parent f324452a
...@@ -154,7 +154,6 @@ export function cancelBillService(id) { ...@@ -154,7 +154,6 @@ export function cancelBillService(id) {
export function downloadBillService(params) { export function downloadBillService(params) {
return request({ return request({
url: "/shipment/make-bill-of-lading/download", url: "/shipment/make-bill-of-lading/download",
responseType: "blob",
method: "get", method: "get",
params, params,
}); });
......
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
{{$t('操作')}}<i class="el-icon-arrow-down el-icon--right"></i> {{$t('操作')}}<i class="el-icon-arrow-down el-icon--right"></i>
</el-button> </el-button>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="edit">{{$t('编辑')}}</el-dropdown-item> <el-dropdown-item :disabled="scope.row.ldStatus>=46" command="edit">{{$t('编辑')}}</el-dropdown-item>
<el-dropdown-item command="sea">{{$t('操作-海运')}}</el-dropdown-item> <el-dropdown-item command="sea">{{$t('操作-海运')}}</el-dropdown-item>
<el-dropdown-item command="error">{{$t('异常登记')}}</el-dropdown-item> <el-dropdown-item command="error">{{$t('异常登记')}}</el-dropdown-item>
<el-dropdown-item command="cost">{{$t('费用登记')}}</el-dropdown-item> <el-dropdown-item command="cost">{{$t('费用登记')}}</el-dropdown-item>
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
{{$t('操作')}}<i class="el-icon-arrow-down el-icon--right"></i> {{$t('操作')}}<i class="el-icon-arrow-down el-icon--right"></i>
</el-button> </el-button>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="edit">{{$t('编辑')}}</el-dropdown-item> <el-dropdown-item :disabled="scope.row.ldStatus>=46" command="edit">{{$t('编辑')}}</el-dropdown-item>
<el-dropdown-item command="seaAir">{{$t('操作')}}-{{$t('海空联运')}}</el-dropdown-item> <el-dropdown-item command="seaAir">{{$t('操作')}}-{{$t('海空联运')}}</el-dropdown-item>
<el-dropdown-item command="error">{{$t('异常登记')}}</el-dropdown-item> <el-dropdown-item command="error">{{$t('异常登记')}}</el-dropdown-item>
<el-dropdown-item command="cost">{{$t('费用登记')}}</el-dropdown-item> <el-dropdown-item command="cost">{{$t('费用登记')}}</el-dropdown-item>
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
<script> <script>
import lodop from "@/utils/lodop"; import lodop from "@/utils/lodop";
import { downloadFile } from "../shippingSea/utils"; import * as _BOX from "@/api/ecw/box";
import FileSaver from "file-saver";
export default { export default {
name: "previewBill", name: "previewBill",
...@@ -21,12 +22,11 @@ export default { ...@@ -21,12 +22,11 @@ export default {
}, },
methods: { methods: {
download() { download() {
downloadFile( _BOX["downloadBillService"]({ id: this.currRow.id }).then((res) => {
"downloadBillService", if (res.data && res.data.imgUrl) {
{ id: this.currRow.id }, FileSaver.saveAs(res.data.imgUrl, this.currRow.orderNo + ".pdf");
this.currRow.orderNo + ".pdf", }
"pdf" });
);
}, },
print() { print() {
lodop() lodop()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment