This commit is contained in:
Taric Xin
2022-04-12 17:33:06 +08:00
parent 2cff827e3f
commit 1544de5562
6 changed files with 76 additions and 74 deletions

View File

@ -75,7 +75,8 @@
[loading]="false" [loading]="false"
> >
<ng-template st-row="templateName" let-item let-index="index"> <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>
<ng-template st-row="signingObject" let-item let-index="index"> <ng-template st-row="signingObject" let-item let-index="index">
<span *ngIf="item?.signingObject == 1">货主</span> <span *ngIf="item?.signingObject == 1">货主</span>

View File

@ -75,7 +75,8 @@
[loading]="false" [loading]="false"
> >
<ng-template st-row="templateName" let-item let-index="index"> <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> </st>
</div> </div>

View File

@ -137,8 +137,6 @@ export class FreightAccountService extends ShipperBaseService {
// 根据预收款ID获取核销信息明细 // 根据预收款ID获取核销信息明细
$api_get_advance_collection_hrxiao = '/api/fcc/ficoAhxH/getAhxHByYskblaId'; $api_get_advance_collection_hrxiao = '/api/fcc/ficoAhxH/getAhxHByYskblaId';
// 运营导出充值信息 充值记录导出 // 运营导出充值信息 充值记录导出
$api_get_exportPageByOperator = '/api/fcc/rechargeInfo/exportPageByOperator'; $api_get_exportPageByOperator = '/api/fcc/rechargeInfo/exportPageByOperator';
// 运营端导出交易流水明细 // 运营端导出交易流水明细
@ -205,21 +203,22 @@ export class FreightAccountService extends ShipperBaseService {
if (!url) { if (!url) {
return; return;
} }
const uA = window.navigator.userAgent; // 判断浏览器内核 this.openURL(url);
const isIE = // const uA = window.navigator.userAgent; // 判断浏览器内核
/msie\s|trident\/|edge\//i.test(uA) && // const isIE =
!!('uniqueID' in document || 'documentMode' in document || 'ActiveXObject' in window || 'MSInputMethodContext' in window); // /msie\s|trident\/|edge\//i.test(uA) &&
const objectUrl = url; // !!('uniqueID' in document || 'documentMode' in document || 'ActiveXObject' in window || 'MSInputMethodContext' in window);
const a = document.createElement('a'); // const objectUrl = url;
document.body.appendChild(a); // const a = document.createElement('a');
a.href = objectUrl; // document.body.appendChild(a);
a.download = `回单.pdf`; // a.href = objectUrl;
if (isIE) { // a.download = `回单.pdf`;
// 兼容IE11无法触发下载的问题 // if (isIE) {
(navigator as any).msSaveBlob(url, a.download); // // 兼容IE11无法触发下载的问题
} else { // (navigator as any).msSaveBlob(url, a.download);
a.click(); // } else {
} // a.click();
a.remove(); // }
// a.remove();
} }
} }

View File

@ -19,12 +19,11 @@ import { map } from 'rxjs/operators';
export class InsuranceManagementService extends ShipperBaseService { export class InsuranceManagementService extends ShipperBaseService {
// 获取货主企业列表 // 获取货主企业列表
public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList'; public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
// 查询保险费信息表 // 查询保险费信息表
public $api_premiumInfo_list = '/api/sdc/premiumInfo/list/page'; public $api_premiumInfo_list = '/api/sdc/premiumInfo/list/page';
// 统计保险单状态数量 // 统计保险单状态数量
public $api_listStatisticalStatus = '/api/sdc/premiumInfo/listStatisticalStatus'; public $api_listStatisticalStatus = '/api/sdc/premiumInfo/listStatisticalStatus';
// 保险费公司认证 // 保险费公司认证
$api_get_submitAuthInfo = `/api/sdc/premiumInfo/submitAuthInfo`; $api_get_submitAuthInfo = `/api/sdc/premiumInfo/submitAuthInfo`;
// 退保费 // 退保费
@ -36,24 +35,25 @@ export class InsuranceManagementService extends ShipperBaseService {
if (!url) { if (!url) {
return; return;
} }
const uA = window.navigator.userAgent; // 判断浏览器内核 this.openURL(url);
const isIE = // const uA = window.navigator.userAgent; // 判断浏览器内核
/msie\s|trident\/|edge\//i.test(uA) && // const isIE =
!!('uniqueID' in document || 'documentMode' in document || 'ActiveXObject' in window || 'MSInputMethodContext' in window); // /msie\s|trident\/|edge\//i.test(uA) &&
const objectUrl = url; // !!('uniqueID' in document || 'documentMode' in document || 'ActiveXObject' in window || 'MSInputMethodContext' in window);
const a = document.createElement('a'); // const objectUrl = url;
document.body.appendChild(a); // const a = document.createElement('a');
console.log('5555'); // document.body.appendChild(a);
// console.log('5555');
a.href = objectUrl; // a.href = objectUrl;
a.download = '保单.pdf'; // a.download = '保单.pdf';
if (isIE) { // if (isIE) {
// 兼容IE11无法触发下载的问题 // // 兼容IE11无法触发下载的问题
(navigator as any).msSaveBlob(url, a.download); // (navigator as any).msSaveBlob(url, a.download);
} else { // } else {
a.click(); // a.click();
} // }
a.remove(); // a.remove();
} }
constructor(public injector: Injector) { constructor(public injector: Injector) {

View File

@ -189,7 +189,6 @@ export class OrderManagementService extends ShipperBaseService {
// 查询异常预警表 // 查询异常预警表
$api_get_abnormalWarning = `/api/sdc/abnormalWarning/list/page`; $api_get_abnormalWarning = `/api/sdc/abnormalWarning/list/page`;
// 异步导出运营后台大宗订单列表 // 异步导出运营后台大宗订单列表
$api_get_asyncExportBulkList = `/api/sdc/billOperate/asyncExportBulkList`; $api_get_asyncExportBulkList = `/api/sdc/billOperate/asyncExportBulkList`;
// 异步导出运营后台整车订单列表 // 异步导出运营后台整车订单列表
@ -248,21 +247,22 @@ export class OrderManagementService extends ShipperBaseService {
if (!url) { if (!url) {
return; return;
} }
const uA = window.navigator.userAgent; // 判断浏览器内核 this.openURL(url);
const isIE = // const uA = window.navigator.userAgent; // 判断浏览器内核
/msie\s|trident\/|edge\//i.test(uA) && // const isIE =
!!('uniqueID' in document || 'documentMode' in document || 'ActiveXObject' in window || 'MSInputMethodContext' in window); // /msie\s|trident\/|edge\//i.test(uA) &&
const objectUrl = url; // !!('uniqueID' in document || 'documentMode' in document || 'ActiveXObject' in window || 'MSInputMethodContext' in window);
const a = document.createElement('a'); // const objectUrl = url;
document.body.appendChild(a); // const a = document.createElement('a');
a.href = objectUrl; // document.body.appendChild(a);
a.download = '附件.pdf'; // a.href = objectUrl;
if (isIE) { // a.download = '附件.pdf';
// 兼容IE11无法触发下载的问题 // if (isIE) {
(navigator as any).msSaveBlob(url, a.download); // // 兼容IE11无法触发下载的问题
} else { // (navigator as any).msSaveBlob(url, a.download);
a.click(); // } else {
} // a.click();
a.remove(); // }
// a.remove();
} }
} }

View File

@ -151,21 +151,22 @@ export class TicketService extends ShipperBaseService {
if (!url) { if (!url) {
return; return;
} }
const uA = window.navigator.userAgent; // 判断浏览器内核 this.openURL(url);
const isIE = // const uA = window.navigator.userAgent; // 判断浏览器内核
/msie\s|trident\/|edge\//i.test(uA) && // const isIE =
!!('uniqueID' in document || 'documentMode' in document || 'ActiveXObject' in window || 'MSInputMethodContext' in window); // /msie\s|trident\/|edge\//i.test(uA) &&
const objectUrl = url; // !!('uniqueID' in document || 'documentMode' in document || 'ActiveXObject' in window || 'MSInputMethodContext' in window);
const a = document.createElement('a'); // const objectUrl = url;
document.body.appendChild(a); // const a = document.createElement('a');
a.href = objectUrl; // document.body.appendChild(a);
a.download = '面单.pdf'; // a.href = objectUrl;
if (isIE) { // a.download = '面单.pdf';
// 兼容IE11无法触发下载的问题 // if (isIE) {
(navigator as any).msSaveBlob(url, a.download); // // 兼容IE11无法触发下载的问题
} else { // (navigator as any).msSaveBlob(url, a.download);
a.click(); // } else {
} // a.click();
a.remove(); // }
// a.remove();
} }
} }