outSpecial.jsx 28 KB

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