edit
This commit is contained in:
		| @ -176,8 +176,14 @@ export class RechargeRecordComponent implements OnInit { | |||||||
|         className: 'text-center', |         className: 'text-center', | ||||||
|         buttons: [ |         buttons: [ | ||||||
|           { |           { | ||||||
|             text: '查看回单' |             text: '查看回单', | ||||||
|             // click: item => this.router.navigate(['/financial-management/freight-account/detail/1']) |             click: item => | ||||||
|  |               this.service.getReceiptUrl(item.receiptUrl, { | ||||||
|  |                 bankType: item.bankType, | ||||||
|  |                 rmYll: item.roleId, | ||||||
|  |                 snglFlgCd: item.paySerialNumber, | ||||||
|  |                 bussType: '06' | ||||||
|  |               }) | ||||||
|           } |           } | ||||||
|         ] |         ] | ||||||
|       } |       } | ||||||
|  | |||||||
| @ -27,7 +27,7 @@ export class TransactionFlowComponent implements OnInit { | |||||||
|     private nzModalService: NzModalService, |     private nzModalService: NzModalService, | ||||||
|     private router: Router, |     private router: Router, | ||||||
|     private currencyPipe: CurrencyPipe |     private currencyPipe: CurrencyPipe | ||||||
|       ) {} |   ) {} | ||||||
|  |  | ||||||
|   ngOnInit(): void {} |   ngOnInit(): void {} | ||||||
|  |  | ||||||
| @ -36,8 +36,8 @@ export class TransactionFlowComponent implements OnInit { | |||||||
|       Object.assign(requestOptions.body, { |       Object.assign(requestOptions.body, { | ||||||
|         ...this.sf.value, |         ...this.sf.value, | ||||||
|         createTime: { |         createTime: { | ||||||
|           start: this.sf.value.tcreateTimeime?.[0] || null, |           start: this.sf.value.tcreateTimeime?.[0] || '', | ||||||
|           end: this.sf.value.createTime?.[1] || null |           end: this.sf.value.createTime?.[1] || '' | ||||||
|         } |         } | ||||||
|       }); |       }); | ||||||
|     } |     } | ||||||
| @ -217,22 +217,26 @@ export class TransactionFlowComponent implements OnInit { | |||||||
|       { title: '流水号', index: 'transactionNumber', width: 150 }, |       { title: '流水号', index: 'transactionNumber', width: 150 }, | ||||||
|       { title: '交易类型', index: 'tradeTypeLabel', width: 120 }, |       { title: '交易类型', index: 'tradeTypeLabel', width: 120 }, | ||||||
|       { title: '关联单号', index: 'businessNumber', width: 150 }, |       { title: '关联单号', index: 'businessNumber', width: 150 }, | ||||||
|       { title: '账户类型', index: 'accountTypeLabel', width: 100 }, |       { title: '账户类型', index: 'accountTypeLabel', width: 130 }, | ||||||
|       { title: '账户名称', index: 'roleName', width: 100 }, |       { title: '账户名称', index: 'roleName', width: 100 }, | ||||||
|       { title: '所属项目', index: 'projectName', width: 100 }, |       { title: '所属项目', index: 'projectName', width: 140 }, | ||||||
|       { title: '收支类型', index: 'incomeTypeLabel', width: 100 }, |       { title: '收支类型', index: 'incomeTypeLabel', width: 100, className: 'text-center' }, | ||||||
|       { title: '交易金额', |       { | ||||||
|  |         title: '交易金额', | ||||||
|         index: 'amount', |         index: 'amount', | ||||||
|         width: 100, |         width: 100, | ||||||
|         type: 'currency', |         type: 'widget', | ||||||
|         format: item => `${this.currencyPipe.transform(item.amount)}` |         className: 'text-right', | ||||||
|        }, |         widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.amount }) } | ||||||
|       { title: '账户余额', |       }, | ||||||
|         type: 'currency', |       { | ||||||
|  |         title: '账户余额', | ||||||
|         width: 150, |         width: 150, | ||||||
|         format: item => `${this.currencyPipe.transform(item.accountBalance)}` |         type: 'widget', | ||||||
|        }, |         className: 'text-right', | ||||||
|       { title: '网络货运人', index: 'ltdName', width: 120 }, |         widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.accountBalance }) } | ||||||
|  |       }, | ||||||
|  |       { title: '网络货运人', index: 'ltdName', width: 140 }, | ||||||
|       { title: '银行类型', index: 'bankTypeLabel', width: 100 }, |       { title: '银行类型', index: 'bankTypeLabel', width: 100 }, | ||||||
|       { title: '银行流水号', index: 'channelPaySn', width: 120 }, |       { title: '银行流水号', index: 'channelPaySn', width: 120 }, | ||||||
|       { |       { | ||||||
| @ -242,8 +246,14 @@ export class TransactionFlowComponent implements OnInit { | |||||||
|         width: 120, |         width: 120, | ||||||
|         buttons: [ |         buttons: [ | ||||||
|           { |           { | ||||||
|             text: '查看回单' |             text: '查看回单', | ||||||
|             // click: item => this.refund(item) |             click: item => | ||||||
|  |               this.service.getReceiptUrl(item.receiptUrl, { | ||||||
|  |                 bankType: item.bankType, | ||||||
|  |                 rmYll: item.roleId, | ||||||
|  |                 snglFlgCd: item.channelPaySn, | ||||||
|  |                 bussType: '07' | ||||||
|  |               }) | ||||||
|           } |           } | ||||||
|         ] |         ] | ||||||
|       } |       } | ||||||
|  | |||||||
| @ -242,32 +242,47 @@ export class WithdrawalsRecordComponent implements OnInit { | |||||||
|       { title: '', index: 'key', type: 'checkbox' }, |       { title: '', index: 'key', type: 'checkbox' }, | ||||||
|       { title: '提现时间', index: 'createTime', width: 180 }, |       { title: '提现时间', index: 'createTime', width: 180 }, | ||||||
|       { title: '提现单号', index: 'refundApplyCode', width: 120 }, |       { title: '提现单号', index: 'refundApplyCode', width: 120 }, | ||||||
|       { title: '网络货运人', index: 'ltdName', width: 120 }, |       { title: '网络货运人', index: 'ltdName', width: 140 }, | ||||||
|       { title: '银行类型', index: 'bankTypeLabel', width: 100 }, |       { title: '银行类型', index: 'bankTypeLabel', width: 100 }, | ||||||
|       { title: '账户类型', index: 'bankTypeLabel', width: 100 }, |       { title: '账户类型', index: 'bankTypeLabel', width: 100 }, | ||||||
|       { title: '账户名称', index: 'bankAccountName', width: 100 }, |       { title: '账户名称', index: 'bankAccountName', width: 140 }, | ||||||
|       { title: '虚拟账户', index: 'virtualAccount', width: 100 }, |       { title: '虚拟账户', index: 'virtualAccount', width: 100 }, | ||||||
|       { title: '提现金额', index: 'amount', width: 100 }, |       { | ||||||
|       { title: '提现银行账户', render: 'bankCardNumber', width: 120 }, |         title: '提现金额', | ||||||
|  |         index: 'amount', | ||||||
|  |         width: 120, | ||||||
|  |         type: 'widget', | ||||||
|  |         className: 'text-right', | ||||||
|  |         widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.amount }) } | ||||||
|  |       }, | ||||||
|  |       { title: '提现银行账户', render: 'bankCardNumber', width: 180 }, | ||||||
|       { title: '提现状态', index: 'refundStatusLabel', width: 100 }, |       { title: '提现状态', index: 'refundStatusLabel', width: 100 }, | ||||||
|       { title: '银行流水号', index: 'bankSerialNumber', width: 120 }, |       { title: '银行流水号', index: 'bankSerialNumber', width: 120 }, | ||||||
|       { title: '失败原因', index: 'failCause', width: 150 }, |       { title: '失败原因', index: 'failCause', width: 150 }, | ||||||
|       { |       { | ||||||
|         title: '操作', |         title: '操作', | ||||||
|  |         fixed: 'right', | ||||||
|  |         className: 'text-center', | ||||||
|         width: '110px', |         width: '110px', | ||||||
|         buttons: [ |         buttons: [ | ||||||
|           { |           { | ||||||
|             text: '审核  ', |             text: '审核', | ||||||
|             iif: item => item.refundStatus === '1', |             iif: item => item.refundStatus === '1', | ||||||
|             click: item => this.auditAction(item) |             click: item => this.auditAction(item) | ||||||
|           }, |           }, | ||||||
|           { |           { | ||||||
|             text: '查看回单', |             text: '查看回单', | ||||||
|             iif: item => item.refundStatus === '3' |             iif: item => item.refundStatus === '3', | ||||||
|             // click: item => this.auditAction(item) |             click: item => | ||||||
|  |               this.service.getReceiptUrl(item.receiptUrl, { | ||||||
|  |                 bankType: item.bankType, | ||||||
|  |                 rmYll: item.userId, | ||||||
|  |                 snglFlgCd: item.bankSerialNumber, | ||||||
|  |                 bussType: '06' | ||||||
|  |               }) | ||||||
|           }, |           }, | ||||||
|           { |           { | ||||||
|             text: '详情  ', |             text: '详情', | ||||||
|             click: item => this.router.navigate(['/financial-management/withdrawals-record/detail/' + item.id]) |             click: item => this.router.navigate(['/financial-management/withdrawals-record/detail/' + item.id]) | ||||||
|           } |           } | ||||||
|         ] |         ] | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| /* | /* | ||||||
|  * @Description  :  |  * @Description  : | ||||||
|  * @Version      : 1.0 |  * @Version      : 1.0 | ||||||
|  * @Author       : Shiming |  * @Author       : Shiming | ||||||
|  * @Date         : 2022-01-18 15:57:44 |  * @Date         : 2022-01-18 15:57:44 | ||||||
| @ -53,7 +53,6 @@ export class FreightAccountService extends ShipperBaseService { | |||||||
|   // 运营端获取账户余额交易明细 |   // 运营端获取账户余额交易明细 | ||||||
|   $api_get_account_blance = '/api/fcc/accountBalanceDetail/getAccountBalanceByPage'; |   $api_get_account_blance = '/api/fcc/accountBalanceDetail/getAccountBalanceByPage'; | ||||||
|  |  | ||||||
|  |  | ||||||
|   // 查询费用单抬头 |   // 查询费用单抬头 | ||||||
|   $api_get_cost_page = '/api/fcc/ficoFeeH/list/page'; |   $api_get_cost_page = '/api/fcc/ficoFeeH/list/page'; | ||||||
|   // 根据费用头ID查询费用单及开票明细 |   // 根据费用头ID查询费用单及开票明细 | ||||||
| @ -91,7 +90,46 @@ export class FreightAccountService extends ShipperBaseService { | |||||||
|   // 收款单浏览表格明细 |   // 收款单浏览表格明细 | ||||||
|   $api_get_ficoInpinvL_getListByBrmHid = '/api/fcc/ficoBrmYsk/getListByBrmHid'; |   $api_get_ficoInpinvL_getListByBrmHid = '/api/fcc/ficoBrmYsk/getListByBrmHid'; | ||||||
|  |  | ||||||
|   constructor(public injector: Injector,public eaCacheSrv: EACacheService) { |   // 下载银行回单请求 | ||||||
|  |   $api_download_receipt_apply = '/api/fcc/spd/callback/receiptApply'; | ||||||
|  |  | ||||||
|  |   constructor(public injector: Injector, public eaCacheSrv: EACacheService) { | ||||||
|     super(injector, eaCacheSrv); |     super(injector, eaCacheSrv); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |   getReceiptUrl(url: string, params: any) { | ||||||
|  |     if (url) { | ||||||
|  |       this.reviewPDF(url); | ||||||
|  |     } else { | ||||||
|  |       this.request(this.$api_download_receipt_apply, { ...params }).subscribe(res => { | ||||||
|  |         if (res?.receiptUrl) { | ||||||
|  |           this.reviewPDF(res.receiptUrl); | ||||||
|  |         } else { | ||||||
|  |           this.msgSrv.warning(res.statusMsg || '获取回单失败'); | ||||||
|  |         } | ||||||
|  |       }); | ||||||
|  |     } | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   reviewPDF(url: string) { | ||||||
|  |     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(); | ||||||
|  |   } | ||||||
| } | } | ||||||
|  | |||||||
| @ -45,7 +45,7 @@ export class ETCInvoicedListComponent implements OnInit { | |||||||
|       nzOkText: '导出' |       nzOkText: '导出' | ||||||
|     }); |     }); | ||||||
|     modal.afterClose.subscribe(res => { |     modal.afterClose.subscribe(res => { | ||||||
|       if(res){ |       if (res) { | ||||||
|         this.st.load(); |         this.st.load(); | ||||||
|       } |       } | ||||||
|     }); |     }); | ||||||
| @ -155,8 +155,22 @@ export class ETCInvoicedListComponent implements OnInit { | |||||||
|       { title: '车辆信息', render: 'call12No' }, |       { title: '车辆信息', render: 'call12No' }, | ||||||
|       { title: '托运人', index: 'shipperAppUserName' }, |       { title: '托运人', index: 'shipperAppUserName' }, | ||||||
|       { title: '网络货运人', index: 'enterpriseInfoName' }, |       { title: '网络货运人', index: 'enterpriseInfoName' }, | ||||||
|       { title: '开票金额', index: 'invoicingAmount' }, |       { | ||||||
|       { title: '开票张数', index: 'invoicingNumber' }, |         title: '开票金额', | ||||||
|  |         index: 'invoicingAmount', | ||||||
|  |         width: 100, | ||||||
|  |         type: 'widget', | ||||||
|  |         className: 'text-right', | ||||||
|  |         widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.invoicingAmount }) } | ||||||
|  |       }, | ||||||
|  |       { | ||||||
|  |         title: '开票张数', | ||||||
|  |         index: 'invoicingNumber', | ||||||
|  |         width: 100, | ||||||
|  |         type: 'widget', | ||||||
|  |         className: 'text-right', | ||||||
|  |         widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.invoicingNumber }) } | ||||||
|  |       }, | ||||||
|       { title: '申请时间', index: 'orderReceivingTime', type: 'date' }, |       { title: '申请时间', index: 'orderReceivingTime', type: 'date' }, | ||||||
|       { |       { | ||||||
|         title: '操作', |         title: '操作', | ||||||
|  | |||||||
| @ -156,20 +156,48 @@ export class ETCInvoicedLogsComponent implements OnInit { | |||||||
|   private initST(): STColumn[] { |   private initST(): STColumn[] { | ||||||
|     return [ |     return [ | ||||||
|       { title: '发票号码', index: 'invoiceNum', width: 100, type: 'link', click: item => this.routeTo(item) }, |       { title: '发票号码', index: 'invoiceNum', width: 100, type: 'link', click: item => this.routeTo(item) }, | ||||||
|       { title: '发票代码', index: 'invoiceCode', width: 100 }, |       { title: '发票代码', index: 'invoiceCode', width: 130 }, | ||||||
|       { title: '订单号', index: 'billCode', width: 100 }, |       { title: '订单号', index: 'billCode', width: 140 }, | ||||||
|       { title: '运单号', index: 'waybillCode', width: 100 }, |       { title: '运单号', index: 'waybillCode', width: 140 }, | ||||||
|       { title: '入站口', index: 'enStationName', width: 100 }, |       { title: '入站口', index: 'enStationName', width: 100 }, | ||||||
|       { title: '出站口', index: 'exStationName', width: 100 }, |       { title: '出站口', index: 'exStationName', width: 100 }, | ||||||
|       { title: '司机', render: 'call3No', width: 140 }, |       { title: '司机', render: 'call3No', width: 140 }, | ||||||
|       { title: '车牌号', index: 'carNo', width: 100 }, |       { title: '车牌号', index: 'carNo', width: 100 }, | ||||||
|       { title: '里程(km)', index: 'mileage', width: 120 }, |       { title: '里程(km)', index: 'mileage', width: 120 }, | ||||||
|       { title: '交易id', index: 'tradeId', width: 100 }, |       { title: '交易id', index: 'tradeId', width: 200 }, | ||||||
|       { title: '交易金额(元)', index: 'fee', width: 130 }, |       { | ||||||
|  |         title: '交易金额(元)', | ||||||
|  |         index: 'fee', | ||||||
|  |         width: 130, | ||||||
|  |         type: 'widget', | ||||||
|  |         className: 'text-right', | ||||||
|  |         widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.fee }) } | ||||||
|  |       }, | ||||||
|       { title: '税率', index: 'taxRate', width: 90 }, |       { title: '税率', index: 'taxRate', width: 90 }, | ||||||
|       { title: '金额(元)', index: 'invoiceAmount', width: 120 }, |       { | ||||||
|       { title: '税额(元)', index: 'totalTaxAmount', width: 120 }, |         title: '金额(元)', | ||||||
|       { title: '价税合计(元)', index: 'totalAmount', width: 130 }, |         index: 'invoiceAmount', | ||||||
|  |         width: 120, | ||||||
|  |         type: 'widget', | ||||||
|  |         className: 'text-right', | ||||||
|  |         widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.invoiceAmount }) } | ||||||
|  |       }, | ||||||
|  |       { | ||||||
|  |         title: '税额(元)', | ||||||
|  |         index: 'totalTaxAmount', | ||||||
|  |         width: 120, | ||||||
|  |         type: 'widget', | ||||||
|  |         className: 'text-right', | ||||||
|  |         widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.totalTaxAmount }) } | ||||||
|  |       }, | ||||||
|  |       { | ||||||
|  |         title: '价税合计(元)', | ||||||
|  |         index: 'totalAmount', | ||||||
|  |         width: 130, | ||||||
|  |         type: 'widget', | ||||||
|  |         className: 'text-right font-weight-bold', | ||||||
|  |         widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.totalAmount }) } | ||||||
|  |       }, | ||||||
|       { title: '交易时间', index: 'exTime', type: 'date', width: 150 }, |       { title: '交易时间', index: 'exTime', type: 'date', width: 150 }, | ||||||
|       { title: '开票日期', index: 'invoiceMakeTime', type: 'date', width: 150 }, |       { title: '开票日期', index: 'invoiceMakeTime', type: 'date', width: 150 }, | ||||||
|       { title: '销售方', index: 'sellerName', width: 90 }, |       { title: '销售方', index: 'sellerName', width: 90 }, | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user