invoiceApplyList.jsx 30 KB

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