personnelAll.jsx 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841
  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. depId: 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. !!text && JSON.parse(text).map(item =>
  342. <div>{item}</div>
  343. )
  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 style={{
  720. maxWidth: '150px',
  721. overflow: 'hidden',
  722. textOverflow: "ellipsis",
  723. whiteSpace: 'nowrap',
  724. }}>{text}</div>
  725. </Tooltip>
  726. )
  727. },
  728. },
  729. {
  730. title: "项目状态",
  731. dataIndex: "projectStatus",
  732. key: "projectStatus",
  733. render: (text) => {
  734. return getProjectName(text);
  735. },
  736. },
  737. {
  738. title: "分配时间",
  739. dataIndex: "taskDate",
  740. key: "taskDate",
  741. },
  742. {
  743. title: "任务数量",
  744. dataIndex: "commodityQuantity",
  745. key: "commodityQuantity",
  746. },
  747. {
  748. title: "订单部门",
  749. dataIndex: "depName",
  750. key: "depName",
  751. },
  752. {
  753. title: "拆分操作人",
  754. dataIndex: "splitAname",
  755. key: "splitAname",
  756. },
  757. {
  758. title: "项目负责人",
  759. dataIndex: "receiverName",
  760. key: "receiverName",
  761. },
  762. {
  763. title: "拆分时间",
  764. dataIndex: "splitTimes",
  765. key: "splitTimes",
  766. },
  767. {
  768. title: "操作",
  769. dataIndex: "caozuo",
  770. key: "caouzo",
  771. render: (text, record) => {
  772. return (
  773. <div>
  774. <Button
  775. type="primary"
  776. style={{ margin: "0 10px" }}
  777. disabled={record.distributeSign == 1 ? true : false}
  778. onClick={(e) => {
  779. e.stopPropagation(), this.evaluate(record, "咨询师经理");
  780. }}
  781. >
  782. 转交
  783. </Button>
  784. <Button
  785. type="primary"
  786. style={{ margin: "0 10px" }}
  787. disabled={record.distributeSign == 1 ? true : false}
  788. onClick={(e) => {
  789. e.stopPropagation(), this.evaluate(record, "咨询师");
  790. }}
  791. >
  792. 分配任务
  793. </Button>
  794. </div>
  795. );
  796. },
  797. },
  798. ];
  799. return (
  800. <Table
  801. columns={columns}
  802. dataSource={data}
  803. pagination={false}
  804. onRowClick={this.tableRowClick.bind(this)}
  805. />
  806. );
  807. } else {
  808. columns = [];
  809. return (
  810. <p style={{ fontWeight: "bold", color: "red", textAlign: "center" }}>
  811. 此项目暂未拆分
  812. </p>
  813. );
  814. }
  815. };
  816. const rowSelection = {
  817. selectedRowKeys: this.state.selectedRowKeys,
  818. onChange: (selectedRowKeys, selectedRows) => {
  819. this.setState({
  820. selectedRows: selectedRows.slice(-1),
  821. selectedRowKeys: selectedRowKeys.slice(-1),
  822. });
  823. },
  824. };
  825. const formItemLayout = {
  826. labelCol: { span: 8 },
  827. wrapperCol: { span: 14 },
  828. };
  829. let departmentArr = this.state.departmentArr || [];
  830. return (
  831. <div className="user-content">
  832. 123
  833. </div>
  834. );
  835. },
  836. });
  837. export default PersonnelAll;