taskAssignment.jsx 48 KB

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