outSpecial.jsx 27 KB

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