pressList.jsx 27 KB

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