import React, { Component } from "react"; import { Modal, Table, Button, message, Spin, Upload } from "antd"; import $ from "jquery/src/ajax"; import "./table.less"; import { splitUrl, } from "@/tools.js"; import ImgList from "../../../../common/imgList"; class Refund extends Component { constructor(props) { super(props); this.state = { visible: false, dataSource: [], loading: false, columns: [ { title: "退款金额(万元)", dataIndex: "refundAmount", key: "refundAmount", }, { title: "退款时间", dataIndex: "refundDate", key: "refundDate" }, { title: "备注", dataIndex: "remarks", key: "remarks" }, ], }; } componentDidMount() { if (this.props.dataSource) { return } this.loadData() } loadData() { this.setState({ loading: true }); $.ajax({ method: "get", dataType: "json", crossDomain: false, url: globalConfig.context + "/api/admin/orderChange/listRefund", data: { id: this.props.id }, success: function (data) { if (data.error.length || data.data.list == "") { if (data.error && data.error.length) { message.warning(data.error[0].message); } } else { this.setState({ dataSource: data.data }); } }.bind(this) }).always( function () { this.setState({ loading: false }); }.bind(this) ); } render() { const urlStr = this.props.data.refundUrl const orgCodeUrl = urlStr ? splitUrl( urlStr, ",", globalConfig.avatarHost + "/upload" ) : [] return (

执行退款 (注:执行退款,系统将从已收款金额中直接减款)

退款凭证

{/* {*/} {/* this.setState({*/} {/* previewImage: file.url || file.thumbUrl,*/} {/* previewVisible: true*/} {/* });*/} {/* }}*/} {/*/>*/} {orgCodeUrl ?
:
} { this.setState({ previewVisible: false, rotateDeg: 0 }, () => { }); }} > {/* */}
); } } export default Refund;