personnelAll.jsx 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. import React from "react";
  2. import $ from "jquery/src/ajax";
  3. import "@/manageCenter/financialManage/distribute/public.less";
  4. import {
  5. Button,
  6. Form,
  7. Input,
  8. Select,
  9. Spin,
  10. Table,
  11. message,
  12. Modal,
  13. Tabs,
  14. Tag, Tooltip,
  15. } from "antd";
  16. import Assign from "@/manageCenter/publicComponent/assign";
  17. import ResolutionDetail from "@/resolutionDetail";
  18. import OrderRiZi from "@/orderRiZi.jsx";
  19. import {
  20. getProcessStatus,
  21. getLiquidationStatus,
  22. getApprovedState,
  23. splitUrl,
  24. getProjectName,
  25. getboutique,
  26. ShowModal,
  27. } from "@/tools";
  28. import ShowModalDiv from "@/showModal.jsx";
  29. // import ResolutionPro from "../task/resolutionPro";
  30. const FormItem = Form.Item;
  31. const { TabPane } = Tabs;
  32. const PersonnelAll = React.createClass({
  33. loadData(pageNo) {
  34. this.state.data = [];
  35. this.setState({
  36. page: pageNo,
  37. loading: true,
  38. });
  39. $.ajax({
  40. method: "get",
  41. dataType: "json",
  42. crossDomain: false,
  43. url: globalConfig.context + "/api/admin/orderProject/orderTaskList",
  44. data: {
  45. pageNo: pageNo || 1,
  46. pageSize: this.state.pagination.pageSize,
  47. specially: 1, //经理
  48. name: this.state.nameSearch, //客户名称
  49. orderNo: this.state.orderNoSearch, //订单编号
  50. taskId: this.state.taskNoSearch, //任务编号
  51. deps: this.state.departmenttSearch, //订单部门
  52. taskStatus: this.state.taskStatus, //任务状态
  53. adminName: this.state.adminName, //任务受理人
  54. outsource: 1,
  55. },
  56. success: function (data) {
  57. ShowModal(this);
  58. let theArr = [];
  59. if (!data.data || !data.data.list) {
  60. if (data.error && data.error.length) {
  61. message.warning(data.error[0].message);
  62. }
  63. } else {
  64. for (let i = 0; i < data.data.list.length; i++) {
  65. let thisdata = data.data.list[i];
  66. if (thisdata.splitList) {
  67. thisdata.splitList.forEach((item) => {
  68. item.key = item.id;
  69. });
  70. }
  71. theArr.push({
  72. key: thisdata.id,
  73. orderNo: thisdata.orderNo, //订单编号
  74. id: thisdata.id, //任务ID
  75. taskName: thisdata.taskName, //名称
  76. cname: thisdata.cname, //项目品类
  77. receiverName: thisdata.receiverName, //受理人
  78. projectStatus: thisdata.projectStatus, //项目状态
  79. taskStatus: thisdata.taskStatus, //任务状态
  80. taskDate: thisdata.taskDate, //分配时间
  81. commodityQuantity: thisdata.commodityQuantity, //数量
  82. userName: thisdata.userName, //用户名
  83. depName: thisdata.depName, //部门名称
  84. splitStatus: thisdata.splitStatus, //拆分状态
  85. splitList: thisdata.splitList,
  86. });
  87. }
  88. }
  89. this.state.pagination.current = data.data.pageNo;
  90. this.state.pagination.total = data.data.totalCount;
  91. if (data.data && data.data.list && !data.data.list.length) {
  92. this.state.pagination.current = 0;
  93. this.state.pagination.total = 0;
  94. }
  95. this.setState({
  96. dataSource: theArr,
  97. pagination: this.state.pagination,
  98. });
  99. }.bind(this),
  100. }).always(
  101. function () {
  102. this.setState({
  103. loading: false,
  104. });
  105. }.bind(this)
  106. );
  107. },
  108. getInitialState() {
  109. return {
  110. searchMore: true,
  111. assignVisible: false,
  112. releaseDate: [],
  113. roleName: "",
  114. boHuivisible: false,
  115. departmentArr: [],
  116. selectedRowKeys: [],
  117. selectedRows: [],
  118. paginations: false,
  119. loading: false,
  120. pagination: {
  121. defaultCurrent: 1,
  122. defaultPageSize: 10,
  123. showQuickJumper: true,
  124. pageSize: 10,
  125. onChange: function (page) {
  126. this.loadData(page);
  127. }.bind(this),
  128. showTotal: function (total) {
  129. return "共" + total + "条数据";
  130. },
  131. },
  132. columns: [
  133. {
  134. title: "任务编号",
  135. dataIndex: "id",
  136. key: "id",
  137. },
  138. {
  139. title: "任务名称",
  140. dataIndex: "taskName",
  141. key: "taskName",
  142. },
  143. {
  144. title: "订单编号",
  145. dataIndex: "orderNo",
  146. key: "orderNo",
  147. },
  148. {
  149. title: "业务类别",
  150. dataIndex: "cname",
  151. key: "cname",
  152. },
  153. {
  154. title: "客户名称",
  155. dataIndex: "userName",
  156. key: "userName",
  157. width: 150,
  158. render: (text) => {
  159. return (
  160. <Tooltip title={text}>
  161. <div
  162. // style={{
  163. // maxWidth: '150px',
  164. // overflow: 'hidden',
  165. // textOverflow: "ellipsis",
  166. // whiteSpace: 'nowrap',
  167. // }}
  168. >{text}</div>
  169. </Tooltip>
  170. )
  171. },
  172. },
  173. {
  174. title: "项目状态",
  175. dataIndex: "projectStatus",
  176. key: "projectStatus",
  177. render: (text) => {
  178. return getProjectName(text);
  179. },
  180. },
  181. {
  182. title: "分配时间",
  183. dataIndex: "taskDate",
  184. key: "taskDate",
  185. },
  186. {
  187. title: "任务数量",
  188. dataIndex: "commodityQuantity",
  189. key: "commodityQuantity",
  190. render: (text, record) => {
  191. if (record.splitStatus == 1) {
  192. return (
  193. <span>
  194. {text}{" "}
  195. <Tag color="#108ee9" style={{ float: "right" }}>
  196. 已拆
  197. </Tag>
  198. </span>
  199. );
  200. } else {
  201. return text;
  202. }
  203. },
  204. },
  205. {
  206. title: "订单部门",
  207. dataIndex: "depName",
  208. key: "depName",
  209. },
  210. {
  211. title: "操作",
  212. dataIndex: "caozuo",
  213. key: "caouzo",
  214. render: (text, record) => {
  215. return (
  216. <div>
  217. <Button
  218. type="primary"
  219. style={{ margin: "0 10px" }}
  220. disabled={record.splitStatus == 1 ? true : false}
  221. onClick={(e) => {
  222. e.stopPropagation(), this.evaluate(record, "咨询师经理");
  223. }}
  224. >
  225. 转交
  226. </Button>
  227. <Button
  228. type="primary"
  229. style={{ margin: "0 10px" }}
  230. disabled={record.splitStatus == 1 ? true : false}
  231. onClick={(e) => {
  232. e.stopPropagation(), this.evaluate(record, "咨询师");
  233. }}
  234. >
  235. 分配任务
  236. </Button>
  237. {record.splitStatus == 0 ? (
  238. <Button
  239. type="primary"
  240. style={{ margin: "0 10px" }}
  241. onClick={(e) => {
  242. e.stopPropagation();
  243. this.setState({
  244. resolutionVisible: true,
  245. resolutionName: record.taskName,
  246. resolutionNumber: record.commodityQuantity,
  247. resolutionId: record.id,
  248. });
  249. }}
  250. >
  251. 拆分项目
  252. </Button>
  253. ) : (
  254. ""
  255. )}
  256. </div>
  257. );
  258. },
  259. },
  260. ],
  261. dataSource: [],
  262. searchTime: [],
  263. columnsX: [
  264. {
  265. title: "业务项目名称",
  266. dataIndex: "commodityName",
  267. key: "commodityName",
  268. render: (text, record) => {
  269. return (
  270. <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span></span>
  271. )
  272. }
  273. },
  274. {
  275. title: "项目类别",
  276. dataIndex: "cname",
  277. key: "cname",
  278. },
  279. {
  280. title: "项目数量",
  281. dataIndex: "commodityQuantity",
  282. key: "commodityQuantity",
  283. render: (text, record) => {
  284. if (record.splitStatus == 1) {
  285. return (
  286. <span>
  287. {text}{" "}
  288. <Tag
  289. color="#108ee9"
  290. onClick={(e) => {
  291. e.stopPropagation();
  292. this.showRes(record);
  293. }}
  294. >
  295. 已拆
  296. </Tag>
  297. </span>
  298. );
  299. } else {
  300. return text;
  301. }
  302. },
  303. },
  304. {
  305. title: "金额(万元)",
  306. dataIndex: "commodityPrice",
  307. key: "commodityPrice",
  308. },
  309. {
  310. title: "负责人",
  311. dataIndex: "contacts",
  312. key: "contacts",
  313. },
  314. {
  315. title: "负责人电话",
  316. dataIndex: "contactsMobile",
  317. key: "contactsMobile",
  318. },
  319. {
  320. title: "主要项目",
  321. dataIndex: "main",
  322. key: "main",
  323. render: (text) => {
  324. return text ? "是" : "否";
  325. },
  326. },
  327. {
  328. title: "总年限",
  329. dataIndex: "yearSum",
  330. key: "yearSum",
  331. render: (text, record) => {
  332. return (
  333. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  334. );
  335. }
  336. },
  337. {
  338. title: "年限",
  339. dataIndex: "serviceLife",
  340. key: "serviceLife",
  341. render: (text, record) => {
  342. return (
  343. <div>{!!text && JSON.parse(text).toString()}</div>
  344. );
  345. }
  346. },
  347. {
  348. title: "本次派单",
  349. dataIndex: "serviceYear",
  350. key: "serviceYear",
  351. render: (text, record) => {
  352. return (
  353. <div>{!text ? "" : text}</div>
  354. );
  355. }
  356. },
  357. {
  358. title: "项目说明",
  359. dataIndex: "taskComment",
  360. key: "taskComment",
  361. render: (text) => {
  362. return (
  363. <Tooltip title={text}>
  364. <div
  365. style={{
  366. width: 100,
  367. overflow: "hidden",
  368. whiteSpace: "nowrap",
  369. textOverflow: "ellipsis",
  370. }}
  371. >{text}</div>
  372. </Tooltip>
  373. )
  374. },
  375. },
  376. ],
  377. dataSourceX: [],
  378. resVisible: false,
  379. };
  380. },
  381. /* 分派 */
  382. evaluate(record, nub) {
  383. this.state.assignData = record;
  384. this.setState(
  385. {
  386. nub,
  387. },
  388. () => {
  389. this.setState({
  390. assignVisible: true,
  391. });
  392. }
  393. );
  394. },
  395. componentWillMount() {
  396. this.departmentList();
  397. this.loadData();
  398. },
  399. tableRowClick(record) {
  400. this.state.RowData = record;
  401. this.setState({
  402. visible: true,
  403. });
  404. this.xiangqing(record.orderNo);
  405. this.xiangmu(record.orderNo);
  406. },
  407. // 拆分详细
  408. showRes(record) {
  409. this.setState({
  410. resVisible: true,
  411. resRecord: record,
  412. });
  413. },
  414. resCancel() {
  415. this.setState({
  416. resVisible: false,
  417. });
  418. },
  419. //订单详情
  420. xiangqing(orderNos) {
  421. $.ajax({
  422. method: "get",
  423. dataType: "json",
  424. crossDomain: false,
  425. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  426. data: {
  427. orderNo: orderNos,
  428. },
  429. success: function (data) {
  430. if (data.error.length || data.data.list == "") {
  431. if (data.error && data.error.length) {
  432. message.warning(data.error[0].message);
  433. }
  434. } else {
  435. let thisdata = data.data;
  436. this.setState({
  437. orderNo: thisdata.orderNo, //订单编号
  438. contractNo: thisdata.contractNo, //合同编号
  439. userName: thisdata.userName, //客户名称
  440. signDate: thisdata.signDate, //签单时间
  441. processStatus: thisdata.processStatus, //流程状态
  442. liquidationStatus: thisdata.liquidationStatus, //结算状态
  443. contacts: thisdata.contacts, //企业联系人
  444. contactMobile: thisdata.contactMobile, //联系人电话
  445. legalPerson: thisdata.legalPerson, //法人
  446. legalPersonTel: thisdata.legalPersonTel, //法人电话
  447. firstAmount: thisdata.firstAmount, //签单金额
  448. totalAmount: thisdata.totalAmount, //首付金额
  449. approval: thisdata.approval, //特批状态
  450. settlementAmount: thisdata.settlementAmount, //已收款项
  451. orderRemarks: thisdata.orderRemarks, //订单留言
  452. orgCodeUrl: thisdata.contractPictureUrl
  453. ? splitUrl(
  454. thisdata.contractPictureUrl,
  455. ",",
  456. globalConfig.avatarHost + "/upload"
  457. )
  458. : [], //图片地址
  459. replenishUrl: thisdata.agreementUrl
  460. ? splitUrl(
  461. thisdata.agreementUrl,
  462. ",",
  463. globalConfig.avatarHost + "/upload"
  464. )
  465. : [],
  466. salesmanName: thisdata.salesmanName, //营销员名称
  467. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  468. financeName: thisdata.financeName, //财务名称
  469. financeMobile: thisdata.financeMobile, //财务电话
  470. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  471. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  472. nowFinance: thisdata.nowFinance, //财务名称
  473. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  474. depName: thisdata.depName, //订单部门
  475. });
  476. }
  477. }.bind(this),
  478. }).always(
  479. function () {
  480. this.setState({
  481. loading: false,
  482. });
  483. }.bind(this)
  484. );
  485. },
  486. //项目列表
  487. xiangmu(orderNos) {
  488. $.ajax({
  489. method: "get",
  490. dataType: "json",
  491. crossDomain: false,
  492. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  493. data: {
  494. orderNo: orderNos,
  495. },
  496. success: function (data) {
  497. let theArr = [];
  498. if (data.error.length || data.data.list == "") {
  499. if (data.error && data.error.length) {
  500. message.warning(data.error[0].message);
  501. }
  502. } else {
  503. for (let i = 0; i < data.data.length; i++) {
  504. let thisdata = data.data[i];
  505. thisdata.key = i;
  506. theArr.push(thisdata);
  507. }
  508. }
  509. this.setState({
  510. dataSourceX: theArr,
  511. });
  512. }.bind(this),
  513. }).always(
  514. function () {
  515. this.setState({
  516. loading: false,
  517. });
  518. }.bind(this)
  519. );
  520. },
  521. //关闭详情
  522. visitCancel() {
  523. this.setState({
  524. visible: false,
  525. });
  526. this.loadData();
  527. },
  528. visitOk() {
  529. this.setState({
  530. visible: false,
  531. });
  532. this.reset();
  533. },
  534. closeDesc(e, s) {
  535. this.state.showDesc = e;
  536. if (s) {
  537. this.loadData(this.state.page);
  538. }
  539. },
  540. closeAssign(e, s) {
  541. this.state.roleName = "";
  542. this.state.assignVisible = e;
  543. if (s) {
  544. this.loadData(this.state.page);
  545. }
  546. },
  547. nextCancel() {
  548. this.setState({
  549. addnextVisible: false,
  550. });
  551. },
  552. //点击打卡项目详情
  553. tableRowClickX(record) {
  554. this.setState({
  555. jid: record.id, //项目ID
  556. kid: record.commodityId, //商品ID
  557. commodityName: record.commodityName, //金额
  558. commodityPrice: record.commodityPrice, //金额
  559. commodityQuantity: record.commodityQuantity, //数量
  560. taskComment: record.taskComment, //备注
  561. main: record.main.toString(), //是否为主要
  562. addnextVisible: true,
  563. addState: 0,
  564. });
  565. },
  566. search() {
  567. this.loadData();
  568. },
  569. reset() {
  570. this.state.nameSearch = "";
  571. this.state.releaseDate = [];
  572. this.state.orderNoSearch = "";
  573. this.state.taskNoSearch = "";
  574. this.state.departmenttSearch = undefined;
  575. this.state.distribution = undefined;
  576. this.loadData(this.state.page);
  577. },
  578. searchSwitch() {
  579. this.setState({
  580. searchMore: !this.state.searchMore,
  581. });
  582. },
  583. //部门
  584. departmentList() {
  585. this.setState({
  586. loading: true,
  587. });
  588. $.ajax({
  589. method: "get",
  590. dataType: "json",
  591. crossDomain: false,
  592. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  593. data: {},
  594. success: function (data) {
  595. let thedata = data.data;
  596. let theArr = [];
  597. if (!thedata) {
  598. if (data.error && data.error.length) {
  599. message.warning(data.error[0].message);
  600. }
  601. thedata = {};
  602. } else {
  603. thedata.map(function (item, index) {
  604. theArr.push({
  605. key: index,
  606. name: item.name,
  607. id: item.id,
  608. });
  609. });
  610. }
  611. this.setState({
  612. departmentArr: theArr,
  613. });
  614. }.bind(this),
  615. }).always(
  616. function () {
  617. this.setState({
  618. loading: false,
  619. });
  620. }.bind(this)
  621. );
  622. },
  623. resolutionCancel() {
  624. this.setState({
  625. resolutionVisible: false,
  626. });
  627. },
  628. rizhi() {
  629. this.setState({
  630. loading: true,
  631. });
  632. $.ajax({
  633. method: "get",
  634. dataType: "json",
  635. crossDomain: false,
  636. url: "/api/admin/newOrder/selectOrderLog",
  637. data: {
  638. orderNo: this.state.orderNo,
  639. },
  640. success: function (data) {
  641. let theArr = [];
  642. let thisData = data.data;
  643. if (!thisData.length) {
  644. if (data.error && data.error.length) {
  645. message.warning(data.error[0].message);
  646. }
  647. thisData = {};
  648. } else {
  649. for (let i = 0; i < data.data.length; i++) {
  650. let thisdata = data.data[i];
  651. theArr.push({
  652. processName: thisdata.processName,
  653. adminName: thisdata.adminName,
  654. createDate: thisdata.createDate,
  655. remarks: thisdata.remarks,
  656. });
  657. }
  658. }
  659. this.setState({
  660. dataSourceY: theArr,
  661. });
  662. }.bind(this),
  663. }).always(
  664. function () {
  665. this.setState({
  666. loading: false,
  667. });
  668. }.bind(this)
  669. );
  670. },
  671. closeOrderLog() {
  672. this.setState({
  673. avisible: false,
  674. });
  675. },
  676. getOrderLog() {
  677. this.setState({
  678. avisible: true,
  679. });
  680. this.rizhi();
  681. },
  682. render() {
  683. const expandedRowRender = (e) => {
  684. const data = e.splitList;
  685. let columns = [];
  686. if (e.splitList instanceof Array && e.splitList.length) {
  687. columns = [
  688. {
  689. title: "任务编号",
  690. dataIndex: "splitSuper",
  691. key: "splitSuper",
  692. render: (text, record) => {
  693. return text + "-" + record.splitId;
  694. },
  695. },
  696. {
  697. title: "任务名称",
  698. dataIndex: "taskName",
  699. key: "taskName",
  700. },
  701. {
  702. title: "订单编号",
  703. dataIndex: "orderNo",
  704. key: "orderNo",
  705. },
  706. {
  707. title: "业务类别",
  708. dataIndex: "cname",
  709. key: "cname",
  710. },
  711. {
  712. title: "客户名称",
  713. dataIndex: "userName",
  714. key: "userName",
  715. width: 150,
  716. render: (text) => {
  717. return (
  718. <Tooltip title={text}>
  719. <div
  720. // style={{
  721. // maxWidth: '150px',
  722. // overflow: 'hidden',
  723. // textOverflow: "ellipsis",
  724. // whiteSpace: 'nowrap',
  725. // }}
  726. >{text}</div>
  727. </Tooltip>
  728. )
  729. },
  730. },
  731. {
  732. title: "项目状态",
  733. dataIndex: "projectStatus",
  734. key: "projectStatus",
  735. render: (text) => {
  736. return getProjectName(text);
  737. },
  738. },
  739. {
  740. title: "分配时间",
  741. dataIndex: "taskDate",
  742. key: "taskDate",
  743. },
  744. {
  745. title: "任务数量",
  746. dataIndex: "commodityQuantity",
  747. key: "commodityQuantity",
  748. },
  749. {
  750. title: "订单部门",
  751. dataIndex: "depName",
  752. key: "depName",
  753. },
  754. {
  755. title: "拆分操作人",
  756. dataIndex: "splitAname",
  757. key: "splitAname",
  758. },
  759. {
  760. title: "项目负责人",
  761. dataIndex: "receiverName",
  762. key: "receiverName",
  763. },
  764. {
  765. title: "拆分时间",
  766. dataIndex: "splitTimes",
  767. key: "splitTimes",
  768. },
  769. {
  770. title: "操作",
  771. dataIndex: "caozuo",
  772. key: "caouzo",
  773. render: (text, record) => {
  774. return (
  775. <div>
  776. <Button
  777. type="primary"
  778. style={{ margin: "0 10px" }}
  779. disabled={record.distributeSign == 1 ? true : false}
  780. onClick={(e) => {
  781. e.stopPropagation(), this.evaluate(record, "咨询师经理");
  782. }}
  783. >
  784. 转交
  785. </Button>
  786. <Button
  787. type="primary"
  788. style={{ margin: "0 10px" }}
  789. disabled={record.distributeSign == 1 ? true : false}
  790. onClick={(e) => {
  791. e.stopPropagation(), this.evaluate(record, "咨询师");
  792. }}
  793. >
  794. 分配任务
  795. </Button>
  796. </div>
  797. );
  798. },
  799. },
  800. ];
  801. return (
  802. <Table
  803. columns={columns}
  804. dataSource={data}
  805. pagination={false}
  806. onRowClick={this.tableRowClick.bind(this)}
  807. />
  808. );
  809. } else {
  810. columns = [];
  811. return (
  812. <p style={{ fontWeight: "bold", color: "red", textAlign: "center" }}>
  813. 此项目暂未拆分
  814. </p>
  815. );
  816. }
  817. };
  818. const rowSelection = {
  819. selectedRowKeys: this.state.selectedRowKeys,
  820. onChange: (selectedRowKeys, selectedRows) => {
  821. this.setState({
  822. selectedRows: selectedRows.slice(-1),
  823. selectedRowKeys: selectedRowKeys.slice(-1),
  824. });
  825. },
  826. };
  827. const formItemLayout = {
  828. labelCol: { span: 8 },
  829. wrapperCol: { span: 14 },
  830. };
  831. let departmentArr = this.state.departmentArr || [];
  832. return (
  833. <div className="user-content">
  834. 123
  835. </div>
  836. );
  837. },
  838. });
  839. export default PersonnelAll;