This commit is contained in:
wangshiming
2022-04-14 11:41:20 +08:00
parent b3cdcf5bff
commit e6a451c0a5
3 changed files with 34 additions and 5 deletions

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-01-18 09:51:21 * @Date : 2022-01-18 09:51:21
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-04-09 16:39:20 * @LastEditTime : 2022-04-14 11:38:39
* @FilePath : \\tms-obc-web\\proxy.conf.js * @FilePath : \\tms-obc-web\\proxy.conf.js
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -20,7 +20,7 @@ module.exports = {
// } // }
'//api': { '//api': {
target: { target: {
host: 'tms-api-test.eascs.com', host: 'tms-api-dev.eascs.com',
protocol: 'https:', protocol: 'https:',
port: 443 port: 443
}, },

View File

@ -501,8 +501,10 @@ export class insuranceManagementListComponent implements OnInit {
// console.log(newUrl); // console.log(newUrl);
// window.open(newUrl,'_self'); // window.open(newUrl,'_self');
window.open(`${_record.newPolicyUrl}`);
// this.service.downloadFile(`${_record.newPolicyUrl}`)
this.service.downloadFile(`${_record.policyUrl}`)
// const params = { // const params = {
// imgList: [_record.policyUrl], // imgList: [_record.policyUrl],
// index: 0 // index: 0

View File

@ -55,7 +55,34 @@ export class InsuranceManagementService extends ShipperBaseService {
// } // }
// a.remove(); // 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 || '获取回单失败');
// }
// });
// }
// }
constructor(public injector: Injector) { constructor(public injector: Injector) {
super(injector); super(injector);
} }