invoiceApplyList.jsx 25 KB

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