index.jsx 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. import React,{Component} from "react";
  2. import TabelContent from "../../../common/tabelContent";
  3. import {Button} from "antd";
  4. class PressMoney extends Component{
  5. constructor(props) {
  6. super(props);
  7. this.state={
  8. columns: [
  9. {
  10. title: "序号",
  11. dataIndex: "key",
  12. key: "key",
  13. width: 120,
  14. },
  15. {
  16. title: "合同编号",
  17. dataIndex: "key",
  18. key: "key",
  19. width: 200,
  20. },
  21. {
  22. title: "客户名称",
  23. dataIndex: "key",
  24. key: "key",
  25. width: 200,
  26. },
  27. {
  28. title: "订单负责人",
  29. dataIndex: "key",
  30. key: "key",
  31. width: 120,
  32. },
  33. {
  34. title: "订单部门",
  35. dataIndex: "key",
  36. key: "key",
  37. width: 120,
  38. },
  39. {
  40. title: "签单金额(万元)",
  41. dataIndex: "key",
  42. key: "key",
  43. width: 120,
  44. },
  45. {
  46. title: "已收款(万元)",
  47. dataIndex: "key",
  48. key: "key",
  49. width: 120,
  50. },
  51. {
  52. title: "应收款(万元)",
  53. dataIndex: "key",
  54. key: "key",
  55. width: 120,
  56. },
  57. {
  58. title: "欠款(万元)",
  59. dataIndex: "key",
  60. key: "key",
  61. width: 120,
  62. },
  63. {
  64. title: "催款启动日期",
  65. dataIndex: "key",
  66. key: "key",
  67. width: 120,
  68. },
  69. {
  70. title: "自动移交法务(天)",
  71. dataIndex: "key",
  72. key: "key",
  73. width: 120,
  74. },
  75. {
  76. title: "操作",
  77. dataIndex: "id",
  78. key: "id",
  79. render: (text, record, index) => {
  80. return (
  81. <div>
  82. <Button
  83. type="primary"
  84. style={{marginRight: "10px",}}
  85. onClick={e => {
  86. e.stopPropagation();
  87. }}
  88. >
  89. 移交法务
  90. </Button>
  91. <Button
  92. type="primary"
  93. style={{marginRight: "10px",}}
  94. onClick={e => {
  95. e.stopPropagation();
  96. }}
  97. >
  98. 催款记录
  99. </Button>
  100. <Button
  101. type="primary"
  102. style={{marginRight: "10px",}}
  103. onClick={e => {
  104. e.stopPropagation();
  105. }}
  106. >
  107. 法务记录
  108. </Button>
  109. </div>
  110. )
  111. }
  112. }
  113. ],
  114. searchList:[]
  115. }
  116. }
  117. render() {
  118. return(
  119. <div className="user-content signatureStatistics">
  120. <div className="content-title">
  121. <span>
  122. 催款记录
  123. </span>
  124. </div>
  125. <TabelContent
  126. scroll={{ x: 0, y: 1000 }}
  127. searchList={this.state.searchList}
  128. columns={this.state.columns}
  129. tabelApi={'/api/admin/newOrder/statisticsList'}
  130. exportApi={'/api/admin/newOrder/statisticsListExprot'}
  131. dataProcessing={(data)=>{
  132. let theArr = [];
  133. for (let i = 0; i < data.data.length; i++) {
  134. let thisdata = data.data[i];
  135. thisdata.key=i + 1;
  136. theArr.push(thisdata);
  137. }
  138. return theArr;
  139. }}
  140. />
  141. </div>
  142. )
  143. }
  144. }
  145. export default PressMoney;