edit
This commit is contained in:
@ -75,7 +75,8 @@
|
||||
[loading]="false"
|
||||
>
|
||||
<ng-template st-row="templateName" let-item let-index="index">
|
||||
<a (click)="view(item)">{{ item.templateName }}</a>
|
||||
<a (click)="service.openURL(item?.contractFilePath)">{{ item.templateName }}</a>
|
||||
<!-- <a (click)="view(item)">{{ item.templateName }}</a> -->
|
||||
</ng-template>
|
||||
<ng-template st-row="signingObject" let-item let-index="index">
|
||||
<span *ngIf="item?.signingObject == 1">货主</span>
|
||||
|
||||
@ -75,7 +75,8 @@
|
||||
[loading]="false"
|
||||
>
|
||||
<ng-template st-row="templateName" let-item let-index="index">
|
||||
<a (click)="view(item)">{{ item.templateName }}</a>
|
||||
<a (click)="service.openURL(item?.contractFilePath)">{{ item.templateName }}</a>
|
||||
<!-- <a (click)="view(item)">{{ item.templateName }}</a> -->
|
||||
</ng-template>
|
||||
</st>
|
||||
</div>
|
||||
|
||||
@ -137,8 +137,6 @@ export class FreightAccountService extends ShipperBaseService {
|
||||
// 根据预收款ID获取核销信息明细
|
||||
$api_get_advance_collection_hrxiao = '/api/fcc/ficoAhxH/getAhxHByYskblaId';
|
||||
|
||||
|
||||
|
||||
// 运营导出充值信息 充值记录导出
|
||||
$api_get_exportPageByOperator = '/api/fcc/rechargeInfo/exportPageByOperator';
|
||||
// 运营端导出交易流水明细
|
||||
@ -205,21 +203,22 @@ export class FreightAccountService extends ShipperBaseService {
|
||||
if (!url) {
|
||||
return;
|
||||
}
|
||||
const uA = window.navigator.userAgent; // 判断浏览器内核
|
||||
const isIE =
|
||||
/msie\s|trident\/|edge\//i.test(uA) &&
|
||||
!!('uniqueID' in document || 'documentMode' in document || 'ActiveXObject' in window || 'MSInputMethodContext' in window);
|
||||
const objectUrl = url;
|
||||
const a = document.createElement('a');
|
||||
document.body.appendChild(a);
|
||||
a.href = objectUrl;
|
||||
a.download = `回单.pdf`;
|
||||
if (isIE) {
|
||||
// 兼容IE11无法触发下载的问题
|
||||
(navigator as any).msSaveBlob(url, a.download);
|
||||
} else {
|
||||
a.click();
|
||||
}
|
||||
a.remove();
|
||||
this.openURL(url);
|
||||
// const uA = window.navigator.userAgent; // 判断浏览器内核
|
||||
// const isIE =
|
||||
// /msie\s|trident\/|edge\//i.test(uA) &&
|
||||
// !!('uniqueID' in document || 'documentMode' in document || 'ActiveXObject' in window || 'MSInputMethodContext' in window);
|
||||
// const objectUrl = url;
|
||||
// const a = document.createElement('a');
|
||||
// document.body.appendChild(a);
|
||||
// a.href = objectUrl;
|
||||
// a.download = `回单.pdf`;
|
||||
// if (isIE) {
|
||||
// // 兼容IE11无法触发下载的问题
|
||||
// (navigator as any).msSaveBlob(url, a.download);
|
||||
// } else {
|
||||
// a.click();
|
||||
// }
|
||||
// a.remove();
|
||||
}
|
||||
}
|
||||
|
||||
@ -19,12 +19,11 @@ import { map } from 'rxjs/operators';
|
||||
export class InsuranceManagementService extends ShipperBaseService {
|
||||
// 获取货主企业列表
|
||||
public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
|
||||
// 查询保险费信息表
|
||||
// 查询保险费信息表
|
||||
public $api_premiumInfo_list = '/api/sdc/premiumInfo/list/page';
|
||||
// 统计保险单状态数量
|
||||
// 统计保险单状态数量
|
||||
public $api_listStatisticalStatus = '/api/sdc/premiumInfo/listStatisticalStatus';
|
||||
|
||||
|
||||
// 保险费公司认证
|
||||
$api_get_submitAuthInfo = `/api/sdc/premiumInfo/submitAuthInfo`;
|
||||
// 退保费
|
||||
@ -36,24 +35,25 @@ export class InsuranceManagementService extends ShipperBaseService {
|
||||
if (!url) {
|
||||
return;
|
||||
}
|
||||
const uA = window.navigator.userAgent; // 判断浏览器内核
|
||||
const isIE =
|
||||
/msie\s|trident\/|edge\//i.test(uA) &&
|
||||
!!('uniqueID' in document || 'documentMode' in document || 'ActiveXObject' in window || 'MSInputMethodContext' in window);
|
||||
const objectUrl = url;
|
||||
const a = document.createElement('a');
|
||||
document.body.appendChild(a);
|
||||
console.log('5555');
|
||||
|
||||
a.href = objectUrl;
|
||||
a.download = '保单.pdf';
|
||||
if (isIE) {
|
||||
// 兼容IE11无法触发下载的问题
|
||||
(navigator as any).msSaveBlob(url, a.download);
|
||||
} else {
|
||||
a.click();
|
||||
}
|
||||
a.remove();
|
||||
this.openURL(url);
|
||||
// const uA = window.navigator.userAgent; // 判断浏览器内核
|
||||
// const isIE =
|
||||
// /msie\s|trident\/|edge\//i.test(uA) &&
|
||||
// !!('uniqueID' in document || 'documentMode' in document || 'ActiveXObject' in window || 'MSInputMethodContext' in window);
|
||||
// const objectUrl = url;
|
||||
// const a = document.createElement('a');
|
||||
// document.body.appendChild(a);
|
||||
// console.log('5555');
|
||||
|
||||
// a.href = objectUrl;
|
||||
// a.download = '保单.pdf';
|
||||
// if (isIE) {
|
||||
// // 兼容IE11无法触发下载的问题
|
||||
// (navigator as any).msSaveBlob(url, a.download);
|
||||
// } else {
|
||||
// a.click();
|
||||
// }
|
||||
// a.remove();
|
||||
}
|
||||
|
||||
constructor(public injector: Injector) {
|
||||
|
||||
@ -189,7 +189,6 @@ export class OrderManagementService extends ShipperBaseService {
|
||||
// 查询异常预警表
|
||||
$api_get_abnormalWarning = `/api/sdc/abnormalWarning/list/page`;
|
||||
|
||||
|
||||
// 异步导出运营后台大宗订单列表
|
||||
$api_get_asyncExportBulkList = `/api/sdc/billOperate/asyncExportBulkList`;
|
||||
// 异步导出运营后台整车订单列表
|
||||
@ -248,21 +247,22 @@ export class OrderManagementService extends ShipperBaseService {
|
||||
if (!url) {
|
||||
return;
|
||||
}
|
||||
const uA = window.navigator.userAgent; // 判断浏览器内核
|
||||
const isIE =
|
||||
/msie\s|trident\/|edge\//i.test(uA) &&
|
||||
!!('uniqueID' in document || 'documentMode' in document || 'ActiveXObject' in window || 'MSInputMethodContext' in window);
|
||||
const objectUrl = url;
|
||||
const a = document.createElement('a');
|
||||
document.body.appendChild(a);
|
||||
a.href = objectUrl;
|
||||
a.download = '附件.pdf';
|
||||
if (isIE) {
|
||||
// 兼容IE11无法触发下载的问题
|
||||
(navigator as any).msSaveBlob(url, a.download);
|
||||
} else {
|
||||
a.click();
|
||||
}
|
||||
a.remove();
|
||||
this.openURL(url);
|
||||
// const uA = window.navigator.userAgent; // 判断浏览器内核
|
||||
// const isIE =
|
||||
// /msie\s|trident\/|edge\//i.test(uA) &&
|
||||
// !!('uniqueID' in document || 'documentMode' in document || 'ActiveXObject' in window || 'MSInputMethodContext' in window);
|
||||
// const objectUrl = url;
|
||||
// const a = document.createElement('a');
|
||||
// document.body.appendChild(a);
|
||||
// a.href = objectUrl;
|
||||
// a.download = '附件.pdf';
|
||||
// if (isIE) {
|
||||
// // 兼容IE11无法触发下载的问题
|
||||
// (navigator as any).msSaveBlob(url, a.download);
|
||||
// } else {
|
||||
// a.click();
|
||||
// }
|
||||
// a.remove();
|
||||
}
|
||||
}
|
||||
|
||||
@ -151,21 +151,22 @@ export class TicketService extends ShipperBaseService {
|
||||
if (!url) {
|
||||
return;
|
||||
}
|
||||
const uA = window.navigator.userAgent; // 判断浏览器内核
|
||||
const isIE =
|
||||
/msie\s|trident\/|edge\//i.test(uA) &&
|
||||
!!('uniqueID' in document || 'documentMode' in document || 'ActiveXObject' in window || 'MSInputMethodContext' in window);
|
||||
const objectUrl = url;
|
||||
const a = document.createElement('a');
|
||||
document.body.appendChild(a);
|
||||
a.href = objectUrl;
|
||||
a.download = '面单.pdf';
|
||||
if (isIE) {
|
||||
// 兼容IE11无法触发下载的问题
|
||||
(navigator as any).msSaveBlob(url, a.download);
|
||||
} else {
|
||||
a.click();
|
||||
}
|
||||
a.remove();
|
||||
this.openURL(url);
|
||||
// const uA = window.navigator.userAgent; // 判断浏览器内核
|
||||
// const isIE =
|
||||
// /msie\s|trident\/|edge\//i.test(uA) &&
|
||||
// !!('uniqueID' in document || 'documentMode' in document || 'ActiveXObject' in window || 'MSInputMethodContext' in window);
|
||||
// const objectUrl = url;
|
||||
// const a = document.createElement('a');
|
||||
// document.body.appendChild(a);
|
||||
// a.href = objectUrl;
|
||||
// a.download = '面单.pdf';
|
||||
// if (isIE) {
|
||||
// // 兼容IE11无法触发下载的问题
|
||||
// (navigator as any).msSaveBlob(url, a.download);
|
||||
// } else {
|
||||
// a.click();
|
||||
// }
|
||||
// a.remove();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user