personnelAll.jsx 24 KB

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