import React, { Component } from "react"; // import axios from 'axios'; // import store from 'store'; import { // Form, // Input, // Icon, Button, Drawer } from 'antd'; import { // comAccountTradeVoucher, // comAccountPayVoucher, enterpriseCompanyComBaseInfoGetComBaseInfoById, host } from '../../../../services/api'; import '../../financialWallet.less'; export default class BudgetDrawer extends Component { constructor(props, context) { super(props, context); this.state={ payVouchersUrl: '', electronicUrl: '', comId: '' }; } componentDidMount() { enterpriseCompanyComBaseInfoGetComBaseInfoById({}).then(res => { this.setState({ comId: res.data.comId }); }); } _renderInfo() { const { info } = this.props; // if(info) { // axios({ // method: 'get', // url: // `${host}/task/com/wallet/com-account-pay-voucher?comWalletTradeId=${info.flow_no}`, //后台请求地址 // headers: { // access_token: store.get('saas')['access_token'] // } // }).then(data => { // console.log(data, 'data'); // // document.write(data.data); // // if (!data) { // // return; // // } // // let url = data.data.data; // // let link = document.createElement('a'); // // link.style.display = 'none'; // // link.href = url; // // link.setAttribute( // // 'download', // // `瞎咋.xls` // // ); // // document.body.appendChild(link); // // link.click(); // }); // // comAccountPayVoucher({comWalletTradeId: info.flow_no}).then(res => { // // console.log(res, 'resresrtes'); // // }); // } return (
交易时间
{info.tradeDate}
交易流水号
{info.tradeFlowNo}
财务处理时间
{info.accountsDealDate}
财务流水号
{info.flowNo}
交易金额
{info.amount}
交易后金额
{info.balance}
资金流向
{info.direction}
财务处理类型
{info.accountsDealType}
处理状态
{info.handStatus}
订单创建时间
{info.createDate}
服务编码
{info.serviceType}
交易类型
{info.tradeType}
入账方账户
{info.accountIn}
入账方名称
{info.accountInName}
出账方账户
{info.accountOut}
出账方名称
{info.accountOutName}
备注
{info.memo}
电子回单
支付凭证
{ window.open(`${host}/task/com/wallet/com-account-pay-voucher?tradeFlowNo=${info.flow_no}`); }} >下载