personnelAll.jsx 23 KB

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