accountTotal.jsx 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891
  1. import React from "react";
  2. import $ from "jquery/src/ajax";
  3. import moment from "moment";
  4. import {
  5. Button,
  6. Form,
  7. Input,
  8. Spin,
  9. Table,
  10. Select,
  11. message,
  12. Tabs,
  13. DatePicker,
  14. Modal,
  15. } from "antd";
  16. import { ChooseList } from "../../order/orderNew/chooseList";
  17. import { ShowModal, getAccountName, getSecondaryAccountName } from "../../../tools"
  18. import { accountType, accountStatus } from "@/dataDic";
  19. import ShowModalDiv from "@/showModal.jsx";
  20. import OrderDetail from '../../order/orderNew/changeComponent/orderDetail';
  21. import './index.less';
  22. const FormItem = Form.Item;
  23. const { RangePicker } = DatePicker;
  24. const { TabPane } = Tabs;
  25. const AccountTotal = React.createClass({
  26. getInitialState() {
  27. return {
  28. searchValues: {
  29. targetType: 1
  30. }, // 列表筛选条件
  31. loading: false, //加载动画
  32. changeList: undefined, // 更改后的表格显示数据
  33. dataSource: [], // 列表数据
  34. departmentArr: [],
  35. pagination: {
  36. defaultCurrent: 1,
  37. defaultPageSize: 10,
  38. showQuickJumper: true,
  39. pageSize: 10,
  40. onChange: function (page) {
  41. this.loadData(page);
  42. }.bind(this),
  43. showTotal: function (total) {
  44. return "共" + total + "条数据";
  45. },
  46. },
  47. columns: [
  48. {
  49. title: "合同/客户",
  50. dataIndex: "contractNo",
  51. key: "contractNo",
  52. render: (text, record) => {
  53. return (
  54. this.state.searchValues["targetType"] == 1 ?
  55. <span>
  56. {text + " / " + record.buyerName}
  57. </span>
  58. : <span>{record.depName}</span>
  59. );
  60. },
  61. },
  62. {
  63. title: "合同总额/已收款(万元)",
  64. dataIndex: "totalAmount",
  65. key: "totalAmount",
  66. render: (text, record) => {
  67. return (
  68. <div
  69. className='receiveCount'
  70. onClick={(e) => {
  71. e.stopPropagation();
  72. this.xiangqing(record.orderNo)
  73. this.xiangmu(record.orderNo)
  74. this.jiedian(record.orderNo)
  75. this.jiedianNew(record.orderNo)
  76. this.setState({
  77. visibleD: true,
  78. orderNo: record.orderNo,
  79. })
  80. }}
  81. >
  82. {text + " / " + record.settlementAmount}
  83. </div>
  84. );
  85. },
  86. },
  87. {
  88. title: "报销总额(元)",
  89. dataIndex: "expenseAmount",
  90. key: "expenseAmount",
  91. render: (text, record) => {
  92. return (
  93. <div
  94. className='receiveCount'
  95. onClick={(e) => {
  96. e.stopPropagation();
  97. this.tableRowClick(record)
  98. }}
  99. >
  100. {text}
  101. </div>
  102. );
  103. },
  104. },
  105. {
  106. title: "已付成本(万元)",
  107. dataIndex: "paymentAmount",
  108. key: "paymentAmount",
  109. render: (text, record) => {
  110. return (
  111. <div
  112. className='receiveCount'
  113. onClick={(e) => {
  114. e.stopPropagation();
  115. this.tableRowClick(record)
  116. }}
  117. >
  118. {text}
  119. </div>
  120. );
  121. },
  122. },
  123. {
  124. title: "报销人数/天数/报销次数",
  125. dataIndex: "peopleCount",
  126. key: "peopleCount",
  127. render: (text, record) => {
  128. return (
  129. <div
  130. className='receiveCount'
  131. onClick={(e) => {
  132. e.stopPropagation();
  133. this.tableRowClick(record)
  134. }}
  135. >
  136. {text + " / " + record.days + " / " + record.expenseCount}
  137. </div>
  138. );
  139. },
  140. },
  141. {
  142. title: "报销未审核/驳回次数",
  143. dataIndex: "notExamine",
  144. key: "notExamine",
  145. render: (text, record) => {
  146. return (
  147. <div
  148. className='receiveCount'
  149. onClick={(e) => {
  150. e.stopPropagation();
  151. this.tableRowClick(record)
  152. }}
  153. >
  154. {text + " / " + record.rejectCount}
  155. </div>
  156. );
  157. },
  158. },
  159. ],
  160. visible: false,
  161. columnsA: [
  162. {
  163. title: "类型",
  164. dataIndex: "type",
  165. key: "type",
  166. render: (text, record) => {
  167. return (
  168. <span>
  169. {(text == 0 && !record.typeOther)
  170. ? getAccountName(record.sonType, record.sonTypeOther)
  171. : getSecondaryAccountName(text, record.typeOther)}
  172. </span>
  173. );
  174. },
  175. },
  176. {
  177. title: "报销时间",
  178. dataIndex: "releaseStart",
  179. key: "releaseStart",
  180. render: (text, record) => {
  181. return (
  182. <div>
  183. <div style={{ textAlign: "center" }}>{text}</div>
  184. <div style={{ textAlign: "center" }}>至</div>
  185. <div style={{ textAlign: "center" }}>{record.releaseEnd}</div>
  186. </div>
  187. );
  188. },
  189. },
  190. {
  191. title: "工时",
  192. dataIndex: "duration",
  193. key: "duration",
  194. },
  195. {
  196. title: "报销金额(元)",
  197. dataIndex: "amount",
  198. key: "amount",
  199. width: 70,
  200. },
  201. {
  202. title: "实报金额(元)",
  203. dataIndex: "realAmount",
  204. key: "realAmount",
  205. width: 70,
  206. },
  207. {
  208. title: "天数",
  209. dataIndex: "days",
  210. key: "days",
  211. },
  212. {
  213. title: "报销编号",
  214. dataIndex: "checkNo",
  215. key: "checkNo",
  216. },
  217. {
  218. title: "报销合同",
  219. dataIndex: "contractNo",
  220. key: "contractNo",
  221. },
  222. {
  223. title: "客户",
  224. dataIndex: "buyerName",
  225. key: "buyerName",
  226. },
  227. {
  228. title: "报销人",
  229. dataIndex: "aname",
  230. key: "aname",
  231. },
  232. {
  233. title: "财务负责人",
  234. dataIndex: "financeName",
  235. key: "financeName",
  236. },
  237. {
  238. title: "报销公司/支付公司",
  239. dataIndex: "payDepName",
  240. key: "payDepName",
  241. render: (text, record) => {
  242. return (
  243. <div>
  244. <div>{record.applyDepName || ""}</div>
  245. <div>{text || ""}</div>
  246. </div>
  247. );
  248. },
  249. },
  250. {
  251. title: "发起时间",
  252. dataIndex: "createTimeStr",
  253. key: "createTimeStr",
  254. },
  255. {
  256. title: "状态",
  257. dataIndex: "status",
  258. key: "status",
  259. render: (text, record) => {
  260. return (
  261. <span style={{ color: accountStatus[text].color }}>
  262. {accountStatus[text].label}
  263. </span>
  264. );
  265. },
  266. },
  267. ],
  268. dataSourceA: [],
  269. visibleD: false,
  270. };
  271. },
  272. componentWillMount() {
  273. this.departmentList();
  274. this.loadData();
  275. },
  276. // 列表接口
  277. loadData(pageNo) {
  278. const { searchValues, pagination } = this.state;
  279. this.setState({
  280. loading: true,
  281. });
  282. let datas = Object.assign(searchValues, {
  283. // pageNo: pageNo || 1,
  284. // pageSize: pagination.pageSize,
  285. });
  286. $.ajax({
  287. method: "get",
  288. dataType: "json",
  289. crossDomain: false,
  290. url: globalConfig.context + "/api/admin/expenseCounts/getCounts",
  291. data: datas,
  292. success: function (data) {
  293. ShowModal(this);
  294. this.setState({
  295. loading: false,
  296. });
  297. if (data.error && data.error.length === 0) {
  298. if (data.data) {
  299. pagination.current = data.data.pageNo;
  300. pagination.total = data.data.totalCount;
  301. if (data.data && data.data && !data.data.length) {
  302. pagination.current = 0;
  303. pagination.total = 0;
  304. }
  305. this.setState({
  306. dataSource: data.data,
  307. pagination: this.state.pagination,
  308. pageNo: data.data.pageNo,
  309. totalAmount: data.data.totalAmount,
  310. });
  311. }
  312. } else {
  313. message.warning(data.error[0].message);
  314. }
  315. }.bind(this),
  316. }).always(
  317. function () {
  318. this.setState({
  319. loading: false,
  320. });
  321. }.bind(this)
  322. );
  323. },
  324. departmentList() {
  325. $.ajax({
  326. method: "get",
  327. dataType: "json",
  328. crossDomain: false,
  329. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  330. data: {},
  331. success: function (data) {
  332. let thedata = data.data;
  333. let theArr = [];
  334. if (!thedata) {
  335. if (data.error && data.error.length) {
  336. message.warning(data.error[0].message);
  337. }
  338. } else {
  339. thedata.map(function (item, index) {
  340. theArr.push({
  341. key: index,
  342. name: item.name,
  343. id: item.id
  344. });
  345. });
  346. }
  347. this.setState({
  348. departmentArr: theArr
  349. });
  350. }.bind(this)
  351. }).always(
  352. function () {
  353. }.bind(this)
  354. );
  355. },
  356. // 搜索
  357. search() {
  358. this.loadData();
  359. },
  360. // 重置
  361. reset() {
  362. this.setState({
  363. searchValues: {
  364. targetType: 1
  365. },
  366. }, () => {
  367. this.loadData();
  368. })
  369. },
  370. changeList(arr) {
  371. const newArr = [];
  372. this.state.columns.forEach((item) => {
  373. arr.forEach((val) => {
  374. if (val === item.title) {
  375. newArr.push(item);
  376. }
  377. });
  378. });
  379. this.setState({
  380. changeList: newArr,
  381. });
  382. },
  383. export() {
  384. this.setState({
  385. exportExecLoading: true
  386. })
  387. let loading = message.loading('加载中...');
  388. let data = this.state.searchValues;
  389. $.ajax({
  390. method: "get",
  391. dataType: "json",
  392. crossDomain: false,
  393. url: globalConfig.context + "/api/admin/expenseCounts/getCounts/Export",
  394. data,
  395. success: function (data) {
  396. if (data.error.length === 0) {
  397. this.download(data.data);
  398. } else {
  399. message.warning(data.error[0].message);
  400. }
  401. }.bind(this),
  402. }).always(function () {
  403. loading();
  404. this.setState({
  405. exportExecLoading: false
  406. })
  407. }.bind(this));
  408. },
  409. // 下载
  410. download(fileName) {
  411. window.location.href = globalConfig.context + "/open/download?fileName=" + fileName
  412. },
  413. // 清理缓存
  414. getCountsClear() {
  415. this.setState({
  416. loading: true,
  417. });
  418. $.ajax({
  419. method: "get",
  420. dataType: "json",
  421. crossDomain: false,
  422. url: globalConfig.context + "/api/admin/expenseCounts/getCountsClear",
  423. data: {},
  424. success: function (data) {
  425. ShowModal(this);
  426. this.setState({
  427. loading: false,
  428. });
  429. if (data.error && data.error.length === 0) {
  430. message.success("清除成功!")
  431. } else {
  432. message.warning(data.error[0].message);
  433. }
  434. }.bind(this),
  435. }).always(
  436. function () {
  437. this.setState({
  438. loading: false,
  439. });
  440. }.bind(this)
  441. );
  442. },
  443. tableRowClick(e) {
  444. this.setState({
  445. visible: true,
  446. contractNo: e.contractNo,
  447. }, () => {
  448. this.getListA()
  449. })
  450. },
  451. getListA() {
  452. this.setState({
  453. loading: true,
  454. });
  455. let data = {
  456. pageNo: 1,
  457. pageSize: 9999,
  458. contractNo: this.state.contractNo,
  459. };
  460. $.ajax({
  461. method: "get",
  462. dataType: "json",
  463. crossDomain: false,
  464. url: globalConfig.context + "/api/admin/expenseAccount/detailsList",
  465. data: data,
  466. success: function (data) {
  467. ShowModal(this);
  468. this.setState({
  469. loading: false,
  470. });
  471. if (data.error && data.error.length === 0) {
  472. if (data.data.list) {
  473. this.setState({
  474. dataSourceA: data.data.list,
  475. totalAmountA: data.data.totalAmount,
  476. });
  477. }
  478. } else {
  479. message.warning(data.error[0].message);
  480. }
  481. }.bind(this),
  482. }).always(
  483. function () {
  484. this.setState({
  485. loading: false,
  486. });
  487. }.bind(this)
  488. );
  489. },
  490. //订单详情
  491. xiangqing(orderNos) {
  492. this.setState({
  493. orderData: {}
  494. }, () => {
  495. $.ajax({
  496. method: "get",
  497. dataType: "json",
  498. crossDomain: false,
  499. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  500. data: {
  501. orderNo: orderNos
  502. },
  503. success: function (data) {
  504. if (data.error.length || data.data.list == "") {
  505. if (data.error && data.error.length) {
  506. message.warning(data.error[0].message);
  507. }
  508. } else {
  509. let thisdata = data.data;
  510. this.setState({
  511. orderUid: thisdata.uid,
  512. userName: thisdata.userName,
  513. primaryOrderNo: thisdata.primaryOrder,
  514. additionalOrder: thisdata.additionalOrder,
  515. contractNo: thisdata.contractNo,
  516. // arrears: thisdata.arrears,
  517. orderData: thisdata,
  518. isAddition: thisdata.additionalOrder ? true : false,
  519. deleteSign: thisdata.deleteSign,
  520. });
  521. }
  522. }.bind(this)
  523. });
  524. });
  525. },
  526. //项目列表
  527. xiangmu(orderNos) {
  528. $.ajax({
  529. method: "get",
  530. dataType: "json",
  531. crossDomain: false,
  532. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  533. data: {
  534. orderNo: orderNos
  535. },
  536. success: function (data) {
  537. let theArr = [];
  538. if (data.error.length || data.data.list == "") {
  539. if (data.error && data.error.length) {
  540. message.warning(data.error[0].message);
  541. }
  542. } else {
  543. for (let i = 0; i < data.data.length; i++) {
  544. let thisdata = data.data[i];
  545. thisdata.key = i;
  546. thisdata.sort = thisdata.cSort;
  547. theArr.push(thisdata);
  548. }
  549. }
  550. this.setState({
  551. dataSourceX: theArr
  552. });
  553. }.bind(this)
  554. });
  555. },
  556. //节点列表
  557. jiedian(orderNos) {
  558. $.ajax({
  559. method: "get",
  560. dataType: "json",
  561. crossDomain: false,
  562. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  563. data: {
  564. orderNo: orderNos
  565. },
  566. success: function (data) {
  567. let theArr = [];
  568. let thisData = [];
  569. if (data.error.length || data.data.list == "") {
  570. if (data.error && data.error.length) {
  571. message.warning(data.error[0].message);
  572. }
  573. } else {
  574. for (let i = 0; i < data.data.length; i++) {
  575. thisData = data.data[i];
  576. theArr.push({
  577. key: i,
  578. dunSubject: thisData.dunSubject
  579. ? thisData.dunSubject.toString()
  580. : "", //催款科目
  581. id: thisData.id, //节点Id
  582. money: thisData.money, //催款金额
  583. dunStatus: thisData.dunStatus //催款状态
  584. });
  585. }
  586. this.setState({
  587. contactList: theArr
  588. });
  589. }
  590. }.bind(this)
  591. });
  592. },
  593. jiedianNew(orderNos) {
  594. $.ajax({
  595. method: "get",
  596. dataType: "json",
  597. crossDomain: false,
  598. url:
  599. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  600. data: {
  601. orderNo: orderNos
  602. },
  603. success: function (data) {
  604. if (data.error && data.error.length) {
  605. message.warning(data.error[0].message);
  606. } else {
  607. let theArr = [];
  608. let thisData = [];
  609. let arr = data.data || [];
  610. let totalCui = 0;
  611. for (let i = 0; i < arr.length; i++) {
  612. thisData = arr[i];
  613. totalCui += +thisData.money;
  614. theArr.push({
  615. key: i,
  616. dunSubject: thisData.dunSubject
  617. ? thisData.dunSubject.toString()
  618. : "", //催款科目
  619. id: thisData.id, //节点Id
  620. money: thisData.money, //催款金额
  621. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  622. commodityName: thisData.commodityName,
  623. projectType: thisData.projectType,
  624. dunTypeName: thisData.dunTypeName,
  625. status: thisData.status,
  626. waitDay: thisData.waitDay,
  627. effectiveCount: thisData.effectiveCount,
  628. startDate: thisData.startDate,
  629. dunType: thisData.dunType,
  630. appropriationRatio: thisData.appropriationRatio,
  631. customizeName: thisData.customizeName,
  632. customizeTimes: thisData.customizeTimes,
  633. tid: thisData.tid,
  634. });
  635. }
  636. if (!totalCui) {
  637. totalCui = 0;
  638. }
  639. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  640. this.setState({
  641. contactListNew: theArr,
  642. totalCui
  643. });
  644. }
  645. }.bind(this)
  646. }).always(
  647. function () {
  648. this.setState({
  649. loading: false
  650. });
  651. }.bind(this)
  652. );
  653. },
  654. getOrderLog(orderNo) {
  655. this.setState({
  656. rizhivisible: true
  657. });
  658. this.rizhi(orderNo);
  659. },
  660. rizhi(orderNo) {
  661. $.ajax({
  662. method: "get",
  663. dataType: "json",
  664. crossDomain: false,
  665. url: "/api/admin/newOrder/selectOrderLog",
  666. data: {
  667. orderNo: orderNo
  668. },
  669. success: function (data) {
  670. let theArr = [];
  671. let thisData = data.data;
  672. if (!thisData.length) {
  673. if (data.error && data.error.length) {
  674. message.warning(data.error[0].message);
  675. }
  676. thisData = {};
  677. } else {
  678. for (let i = 0; i < data.data.length; i++) {
  679. let thisdata = data.data[i];
  680. theArr.push({
  681. processName: thisdata.processName,
  682. adminName: thisdata.adminName,
  683. createDate: thisdata.createDate,
  684. remarks: thisdata.remarks
  685. });
  686. }
  687. }
  688. this.setState({
  689. dataSourcerizhi: theArr
  690. });
  691. }.bind(this)
  692. });
  693. },
  694. render() {
  695. const { searchValues, } = this.state
  696. return (
  697. <div className="user-content">
  698. <ShowModalDiv ShowModal={this.state.showModal} />
  699. <div className="content-title" style={{ marginBottom: 10 }}>
  700. <span style={{ fontWeight: 900, fontSize: 16 }}>报销总计</span>
  701. </div>
  702. <Tabs defaultActiveKey="2" className="test">
  703. <TabPane tab="搜索" key="2">
  704. <div className="user-search" style={{ marginLeft: 10 }}>
  705. <Select placeholder="" style={{ width: 140 }}
  706. value={searchValues["targetType"]}
  707. onChange={(e) => {
  708. searchValues["targetType"] = e;
  709. const _this = this;
  710. this.setState({
  711. searchValues: searchValues,
  712. }, () => {
  713. _this.search()
  714. });
  715. }}
  716. >
  717. <Select.Option value={0} >部门</Select.Option>
  718. <Select.Option value={1} >订单</Select.Option>
  719. </Select>
  720. {
  721. searchValues["targetType"] == 1 &&
  722. <Input
  723. placeholder="合同编号"
  724. value={searchValues["contactNo"]
  725. ? searchValues["contactNo"]
  726. : ""}
  727. onChange={(e) => {
  728. searchValues["contactNo"] = e.target.value;
  729. this.setState({
  730. searchValues: searchValues,
  731. });
  732. }}
  733. />
  734. }
  735. <Input
  736. placeholder="客户名称"
  737. value={searchValues["buyerName"]
  738. ? searchValues["buyerName"]
  739. : ""}
  740. onChange={(e) => {
  741. searchValues["buyerName"] = e.target.value;
  742. this.setState({
  743. searchValues: searchValues,
  744. });
  745. }}
  746. />
  747. <Select
  748. placeholder="所属部门"
  749. style={{ width: 200, marginRight: 10 }}
  750. value={searchValues["depId"]
  751. ? searchValues["depId"]
  752. : undefined}
  753. onChange={e => {
  754. searchValues["depId"] = e;
  755. this.setState({
  756. searchValues: searchValues,
  757. });
  758. }}
  759. >
  760. {this.state.departmentArr.map(function (item) {
  761. return <Select.Option key={item.id}>{item.name}</Select.Option>;
  762. })}
  763. </Select>
  764. <span>报销时间:</span>
  765. <RangePicker
  766. style={{ width: 300 }}
  767. value={[
  768. searchValues.startTime ? moment(searchValues.startTime) : null,
  769. searchValues.endTime ? moment(searchValues.endTime) : null,
  770. ]}
  771. onChange={(data, dataString) => {
  772. this.setState({
  773. searchValues: Object.assign(searchValues, {
  774. startTime: dataString[0],
  775. endTime: dataString[1],
  776. }),
  777. });
  778. }}
  779. />
  780. <Button
  781. type="primary"
  782. onClick={this.search}
  783. style={{ margin: "0 10px" }}
  784. >搜索</Button>
  785. <Button onClick={this.reset}>重置</Button>
  786. <Button
  787. type="primary"
  788. onClick={this.getCountsClear}
  789. style={{ marginLeft: 10 }}
  790. >清理缓存</Button>
  791. </div>
  792. </TabPane>
  793. <TabPane tab="更改表格显示数据" key="1">
  794. <div style={{ marginLeft: 10 }}>
  795. <ChooseList
  796. columns={this.state.columns}
  797. changeFn={this.changeList}
  798. changeList={this.state.changeList}
  799. top={55}
  800. margin={11}
  801. />
  802. </div>
  803. </TabPane>
  804. <TabPane tab="导出" key="3">
  805. <div style={{ float: "left" }}>
  806. <Button
  807. type="primary"
  808. loading={this.state.exportPendingLoading}
  809. onClick={this.export}
  810. style={{ margin: 10 }}
  811. >
  812. 导出excel
  813. </Button>
  814. </div>
  815. </TabPane>
  816. </Tabs>
  817. <div className="patent-table">
  818. <Spin spinning={this.state.loading}>
  819. <Table
  820. bordered
  821. columns={
  822. this.state.changeList == undefined
  823. ? this.state.columns
  824. : this.state.changeList
  825. }
  826. dataSource={this.state.dataSource}
  827. pagination={false}
  828. size="small"
  829. />
  830. </Spin>
  831. </div>
  832. <Modal
  833. visible={this.state.visible}
  834. maskClosable={false}
  835. footer={false}
  836. width={1400}
  837. onCancel={() => { this.setState({ visible: false }) }}
  838. >
  839. <Spin spinning={this.state.loading}>
  840. <Table
  841. columns={this.state.columnsA}
  842. dataSource={this.state.dataSourceA}
  843. bordered
  844. size="middle"
  845. pagination={false}
  846. />
  847. </Spin>
  848. </Modal>
  849. {
  850. this.state.visibleD &&
  851. <Modal
  852. title="订单详情"
  853. visible={this.state.visibleD}
  854. maskClosable={false}
  855. footer={false}
  856. width={1200}
  857. onCancel={() => { this.setState({ visibleD: false }) }}
  858. >
  859. <OrderDetail
  860. orderData={this.state.orderData}
  861. orderUid={this.state.orderUid}
  862. getOrderLog={this.getOrderLog}
  863. dataSourceX={this.state.dataSourceX}
  864. contactList={this.state.contactList}
  865. orderNo={this.state.orderNo}
  866. totalCui={this.state.totalCui}
  867. contactListNew={this.state.contactListNew}
  868. />
  869. </Modal>
  870. }
  871. </div>
  872. );
  873. },
  874. });
  875. export default AccountTotal;