outInvoiceQuery.jsx 27 KB

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