import React from "react"; import { Spin, Button, Tabs, Table, message, Modal, Form, Upload } from "antd"; import $ from "jquery/src/ajax"; import { getProvinceA, getInvoiceStatus, getprovince, getStatus, getPeople, splitUrl, ShowModal, getProcessStatus, } from "@/tools"; import ImgList from "../../../common/imgList"; const FormItem = Form.Item; const KaiPiaoModal = React.createClass({ getInitialState() { return { rotateDeg: 0 }; }, componentWillReceiveProps(nextProps) { this.state = nextProps.data; this.setState(this.state); }, downImg() { let num = 0; for (let i = 0; i < this.state.orgCodeUrl.length; i++) { if (this.state.orgCodeUrl[i].url == this.state.previewImage) { num = i; } } if (num == this.state.orgCodeUrl.length - 1) { return message.warning("已经是最后一张了哦"); } this.state.previewImage = this.state.orgCodeUrl[num + 1].url; this.setState({ previewImage: this.state.previewImage, rotateDeg: 0, }); }, upImg() { let num = 0; for (let i = 0; i < this.state.orgCodeUrl.length; i++) { if (this.state.orgCodeUrl[i].url == this.state.previewImage) { num = i; } } if (num == 0) { return message.warning("已经是第一张了哦"); } this.state.previewImage = this.state.orgCodeUrl[num - 1].url; this.setState({ previewImage: this.state.previewImage, rotateDeg: 0, }); }, rotate() { let rotateDeg = this.state.rotateDeg + 90; this.setState({ rotateDeg, }); }, render() { const formItemLayout = { labelCol: { span: 8 }, wrapperCol: { span: 14 }, }; return (
{this.state.contractNo} {this.state.remarks}
*省内/外 } > {getProvinceA(this.state.type)} *特批 } > {this.state.approval === 0 ? "否" : "是"}

发票内容
*发票类型 } > {this.state.invoiceType === 0 ? "增值税专用发票" : this.state.invoiceType === 1 ? "增值税普通发票" : "其他"}
*单位名称 } > {this.state.unitName} *税号 } > {this.state.taxNumber} * 开票金额(万元) } > {this.state.amount} * 开户行银行账号 } > {this.state.banks} * 开票内容及说明 } > {this.state.content} *单位地址 } > {this.state.unitAddress} {this.state.invoiceRemarks} *单位电话 } > {this.state.unitMobile}
*附件 } > { this.setState({ previewImage: file.url || file.thumbUrl, previewVisible: true, }); }} /> {/*
*/} {/* */} {/*
*/} { this.setState({ previewVisible: false, rotateDeg: 0 }); }} >

{this.state.post === 0 ? "是" : "否"}
{this.state.post === 0 ? (
{this.state.addressee} {this.state.addresseeMobile}
{getprovince(this.state.addresseeProvince)}/ {getprovince(this.state.addresseeCity)}/ {getprovince(this.state.addresseeArea)}
{this.state.recipientAddress}
) : ( "" )} {/* *开票金额总计 } > {this.state.alreadyAmount}万元 */}
); }, }); export default KaiPiaoModal;