invoiceApplyListWai.jsx 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968
  1. import React from "react";
  2. import $ from "jquery/src/ajax";
  3. import "./public.less";
  4. import {
  5. Form,
  6. Button,
  7. Input,
  8. Select,
  9. Spin,
  10. Table,
  11. message,
  12. Modal,
  13. Upload
  14. } from "antd";
  15. import {
  16. getProjectStatus,
  17. getProvinceA,
  18. getInvoiceStatus,
  19. getprovince,
  20. getStatus,
  21. getPeople,
  22. splitUrl
  23. } from "@/tools";
  24. const FormItem = Form.Item;
  25. const invoiceApplyListWai = React.createClass({
  26. departmentList() {
  27. this.setState({
  28. loading: true
  29. });
  30. $.ajax({
  31. method: "get",
  32. dataType: "json",
  33. crossDomain: false,
  34. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  35. data: {},
  36. success: function(data) {
  37. let thedata = data.data;
  38. let theArr = [];
  39. if (!thedata) {
  40. if (data.error && data.error.length) {
  41. message.warning(data.error[0].message);
  42. }
  43. } else {
  44. thedata.map(function(item, index) {
  45. theArr.push({
  46. key: index,
  47. name: item.name,
  48. id: item.id
  49. });
  50. });
  51. }
  52. this.setState({
  53. departmentArr: theArr
  54. });
  55. }.bind(this)
  56. }).always(
  57. function() {
  58. this.setState({
  59. loading: false
  60. });
  61. }.bind(this)
  62. );
  63. },
  64. loadData(pageNo) {
  65. this.state.data = [];
  66. this.setState({
  67. loading: true
  68. });
  69. $.ajax({
  70. method: "get",
  71. dataType: "json",
  72. crossDomain: false,
  73. url:
  74. globalConfig.context +
  75. "/api/admin/orderInvoice/financeOrderInvoiceList",
  76. data: {
  77. pageNo: pageNo || 1,
  78. pageSize: this.state.pagination.pageSize,
  79. name: this.state.nameSearch, //客户名称
  80. orderNo: this.state.orderNoSearch,
  81. orderDep: this.state.departmenttList,
  82. type: 1
  83. },
  84. success: function(data) {
  85. let theArr = [];
  86. if (!data.data || !data.data.list) {
  87. if (data.error && data.error.length) {
  88. message.warning(data.error[0].message);
  89. }
  90. } else {
  91. for (let i = 0; i < data.data.list.length; i++) {
  92. let thisdata = data.data.list[i];
  93. theArr.push({
  94. key: i,
  95. id: thisdata.id,
  96. status: thisdata.status,
  97. unitName: thisdata.unitName,
  98. orderno: thisdata.orderno,
  99. name: thisdata.name,
  100. projectStatus: thisdata.projectStatus,
  101. processStatus: thisdata.processStatus,
  102. amount: thisdata.amount,
  103. sumAmount: thisdata.sumAmount,
  104. createTime: thisdata.createTime
  105. ? new Date(thisdata.createTime).toLocaleString()
  106. : "",
  107. settlementAmount: thisdata.settlementAmount,
  108. notAmount: thisdata.notAmount
  109. });
  110. }
  111. }
  112. this.state.pagination.current = data.data.pageNo;
  113. this.state.pagination.total = data.data.totalCount;
  114. if (data.data && data.data.list && !data.data.list.length) {
  115. this.state.pagination.current = 0;
  116. this.state.pagination.total = 0;
  117. }
  118. this.setState({
  119. totalPage: data.data.totalPage,
  120. dataSource: theArr,
  121. pagination: this.state.pagination
  122. });
  123. }.bind(this)
  124. }).always(
  125. function() {
  126. this.setState({
  127. loading: false
  128. });
  129. }.bind(this)
  130. );
  131. },
  132. invoiceData() {
  133. this.setState({
  134. loading: true
  135. });
  136. $.ajax({
  137. method: "get",
  138. dataType: "json",
  139. crossDomain: false,
  140. url:
  141. globalConfig.context + "/api/admin/orderInvoice/selectByIdOrderInvoice",
  142. data: {
  143. id: this.state.id
  144. },
  145. success: function(data) {
  146. let thisdata = data.data;
  147. this.setState({
  148. contractNo: thisdata.contractNo,
  149. orderNo: thisdata.orderNo,
  150. approval: thisdata.approval,
  151. type: thisdata.type,
  152. status: thisdata.status,
  153. remarks: thisdata.remarks,
  154. invoiceType: thisdata.invoiceType,
  155. unitName: thisdata.unitName,
  156. taxNumber: thisdata.taxNumber,
  157. amount: thisdata.amount,
  158. banks: thisdata.banks,
  159. content: thisdata.content,
  160. unitAddress: thisdata.unitAddress,
  161. invoiceRemarks: thisdata.invoiceRemarks,
  162. unitMobile: thisdata.unitMobile,
  163. post: thisdata.post,
  164. addressee: thisdata.addressee,
  165. addresseeMobile: thisdata.addresseeMobile,
  166. addresseeProvince: thisdata.addresseeProvince,
  167. addresseeCity: thisdata.addresseeCity,
  168. addresseeArea: thisdata.addresseeArea,
  169. alreadyAmount: thisdata.alreadyAmount,
  170. recipientAddress: thisdata.recipientAddress,
  171. orgCodeUrl: thisdata.voucherUrl
  172. ? splitUrl(
  173. thisdata.voucherUrl,
  174. ",",
  175. globalConfig.avatarHost + "/upload"
  176. )
  177. : []
  178. });
  179. }.bind(this)
  180. }).done(
  181. function() {
  182. this.setState({
  183. loading: false
  184. });
  185. }.bind(this)
  186. );
  187. },
  188. getInitialState() {
  189. return {
  190. searchMore: true,
  191. assignVisible: false,
  192. releaseDate: [],
  193. totalPage: 0,
  194. boHuivisible: false,
  195. selectedRowKeys: [],
  196. selectedRows: [],
  197. loading: false,
  198. contractNo: "",
  199. reason: "",
  200. foo: 0,
  201. pagination: {
  202. defaultCurrent: 1,
  203. defaultPageSize: 10,
  204. showQuickJumper: true,
  205. pageSize: 10,
  206. onChange: function(page) {
  207. this.loadData(page);
  208. }.bind(this),
  209. showTotal: function(total) {
  210. return "共" + total + "条数据";
  211. }
  212. },
  213. columns: [
  214. {
  215. title: "编号",
  216. dataIndex: "id",
  217. key: "id",
  218. fixed: "left"
  219. },
  220. {
  221. title: "客户",
  222. dataIndex: "unitName",
  223. key: "unitName"
  224. },
  225. {
  226. title: "跟单人/签单人",
  227. dataIndex: "name",
  228. key: "name"
  229. },
  230. {
  231. title: "开票状态",
  232. dataIndex: "status",
  233. key: "status",
  234. render: text => {
  235. return getStatus(text);
  236. }
  237. },
  238. {
  239. title: "流程状态",
  240. dataIndex: "processStatus",
  241. key: "processStatus",
  242. render: text => {
  243. return getPeople(text);
  244. }
  245. },
  246. {
  247. title: "项目状态",
  248. dataIndex: "projectStatus",
  249. key: "projectStatus",
  250. render: text => {
  251. return getProjectStatus(text);
  252. }
  253. },
  254. {
  255. title: "申请开票(万)",
  256. dataIndex: "amount",
  257. key: "amount"
  258. },
  259. {
  260. title: "已开票(万)",
  261. dataIndex: "sumAmount",
  262. key: "sumAmount"
  263. },
  264. {
  265. title: "已收款",
  266. dataIndex: "settlementAmount",
  267. key: "settlementAmount"
  268. },
  269. {
  270. title: "未收款",
  271. dataIndex: "notAmount",
  272. key: "notAmount"
  273. },
  274. {
  275. title: "申请时间",
  276. dataIndex: "createTime",
  277. key: "createTime"
  278. },
  279. {
  280. title: "操作",
  281. dataIndex: "caozuo",
  282. key: "caouzo",
  283. render: (_text, record, index) => {
  284. return (
  285. <div>
  286. {
  287. <Button
  288. type="primary"
  289. onClick={e => {
  290. e.stopPropagation(), this.visit(index);
  291. }}
  292. style={{ background: "deepskyblue", border: "none" }}
  293. >
  294. 申请内容
  295. </Button>
  296. }
  297. {record.status !== 2 ? (
  298. <Button
  299. type="primary"
  300. style={{ marginLeft: "10px" }}
  301. onClick={e => {
  302. e.stopPropagation(),
  303. this.setState({ examine: 2 }, () => {
  304. this.sende(record);
  305. });
  306. }}
  307. >
  308. 通过
  309. </Button>
  310. ) : (
  311. ""
  312. )}
  313. {record.status !== 2 ? (
  314. <Button
  315. type="danger"
  316. onClick={e => {
  317. e.stopPropagation(),
  318. this.setState({ examine: 3 }, () => {
  319. this.reject(record);
  320. });
  321. }}
  322. style={{ marginLeft: "10px" }}
  323. >
  324. 拒绝
  325. </Button>
  326. ) : (
  327. ""
  328. )}
  329. {record.status === 2 ? (
  330. <Button
  331. style={{ marginLeft: "10px", color: "black" }}
  332. disabled={true}
  333. >
  334. 已通过
  335. </Button>
  336. ) : (
  337. ""
  338. )}
  339. {
  340. <Button
  341. type="primary"
  342. style={{
  343. marginLeft: "10px",
  344. background: "orangered",
  345. border: "none"
  346. }}
  347. onClick={e => {
  348. e.stopPropagation(), this.inRecord(record, index);
  349. }}
  350. >
  351. 开票记录
  352. </Button>
  353. }
  354. </div>
  355. );
  356. }
  357. }
  358. ],
  359. columnsDate: [
  360. {
  361. title: "编号",
  362. dataIndex: "id",
  363. key: "id"
  364. },
  365. {
  366. title: "订单编号",
  367. dataIndex: "orderno",
  368. key: "orderno"
  369. },
  370. {
  371. title: "开票金额(万元)",
  372. dataIndex: "amount",
  373. key: "amount"
  374. },
  375. {
  376. title: "申请时间",
  377. dataIndex: "createTime",
  378. key: "createTime"
  379. },
  380. {
  381. title: "开票状态",
  382. dataIndex: "status",
  383. key: "status",
  384. render: text => {
  385. return getInvoiceStatus(text);
  386. }
  387. }
  388. ],
  389. dataSource: [],
  390. searchTime: [,]
  391. };
  392. },
  393. loadSend(record) {
  394. this.setState({
  395. loading: true
  396. });
  397. if (this.state.examine === 3 && this.state.reason === "") {
  398. message.warning("拒绝理由不能为空!");
  399. return;
  400. }
  401. $.ajax({
  402. method: "post",
  403. dataType: "json",
  404. crossDomain: false,
  405. url: globalConfig.context + "/api/admin/orderInvoice/financeExamine",
  406. data: {
  407. id: this.state.examine === 2 ? record.id : this.state.id,
  408. examine: this.state.examine,
  409. reason: this.state.reason
  410. },
  411. success: function() {}.bind(this)
  412. }).done(
  413. function() {
  414. this.setState({
  415. loading: false
  416. });
  417. if (this.state.examine === 2) {
  418. message.success("通过成功!");
  419. this.loadData();
  420. } else {
  421. message.success("拒绝成功!");
  422. this.resetReason();
  423. this.rejectCancels();
  424. this.loadData();
  425. }
  426. }.bind(this)
  427. );
  428. },
  429. //重置拒绝理由
  430. resetReason() {
  431. this.setState({
  432. reason: ""
  433. });
  434. },
  435. sende(record) {
  436. this.loadSend(record);
  437. },
  438. commit() {
  439. this.loadSend();
  440. this.setState({
  441. avisible: false
  442. });
  443. },
  444. visit(index) {
  445. this.setState(
  446. {
  447. id: this.state.dataSource[index].id,
  448. avisible: true
  449. },
  450. () => {
  451. this.invoiceData();
  452. }
  453. );
  454. },
  455. visitCancels() {
  456. this.setState({
  457. avisible: false
  458. });
  459. },
  460. reject(record) {
  461. this.setState({
  462. visibleR: true,
  463. id: record.id
  464. });
  465. },
  466. rejectCancels() {
  467. this.setState({
  468. visibleR: false
  469. });
  470. },
  471. inRecordData() {
  472. this.setState({
  473. loading: true
  474. });
  475. $.ajax({
  476. method: "get",
  477. dataType: "json",
  478. crossDomain: false,
  479. url:
  480. globalConfig.context +
  481. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  482. data: {
  483. orderNo: this.state.orderNo2
  484. },
  485. success: function(data) {
  486. let theArr = [];
  487. let sum = 0;
  488. if (!data.data) {
  489. if (data.error && data.error.length) {
  490. message.warning(data.error[0].message);
  491. }
  492. } else {
  493. for (let i = 0; i < data.data.list.length; i++) {
  494. let thisdata = data.data.list[i];
  495. sum += parseFloat(thisdata.amount);
  496. theArr.push({
  497. id: thisdata.id,
  498. orderno: thisdata.orderno, //订单编号
  499. amount: thisdata.amount, //签单金额
  500. createTime: thisdata.createTime, //流程状态
  501. status: thisdata.status, //结算状态
  502. rejectReason: thisdata.rejectReason
  503. });
  504. }
  505. }
  506. this.setState({
  507. recordData: theArr,
  508. sum: sum.toFixed(4)
  509. });
  510. }.bind(this)
  511. }).done(
  512. function() {
  513. this.setState({
  514. loading: false
  515. });
  516. }.bind(this)
  517. );
  518. },
  519. inRecord(record) {
  520. this.setState(
  521. {
  522. bvisible: true,
  523. orderNo2: record.orderno
  524. },
  525. () => {
  526. this.inRecordData();
  527. }
  528. );
  529. },
  530. inRecordCanl() {
  531. this.setState({
  532. bvisible: false
  533. });
  534. },
  535. search() {
  536. this.loadData();
  537. },
  538. componentWillMount() {
  539. this.departmentList();
  540. this.loadData();
  541. },
  542. reset() {
  543. this.state.nameSearch = "";
  544. this.state.releaseDate = [];
  545. this.state.orderNoSearch = "";
  546. this.state.processStatus = [];
  547. this.state.departmenttList = [];
  548. this.loadData();
  549. },
  550. render() {
  551. const formItemLayout = {
  552. labelCol: { span: 8 },
  553. wrapperCol: { span: 14 }
  554. };
  555. var departmentArr = this.state.departmentArr || [];
  556. return (
  557. <div className="user-content">
  558. <div className="content-title">
  559. <span>省外开票审核</span>
  560. </div>
  561. <div className="user-search">
  562. <Input
  563. placeholder="营销员名称"
  564. value={this.state.nameSearch}
  565. onChange={e => {
  566. this.setState({ nameSearch: e.target.value });
  567. }}
  568. />
  569. <Input
  570. placeholder="订单编号"
  571. value={this.state.orderNoSearch}
  572. onChange={e => {
  573. this.setState({ orderNoSearch: e.target.value });
  574. }}
  575. />
  576. <Select
  577. placeholder="订单部门"
  578. style={{ width: 150, marginRight: 10 }}
  579. value={this.state.departmenttList}
  580. onChange={e => {
  581. this.setState({ departmenttList: e });
  582. }}
  583. >
  584. {departmentArr.map(function(item) {
  585. return <Select.Option key={item.id}>{item.name}</Select.Option>;
  586. })}
  587. </Select>
  588. <Button
  589. type="primary"
  590. onClick={this.search}
  591. style={{ marginLeft: 10 }}
  592. >
  593. 搜索
  594. </Button>
  595. <Button onClick={this.reset}>重置</Button>
  596. </div>
  597. <div className="patent-table">
  598. <Spin spinning={this.state.loading}>
  599. <Table
  600. columns={this.state.columns}
  601. scroll={{ x: 1500, y: 0 }}
  602. dataSource={this.state.dataSource}
  603. pagination={this.state.pagination}
  604. />
  605. </Spin>
  606. </div>
  607. <Modal
  608. visible={this.state.visibleR}
  609. className="admin-desc-content"
  610. footer=""
  611. title="拒绝理由"
  612. width="400px"
  613. onCancel={this.rejectCancels}
  614. >
  615. <Input.TextArea
  616. placeholder="请输入拒绝理由"
  617. rows={4}
  618. value={this.state.reason}
  619. onChange={e => {
  620. this.setState({ reason: e.target.value });
  621. }}
  622. ></Input.TextArea>
  623. <div className="clearfix" style={{ marginTop: "20px" }}>
  624. <Button
  625. type="primary"
  626. onClick={e => {
  627. e.stopPropagation(), this.commit();
  628. }}
  629. style={{ float: "right" }}
  630. >
  631. 提交
  632. </Button>
  633. </div>
  634. </Modal>
  635. <Modal
  636. className="admin-desc-content"
  637. footer=""
  638. title="开具发票申请单"
  639. width="900px"
  640. visible={this.state.avisible}
  641. onOk={this.visitOks}
  642. onCancel={this.visitCancels}
  643. >
  644. <Form
  645. layout="horizontal"
  646. id="demand-form"
  647. style={{ paddingBottom: "40px" }}
  648. >
  649. <Spin spinning={this.state.loading}>
  650. <div className="clearfix">
  651. <div className="clearfix">
  652. <FormItem
  653. className="half-item"
  654. {...formItemLayout}
  655. label="合同编号"
  656. >
  657. <span>{this.state.contractNo}</span>
  658. </FormItem>
  659. <FormItem
  660. className="half-item"
  661. {...formItemLayout}
  662. label="备注"
  663. >
  664. <span>{this.state.remarks}</span>
  665. </FormItem>
  666. </div>
  667. <div className="clearfix">
  668. <FormItem
  669. className="half-item"
  670. {...formItemLayout}
  671. label={
  672. <span>
  673. <strong style={{ color: "#f00" }}>*</strong>省内/外
  674. </span>
  675. }
  676. >
  677. <span>{getProvinceA(this.state.type)}</span>
  678. </FormItem>
  679. <FormItem
  680. className="half-item"
  681. {...formItemLayout}
  682. label={
  683. <span>
  684. <strong style={{ color: "#f00" }}>*</strong>特批
  685. </span>
  686. }
  687. >
  688. <span>{this.state.approval === 0 ? "否" : "是"}</span>
  689. </FormItem>
  690. </div>
  691. <hr
  692. style={{
  693. border: "1px dashed #aaa",
  694. width: "90%",
  695. margin: "auto"
  696. }}
  697. />
  698. <div style={{ marginTop: "13px", marginLeft: "16px" }}>
  699. <span style={{ fontSize: "14px" }}>发票内容</span>
  700. </div>
  701. <div className="clearfix">
  702. <FormItem
  703. className="half-item"
  704. {...formItemLayout}
  705. label={
  706. <span>
  707. <strong style={{ color: "#f00" }}>*</strong>发票类型
  708. </span>
  709. }
  710. >
  711. <span>
  712. {this.state.invoiceType === 0
  713. ? "增值税专用发票"
  714. : this.state.invoiceType === 1
  715. ? "增值税普通发票"
  716. : "其他"}
  717. </span>
  718. </FormItem>
  719. </div>
  720. <div className="clearfix">
  721. <FormItem
  722. className="half-item"
  723. {...formItemLayout}
  724. label={
  725. <span>
  726. <strong style={{ color: "#f00" }}>*</strong>单位名称
  727. </span>
  728. }
  729. >
  730. <span>{this.state.unitName}</span>
  731. </FormItem>
  732. <FormItem
  733. className="half-item"
  734. {...formItemLayout}
  735. label={
  736. <span>
  737. <strong style={{ color: "#f00" }}>*</strong>税号
  738. </span>
  739. }
  740. >
  741. <span>{this.state.taxNumber}</span>
  742. </FormItem>
  743. <FormItem
  744. className="half-item"
  745. {...formItemLayout}
  746. label={
  747. <span>
  748. <strong style={{ color: "#f00" }}>*</strong>
  749. 开票金额(万元)
  750. </span>
  751. }
  752. >
  753. <span>{this.state.amount}</span>
  754. </FormItem>
  755. <FormItem
  756. className="half-item"
  757. {...formItemLayout}
  758. label={
  759. <span>
  760. <strong style={{ color: "#f00" }}>*</strong>
  761. 开户行银行账号
  762. </span>
  763. }
  764. >
  765. <span>{this.state.banks}</span>
  766. </FormItem>
  767. <FormItem
  768. className="half-item"
  769. {...formItemLayout}
  770. label={
  771. <span>
  772. <strong style={{ color: "#f00" }}>*</strong>
  773. 开票内容及说明
  774. </span>
  775. }
  776. >
  777. <span>{this.state.content}</span>
  778. </FormItem>
  779. <FormItem
  780. className="half-item"
  781. {...formItemLayout}
  782. label={
  783. <span>
  784. <strong style={{ color: "#f00" }}>*</strong>单位地址
  785. </span>
  786. }
  787. >
  788. <span>{this.state.unitAddress}</span>
  789. </FormItem>
  790. <FormItem
  791. className="half-item"
  792. {...formItemLayout}
  793. label="备注"
  794. >
  795. <span>{this.state.invoiceRemarks}</span>
  796. </FormItem>
  797. <FormItem
  798. className="half-item"
  799. {...formItemLayout}
  800. label={
  801. <span>
  802. <strong style={{ color: "#f00" }}>*</strong>单位电话
  803. </span>
  804. }
  805. >
  806. <span>{this.state.unitMobile}</span>
  807. </FormItem>
  808. </div>
  809. <div className="clearfix">
  810. <FormItem
  811. labelCol={{ span: 4 }}
  812. wrapperCol={{ span: 18 }}
  813. label={
  814. <span>
  815. <strong style={{ color: "#f00" }}>*</strong>附件
  816. </span>
  817. }
  818. >
  819. <Upload
  820. className="demandDetailShow-upload"
  821. listType="picture-card"
  822. fileList={this.state.orgCodeUrl}
  823. onPreview={file => {
  824. this.setState({
  825. previewImage: file.url || file.thumbUrl,
  826. previewVisible: true
  827. });
  828. }}
  829. ></Upload>
  830. <Modal
  831. maskClosable={false}
  832. footer={null}
  833. visible={this.state.previewVisible}
  834. onCancel={() => {
  835. this.setState({ previewVisible: false });
  836. }}
  837. >
  838. <img
  839. alt=""
  840. style={{ width: "100%" }}
  841. src={this.state.previewImage || ""}
  842. />
  843. </Modal>
  844. </FormItem>
  845. </div>
  846. <hr
  847. style={{
  848. border: "1px dashed #aaa",
  849. width: "90%",
  850. margin: "auto"
  851. }}
  852. />
  853. <div className="clearfix" style={{ marginTop: "10px" }}>
  854. <FormItem
  855. className="half-item"
  856. {...formItemLayout}
  857. label="发票是否邮寄:"
  858. >
  859. <span>{this.state.post === 0 ? "是" : "否"}</span>
  860. </FormItem>
  861. </div>
  862. {this.state.post === 0 ? (
  863. <div>
  864. <div className="clearfix">
  865. <FormItem
  866. className="half-item"
  867. {...formItemLayout}
  868. label="收信人姓名"
  869. >
  870. <span>{this.state.addressee}</span>
  871. </FormItem>
  872. <FormItem
  873. className="half-item"
  874. {...formItemLayout}
  875. label="电话"
  876. >
  877. <span>{this.state.addresseeMobile}</span>
  878. </FormItem>
  879. </div>
  880. <div className="clearfix">
  881. <FormItem
  882. className="half-item"
  883. {...formItemLayout}
  884. label="省-市-区"
  885. >
  886. <span>
  887. {getprovince(this.state.addresseeProvince)}/
  888. {getprovince(this.state.addresseeCity)}/
  889. {getprovince(this.state.addresseeArea)}
  890. </span>
  891. </FormItem>
  892. </div>
  893. <div className="clearfix">
  894. <FormItem
  895. className="half-item"
  896. {...formItemLayout}
  897. label="详细地址"
  898. >
  899. <span>{this.state.recipientAddress}</span>
  900. </FormItem>
  901. </div>
  902. </div>
  903. ) : (
  904. ""
  905. )}
  906. <FormItem
  907. className="half-item"
  908. {...formItemLayout}
  909. label={
  910. <span>
  911. <strong style={{ color: "#f00" }}>*</strong>开票金额总计
  912. </span>
  913. }
  914. >
  915. <span>{this.state.alreadyAmount}万元</span>
  916. </FormItem>
  917. </div>
  918. </Spin>
  919. </Form>
  920. </Modal>
  921. <Modal
  922. visible={this.state.bvisible}
  923. footer=""
  924. title="开票历史记录"
  925. className="admin-desc-content"
  926. width="900px"
  927. onCancel={this.inRecordCanl}
  928. >
  929. <Spin spinning={this.state.loading}>
  930. <div className="patent-table">
  931. <Table
  932. columns={this.state.columnsDate}
  933. dataSource={this.state.recordData}
  934. pagination={false}
  935. />
  936. <div className="clearfix" style={{ marginTop: "20px" }}>
  937. <FormItem
  938. className="half-item"
  939. {...formItemLayout}
  940. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  941. >
  942. <span>{this.state.sum + "(万元)"}</span>
  943. </FormItem>
  944. </div>
  945. </div>
  946. </Spin>
  947. </Modal>
  948. </div>
  949. );
  950. }
  951. });
  952. export default invoiceApplyListWai;