This commit is contained in:
wangshiming
2022-04-14 14:52:48 +08:00
parent e6a451c0a5
commit 461bf39813
9 changed files with 61 additions and 72 deletions

View File

@ -4,7 +4,7 @@
* @Author : Shiming
* @Date : 2021-12-03 15:31:52
* @LastEditors : Shiming
* @LastEditTime : 2022-04-11 15:13:24
* @LastEditTime : 2022-04-14 11:43:13
* @FilePath : \\tms-obc-web\\src\\app\\routes\\insurance-management\\services\\insurance-management.service.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
@ -55,34 +55,17 @@ export class InsuranceManagementService extends ShipperBaseService {
// }
// a.remove();
}
// getReceiptUrl(url: string, params: any) {
// const { bankType, snglFlgCd } = params;
// if (url) {
// if (params?.bankType === '1') {
// window.open(params?.receiptUrl);
// } else if (params?.bankType === '2') {
// window.open(url);
// // this.exportFile({ bankType, receiptUrl: url, bankSerialNumber: snglFlgCd }, this.$api_download_receipt_apply_byte);
// }
// } else {
// this.request(this.$api_download_receipt_apply, { ...params }).subscribe(res => {
// if (res?.receiptUrl) {
// if (bankType === '1') {
// window.open(res?.receiptUrl);
// } else if (bankType === '2') {
// window.open(res?.receiptUrl);
// // this.downloadFile(this.$api_download_receipt_apply_byte, {
// // bankType,
// // receiptUrl: res.receiptUrl,
// // bankSerialNumber: snglFlgCd
// // });
// }
// } else {
// this.msgSrv.warning(res.statusMsg || '获取回单失败');
// }
// });
// }
// }
getReceiptUrl(url: string, params: any) {
const { bankType, snglFlgCd } = params;
if (url) {
if (params?.bankType === '1') {
window.open(params?.receiptUrl);
} else if (params?.bankType === '2') {
window.open(url);
// this.exportFile({ bankType, receiptUrl: url, bankSerialNumber: snglFlgCd }, this.$api_download_receipt_apply_byte);
}
}
}
constructor(public injector: Injector) {
super(injector);
}