pressList.jsx 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955
  1. import React from "react";
  2. import {
  3. Button,
  4. Input,
  5. Select,
  6. Spin,
  7. Table,
  8. message,
  9. DatePicker,
  10. Form,
  11. Modal,
  12. Tabs,
  13. Tooltip,
  14. Tag,
  15. } from "antd";
  16. import $ from "jquery/src/ajax";
  17. import moment from "moment";
  18. import {
  19. getLiquidationStatus,
  20. getjiedian,
  21. getNewOrderStatus,
  22. getProjectStatus,
  23. getProjectName,
  24. getApprovalTag,
  25. } from "@/tools.js";
  26. import "./customer.less";
  27. import { ChooseList } from "./chooseList";
  28. import { salesList } from "@/dataDic.js"
  29. import DepartmentList from "../../../common/departmentList";
  30. import OrderItemStatus from "../../../common/orderItemStatus";
  31. import OrderDesc from "../../financialManage/orderDetail/orderDesc";
  32. import Cascaders from "../../../common/cascaders";
  33. const IntentionCustomer = Form.create()(
  34. React.createClass({
  35. loadData(pageNo) {
  36. this.setState({
  37. visitModul: false,
  38. loading: true,
  39. ispage: pageNo,
  40. modalVisible: false,
  41. });
  42. $.ajax({
  43. method: "get",
  44. dataType: "json",
  45. crossDomain: false,
  46. url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
  47. data: {
  48. pageNo: pageNo || 1,
  49. pageSize: this.state.pagination.pageSize,
  50. name: this.state.customerName, //名称
  51. orderNo: this.state.orderNo, //订单编号
  52. contractNo: this.state.contractNo,
  53. deps: this.state.departmenttSearch, //订单部门
  54. adminName: this.state.adminName, //责任人名称
  55. starTime: this.state.releaseDate[0], //开始时间
  56. endTime: this.state.releaseDate[1], //结束时间
  57. newStatus: this.state.newStatus,
  58. amountStatus: this.state.amountStatus,//签单金额
  59. approval: this.state.approval,//是否特批
  60. memberType: this.state.memberType,//会员
  61. },
  62. success: function (data) {
  63. let theArr = [];
  64. if (data.error.length || data.data.list == "") {
  65. if (data.error && data.error.length) {
  66. message.warning(data.error[0].message);
  67. }
  68. } else {
  69. for (let i = 0; i < data.data.list.length; i++) {
  70. let thisdata = data.data.list[i];
  71. theArr.push({
  72. key: i + 1,
  73. id: thisdata.id, //ID
  74. contractNo: thisdata.contractNo,
  75. orderNo: thisdata.orderNo, //订单编号
  76. totalAmount: thisdata.totalAmount, //签单金额
  77. settlementAmount: thisdata.settlementAmount, //已收款
  78. accountsReceivable: thisdata.accountsReceivable, //应收款
  79. uncollectedAmount: thisdata.uncollectedAmount, //应收款
  80. appropriationRatio: thisdata.appropriationRatio, //拨款比例
  81. orderStatus: thisdata.orderStatus, //订单状态
  82. projectStatus: thisdata.projectStatus, //项目状态
  83. liquidationStatus: thisdata.liquidationStatus, //结算状态
  84. signDate: thisdata.signDate, //签单时间
  85. userName: thisdata.userName, //客户名称
  86. salesmanName: thisdata.salesmanName, //营销员名称
  87. dunSubject: thisdata.dunSubject, //催收科目
  88. startDate: thisdata.startDate, //催收启动时间
  89. depName: thisdata.depName, //部门名称
  90. dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发",
  91. commodityName: thisdata.commodityName,
  92. approval: thisdata.approval, //特批状态
  93. memberType: thisdata.memberType, //会员状态
  94. deleteSign: thisdata.deleteSign,//变更状态
  95. });
  96. }
  97. this.state.pagination.total = data.data.totalCount;
  98. this.state.pagination.current = data.data.pageNo;
  99. }
  100. if (data.data && data.data.list && !data.data.list.length) {
  101. this.state.pagination.total = 0;
  102. }
  103. this.setState({
  104. dataSource: theArr,
  105. pageNo: pageNo,
  106. pagination: this.state.pagination,
  107. selectedRowKeys: [],
  108. });
  109. }.bind(this),
  110. }).always(
  111. function () {
  112. this.setState({
  113. loading: false,
  114. });
  115. }.bind(this)
  116. );
  117. },
  118. loadDatas(dunId) {
  119. this.setState({
  120. loading: true,
  121. });
  122. $.ajax({
  123. method: "get",
  124. dataType: "json",
  125. crossDomain: false,
  126. url: globalConfig.context + "/api/admin/newOrder/selectDunLogList",
  127. data: {
  128. dunId: dunId,
  129. },
  130. success: function (data) {
  131. let theArr = [];
  132. if (data.error.length || data.data == "") {
  133. if (data.error && data.error.length) {
  134. message.warning(data.error[0].message);
  135. }
  136. } else {
  137. for (let i = 0; i < data.data.length; i++) {
  138. let thisdata = data.data[i];
  139. theArr.push({
  140. key: i,
  141. id: thisdata.id, //ID
  142. dunId: thisdata.dunId, //催款ID
  143. dumBy: thisdata.dumBy, //催款人
  144. dumTime: thisdata.dumDate, //催款时间
  145. remarks: thisdata.remarks, //备注
  146. });
  147. }
  148. }
  149. this.setState({
  150. dataSources: theArr,
  151. });
  152. }.bind(this),
  153. }).always(
  154. function () {
  155. this.setState({
  156. loading: false,
  157. });
  158. }.bind(this)
  159. );
  160. },
  161. getInitialState() {
  162. return {
  163. showDesc: false,
  164. newStatus: 1,
  165. page: 1,
  166. releaseDate: [],
  167. selectedRowKeys: [],
  168. orgCodeUrl: [],
  169. paginations: false,
  170. pagination: {
  171. defaultCurrent: 1,
  172. defaultPageSize: 10,
  173. showQuickJumper: true,
  174. pageSize: 10,
  175. onChange: function (page) {
  176. this.loadData(page);
  177. }.bind(this),
  178. showTotal: function (total) {
  179. return "共" + total + "条数据";
  180. },
  181. },
  182. columns: [
  183. {
  184. title: "合同编号",
  185. dataIndex: "contractNo",
  186. key: "contractNo",
  187. render: (text, record) => {
  188. return (
  189. <Tooltip
  190. title={
  191. <Button
  192. type="primary"
  193. onClick={(e) => {
  194. e.stopPropagation();
  195. let input = document.getElementById("copyText");
  196. input.value = text;
  197. input.select();
  198. document.execCommand("copy");
  199. message.success("复制成功");
  200. }}
  201. >
  202. 复制
  203. </Button>
  204. }
  205. >
  206. <div>
  207. {text}
  208. <div style={{ display: "flex" }}>
  209. <OrderItemStatus deleteSign={record.deleteSign} />
  210. {getApprovalTag(record.approval)}
  211. </div>
  212. </div>
  213. </Tooltip>
  214. );
  215. },
  216. },
  217. {
  218. title: "订单编号",
  219. dataIndex: "orderNo",
  220. key: "orderNo",
  221. render: (text, record) => {
  222. return (
  223. <Tooltip
  224. title={
  225. <Button
  226. type="primary"
  227. onClick={(e) => {
  228. e.stopPropagation();
  229. let input = document.getElementById("copyText");
  230. input.value = text;
  231. input.select();
  232. document.execCommand("copy");
  233. message.success("复制成功");
  234. }}
  235. >
  236. 复制
  237. </Button>
  238. }
  239. >
  240. <div>
  241. {text}
  242. <div>
  243. {record.totalAmount >= 10 && <Tag color="#ef7207">大客户</Tag>}
  244. {record.memberType == 1 && <Tag color="rgb(22, 155, 213)">会员</Tag>}
  245. </div>
  246. </div>
  247. </Tooltip>
  248. );
  249. },
  250. },
  251. {
  252. title: "客户名称",
  253. dataIndex: "userName",
  254. key: "userName",
  255. width: 160,
  256. render: (text) => {
  257. return (
  258. <Tooltip title={text}>
  259. <div
  260. // style={{
  261. // maxWidth: "150px",
  262. // overflow: "hidden",
  263. // textOverflow: "ellipsis",
  264. // whiteSpace: "nowrap",
  265. // }}
  266. >
  267. {text}
  268. </div>
  269. </Tooltip>
  270. );
  271. },
  272. },
  273. {
  274. title: "订单负责人",
  275. dataIndex: "salesmanName",
  276. key: "salesmanName",
  277. },
  278. {
  279. title: "订单部门",
  280. dataIndex: "depName",
  281. key: "depName",
  282. },
  283. {
  284. title: "订单状态",
  285. dataIndex: "orderStatus",
  286. key: "orderStatus",
  287. render: (text) => {
  288. return getNewOrderStatus(text);
  289. },
  290. },
  291. {
  292. title: "项目名称",
  293. dataIndex: "commodityName",
  294. key: "commodityName",
  295. },
  296. {
  297. title: "项目状态",
  298. dataIndex: "projectStatus",
  299. key: "projectStatus",
  300. render: (text) => {
  301. return getProjectName(text);
  302. },
  303. },
  304. {
  305. title: "签单金额(万元)",
  306. dataIndex: "totalAmount",
  307. key: "totalAmount",
  308. },
  309. {
  310. title: "已收款(万元)",
  311. dataIndex: "settlementAmount",
  312. key: "settlementAmount",
  313. },
  314. {
  315. title: "未收款(万元)",
  316. dataIndex: "uncollectedAmount",
  317. key: "uncollectedAmount",
  318. },
  319. {
  320. title: "拨款比例",
  321. dataIndex: "appropriationRatio",
  322. key: "appropriationRatio",
  323. },
  324. {
  325. title: "结算状态",
  326. dataIndex: "liquidationStatus",
  327. key: "liquidationStatus",
  328. render: (text) => {
  329. return getLiquidationStatus(text);
  330. },
  331. },
  332. {
  333. title: "催收科目",
  334. dataIndex: "dunSubject",
  335. key: "dunSubject",
  336. // render: text => {
  337. // return getjiedian(text);
  338. // }
  339. },
  340. {
  341. title: "应收款(万元)",
  342. dataIndex: "accountsReceivable",
  343. key: "accountsReceivable",
  344. },
  345. {
  346. title: "催款状态",
  347. dataIndex: "dunStatus",
  348. key: "dunStatus",
  349. },
  350. {
  351. title: "催款启动日期",
  352. dataIndex: "startDate",
  353. key: "startDate",
  354. },
  355. {
  356. title: "签单时间",
  357. dataIndex: "signDate",
  358. key: "signDate",
  359. },
  360. {
  361. title: "催收操作",
  362. dataIndex: "abc",
  363. key: "abc",
  364. render: (text, record) => {
  365. return (
  366. <div>
  367. <Button
  368. onClick={(e) => {
  369. e.stopPropagation(),
  370. this.visit(record);
  371. }}
  372. type="primary"
  373. >
  374. 添加催款记录
  375. </Button>
  376. <Button
  377. style={{ marginLeft: 5 }}
  378. onClick={(e) => {
  379. e.stopPropagation(),
  380. this.setState({
  381. visibles: true,
  382. });
  383. }}
  384. type="primary"
  385. >
  386. 查看催款记录
  387. </Button>
  388. </div>
  389. );
  390. },
  391. },
  392. ],
  393. data: [],
  394. dataSource: [],
  395. columnsX: [
  396. {
  397. title: "催款人",
  398. dataIndex: "dumBy",
  399. key: "dumBy",
  400. },
  401. {
  402. title: "催款时间",
  403. dataIndex: "dumTime",
  404. key: "dumTime",
  405. },
  406. {
  407. title: "催款情况",
  408. dataIndex: "remarks",
  409. key: "remarks",
  410. },
  411. ],
  412. dataSources: [],
  413. };
  414. },
  415. //页面加载函数
  416. componentWillMount() {
  417. this.loadData();
  418. },
  419. //进入新增拜访记录
  420. visit(record) {
  421. this.setState({
  422. visible: true,
  423. dunId: record.id,
  424. });
  425. },
  426. // 整行点击
  427. tableRowClick(record) {
  428. this.state.RowData = record;
  429. this.setState({
  430. showDesc: true,
  431. });
  432. },
  433. //新增催款记录
  434. examOk() {
  435. $.ajax({
  436. method: "post",
  437. dataType: "json",
  438. crossDomain: false,
  439. url: globalConfig.context + "/api/admin/newOrder/createDunLog",
  440. data: {
  441. dunId: this.state.dunId,
  442. dumTime: this.state.dumTime,
  443. remarks: this.state.remarks,
  444. },
  445. success: function (data) {
  446. if (data.error.length || data.data.list == "") {
  447. if (data.error && data.error.length) {
  448. message.warning(data.error[0].message);
  449. }
  450. } else {
  451. message.success("新增催款记录成功~");
  452. this.setState({
  453. visible: false,
  454. });
  455. this.loadData();
  456. this.resets();
  457. }
  458. }.bind(this),
  459. }).always(
  460. function () {
  461. this.setState({
  462. loading: false,
  463. });
  464. }.bind(this)
  465. );
  466. },
  467. //关闭输入理由框
  468. noCancel() {
  469. this.setState({
  470. noVisible: false,
  471. });
  472. },
  473. //搜索
  474. search() {
  475. this.setState({
  476. //signBillVisible:false
  477. });
  478. this.loadData();
  479. },
  480. //重置
  481. reset() {
  482. this.setState({
  483. signBillVisible: false,
  484. });
  485. this.state.orderNo = undefined;
  486. this.state.contractNo = undefined;
  487. this.state.customerName = undefined;
  488. this.state.adminName = undefined;
  489. this.state.departmenttSearch = undefined;
  490. this.state.releaseDate[0] = undefined;
  491. this.state.releaseDate[1] = undefined;
  492. this.state.amountStatus = undefined;
  493. this.state.approval = undefined;
  494. this.state.memberType = undefined;
  495. this.Cascaders.empty();
  496. this.loadData();
  497. },
  498. resets() {
  499. this.state.orderNo = "";
  500. this.state.contractNo = "";
  501. this.state.customerName = "";
  502. this.state.adminName = "";
  503. this.state.departmenttSearch = undefined;
  504. this.state.releaseDate[0] = undefined;
  505. this.state.releaseDate[1] = undefined;
  506. this.state.amountStatus = undefined;
  507. this.state.approval = undefined;
  508. this.state.memberType = undefined;
  509. },
  510. getOrgCodeUrl(e) {
  511. this.setState({ orgCodeUrl: e });
  512. },
  513. //关闭详情
  514. visitCancel() {
  515. this.setState({
  516. visible: false,
  517. });
  518. this.resets();
  519. },
  520. visitOk() {
  521. this.setState({
  522. visible: false,
  523. });
  524. this.resets();
  525. },
  526. //关闭详情
  527. visitCancels() {
  528. this.setState({
  529. visibles: false,
  530. });
  531. this.resets();
  532. },
  533. // 关闭订单详情
  534. closeDesc(e, s) {
  535. this.state.showDesc = e;
  536. if (s) {
  537. this.loadData(this.state.page);
  538. }
  539. },
  540. //导出
  541. exportExec() {
  542. message.config({
  543. duration: 20,
  544. });
  545. let loading = message.loading("下载中...");
  546. this.setState({
  547. exportPendingLoading: true,
  548. });
  549. let data = {
  550. pageSize: 9999999,
  551. name: this.state.customerName, //名称
  552. orderNo: this.state.orderNo, //订单编号
  553. contractNo: this.state.contractNo,
  554. deps: this.state.departmenttSearch, //订单部门
  555. adminName: this.state.adminName, //责任人名称
  556. starTime: this.state.releaseDate[0], //开始时间
  557. endTime: this.state.releaseDate[1], //结束时间
  558. newStatus: this.state.newStatus,
  559. amountStatus: this.state.amountStatus,//签单金额
  560. approval: this.state.approval,//是否特批
  561. memberType: this.state.memberType,//会员
  562. };
  563. $.ajax({
  564. method: "get",
  565. dataType: "json",
  566. crossDomain: false,
  567. url: "/api/admin/newOrder/exportOrderDunData",
  568. data,
  569. success: function (data) {
  570. if (data.error.length === 0) {
  571. this.download(data.data);
  572. } else {
  573. message.warning(data.error[0].message);
  574. }
  575. }.bind(this),
  576. }).always(
  577. function () {
  578. loading();
  579. this.setState({
  580. exportPendingLoading: false,
  581. });
  582. }.bind(this)
  583. );
  584. },
  585. // 下载
  586. download(fileName) {
  587. window.location.href =
  588. globalConfig.context + "/open/download?fileName=" + fileName;
  589. },
  590. visitOks() {
  591. this.setState({
  592. visibles: false,
  593. });
  594. this.resets();
  595. },
  596. changeList(arr) {
  597. const newArr = [];
  598. this.state.columns.forEach((item) => {
  599. arr.forEach((val) => {
  600. if (val === item.title) {
  601. newArr.push(item);
  602. }
  603. });
  604. });
  605. this.setState({
  606. changeList: newArr,
  607. });
  608. },
  609. render() {
  610. const formItemLayout = {
  611. labelCol: { span: 8 },
  612. wrapperCol: { span: 14 },
  613. };
  614. const FormItem = Form.Item;
  615. const { RangePicker } = DatePicker;
  616. const rowSelection = {
  617. selectedRowKeys: this.state.selectedRowKeys,
  618. onChange: (selectedRowKeys, selectedRows) => {
  619. this.setState({
  620. modalVisible: false,
  621. selectedRows: selectedRows.slice(-1),
  622. selectedRowKeys: selectedRowKeys.slice(-1),
  623. });
  624. },
  625. onSelect: (recordt) => {
  626. this.setState({
  627. modalVisible: false,
  628. recordt: recordt.id,
  629. });
  630. },
  631. };
  632. const { TabPane } = Tabs;
  633. return (
  634. <div className="user-content">
  635. <div className="content-title" style={{ marginBottom: 10 }}>
  636. <span style={{ fontWeight: 900, fontSize: 16 }}>催款节点统计</span>
  637. </div>
  638. <Tabs
  639. defaultActiveKey="1"
  640. onChange={this.callback}
  641. className="test"
  642. >
  643. <TabPane tab="导出催款列表" key="2">
  644. <Button
  645. type="primary"
  646. onClick={this.exportExec}
  647. style={{
  648. float: "left",
  649. marginTop: 10,
  650. marginBottom: 10,
  651. marginLeft: 10,
  652. marginRight: 10,
  653. }}
  654. >
  655. 导出催款列表
  656. </Button>
  657. </TabPane>
  658. <TabPane tab="搜索" key="1">
  659. <div className="user-search" style={{ padding: "0 10px" }}>
  660. <Input
  661. placeholder="订单编号"
  662. style={{
  663. width: 160,
  664. }}
  665. value={this.state.orderNo}
  666. onChange={(e) => {
  667. this.setState({ orderNo: e.target.value });
  668. }}
  669. />
  670. <Input
  671. placeholder="合同编号"
  672. style={{
  673. width: 160,
  674. }}
  675. value={this.state.contractNo}
  676. onChange={(e) => {
  677. this.setState({ contractNo: e.target.value });
  678. }}
  679. />
  680. <Input
  681. placeholder="客户名称"
  682. style={{
  683. width: 160,
  684. }}
  685. value={this.state.customerName}
  686. onChange={(e) => {
  687. this.setState({ customerName: e.target.value });
  688. }}
  689. />
  690. <Input
  691. placeholder="营销员名称"
  692. style={{
  693. width: 160,
  694. }}
  695. value={this.state.adminName}
  696. onChange={(e) => {
  697. this.setState({ adminName: e.target.value });
  698. }}
  699. />
  700. <Cascaders
  701. ref={node => this.Cascaders = node}
  702. placeholder="订单部门"
  703. id="id"
  704. name="name"
  705. children="list"
  706. height={28}
  707. onSel={(e) => {
  708. this.setState({
  709. departmenttSearch: JSON.stringify(e),
  710. });
  711. }}
  712. />
  713. {/* <DepartmentList
  714. value={this.state.departmenttSearch}
  715. onChange={(e) => {
  716. this.setState({ departmenttSearch: e });
  717. }}
  718. /> */}
  719. <Select
  720. placeholder="选择催款节点类型"
  721. style={{ width: 160, marginRight: 10, marginLeft: 5 }}
  722. value={
  723. this.state.newStatus == 0 ? "旧催款节点" : "新催款节点"
  724. }
  725. onChange={(e) => {
  726. this.setState({ newStatus: e });
  727. }}
  728. >
  729. <Select.Option key={0}>{"旧催款节点"}</Select.Option>
  730. <Select.Option key={1}>{"新催款节点"}</Select.Option>
  731. </Select>
  732. <Select
  733. style={{ width: 160, marginRight: 10 }}
  734. placeholder="签单金额"
  735. value={this.state.amountStatus}
  736. onChange={(e) => {
  737. this.setState({
  738. amountStatus: e,
  739. });
  740. }}
  741. >
  742. <Option value="0">10万元以下</Option>
  743. <Option value="1">10~20万元</Option>
  744. <Option value="2">20~30万元</Option>
  745. <Option value="3">30~40万元</Option>
  746. <Option value="4">40万元以上</Option>
  747. </Select>
  748. <Select
  749. style={{ width: 160, marginRight: 10 }}
  750. placeholder="特批状态"
  751. value={this.state.approval}
  752. onChange={(e) => {
  753. this.setState({
  754. approval: e,
  755. });
  756. }}
  757. >
  758. <Option value="0">非特批</Option>
  759. <Option value="1">特批待审</Option>
  760. <Option value="2">特批通过</Option>
  761. <Option value="4">全部特批</Option>
  762. </Select>
  763. <Select
  764. style={{ width: 160, marginRight: 10 }}
  765. placeholder="会员"
  766. value={this.state.memberType}
  767. onChange={(e) => {
  768. this.setState({
  769. memberType: e,
  770. });
  771. }}
  772. >
  773. <Option value="0">否</Option>
  774. <Option value="1">是</Option>
  775. </Select>
  776. <span style={{ marginRight: 10, }}>下单时间 :</span>
  777. <RangePicker
  778. style={{ width: 200 }}
  779. value={[
  780. this.state.releaseDate[0]
  781. ? moment(this.state.releaseDate[0])
  782. : null,
  783. this.state.releaseDate[1]
  784. ? moment(this.state.releaseDate[1])
  785. : null,
  786. ]}
  787. onChange={(data, dataString) => {
  788. this.setState({ releaseDate: dataString });
  789. }}
  790. />
  791. <Button
  792. type="primary"
  793. onClick={this.search}
  794. style={{ marginLeft: 10, marginRight: 10 }}
  795. >
  796. 搜索
  797. </Button>
  798. <Button onClick={this.reset}>重置</Button>
  799. </div>
  800. </TabPane>
  801. <TabPane tab="更改表格显示数据" key="3">
  802. <div style={{ marginLeft: 10 }}>
  803. <ChooseList
  804. columns={this.state.columns}
  805. changeFn={this.changeList}
  806. changeList={this.state.changeList}
  807. top={55}
  808. margin={11}
  809. />
  810. </div>
  811. </TabPane>
  812. </Tabs>
  813. <div className="patent-table">
  814. <Spin spinning={this.state.loading}>
  815. <Table
  816. columns={
  817. this.state.changeList
  818. ? this.state.changeList
  819. : this.state.columns
  820. }
  821. dataSource={this.state.dataSource}
  822. pagination={this.state.pagination}
  823. scroll={{ x: "max-content", y: 0 }}
  824. onRowDoubleClick={this.tableRowClick}
  825. bordered
  826. size="small"
  827. />
  828. </Spin>
  829. <Modal
  830. maskClosable={false}
  831. className="customeDetails"
  832. footer=""
  833. title="新增催款记录"
  834. width="500px"
  835. visible={this.state.visible}
  836. onOk={this.visitOk}
  837. onCancel={this.visitCancel}
  838. >
  839. <Form
  840. layout="horizontal"
  841. onSubmit={this.handleSubmit}
  842. id="demand-form"
  843. style={{ paddingBottom: "40px" }}
  844. >
  845. <Spin spinning={this.state.loading}>
  846. <div className="clearfix">
  847. <div className="clearfix">
  848. <FormItem
  849. className="half-item"
  850. {...formItemLayout}
  851. label="催款时间"
  852. >
  853. <DatePicker
  854. style={{
  855. marginTop: "2px",
  856. width: "240px",
  857. height: "27px",
  858. }}
  859. showTime
  860. format="YYYY-MM-DD"
  861. onOk={() => { }}
  862. value={
  863. this.state.dumTime
  864. ? moment(this.state.dumTime)
  865. : null
  866. }
  867. onChange={(data, dataString) => {
  868. this.setState({ dumTime: dataString });
  869. }}
  870. />
  871. </FormItem>
  872. </div>
  873. <div className="clearfix">
  874. <FormItem
  875. labelCol={{ span: 4 }}
  876. wrapperCol={{ span: 16 }}
  877. label="催款情况"
  878. >
  879. <Input
  880. type="textarea"
  881. placeholder="请输入催款情况"
  882. rows={4}
  883. value={this.state.remarks}
  884. onChange={(e) => {
  885. this.setState({ remarks: e.target.value });
  886. }}
  887. />
  888. </FormItem>
  889. </div>
  890. <div className="clearfix">
  891. <Button
  892. className="cancel"
  893. type="primary"
  894. onClick={this.examOk}
  895. style={{ marginLeft: "50px" }}
  896. htmlType="submit"
  897. >
  898. 添加
  899. </Button>
  900. <Button
  901. className="cancel"
  902. type="ghost"
  903. onClick={this.visitCancel}
  904. style={{ marginLeft: "50px" }}
  905. >
  906. 取消
  907. </Button>
  908. </div>
  909. </div>
  910. </Spin>
  911. </Form>
  912. </Modal>
  913. <Modal
  914. maskClosable={false}
  915. className="customeDetails"
  916. footer=""
  917. title="催款记录查看"
  918. width="500px"
  919. visible={this.state.visibles}
  920. onOk={this.visitOks}
  921. onCancel={this.visitCancels}
  922. >
  923. <div className="user-content">
  924. <div className="patent-table">
  925. <Spin spinning={this.state.loading}>
  926. <Table
  927. columns={this.state.columnsX}
  928. dataSource={this.state.dataSources}
  929. rowSelection={rowSelection}
  930. pagination={this.state.paginations}
  931. />
  932. </Spin>
  933. </div>
  934. </div>
  935. </Modal>
  936. </div>
  937. <textarea id="copyText" style={{ opacity: 0 }} />
  938. {/* 订单详情 */}
  939. <OrderDesc
  940. data={this.state.RowData}
  941. showDesc={this.state.showDesc}
  942. closeDesc={this.closeDesc.bind(this)}
  943. />
  944. </div>
  945. );
  946. },
  947. })
  948. );
  949. export default IntentionCustomer;