taskAssignment.jsx 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564
  1. import React from "react";
  2. import $ from "jquery/src/ajax";
  3. import "@/manageCenter/financialManage/distribute/public.less";
  4. import { Button, Form, Input, Select, Spin, Table, message, Modal, Tabs, Tag, Tooltip } from "antd";
  5. import Assign from "@/manageCenter/publicComponent/assign";
  6. import ResolutionDetail from "@/resolutionDetail"
  7. import OrderDetail from "../../order/orderNew/changeComponent/orderDetail";
  8. import OrderRiZi from "@/orderRiZi.jsx";
  9. import {
  10. getProcessStatus,
  11. getLiquidationStatus,
  12. getApprovedState,
  13. splitUrl,
  14. getProjectName,
  15. getboutique,
  16. ShowModal
  17. } from "@/tools";
  18. import ShowModalDiv from "@/showModal.jsx";
  19. import ResolutionPro from "./resolutionPro"
  20. import { ChooseList } from "../../order/orderNew/chooseList";
  21. import ProjectDetailsReadOnly from "../../../common/projectDetailsReadOnly";
  22. import NewEditProject from "../../../common/projectOperation/newEditProject";
  23. import OrderItemStatus from "../../../common/orderItemStatus";
  24. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  25. import Cascaders from "../../../common/cascaders";
  26. const FormItem = Form.Item;
  27. const { TabPane } = Tabs
  28. const Task = React.createClass({
  29. loadData(pageNo) {
  30. this.state.data = [];
  31. this.setState({
  32. loading: true,
  33. });
  34. $.ajax({
  35. method: "get",
  36. dataType: "json",
  37. crossDomain: false,
  38. url: globalConfig.context + "/api/admin/orderProject/orderTaskList",
  39. data: {
  40. pageNo: pageNo || 1,
  41. pageSize: this.state.pagination.pageSize,
  42. specially: 1, //经理
  43. name: this.state.nameSearch, //客户名称
  44. orderNo: this.state.orderNoSearch, //订单编号
  45. taskId: this.state.taskNoSearch, //任务编号
  46. deps: this.state.departmenttSearch, //订单部门
  47. taskStatus: this.state.taskStatus, //任务状态
  48. adminName: this.state.adminName, //任务受理人
  49. },
  50. success: function (data) {
  51. ShowModal(this);
  52. let theArr = [];
  53. if (!data.data || !data.data.list) {
  54. if (data.error && data.error.length) {
  55. message.warning(data.error[0].message);
  56. }
  57. } else {
  58. for (let i = 0; i < data.data.list.length; i++) {
  59. let thisdata = data.data.list[i];
  60. if (thisdata.splitList) {
  61. thisdata.splitList.forEach((item) => {
  62. item.key = item.id;
  63. });
  64. }
  65. theArr.push({
  66. key: thisdata.id,
  67. orderNo: thisdata.orderNo, //订单编号
  68. id: thisdata.id, //任务ID
  69. taskName: thisdata.taskName, //名称
  70. cname: thisdata.cname, //项目品类
  71. receiverName: thisdata.receiverName, //受理人
  72. projectStatus: thisdata.projectStatus, //项目状态
  73. taskStatus: thisdata.taskStatus, //任务状态
  74. taskDate: thisdata.taskDate, //分配时间
  75. commodityQuantity: thisdata.commodityQuantity, //数量
  76. userName: thisdata.userName, //用户名
  77. depName: thisdata.depName, //部门名称
  78. splitStatus: thisdata.splitStatus, //拆分状态
  79. splitList: thisdata.splitList,
  80. patentTypeName: thisdata.patentTypeName,
  81. });
  82. }
  83. }
  84. this.state.pagination.current = data.data.pageNo;
  85. this.state.pagination.total = data.data.totalCount;
  86. if (data.data && data.data.list && !data.data.list.length) {
  87. this.state.pagination.current = 0;
  88. this.state.pagination.total = 0;
  89. }
  90. this.setState({
  91. dataSource: theArr,
  92. page: data.data.pageNo,
  93. pagination: this.state.pagination,
  94. });
  95. }.bind(this),
  96. }).always(
  97. function () {
  98. this.setState({
  99. loading: false,
  100. });
  101. }.bind(this)
  102. );
  103. },
  104. getInitialState() {
  105. return {
  106. orderData: [],
  107. orderNo: "",
  108. jiedian: [],
  109. jiedianNew: [],
  110. declarationBatch: 1,
  111. dataInfor: {},
  112. activeKey: "1",
  113. searchMore: true,
  114. assignVisible: false,
  115. releaseDate: [],
  116. roleName: "",
  117. boHuivisible: false,
  118. departmentArr: [],
  119. selectedRowKeys: [],
  120. selectedRows: [],
  121. paginations: false,
  122. loading: false,
  123. pagination: {
  124. defaultCurrent: 1,
  125. defaultPageSize: 10,
  126. showQuickJumper: true,
  127. pageSize: 10,
  128. onChange: function (page) {
  129. this.loadData(page);
  130. }.bind(this),
  131. showTotal: function (total) {
  132. return "共" + total + "条数据";
  133. },
  134. },
  135. columns: [
  136. {
  137. title: "编号",
  138. dataIndex: "id",
  139. key: "id",
  140. },
  141. {
  142. title: "项目名称",
  143. dataIndex: "taskName",
  144. key: "taskName",
  145. render: (text, record) => {
  146. return <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span></span>
  147. }
  148. },
  149. {
  150. title: "订单编号",
  151. dataIndex: "orderNo",
  152. key: "orderNo",
  153. },
  154. {
  155. title: "业务类别",
  156. dataIndex: "cname",
  157. key: "cname",
  158. },
  159. {
  160. title: "客户名称",
  161. dataIndex: "userName",
  162. key: "userName",
  163. render: text => {
  164. return (
  165. <Tooltip title={text}>
  166. <div style={{
  167. maxWidth: '150px',
  168. overflow: 'hidden',
  169. textOverflow: "ellipsis",
  170. whiteSpace: 'nowrap',
  171. }}>{text}</div>
  172. </Tooltip>
  173. )
  174. }
  175. },
  176. {
  177. title: "项目状态",
  178. dataIndex: "projectStatus",
  179. key: "projectStatus",
  180. render: (text) => {
  181. return getProjectName(text);
  182. },
  183. },
  184. {
  185. title: "分配时间",
  186. dataIndex: "taskDate",
  187. key: "taskDate",
  188. },
  189. {
  190. title: "任务数量",
  191. dataIndex: "commodityQuantity",
  192. key: "commodityQuantity",
  193. render: (text, record) => {
  194. if (record.splitStatus == 1) {
  195. return (
  196. <span>
  197. {text}{" "}
  198. <Tag color="#108ee9" style={{ float: "right" }}>
  199. 已拆
  200. </Tag>
  201. </span>
  202. );
  203. } else {
  204. return text;
  205. }
  206. },
  207. },
  208. {
  209. title: "订单部门",
  210. dataIndex: "depName",
  211. key: "depName",
  212. },
  213. {
  214. title: "操作",
  215. dataIndex: "caozuo",
  216. key: "caouzo",
  217. render: (text, record) => {
  218. return (
  219. <div>
  220. <Button
  221. type="primary"
  222. style={{ margin: "0 10px" }}
  223. disabled={record.splitStatus == 1 ? true : false}
  224. onClick={(e) => {
  225. e.stopPropagation(), this.evaluate(record, "咨询师经理");
  226. }}
  227. >
  228. 转交
  229. </Button>
  230. <Button
  231. type="primary"
  232. style={{ margin: "0 10px" }}
  233. disabled={record.splitStatus == 1 ? true : false}
  234. onClick={(e) => {
  235. e.stopPropagation(), this.evaluate(record, "咨询师");
  236. }}
  237. >
  238. 分配任务
  239. </Button>
  240. {record.splitStatus == 0 ? (
  241. <Button
  242. type="primary"
  243. style={{ margin: "0 10px" }}
  244. onClick={(e) => {
  245. e.stopPropagation();
  246. this.setState({
  247. resolutionVisible: true,
  248. resolutionName: record.taskName,
  249. resolutionNumber: record.commodityQuantity,
  250. resolutionId: record.id,
  251. });
  252. }}
  253. >
  254. 拆分项目
  255. </Button>
  256. ) : (
  257. ""
  258. )}
  259. </div>
  260. );
  261. },
  262. },
  263. ],
  264. dataSource: [],
  265. resolutionVisible: false,
  266. searchTime: [],
  267. columnsX: [
  268. {
  269. title: "业务项目名称",
  270. dataIndex: "commodityName",
  271. key: "commodityName",
  272. render: (text, record) => {
  273. return (
  274. <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span></span>
  275. )
  276. }
  277. },
  278. {
  279. title: "项目类别",
  280. dataIndex: "cname",
  281. key: "cname",
  282. },
  283. {
  284. title: "项目数量",
  285. dataIndex: "commodityQuantity",
  286. key: "commodityQuantity",
  287. render: (text, record) => {
  288. if (record.splitStatus == 1) {
  289. return (
  290. <span>
  291. {text}{" "}
  292. {/* <Tag
  293. color="#108ee9"
  294. onClick={(e) => {
  295. e.stopPropagation();
  296. this.showRes(record);
  297. }}
  298. >
  299. 已拆
  300. </Tag> */}
  301. </span>
  302. );
  303. } else {
  304. return text;
  305. }
  306. },
  307. },
  308. {
  309. title: "金额(万元)",
  310. dataIndex: "commodityPrice",
  311. key: "commodityPrice",
  312. },
  313. {
  314. title: "负责人",
  315. dataIndex: "contacts",
  316. key: "contacts",
  317. },
  318. {
  319. title: "负责人电话",
  320. dataIndex: "contactsMobile",
  321. key: "contactsMobile",
  322. },
  323. {
  324. title: "主要项目",
  325. dataIndex: "main",
  326. key: "main",
  327. render: (text) => {
  328. return text ? "是" : "否";
  329. },
  330. },
  331. {
  332. title: "总年限",
  333. dataIndex: "yearSum",
  334. key: "yearSum",
  335. render: (text, record) => {
  336. return (
  337. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  338. );
  339. }
  340. },
  341. {
  342. title: "年限",
  343. dataIndex: "serviceLife",
  344. key: "serviceLife",
  345. render: (text, record) => {
  346. return (
  347. <div>{!!text && JSON.parse(text).toString()}</div>
  348. );
  349. }
  350. },
  351. {
  352. title: "本次派单",
  353. dataIndex: "serviceYear",
  354. key: "serviceYear",
  355. render: (text, record) => {
  356. return (
  357. <div>{!text ? "" : text}</div>
  358. );
  359. }
  360. },
  361. {
  362. title: "项目说明",
  363. dataIndex: "taskComment",
  364. key: "taskComment",
  365. render: (text) => {
  366. return (
  367. <Tooltip title={text}>
  368. <div
  369. style={{
  370. width: 100,
  371. overflow: "hidden",
  372. whiteSpace: "nowrap",
  373. textOverflow: "ellipsis",
  374. }}
  375. >{text}</div>
  376. </Tooltip>
  377. )
  378. },
  379. },
  380. ],
  381. dataSourceX: [],
  382. resVisible: false,
  383. };
  384. },
  385. /* 分派 */
  386. evaluate(record, nub) {
  387. this.state.assignData = record;
  388. this.setState(
  389. {
  390. nub,
  391. },
  392. () => {
  393. this.setState({
  394. assignVisible: true,
  395. });
  396. }
  397. );
  398. },
  399. componentWillMount() {
  400. // this.departmentList();
  401. this.loadData();
  402. },
  403. tableRowClick(record) {
  404. this.state.RowData = record;
  405. this.setState({
  406. visible: true,
  407. });
  408. this.xiangqing(record.orderNo);
  409. this.xiangmu(record.orderNo);
  410. },
  411. // 拆分详细
  412. showRes(record) {
  413. this.setState({
  414. resVisible: true,
  415. resRecord: record,
  416. });
  417. },
  418. resCancel() {
  419. this.setState({
  420. resVisible: false,
  421. });
  422. },
  423. //订单详情
  424. xiangqing(orderNos) {
  425. $.ajax({
  426. method: "get",
  427. dataType: "json",
  428. crossDomain: false,
  429. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  430. data: {
  431. orderNo: orderNos,
  432. },
  433. success: function (data) {
  434. if (data.error.length || data.data.list == "") {
  435. if (data.error && data.error.length) {
  436. message.warning(data.error[0].message);
  437. }
  438. } else {
  439. let thisdata = data.data;
  440. this.setState({
  441. orderUid: thisdata.uid,
  442. orderNo: thisdata.orderNo, //订单编号
  443. contractNo: thisdata.contractNo, //合同编号
  444. userName: thisdata.userName, //客户名称
  445. signDate: thisdata.signDate, //签单时间
  446. examineName: thisdata.examineName,
  447. processStatus: thisdata.processStatus, //流程状态
  448. liquidationStatus: thisdata.liquidationStatus, //结算状态
  449. contacts: thisdata.contacts, //企业联系人
  450. contactMobile: thisdata.contactMobile, //联系人电话
  451. legalPerson: thisdata.legalPerson, //法人
  452. legalPersonTel: thisdata.legalPersonTel, //法人电话
  453. firstAmount: thisdata.firstAmount, //签单金额
  454. totalAmount: thisdata.totalAmount, //首付金额
  455. approval: thisdata.approval, //特批状态
  456. settlementAmount: thisdata.settlementAmount, //已收款项
  457. orderRemarks: thisdata.orderRemarks, //订单留言
  458. orgCodeUrl: thisdata.contractPictureUrl
  459. ? splitUrl(
  460. thisdata.contractPictureUrl,
  461. ",",
  462. globalConfig.avatarHost + "/upload"
  463. )
  464. : [], //图片地址
  465. salesmanName: thisdata.salesmanName, //营销员名称
  466. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  467. financeName: thisdata.financeName, //财务名称
  468. financeMobile: thisdata.financeMobile, //财务电话
  469. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  470. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  471. nowFinance: thisdata.nowFinance, //财务名称
  472. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  473. depName: thisdata.depName, //订单部门
  474. deleteSign: thisdata.deleteSign,
  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. activeKey: "1",
  526. });
  527. this.loadData(this.state.page);
  528. },
  529. visitOk() {
  530. this.setState({
  531. visible: false,
  532. });
  533. this.loadData(this.state.page);
  534. },
  535. closeDesc(e, s) {
  536. this.state.showDesc = e;
  537. if (s) {
  538. this.loadData(this.state.page);
  539. }
  540. },
  541. closeAssign(e, s) {
  542. this.state.roleName = "";
  543. this.state.assignVisible = e;
  544. if (s) {
  545. this.loadData(this.state.page);
  546. }
  547. },
  548. nextCancel() {
  549. this.setState({
  550. addnextVisible: false,
  551. displayFees: "none",
  552. officialCost: "", //是否有官费
  553. costReduction: "", //是否有费减
  554. });
  555. },
  556. //点击打卡项目详情
  557. tableRowClickX(record) {
  558. if (record.type == "1") {
  559. this.setState({
  560. displayFees: "block",
  561. costReduction: record.costReduction,
  562. officialCost: record.officialCost,
  563. });
  564. } else {
  565. this.setState({
  566. displayFees: "none",
  567. });
  568. }
  569. this.setState({
  570. jid: record.id, //项目ID
  571. kid: record.commodityId, //商品ID
  572. commodityName: record.commodityName, //金额
  573. commodityPrice: record.commodityPrice, //金额
  574. commodityQuantity: record.commodityQuantity, //数量
  575. taskComment: record.taskComment, //备注
  576. main: record.main.toString(), //是否为主要
  577. addnextVisible: true,
  578. dataInfor: record,
  579. addState: 0,
  580. });
  581. },
  582. search() {
  583. this.loadData();
  584. },
  585. reset() {
  586. this.state.nameSearch = "";
  587. this.state.releaseDate = [];
  588. this.state.orderNoSearch = "";
  589. this.state.taskNoSearch = "";
  590. this.state.departmenttSearch = undefined;
  591. this.state.distribution = undefined;
  592. this.Cascaders.empty();
  593. this.loadData();
  594. },
  595. searchSwitch() {
  596. this.setState({
  597. searchMore: !this.state.searchMore,
  598. });
  599. },
  600. //部门
  601. departmentList() {
  602. this.setState({
  603. loading: true,
  604. });
  605. $.ajax({
  606. method: "get",
  607. dataType: "json",
  608. crossDomain: false,
  609. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  610. data: {},
  611. success: function (data) {
  612. let thedata = data.data;
  613. let theArr = [];
  614. if (!thedata) {
  615. if (data.error && data.error.length) {
  616. message.warning(data.error[0].message);
  617. }
  618. thedata = {};
  619. } else {
  620. thedata.map(function (item, index) {
  621. theArr.push({
  622. key: index,
  623. name: item.name,
  624. id: item.id,
  625. });
  626. });
  627. }
  628. this.setState({
  629. departmentArr: theArr,
  630. });
  631. }.bind(this),
  632. }).always(
  633. function () {
  634. this.setState({
  635. loading: false,
  636. });
  637. }.bind(this)
  638. );
  639. },
  640. resolutionCancel() {
  641. this.setState({
  642. resolutionVisible: false,
  643. });
  644. },
  645. rizhi() {
  646. this.setState({
  647. loading: true,
  648. });
  649. $.ajax({
  650. method: "get",
  651. dataType: "json",
  652. crossDomain: false,
  653. url: "/api/admin/newOrder/selectOrderLog",
  654. data: {
  655. orderNo: this.state.orderNo,
  656. },
  657. success: function (data) {
  658. let theArr = [];
  659. let thisData = data.data;
  660. if (!thisData.length) {
  661. if (data.error && data.error.length) {
  662. message.warning(data.error[0].message);
  663. }
  664. thisData = {};
  665. } else {
  666. for (let i = 0; i < data.data.length; i++) {
  667. let thisdata = data.data[i];
  668. theArr.push({
  669. processName: thisdata.processName,
  670. adminName: thisdata.adminName,
  671. createDate: thisdata.createDate,
  672. remarks: thisdata.remarks,
  673. });
  674. }
  675. }
  676. this.setState({
  677. dataSourceY: theArr,
  678. });
  679. }.bind(this),
  680. }).always(
  681. function () {
  682. this.setState({
  683. loading: false,
  684. });
  685. }.bind(this)
  686. );
  687. },
  688. closeOrderLog() {
  689. this.setState({
  690. avisible: false,
  691. });
  692. },
  693. getOrderLog() {
  694. this.setState({
  695. avisible: true,
  696. });
  697. this.rizhi();
  698. },
  699. orderChange(key) {
  700. this.setState({
  701. activeKey: key,
  702. });
  703. if (key == 2) {
  704. this.orderDetailData(this.state.orderNo);
  705. this.xiangmu(this.state.orderNo);
  706. this.jiedian(this.state.orderNo);
  707. this.jiedianNew(this.state.orderNo);
  708. }
  709. },
  710. //节点列表
  711. jiedian(orderNos) {
  712. $.ajax({
  713. method: "get",
  714. dataType: "json",
  715. crossDomain: false,
  716. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  717. data: {
  718. orderNo: orderNos,
  719. },
  720. success: function (data) {
  721. let theArr = [];
  722. let thisData = [];
  723. if (data.error.length || data.data.list == "") {
  724. if (data.error && data.error.length) {
  725. message.warning(data.error[0].message);
  726. }
  727. } else {
  728. for (let i = 0; i < data.data.length; i++) {
  729. thisData = data.data[i];
  730. theArr.push({
  731. key: i,
  732. dunSubject: thisData.dunSubject
  733. ? thisData.dunSubject.toString()
  734. : "", //催款科目
  735. id: thisData.id, //节点Id
  736. money: thisData.money, //催款金额
  737. dunStatus: thisData.dunStatus, //催款状态
  738. });
  739. }
  740. this.setState({
  741. jiedian: theArr,
  742. });
  743. }
  744. }.bind(this),
  745. });
  746. },
  747. jiedianNew(orderNos) {
  748. $.ajax({
  749. method: "get",
  750. dataType: "json",
  751. crossDomain: false,
  752. url:
  753. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  754. data: {
  755. orderNo: orderNos,
  756. },
  757. success: function (data) {
  758. if (data.error && data.error.length) {
  759. message.warning(data.error[0].message);
  760. } else {
  761. let theArr = [];
  762. let thisData = [];
  763. let arr = data.data || [];
  764. let totalCui = 0;
  765. for (let i = 0; i < arr.length; i++) {
  766. thisData = arr[i];
  767. totalCui += +thisData.money;
  768. theArr.push({
  769. key: i,
  770. dunSubject: thisData.dunSubject
  771. ? thisData.dunSubject.toString()
  772. : "", //催款科目
  773. id: thisData.id, //节点Id
  774. money: thisData.money, //催款金额
  775. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  776. commodityName: thisData.commodityName,
  777. projectType: thisData.projectType,
  778. dunTypeName: thisData.dunTypeName,
  779. status: thisData.status,
  780. waitDay: thisData.waitDay,
  781. effectiveCount: thisData.effectiveCount,
  782. startDate: thisData.startDate,
  783. dunType: thisData.dunType,
  784. appropriationRatio: thisData.appropriationRatio,
  785. customizeName: thisData.customizeName,
  786. customizeTimes: thisData.customizeTimes,
  787. });
  788. }
  789. if (!totalCui) {
  790. totalCui = 0;
  791. }
  792. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  793. this.setState({
  794. jiedianNew: theArr,
  795. totalCui,
  796. });
  797. }
  798. }.bind(this),
  799. }).always(
  800. function () {
  801. this.setState({
  802. loading: false,
  803. });
  804. }.bind(this)
  805. );
  806. },
  807. orderDetailData(orderNos) {
  808. this.setState({
  809. loading: true,
  810. });
  811. $.ajax({
  812. method: "get",
  813. dataType: "json",
  814. crossDomain: false,
  815. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  816. data: {
  817. orderNo: orderNos,
  818. },
  819. success: function (data) {
  820. if (data.error.length || data.data.list == "") {
  821. if (data.error && data.error.length) {
  822. message.warning(data.error[0].message);
  823. this.setState({
  824. loading: false,
  825. });
  826. }
  827. } else {
  828. let thisdata = data.data;
  829. this.setState({
  830. orderUid: thisdata.uid,
  831. loading: false,
  832. userName: thisdata.userName,
  833. primaryOrderNo: thisdata.primaryOrder,
  834. additionalOrder: thisdata.additionalOrder,
  835. contractNo: thisdata.contractNo,
  836. orderData: thisdata,
  837. isAddition: thisdata.additionalOrder ? true : false,
  838. contractPictureUrl: thisdata.contractPictureUrl
  839. ? splitUrl(
  840. thisdata.contractPictureUrl,
  841. ",",
  842. globalConfig.avatarHost + "/upload"
  843. )
  844. : [],
  845. deleteSign: thisdata.deleteSign,
  846. });
  847. }
  848. }.bind(this),
  849. });
  850. },
  851. changeList(arr) {
  852. const newArr = [];
  853. this.state.columns.forEach(item => {
  854. arr.forEach(val => {
  855. if (val === item.title) {
  856. newArr.push(item);
  857. }
  858. });
  859. });
  860. this.setState({
  861. changeList: newArr
  862. });
  863. },
  864. // 可展开颜色不同
  865. addRowColor(record) {
  866. if (!!record.splitList && record.splitList.length > 0) {
  867. return 'light'
  868. } else {
  869. return 'dark'
  870. }
  871. },
  872. render() {
  873. const expandedRowRender = (e) => {
  874. const data = e.splitList;
  875. let columns = [];
  876. if (e.splitList instanceof Array && e.splitList.length) {
  877. columns = [
  878. {
  879. title: "编号",
  880. dataIndex: "splitSuper",
  881. key: "splitSuper",
  882. render: (text, record) => {
  883. return text + "-" + record.splitId;
  884. },
  885. },
  886. {
  887. title: "项目名称",
  888. dataIndex: "taskName",
  889. key: "taskName",
  890. render: (text, record) => {
  891. return <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span></span>
  892. }
  893. },
  894. {
  895. title: "订单编号",
  896. dataIndex: "orderNo",
  897. key: "orderNo",
  898. },
  899. {
  900. title: "业务类别",
  901. dataIndex: "cname",
  902. key: "cname",
  903. },
  904. {
  905. title: "客户名称",
  906. dataIndex: "userName",
  907. key: "userName",
  908. render: text => {
  909. return (
  910. <Tooltip title={text}>
  911. <div style={{
  912. maxWidth: '150px',
  913. overflow: 'hidden',
  914. textOverflow: "ellipsis",
  915. whiteSpace: 'nowrap',
  916. }}>{text}</div>
  917. </Tooltip>
  918. )
  919. }
  920. },
  921. {
  922. title: "项目状态",
  923. dataIndex: "projectStatus",
  924. key: "projectStatus",
  925. render: (text) => {
  926. return getProjectName(text);
  927. },
  928. },
  929. {
  930. title: "分配时间",
  931. dataIndex: "taskDate",
  932. key: "taskDate",
  933. },
  934. {
  935. title: "任务数量",
  936. dataIndex: "commodityQuantity",
  937. key: "commodityQuantity",
  938. },
  939. {
  940. title: "订单部门",
  941. dataIndex: "depName",
  942. key: "depName",
  943. },
  944. {
  945. title: "拆分操作人",
  946. dataIndex: "splitAname",
  947. key: "splitAname",
  948. },
  949. {
  950. title: "项目负责人",
  951. dataIndex: "receiverName",
  952. key: "receiverName",
  953. },
  954. {
  955. title: "拆分时间",
  956. dataIndex: "splitTimes",
  957. key: "splitTimes",
  958. },
  959. {
  960. title: "操作",
  961. dataIndex: "caozuo",
  962. key: "caouzo",
  963. render: (text, record) => {
  964. return (
  965. <div>
  966. <Button
  967. type="primary"
  968. style={{ margin: "0 10px" }}
  969. disabled={record.distributeSign == 1 ? true : false}
  970. onClick={(e) => {
  971. e.stopPropagation(), this.evaluate(record, "咨询师经理");
  972. }}
  973. >
  974. 转交
  975. </Button>
  976. <Button
  977. type="primary"
  978. style={{ margin: "0 10px" }}
  979. disabled={record.distributeSign == 1 ? true : false}
  980. onClick={(e) => {
  981. e.stopPropagation(), this.evaluate(record, "咨询师");
  982. }}
  983. >
  984. 分配任务
  985. </Button>
  986. </div>
  987. );
  988. },
  989. },
  990. ];
  991. return (
  992. <Table
  993. columns={columns}
  994. dataSource={data}
  995. pagination={false}
  996. onRowClick={this.tableRowClick.bind(this)}
  997. />
  998. );
  999. } else {
  1000. columns = [];
  1001. return (
  1002. <p style={{ fontWeight: "bold", color: "red", textAlign: "center" }}>
  1003. 此项目暂未拆分
  1004. </p>
  1005. );
  1006. }
  1007. };
  1008. const expandedRowRenderVip = (e) => {
  1009. const data = e.splitList;
  1010. let columns = [];
  1011. if (data instanceof Array && data.length) {
  1012. if (e.cSort == 6) {
  1013. columns = [
  1014. {
  1015. title: "负责人",
  1016. dataIndex: "receiverName",
  1017. key: "receiverName",
  1018. },
  1019. {
  1020. title: "负责人电话",
  1021. dataIndex: "receiverMobile",
  1022. key: "receiverMobile",
  1023. },
  1024. {
  1025. title: "项目状态",
  1026. dataIndex: "projectStatus",
  1027. key: "projectStatus",
  1028. render: (text) => {
  1029. return getProjectName(text);
  1030. },
  1031. },
  1032. {
  1033. title: "本次派单",
  1034. dataIndex: "serviceYear",
  1035. key: "serviceYear",
  1036. },
  1037. {
  1038. title: "项目说明",
  1039. dataIndex: "taskComment",
  1040. key: "taskComment",
  1041. render: (text) => {
  1042. return (
  1043. <Tooltip title={text}>
  1044. <div
  1045. // style={{
  1046. // width: 100,
  1047. // overflow: "hidden",
  1048. // whiteSpace: "nowrap",
  1049. // textOverflow: "ellipsis",
  1050. // }}
  1051. >{text}</div>
  1052. </Tooltip>
  1053. )
  1054. },
  1055. },
  1056. ];
  1057. } else {
  1058. columns = [
  1059. {
  1060. title: "子项目名称",
  1061. dataIndex: "taskName",
  1062. key: "taskName"
  1063. },
  1064. {
  1065. title: "子项目数量",
  1066. dataIndex: "commodityQuantity",
  1067. key: "commodityQuantity"
  1068. },
  1069. {
  1070. title: "拆分操作人",
  1071. dataIndex: "splitAname",
  1072. key: "splitAname"
  1073. },
  1074. {
  1075. title: "项目负责人",
  1076. dataIndex: "receiverName",
  1077. key: "receiverName"
  1078. },
  1079. {
  1080. title: "拆分时间",
  1081. dataIndex: "splitTimes",
  1082. key: "splitTimes"
  1083. }
  1084. ]
  1085. }
  1086. return (
  1087. <Table
  1088. columns={columns}
  1089. dataSource={data}
  1090. pagination={false}
  1091. />
  1092. );
  1093. } else {
  1094. columns = [];
  1095. return (
  1096. <p
  1097. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  1098. >
  1099. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  1100. </p>
  1101. );
  1102. }
  1103. };
  1104. const rowSelection = {
  1105. selectedRowKeys: this.state.selectedRowKeys,
  1106. onChange: (selectedRowKeys, selectedRows) => {
  1107. this.setState({
  1108. selectedRows: selectedRows.slice(-1),
  1109. selectedRowKeys: selectedRowKeys.slice(-1),
  1110. });
  1111. },
  1112. };
  1113. const formItemLayout = {
  1114. labelCol: { span: 8 },
  1115. wrapperCol: { span: 14 },
  1116. };
  1117. let departmentArr = this.state.departmentArr || [];
  1118. return (
  1119. <div className="user-content">
  1120. {this.state.resVisible ? (
  1121. <ResolutionDetail
  1122. cancel={this.resCancel}
  1123. detail={this.state.resRecord}
  1124. visible={this.state.resVisible}
  1125. id={this.state.resRecord.orderNo}
  1126. />
  1127. ) : (
  1128. ""
  1129. )}
  1130. <ResolutionPro
  1131. resolutionVisible={this.state.resolutionVisible}
  1132. number={this.state.resolutionNumber}
  1133. name={this.state.resolutionName}
  1134. cancel={this.resolutionCancel}
  1135. id={this.state.resolutionId}
  1136. loadData={this.loadData}
  1137. />
  1138. <ShowModalDiv ShowModal={this.state.showModal} />
  1139. <div className="content-title">
  1140. <span>任务派单</span>
  1141. </div>
  1142. <Tabs defaultActiveKey="1" onChange={this.callback} className="test">
  1143. <TabPane tab="搜索" key="1">
  1144. <div className="user-search">
  1145. <Input
  1146. placeholder="客户名称"
  1147. value={this.state.nameSearch}
  1148. style={{ marginLeft: 10 }}
  1149. onChange={(e) => {
  1150. this.setState({ nameSearch: e.target.value });
  1151. }}
  1152. />
  1153. <Input
  1154. placeholder="订单编号"
  1155. value={this.state.orderNoSearch}
  1156. onChange={(e) => {
  1157. this.setState({ orderNoSearch: e.target.value });
  1158. }}
  1159. />
  1160. <Input
  1161. placeholder="任务编号"
  1162. value={this.state.taskNoSearch}
  1163. onChange={(e) => {
  1164. this.setState({ taskNoSearch: e.target.value });
  1165. }}
  1166. />
  1167. <Cascaders
  1168. ref={ref => this.Cascaders = ref}
  1169. placeholder="选择部门"
  1170. height={28}
  1171. onSel={(e) => {
  1172. this.setState({
  1173. departmenttSearch: JSON.stringify(e)
  1174. })
  1175. }}
  1176. />
  1177. {/* <Select
  1178. placeholder="选择部门"
  1179. style={{ width: 200, marginRight: "10px" }}
  1180. value={this.state.departmenttSearch}
  1181. onChange={(e) => {
  1182. this.setState({ departmenttSearch: e });
  1183. }}
  1184. >
  1185. {departmentArr.map(function (item) {
  1186. return (
  1187. <Select.Option key={item.id}>{item.name}</Select.Option>
  1188. );
  1189. })}
  1190. </Select> */}
  1191. <Button type="primary" onClick={this.search}>
  1192. 搜索
  1193. </Button>
  1194. <Button onClick={this.reset}>重置</Button>
  1195. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  1196. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  1197. <span>订单时间 :</span>
  1198. <RangePicker
  1199. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1200. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1201. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1202. </div> */}
  1203. </div>
  1204. </TabPane>
  1205. <TabPane tab="更改表格显示数据" key="2">
  1206. <div style={{ marginLeft: 10 }}>
  1207. <ChooseList
  1208. columns={this.state.columns}
  1209. changeFn={this.changeList}
  1210. changeList={this.state.changeList}
  1211. top={55}
  1212. margin={11}
  1213. />
  1214. </div>
  1215. </TabPane>
  1216. </Tabs>
  1217. <div className="patent-table">
  1218. <Spin spinning={this.state.loading}>
  1219. <Table
  1220. columns={
  1221. this.state.changeList
  1222. ? this.state.changeList
  1223. : this.state.columns
  1224. }
  1225. dataSource={this.state.dataSource}
  1226. expandedRowRender={expandedRowRender}
  1227. // rowSelection={rowSelection}
  1228. pagination={this.state.pagination}
  1229. onRowClick={this.tableRowClick.bind(this)}
  1230. bordered
  1231. size="small"
  1232. />
  1233. </Spin>
  1234. </div>
  1235. <Assign
  1236. title="任务"
  1237. selApi={"/api/admin/orderProject/projectDistribution"}
  1238. data={this.state.assignData}
  1239. showDesc={this.state.assignVisible}
  1240. closeDesc={this.closeAssign.bind(this)}
  1241. fenpaiData={8}
  1242. type={this.state.nub == "咨询师经理" ? 1 : 2}
  1243. // 判断是转交按钮还是分配任务按钮
  1244. // chooseBtn={this.state.nub == "咨询师经理" ? true : false}
  1245. roleName={this.state.nub}
  1246. requestMethod={"post"}
  1247. />
  1248. <Modal
  1249. className="customeDetails"
  1250. footer=""
  1251. title=""
  1252. width="1200px"
  1253. visible={this.state.visible}
  1254. onOk={this.visitOk}
  1255. onCancel={this.visitCancel}
  1256. >
  1257. <Tabs activeKey={this.state.activeKey} onChange={this.orderChange} tabBarExtraContent={
  1258. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  1259. <OrderItemStatus deleteSign={this.state.deleteSign} />
  1260. </div>
  1261. }>
  1262. <TabPane tab="任务详情" key="1">
  1263. <Form
  1264. layout="horizontal"
  1265. onSubmit={this.handleSubmit}
  1266. id="demand-form"
  1267. style={{ paddingBottom: "40px" }}
  1268. >
  1269. <Spin spinning={this.state.loading}>
  1270. <div className="clearfix">
  1271. <FormItem
  1272. className="half-item"
  1273. {...formItemLayout}
  1274. label="订单编号"
  1275. >
  1276. <span>{this.state.orderNo}</span>
  1277. </FormItem>
  1278. <FormItem
  1279. className="half-item"
  1280. {...formItemLayout}
  1281. label="合同编号"
  1282. >
  1283. <span>{this.state.contractNo}</span>
  1284. </FormItem>
  1285. <FormItem
  1286. className="half-item"
  1287. {...formItemLayout}
  1288. label="客户名称"
  1289. >
  1290. <span>{this.state.userName}</span>
  1291. <EnterpriseNameChange
  1292. type='journal'
  1293. style={{ marginLeft: 10 }}
  1294. enterpriseId={this.state.orderUid} />
  1295. </FormItem>
  1296. <FormItem
  1297. className="half-item"
  1298. {...formItemLayout}
  1299. label="合同签订时间"
  1300. >
  1301. <span>{this.state.signDate}</span>
  1302. </FormItem>
  1303. <FormItem
  1304. className="half-item"
  1305. {...formItemLayout}
  1306. label="流程状态"
  1307. >
  1308. <span>{getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}</span>
  1309. </FormItem>
  1310. <FormItem
  1311. className="half-item"
  1312. {...formItemLayout}
  1313. label="结算状态"
  1314. >
  1315. <span>
  1316. {getLiquidationStatus(this.state.liquidationStatus)}
  1317. </span>
  1318. </FormItem>
  1319. <FormItem
  1320. className="half-item"
  1321. {...formItemLayout}
  1322. label="企业联系人"
  1323. >
  1324. <span>{this.state.contacts}</span>
  1325. </FormItem>
  1326. <FormItem
  1327. className="half-item"
  1328. {...formItemLayout}
  1329. label="联系人电话"
  1330. >
  1331. <span>{this.state.contactMobile}</span>
  1332. </FormItem>
  1333. <FormItem
  1334. className="half-item"
  1335. {...formItemLayout}
  1336. label="企业法人"
  1337. >
  1338. <span>{this.state.legalPerson}</span>
  1339. </FormItem>
  1340. <FormItem
  1341. className="half-item"
  1342. {...formItemLayout}
  1343. label="法人电话"
  1344. >
  1345. <span>{this.state.legalPersonTel}</span>
  1346. </FormItem>
  1347. <FormItem
  1348. className="half-item"
  1349. {...formItemLayout}
  1350. label="签单金额(万元)"
  1351. >
  1352. <span>{this.state.totalAmount}</span>
  1353. </FormItem>
  1354. <FormItem
  1355. className="half-item"
  1356. {...formItemLayout}
  1357. label="首付金额(万元)"
  1358. >
  1359. <span>{this.state.firstAmount}</span>
  1360. </FormItem>
  1361. <FormItem
  1362. className="half-item"
  1363. {...formItemLayout}
  1364. label="特批立项"
  1365. >
  1366. <span>{getApprovedState(this.state.approval)}</span>
  1367. </FormItem>
  1368. <FormItem
  1369. className="half-item"
  1370. {...formItemLayout}
  1371. label="已收款项(万元)"
  1372. >
  1373. <span>{this.state.settlementAmount}</span>
  1374. </FormItem>
  1375. <div className="clearfix">
  1376. <FormItem
  1377. labelCol={{ span: 4 }}
  1378. wrapperCol={{ span: 16 }}
  1379. label="订单留言"
  1380. >
  1381. <p style={{ width: 500, wordWrap: "break-word" }}>
  1382. {this.state.orderRemarks}
  1383. </p>
  1384. </FormItem>
  1385. </div>
  1386. <div className="clearfix">
  1387. <FormItem
  1388. className="half-item"
  1389. {...formItemLayout}
  1390. label="订单负责人"
  1391. >
  1392. <span>{this.state.salesmanName}</span>
  1393. </FormItem>
  1394. <FormItem
  1395. className="half-item"
  1396. {...formItemLayout}
  1397. label="订单负责人电话"
  1398. >
  1399. <span>{this.state.salesmanMobile}</span>
  1400. </FormItem>
  1401. <FormItem
  1402. className="half-item"
  1403. {...formItemLayout}
  1404. label="订单部门"
  1405. >
  1406. <span>{this.state.depName}</span>
  1407. </FormItem>
  1408. </div>
  1409. <div className="clearfix">
  1410. <FormItem
  1411. className="half-item"
  1412. {...formItemLayout}
  1413. label="当前财务负责人"
  1414. >
  1415. <span>{this.state.nowFinance}</span>
  1416. </FormItem>
  1417. <FormItem
  1418. className="half-item"
  1419. {...formItemLayout}
  1420. label="当前财务负责人电话"
  1421. >
  1422. <span>{this.state.nowFinanceMobile}</span>
  1423. </FormItem>
  1424. </div>
  1425. <div className="clearfix">
  1426. <FormItem
  1427. className="half-item"
  1428. {...formItemLayout}
  1429. style={{ opacity: ".5" }}
  1430. label="原订单负责人"
  1431. >
  1432. <span>{this.state.oldSalesmanName}</span>
  1433. </FormItem>
  1434. <FormItem
  1435. className="half-item"
  1436. {...formItemLayout}
  1437. style={{ opacity: ".5" }}
  1438. label="原订单负责人电话"
  1439. >
  1440. <span>{this.state.oldSalesmanMobile}</span>
  1441. </FormItem>
  1442. </div>
  1443. <div className="clearfix">
  1444. <FormItem
  1445. className="half-item"
  1446. {...formItemLayout}
  1447. style={{ opacity: ".5" }}
  1448. label="实际财务操作人"
  1449. >
  1450. <span>{this.state.financeName}</span>
  1451. </FormItem>
  1452. <FormItem
  1453. className="half-item"
  1454. {...formItemLayout}
  1455. style={{ opacity: ".5" }}
  1456. label="实际财务操作人电话"
  1457. >
  1458. <span>{this.state.financeMobile}</span>
  1459. </FormItem>
  1460. </div>
  1461. <div className="clearfix">
  1462. <FormItem
  1463. className="half-item"
  1464. {...formItemLayout}
  1465. label="订单留言"
  1466. >
  1467. <span>{this.state.orderRemarks}</span>
  1468. </FormItem>
  1469. <FormItem
  1470. className="half-item"
  1471. {...formItemLayout}
  1472. label=""
  1473. >
  1474. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  1475. </FormItem>
  1476. </div>
  1477. <OrderRiZi
  1478. dataSourcerizhi={this.state.dataSourceY}
  1479. closeOrderLog={this.closeOrderLog}
  1480. visible={this.state.avisible}
  1481. loading={this.state.loading}
  1482. />
  1483. <div>
  1484. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  1485. 项目业务
  1486. </span>
  1487. {this.state.processStatus == 0 ? (
  1488. <Button
  1489. type="primary"
  1490. onClick={this.addDetailed}
  1491. style={{
  1492. float: "right",
  1493. marginRight: "50px",
  1494. marginBottom: "15px",
  1495. }}
  1496. >
  1497. 添加项目明细
  1498. </Button>
  1499. ) : (
  1500. ""
  1501. )}
  1502. </div>
  1503. <div className="patent-table">
  1504. <Spin spinning={this.state.loading}>
  1505. <Table
  1506. columns={this.state.columnsX}
  1507. dataSource={this.state.dataSourceX}
  1508. pagination={this.state.paginations}
  1509. onRowClick={this.tableRowClickX}
  1510. expandedRowRender={expandedRowRenderVip}
  1511. rowClassName={this.addRowColor}
  1512. bordered
  1513. size="small"
  1514. />
  1515. </Spin>
  1516. </div>
  1517. </div>
  1518. </Spin>
  1519. </Form>
  1520. </TabPane>
  1521. <TabPane tab="订单详情" key="2">
  1522. <Spin spinning={this.state.loading}>
  1523. <OrderDetail
  1524. orderUid={this.state.orderUid}
  1525. orderData={this.state.orderData}
  1526. getOrderLog={this.getOrderLog}
  1527. dataSourceX={this.state.dataSourceX}
  1528. contactList={this.state.jiedian}
  1529. orderNo={this.state.orderNo}
  1530. totalCui={this.state.totalCui}
  1531. contactListNew={this.state.jiedianNew}
  1532. pictureUrl={this.state.contractPictureUrl}
  1533. />
  1534. </Spin>
  1535. </TabPane>
  1536. </Tabs>
  1537. </Modal>
  1538. {/* {this.state.addnextVisible && <ProjectDetailsReadOnly
  1539. infor={this.state.dataInfor}
  1540. visible={this.state.addnextVisible}
  1541. onCancel={this.nextCancel}
  1542. />} */}
  1543. {
  1544. // 项目业务详情
  1545. this.state.addnextVisible &&
  1546. <NewEditProject
  1547. readOnly={true}
  1548. visible={this.state.addnextVisible}
  1549. dataInfor={this.state.dataInfor}
  1550. onCancel={this.nextCancel}
  1551. />
  1552. }
  1553. </div>
  1554. );
  1555. },
  1556. });
  1557. export default Task;