outInvoiceQuery.jsx 27 KB

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