invoiceApplyList.jsx 27 KB

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