outInvoiceQuery.jsx 26 KB

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