outSpecial.jsx 26 KB

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