outSpecial.jsx 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970
  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. import OrderDesc from "../orderDetail/orderDesc";
  16. const outSpecial = React.createClass({
  17. departmentList() {
  18. this.setState({
  19. loading: true
  20. });
  21. $.ajax({
  22. method: "get",
  23. dataType: "json",
  24. crossDomain: false,
  25. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  26. data: {},
  27. success: function(data) {
  28. let thedata = data.data;
  29. let theArr = [];
  30. if (!thedata) {
  31. if (data.error && data.error.length) {
  32. message.warning(data.error[0].message);
  33. }
  34. } else {
  35. thedata.map(function(item, index) {
  36. theArr.push({
  37. key: index,
  38. name: item.name,
  39. id: item.id
  40. });
  41. });
  42. }
  43. this.setState({
  44. departmentArr: theArr
  45. });
  46. }.bind(this)
  47. }).always(
  48. function() {
  49. this.setState({
  50. loading: false
  51. });
  52. }.bind(this)
  53. );
  54. },
  55. loadData(pageNo) {
  56. this.state.data = [];
  57. this.setState({
  58. loading: true
  59. });
  60. $.ajax({
  61. method: "get",
  62. dataType: "json",
  63. crossDomain: false,
  64. url:
  65. globalConfig.context +
  66. "/api/admin/orderInvoice/approvalOrderInvoiceList",
  67. data: {
  68. pageNo: pageNo || 1,
  69. pageSize: this.state.pagination.pageSize,
  70. name: this.state.nameSearch, //客户名称
  71. orderNo: this.state.orderNoSearch,
  72. orderDep: this.state.departmenttList,
  73. type: 1
  74. },
  75. success: function(data) {
  76. let theArr = [];
  77. if (!data.data || !data.data.list) {
  78. if (data.error && data.error.length) {
  79. message.warning(data.error[0].message);
  80. }
  81. } else {
  82. for (let i = 0; i < data.data.list.length; i++) {
  83. let thisdata = data.data.list[i];
  84. theArr.push({
  85. key: i,
  86. id: thisdata.id,
  87. status: thisdata.status,
  88. unitName: thisdata.unitName,
  89. orderNo: thisdata.orderno,
  90. name: thisdata.name,
  91. projectStatus: thisdata.projectStatus,
  92. processStatus: thisdata.processStatus,
  93. amount: thisdata.amount,
  94. sumAmount: thisdata.sumAmount,
  95. createTime: thisdata.createTime
  96. ? new Date(thisdata.createTime).toLocaleString()
  97. : "",
  98. settlementAmount: thisdata.settlementAmount,
  99. notAmount: thisdata.notAmount,
  100. approval: thisdata.approval
  101. });
  102. }
  103. }
  104. this.state.pagination.current = data.data.pageNo;
  105. this.state.pagination.total = data.data.totalCount;
  106. if (data.data && data.data.list && !data.data.list.length) {
  107. this.state.pagination.current = 0;
  108. this.state.pagination.total = 0;
  109. }
  110. this.setState({
  111. totalPage: data.data.totalPage,
  112. dataSource: theArr,
  113. pagination: this.state.pagination
  114. });
  115. }.bind(this)
  116. }).always(
  117. function() {
  118. this.setState({
  119. loading: false
  120. });
  121. }.bind(this)
  122. );
  123. },
  124. invoiceData() {
  125. this.setState({
  126. loading: true
  127. });
  128. $.ajax({
  129. method: "get",
  130. dataType: "json",
  131. crossDomain: false,
  132. url:
  133. globalConfig.context + "/api/admin/orderInvoice/selectByIdOrderInvoice",
  134. data: {
  135. id: this.state.id
  136. },
  137. success: function(data) {
  138. let thisdata = data.data;
  139. this.setState({
  140. orderNo: thisdata.orderNo,
  141. type: thisdata.type,
  142. status: thisdata.status,
  143. remarks: thisdata.remarks,
  144. invoiceType: thisdata.invoiceType,
  145. unitName: thisdata.unitName,
  146. taxNumber: thisdata.taxNumber,
  147. amount: thisdata.amount,
  148. banks: thisdata.banks,
  149. content: thisdata.content,
  150. unitAddress: thisdata.unitAddress,
  151. invoiceRemarks: thisdata.invoiceRemarks,
  152. unitMobile: thisdata.unitMobile,
  153. contractNo: thisdata.contractNo,
  154. post: thisdata.post,
  155. addressee: thisdata.addressee,
  156. addresseeMobile: thisdata.addresseeMobile,
  157. addresseeProvince: thisdata.addresseeProvince,
  158. addresseeCity: thisdata.addresseeCity,
  159. addresseeArea: thisdata.addresseeArea,
  160. alreadyAmount: thisdata.alreadyAmount,
  161. recipientAddress: thisdata.recipientAddress,
  162. orgCodeUrl: thisdata.voucherUrl
  163. ? splitUrl(
  164. thisdata.voucherUrl,
  165. ",",
  166. globalConfig.avatarHost + "/upload"
  167. )
  168. : []
  169. });
  170. }.bind(this)
  171. }).done(
  172. function() {
  173. this.setState({
  174. loading: false
  175. });
  176. }.bind(this)
  177. );
  178. },
  179. getInitialState() {
  180. return {
  181. searchMore: true,
  182. assignVisible: false,
  183. releaseDate: [],
  184. totalPage: 0,
  185. boHuivisible: false,
  186. selectedRowKeys: [],
  187. selectedRows: [],
  188. contractNo: "",
  189. loading: false,
  190. reason: "",
  191. foo: 0,
  192. pagination: {
  193. defaultCurrent: 1,
  194. defaultPageSize: 10,
  195. showQuickJumper: true,
  196. pageSize: 10,
  197. onChange: function(page) {
  198. this.loadData(page);
  199. }.bind(this),
  200. showTotal: function(total) {
  201. return "共" + total + "条数据";
  202. }
  203. },
  204. columns: [
  205. {
  206. title: "编号",
  207. dataIndex: "id",
  208. key: "id",
  209. fixed: "left"
  210. },
  211. {
  212. title: "客户",
  213. dataIndex: "unitName",
  214. key: "unitName"
  215. },
  216. {
  217. title: "跟单人/签单人",
  218. dataIndex: "name",
  219. key: "name"
  220. },
  221. {
  222. title: "开票状态",
  223. dataIndex: "status",
  224. key: "status",
  225. render: text => {
  226. return getStatus(text);
  227. }
  228. },
  229. {
  230. title: "流程状态",
  231. dataIndex: "processStatus",
  232. key: "processStatus",
  233. render: text => {
  234. return getPeople(text);
  235. }
  236. },
  237. {
  238. title: "项目状态",
  239. dataIndex: "projectStatus",
  240. key: "projectStatus",
  241. render: text => {
  242. return getProjectStatus(text);
  243. }
  244. },
  245. {
  246. title: "申请开票(万)",
  247. dataIndex: "amount",
  248. key: "amount"
  249. },
  250. {
  251. title: "已开票(万)",
  252. dataIndex: "sumAmount",
  253. key: "sumAmount"
  254. },
  255. {
  256. title: "已收款",
  257. dataIndex: "settlementAmount",
  258. key: "settlementAmount"
  259. },
  260. {
  261. title: "未收款",
  262. dataIndex: "notAmount",
  263. key: "notAmount"
  264. },
  265. {
  266. title: "申请时间",
  267. dataIndex: "createTime",
  268. key: "createTime"
  269. },
  270. {
  271. title: "操作",
  272. dataIndex: "caozuo",
  273. key: "caouzo",
  274. render: (text, record, index) => {
  275. return (
  276. <div>
  277. {
  278. <Button
  279. type="primary"
  280. onClick={e => {
  281. e.stopPropagation(), this.visit(index);
  282. }}
  283. style={{ background: "deepskyblue", border: "none" }}
  284. >
  285. 申请内容
  286. </Button>
  287. }
  288. {record.approval !== 2 ? (
  289. <Button
  290. type="primary"
  291. style={{ marginLeft: "10px" }}
  292. onClick={e => {
  293. e.stopPropagation(),
  294. this.setState({ examine: 2 }, () => {
  295. this.sende(record);
  296. });
  297. }}
  298. >
  299. 通过
  300. </Button>
  301. ) : (
  302. ""
  303. )}
  304. {record.approval !== 2 ? (
  305. <Button
  306. type="danger"
  307. onClick={e => {
  308. e.stopPropagation(),
  309. this.setState({ examine: 3 }, () => {
  310. this.reject(record);
  311. });
  312. }}
  313. style={{ marginLeft: "10px" }}
  314. >
  315. 拒绝
  316. </Button>
  317. ) : (
  318. ""
  319. )}
  320. {record.approval === 2 ? (
  321. <Button
  322. style={{ marginLeft: "10px", color: "black" }}
  323. disabled={true}
  324. >
  325. 已通过
  326. </Button>
  327. ) : (
  328. ""
  329. )}
  330. {
  331. <Button
  332. type="primary"
  333. style={{
  334. marginLeft: "10px",
  335. background: "orangered",
  336. border: "none"
  337. }}
  338. onClick={e => {
  339. e.stopPropagation(), this.inRecord(record, index);
  340. }}
  341. >
  342. 开票记录
  343. </Button>
  344. }
  345. </div>
  346. );
  347. }
  348. }
  349. ],
  350. columnsDate: [
  351. {
  352. title: "编号",
  353. dataIndex: "id",
  354. key: "id"
  355. },
  356. {
  357. title: "订单编号",
  358. dataIndex: "orderno",
  359. key: "orderno"
  360. },
  361. {
  362. title: "开票金额(万元)",
  363. dataIndex: "amount",
  364. key: "amount"
  365. },
  366. {
  367. title: "申请时间",
  368. dataIndex: "createTime",
  369. key: "createTime"
  370. },
  371. {
  372. title: "开票状态",
  373. dataIndex: "status",
  374. key: "status",
  375. render: text => {
  376. return getInvoiceStatus(text);
  377. }
  378. }
  379. ],
  380. dataSource: [],
  381. searchTime: [,]
  382. };
  383. },
  384. loadSend(record) {
  385. this.setState({
  386. loading: true
  387. });
  388. if (this.state.examine === 3 && this.state.reason === "") {
  389. message.warning("拒绝理由不能为空!");
  390. return;
  391. }
  392. $.ajax({
  393. method: "post",
  394. dataType: "json",
  395. crossDomain: false,
  396. url: globalConfig.context + "/api/admin/orderInvoice/approvalExamine",
  397. data: {
  398. id: this.state.examine === 2 ? record.id : this.state.id,
  399. examine: this.state.examine,
  400. reason: this.state.reason
  401. },
  402. success: function() {}.bind(this)
  403. }).done(
  404. function() {
  405. this.setState({
  406. loading: false
  407. });
  408. if (this.state.examine === 2) {
  409. message.success("通过成功!");
  410. this.loadData();
  411. } else {
  412. message.success("拒绝成功!");
  413. this.resetReason();
  414. this.rejectCancels();
  415. this.loadData();
  416. }
  417. }.bind(this)
  418. );
  419. },
  420. //重置拒绝理由
  421. resetReason() {
  422. this.setState({
  423. reason: ""
  424. });
  425. },
  426. sende(record) {
  427. this.loadSend(record);
  428. },
  429. commit() {
  430. this.loadSend();
  431. this.setState({
  432. avisible: false
  433. });
  434. },
  435. visit(index) {
  436. this.setState(
  437. {
  438. id: this.state.dataSource[index].id,
  439. avisible: true
  440. },
  441. () => {
  442. this.invoiceData();
  443. }
  444. );
  445. },
  446. visitCancels() {
  447. this.setState({
  448. avisible: false
  449. });
  450. },
  451. reject(record) {
  452. this.setState({
  453. visibleR: true,
  454. id: record.id
  455. });
  456. },
  457. rejectCancels() {
  458. this.setState({
  459. visibleR: false
  460. });
  461. },
  462. inRecordData() {
  463. this.setState({
  464. loading: true
  465. });
  466. $.ajax({
  467. method: "get",
  468. dataType: "json",
  469. crossDomain: false,
  470. url:
  471. globalConfig.context +
  472. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  473. data: {
  474. orderNo: this.state.orderNo2
  475. },
  476. success: function(data) {
  477. let theArr = [];
  478. let sum = 0;
  479. if (!data.data) {
  480. if (data.error && data.error.length) {
  481. message.warning(data.error[0].message);
  482. }
  483. } else {
  484. for (let i = 0; i < data.data.list.length; i++) {
  485. let thisdata = data.data.list[i];
  486. sum += parseFloat(thisdata.amount);
  487. theArr.push({
  488. id: thisdata.id,
  489. orderno: thisdata.orderno, //订单编号
  490. amount: thisdata.amount, //签单金额
  491. createTime: thisdata.createTime, //流程状态
  492. status: thisdata.status, //结算状态
  493. rejectReason: thisdata.rejectReason
  494. });
  495. }
  496. }
  497. this.setState({
  498. recordData: theArr,
  499. sum: sum.toFixed(4)
  500. });
  501. }.bind(this)
  502. }).done(
  503. function() {
  504. this.setState({
  505. loading: false
  506. });
  507. }.bind(this)
  508. );
  509. },
  510. inRecord(record) {
  511. this.setState(
  512. {
  513. bvisible: true,
  514. orderNo2: record.orderNo
  515. },
  516. () => {
  517. this.inRecordData();
  518. }
  519. );
  520. },
  521. inRecordCanl() {
  522. this.setState({
  523. bvisible: false
  524. });
  525. },
  526. search() {
  527. this.loadData();
  528. },
  529. componentWillMount() {
  530. this.departmentList();
  531. this.loadData();
  532. },
  533. // componentDidMount() {
  534. // window.setTimeout(() => {
  535. // console.log("321", this.state);
  536. // },100)
  537. // },
  538. reset() {
  539. this.state.nameSearch = "";
  540. this.state.releaseDate = [];
  541. this.state.orderNoSearch = "";
  542. this.state.processStatus = [];
  543. this.state.departmenttList = [];
  544. this.loadData();
  545. },
  546. tableRowClick(record) {
  547. this.state.RowData = record;
  548. this.setState({
  549. showDesc: true
  550. });
  551. },
  552. closeDesc(e, s) {
  553. this.state.showDesc = e;
  554. if (s) {
  555. this.loadData(this.state.page);
  556. }
  557. },
  558. render() {
  559. const formItemLayout = {
  560. labelCol: { span: 8 },
  561. wrapperCol: { span: 14 }
  562. };
  563. return (
  564. <div className="user-content">
  565. <div className="content-title">
  566. <span>省外特批</span>
  567. </div>
  568. <div className="user-search">
  569. <Input
  570. placeholder="营销员名称"
  571. value={this.state.nameSearch}
  572. onChange={e => {
  573. this.setState({ nameSearch: e.target.value });
  574. }}
  575. />
  576. <Input
  577. placeholder="订单编号"
  578. value={this.state.orderNoSearch}
  579. onChange={e => {
  580. this.setState({ orderNoSearch: e.target.value });
  581. }}
  582. />
  583. {/*<Select placeholder="订单部门"
  584. style={{ width: 150 ,marginRight:10}}
  585. value={this.state.departmenttList}
  586. onChange={(e) => { this.setState({ departmenttList: e }) }}>
  587. {
  588. departmentArr.map(function (item) {
  589. return <Select.Option key={item.id} >{item.name}</Select.Option>
  590. })
  591. }
  592. </Select>*/}
  593. <Button
  594. type="primary"
  595. onClick={this.search}
  596. style={{ marginLeft: 10 }}
  597. >
  598. 搜索
  599. </Button>
  600. <Button onClick={this.reset}>重置</Button>
  601. </div>
  602. <div className="patent-table">
  603. <Spin spinning={this.state.loading}>
  604. <Table
  605. columns={this.state.columns}
  606. scroll={{ x: 1500, y: 0 }}
  607. onRowClick={this.tableRowClick}
  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. <OrderDesc
  944. data={this.state.RowData}
  945. showDesc={this.state.showDesc}
  946. closeDesc={this.closeDesc.bind(this)}
  947. />
  948. </div>
  949. );
  950. }
  951. });
  952. export default outSpecial;