taskAssignment.jsx 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563
  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. processStatus: thisdata.processStatus, //流程状态
  447. liquidationStatus: thisdata.liquidationStatus, //结算状态
  448. contacts: thisdata.contacts, //企业联系人
  449. contactMobile: thisdata.contactMobile, //联系人电话
  450. legalPerson: thisdata.legalPerson, //法人
  451. legalPersonTel: thisdata.legalPersonTel, //法人电话
  452. firstAmount: thisdata.firstAmount, //签单金额
  453. totalAmount: thisdata.totalAmount, //首付金额
  454. approval: thisdata.approval, //特批状态
  455. settlementAmount: thisdata.settlementAmount, //已收款项
  456. orderRemarks: thisdata.orderRemarks, //订单留言
  457. orgCodeUrl: thisdata.contractPictureUrl
  458. ? splitUrl(
  459. thisdata.contractPictureUrl,
  460. ",",
  461. globalConfig.avatarHost + "/upload"
  462. )
  463. : [], //图片地址
  464. salesmanName: thisdata.salesmanName, //营销员名称
  465. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  466. financeName: thisdata.financeName, //财务名称
  467. financeMobile: thisdata.financeMobile, //财务电话
  468. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  469. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  470. nowFinance: thisdata.nowFinance, //财务名称
  471. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  472. depName: thisdata.depName, //订单部门
  473. deleteSign: thisdata.deleteSign,
  474. });
  475. }
  476. }.bind(this),
  477. }).always(
  478. function () {
  479. this.setState({
  480. loading: false,
  481. });
  482. }.bind(this)
  483. );
  484. },
  485. //项目列表
  486. xiangmu(orderNos) {
  487. $.ajax({
  488. method: "get",
  489. dataType: "json",
  490. crossDomain: false,
  491. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  492. data: {
  493. orderNo: orderNos,
  494. },
  495. success: function (data) {
  496. let theArr = [];
  497. if (data.error.length || data.data.list == "") {
  498. if (data.error && data.error.length) {
  499. message.warning(data.error[0].message);
  500. }
  501. } else {
  502. for (let i = 0; i < data.data.length; i++) {
  503. let thisdata = data.data[i];
  504. thisdata.key = i;
  505. theArr.push(thisdata);
  506. }
  507. }
  508. this.setState({
  509. dataSourceX: theArr,
  510. });
  511. }.bind(this),
  512. }).always(
  513. function () {
  514. this.setState({
  515. loading: false,
  516. });
  517. }.bind(this)
  518. );
  519. },
  520. //关闭详情
  521. visitCancel() {
  522. this.setState({
  523. visible: false,
  524. activeKey: "1",
  525. });
  526. this.loadData(this.state.page);
  527. },
  528. visitOk() {
  529. this.setState({
  530. visible: false,
  531. });
  532. this.loadData(this.state.page);
  533. },
  534. closeDesc(e, s) {
  535. this.state.showDesc = e;
  536. if (s) {
  537. this.loadData(this.state.page);
  538. }
  539. },
  540. closeAssign(e, s) {
  541. this.state.roleName = "";
  542. this.state.assignVisible = e;
  543. if (s) {
  544. this.loadData(this.state.page);
  545. }
  546. },
  547. nextCancel() {
  548. this.setState({
  549. addnextVisible: false,
  550. displayFees: "none",
  551. officialCost: "", //是否有官费
  552. costReduction: "", //是否有费减
  553. });
  554. },
  555. //点击打卡项目详情
  556. tableRowClickX(record) {
  557. if (record.type == "1") {
  558. this.setState({
  559. displayFees: "block",
  560. costReduction: record.costReduction,
  561. officialCost: record.officialCost,
  562. });
  563. } else {
  564. this.setState({
  565. displayFees: "none",
  566. });
  567. }
  568. this.setState({
  569. jid: record.id, //项目ID
  570. kid: record.commodityId, //商品ID
  571. commodityName: record.commodityName, //金额
  572. commodityPrice: record.commodityPrice, //金额
  573. commodityQuantity: record.commodityQuantity, //数量
  574. taskComment: record.taskComment, //备注
  575. main: record.main.toString(), //是否为主要
  576. addnextVisible: true,
  577. dataInfor: record,
  578. addState: 0,
  579. });
  580. },
  581. search() {
  582. this.loadData();
  583. },
  584. reset() {
  585. this.state.nameSearch = "";
  586. this.state.releaseDate = [];
  587. this.state.orderNoSearch = "";
  588. this.state.taskNoSearch = "";
  589. this.state.departmenttSearch = undefined;
  590. this.state.distribution = undefined;
  591. this.Cascaders.empty();
  592. this.loadData();
  593. },
  594. searchSwitch() {
  595. this.setState({
  596. searchMore: !this.state.searchMore,
  597. });
  598. },
  599. //部门
  600. departmentList() {
  601. this.setState({
  602. loading: true,
  603. });
  604. $.ajax({
  605. method: "get",
  606. dataType: "json",
  607. crossDomain: false,
  608. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  609. data: {},
  610. success: function (data) {
  611. let thedata = data.data;
  612. let theArr = [];
  613. if (!thedata) {
  614. if (data.error && data.error.length) {
  615. message.warning(data.error[0].message);
  616. }
  617. thedata = {};
  618. } else {
  619. thedata.map(function (item, index) {
  620. theArr.push({
  621. key: index,
  622. name: item.name,
  623. id: item.id,
  624. });
  625. });
  626. }
  627. this.setState({
  628. departmentArr: theArr,
  629. });
  630. }.bind(this),
  631. }).always(
  632. function () {
  633. this.setState({
  634. loading: false,
  635. });
  636. }.bind(this)
  637. );
  638. },
  639. resolutionCancel() {
  640. this.setState({
  641. resolutionVisible: false,
  642. });
  643. },
  644. rizhi() {
  645. this.setState({
  646. loading: true,
  647. });
  648. $.ajax({
  649. method: "get",
  650. dataType: "json",
  651. crossDomain: false,
  652. url: "/api/admin/newOrder/selectOrderLog",
  653. data: {
  654. orderNo: this.state.orderNo,
  655. },
  656. success: function (data) {
  657. let theArr = [];
  658. let thisData = data.data;
  659. if (!thisData.length) {
  660. if (data.error && data.error.length) {
  661. message.warning(data.error[0].message);
  662. }
  663. thisData = {};
  664. } else {
  665. for (let i = 0; i < data.data.length; i++) {
  666. let thisdata = data.data[i];
  667. theArr.push({
  668. processName: thisdata.processName,
  669. adminName: thisdata.adminName,
  670. createDate: thisdata.createDate,
  671. remarks: thisdata.remarks,
  672. });
  673. }
  674. }
  675. this.setState({
  676. dataSourceY: theArr,
  677. });
  678. }.bind(this),
  679. }).always(
  680. function () {
  681. this.setState({
  682. loading: false,
  683. });
  684. }.bind(this)
  685. );
  686. },
  687. closeOrderLog() {
  688. this.setState({
  689. avisible: false,
  690. });
  691. },
  692. getOrderLog() {
  693. this.setState({
  694. avisible: true,
  695. });
  696. this.rizhi();
  697. },
  698. orderChange(key) {
  699. this.setState({
  700. activeKey: key,
  701. });
  702. if (key == 2) {
  703. this.orderDetailData(this.state.orderNo);
  704. this.xiangmu(this.state.orderNo);
  705. this.jiedian(this.state.orderNo);
  706. this.jiedianNew(this.state.orderNo);
  707. }
  708. },
  709. //节点列表
  710. jiedian(orderNos) {
  711. $.ajax({
  712. method: "get",
  713. dataType: "json",
  714. crossDomain: false,
  715. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  716. data: {
  717. orderNo: orderNos,
  718. },
  719. success: function (data) {
  720. let theArr = [];
  721. let thisData = [];
  722. if (data.error.length || data.data.list == "") {
  723. if (data.error && data.error.length) {
  724. message.warning(data.error[0].message);
  725. }
  726. } else {
  727. for (let i = 0; i < data.data.length; i++) {
  728. thisData = data.data[i];
  729. theArr.push({
  730. key: i,
  731. dunSubject: thisData.dunSubject
  732. ? thisData.dunSubject.toString()
  733. : "", //催款科目
  734. id: thisData.id, //节点Id
  735. money: thisData.money, //催款金额
  736. dunStatus: thisData.dunStatus, //催款状态
  737. });
  738. }
  739. this.setState({
  740. jiedian: theArr,
  741. });
  742. }
  743. }.bind(this),
  744. });
  745. },
  746. jiedianNew(orderNos) {
  747. $.ajax({
  748. method: "get",
  749. dataType: "json",
  750. crossDomain: false,
  751. url:
  752. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  753. data: {
  754. orderNo: orderNos,
  755. },
  756. success: function (data) {
  757. if (data.error && data.error.length) {
  758. message.warning(data.error[0].message);
  759. } else {
  760. let theArr = [];
  761. let thisData = [];
  762. let arr = data.data || [];
  763. let totalCui = 0;
  764. for (let i = 0; i < arr.length; i++) {
  765. thisData = arr[i];
  766. totalCui += +thisData.money;
  767. theArr.push({
  768. key: i,
  769. dunSubject: thisData.dunSubject
  770. ? thisData.dunSubject.toString()
  771. : "", //催款科目
  772. id: thisData.id, //节点Id
  773. money: thisData.money, //催款金额
  774. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  775. commodityName: thisData.commodityName,
  776. projectType: thisData.projectType,
  777. dunTypeName: thisData.dunTypeName,
  778. status: thisData.status,
  779. waitDay: thisData.waitDay,
  780. effectiveCount: thisData.effectiveCount,
  781. startDate: thisData.startDate,
  782. dunType: thisData.dunType,
  783. appropriationRatio: thisData.appropriationRatio,
  784. customizeName: thisData.customizeName,
  785. customizeTimes: thisData.customizeTimes,
  786. });
  787. }
  788. if (!totalCui) {
  789. totalCui = 0;
  790. }
  791. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  792. this.setState({
  793. jiedianNew: theArr,
  794. totalCui,
  795. });
  796. }
  797. }.bind(this),
  798. }).always(
  799. function () {
  800. this.setState({
  801. loading: false,
  802. });
  803. }.bind(this)
  804. );
  805. },
  806. orderDetailData(orderNos) {
  807. this.setState({
  808. loading: true,
  809. });
  810. $.ajax({
  811. method: "get",
  812. dataType: "json",
  813. crossDomain: false,
  814. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  815. data: {
  816. orderNo: orderNos,
  817. },
  818. success: function (data) {
  819. if (data.error.length || data.data.list == "") {
  820. if (data.error && data.error.length) {
  821. message.warning(data.error[0].message);
  822. this.setState({
  823. loading: false,
  824. });
  825. }
  826. } else {
  827. let thisdata = data.data;
  828. this.setState({
  829. orderUid: thisdata.uid,
  830. loading: false,
  831. userName: thisdata.userName,
  832. primaryOrderNo: thisdata.primaryOrder,
  833. additionalOrder: thisdata.additionalOrder,
  834. contractNo: thisdata.contractNo,
  835. orderData: thisdata,
  836. isAddition: thisdata.additionalOrder ? true : false,
  837. contractPictureUrl: thisdata.contractPictureUrl
  838. ? splitUrl(
  839. thisdata.contractPictureUrl,
  840. ",",
  841. globalConfig.avatarHost + "/upload"
  842. )
  843. : [],
  844. deleteSign: thisdata.deleteSign,
  845. });
  846. }
  847. }.bind(this),
  848. });
  849. },
  850. changeList(arr) {
  851. const newArr = [];
  852. this.state.columns.forEach(item => {
  853. arr.forEach(val => {
  854. if (val === item.title) {
  855. newArr.push(item);
  856. }
  857. });
  858. });
  859. this.setState({
  860. changeList: newArr
  861. });
  862. },
  863. // 可展开颜色不同
  864. addRowColor(record) {
  865. if (!!record.splitList && record.splitList.length > 0) {
  866. return 'light'
  867. } else {
  868. return 'dark'
  869. }
  870. },
  871. render() {
  872. const expandedRowRender = (e) => {
  873. const data = e.splitList;
  874. let columns = [];
  875. if (e.splitList instanceof Array && e.splitList.length) {
  876. columns = [
  877. {
  878. title: "编号",
  879. dataIndex: "splitSuper",
  880. key: "splitSuper",
  881. render: (text, record) => {
  882. return text + "-" + record.splitId;
  883. },
  884. },
  885. {
  886. title: "项目名称",
  887. dataIndex: "taskName",
  888. key: "taskName",
  889. render: (text, record) => {
  890. return <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span></span>
  891. }
  892. },
  893. {
  894. title: "订单编号",
  895. dataIndex: "orderNo",
  896. key: "orderNo",
  897. },
  898. {
  899. title: "业务类别",
  900. dataIndex: "cname",
  901. key: "cname",
  902. },
  903. {
  904. title: "客户名称",
  905. dataIndex: "userName",
  906. key: "userName",
  907. render: text => {
  908. return (
  909. <Tooltip title={text}>
  910. <div style={{
  911. maxWidth: '150px',
  912. overflow: 'hidden',
  913. textOverflow: "ellipsis",
  914. whiteSpace: 'nowrap',
  915. }}>{text}</div>
  916. </Tooltip>
  917. )
  918. }
  919. },
  920. {
  921. title: "项目状态",
  922. dataIndex: "projectStatus",
  923. key: "projectStatus",
  924. render: (text) => {
  925. return getProjectName(text);
  926. },
  927. },
  928. {
  929. title: "分配时间",
  930. dataIndex: "taskDate",
  931. key: "taskDate",
  932. },
  933. {
  934. title: "任务数量",
  935. dataIndex: "commodityQuantity",
  936. key: "commodityQuantity",
  937. },
  938. {
  939. title: "订单部门",
  940. dataIndex: "depName",
  941. key: "depName",
  942. },
  943. {
  944. title: "拆分操作人",
  945. dataIndex: "splitAname",
  946. key: "splitAname",
  947. },
  948. {
  949. title: "项目负责人",
  950. dataIndex: "receiverName",
  951. key: "receiverName",
  952. },
  953. {
  954. title: "拆分时间",
  955. dataIndex: "splitTimes",
  956. key: "splitTimes",
  957. },
  958. {
  959. title: "操作",
  960. dataIndex: "caozuo",
  961. key: "caouzo",
  962. render: (text, record) => {
  963. return (
  964. <div>
  965. <Button
  966. type="primary"
  967. style={{ margin: "0 10px" }}
  968. disabled={record.distributeSign == 1 ? true : false}
  969. onClick={(e) => {
  970. e.stopPropagation(), this.evaluate(record, "咨询师经理");
  971. }}
  972. >
  973. 转交
  974. </Button>
  975. <Button
  976. type="primary"
  977. style={{ margin: "0 10px" }}
  978. disabled={record.distributeSign == 1 ? true : false}
  979. onClick={(e) => {
  980. e.stopPropagation(), this.evaluate(record, "咨询师");
  981. }}
  982. >
  983. 分配任务
  984. </Button>
  985. </div>
  986. );
  987. },
  988. },
  989. ];
  990. return (
  991. <Table
  992. columns={columns}
  993. dataSource={data}
  994. pagination={false}
  995. onRowClick={this.tableRowClick.bind(this)}
  996. />
  997. );
  998. } else {
  999. columns = [];
  1000. return (
  1001. <p style={{ fontWeight: "bold", color: "red", textAlign: "center" }}>
  1002. 此项目暂未拆分
  1003. </p>
  1004. );
  1005. }
  1006. };
  1007. const expandedRowRenderVip = (e) => {
  1008. const data = e.splitList;
  1009. let columns = [];
  1010. if (data instanceof Array && data.length) {
  1011. if (e.cSort == 6) {
  1012. columns = [
  1013. {
  1014. title: "负责人",
  1015. dataIndex: "receiverName",
  1016. key: "receiverName",
  1017. },
  1018. {
  1019. title: "负责人电话",
  1020. dataIndex: "receiverMobile",
  1021. key: "receiverMobile",
  1022. },
  1023. {
  1024. title: "项目状态",
  1025. dataIndex: "projectStatus",
  1026. key: "projectStatus",
  1027. render: (text) => {
  1028. return getProjectName(text);
  1029. },
  1030. },
  1031. {
  1032. title: "本次派单",
  1033. dataIndex: "serviceYear",
  1034. key: "serviceYear",
  1035. },
  1036. {
  1037. title: "项目说明",
  1038. dataIndex: "taskComment",
  1039. key: "taskComment",
  1040. render: (text) => {
  1041. return (
  1042. <Tooltip title={text}>
  1043. <div
  1044. // style={{
  1045. // width: 100,
  1046. // overflow: "hidden",
  1047. // whiteSpace: "nowrap",
  1048. // textOverflow: "ellipsis",
  1049. // }}
  1050. >{text}</div>
  1051. </Tooltip>
  1052. )
  1053. },
  1054. },
  1055. ];
  1056. } else {
  1057. columns = [
  1058. {
  1059. title: "子项目名称",
  1060. dataIndex: "taskName",
  1061. key: "taskName"
  1062. },
  1063. {
  1064. title: "子项目数量",
  1065. dataIndex: "commodityQuantity",
  1066. key: "commodityQuantity"
  1067. },
  1068. {
  1069. title: "拆分操作人",
  1070. dataIndex: "splitAname",
  1071. key: "splitAname"
  1072. },
  1073. {
  1074. title: "项目负责人",
  1075. dataIndex: "receiverName",
  1076. key: "receiverName"
  1077. },
  1078. {
  1079. title: "拆分时间",
  1080. dataIndex: "splitTimes",
  1081. key: "splitTimes"
  1082. }
  1083. ]
  1084. }
  1085. return (
  1086. <Table
  1087. columns={columns}
  1088. dataSource={data}
  1089. pagination={false}
  1090. />
  1091. );
  1092. } else {
  1093. columns = [];
  1094. return (
  1095. <p
  1096. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  1097. >
  1098. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  1099. </p>
  1100. );
  1101. }
  1102. };
  1103. const rowSelection = {
  1104. selectedRowKeys: this.state.selectedRowKeys,
  1105. onChange: (selectedRowKeys, selectedRows) => {
  1106. this.setState({
  1107. selectedRows: selectedRows.slice(-1),
  1108. selectedRowKeys: selectedRowKeys.slice(-1),
  1109. });
  1110. },
  1111. };
  1112. const formItemLayout = {
  1113. labelCol: { span: 8 },
  1114. wrapperCol: { span: 14 },
  1115. };
  1116. let departmentArr = this.state.departmentArr || [];
  1117. return (
  1118. <div className="user-content">
  1119. {this.state.resVisible ? (
  1120. <ResolutionDetail
  1121. cancel={this.resCancel}
  1122. detail={this.state.resRecord}
  1123. visible={this.state.resVisible}
  1124. id={this.state.resRecord.orderNo}
  1125. />
  1126. ) : (
  1127. ""
  1128. )}
  1129. <ResolutionPro
  1130. resolutionVisible={this.state.resolutionVisible}
  1131. number={this.state.resolutionNumber}
  1132. name={this.state.resolutionName}
  1133. cancel={this.resolutionCancel}
  1134. id={this.state.resolutionId}
  1135. loadData={this.loadData}
  1136. />
  1137. <ShowModalDiv ShowModal={this.state.showModal} />
  1138. <div className="content-title">
  1139. <span>任务派单</span>
  1140. </div>
  1141. <Tabs defaultActiveKey="1" onChange={this.callback} className="test">
  1142. <TabPane tab="搜索" key="1">
  1143. <div className="user-search">
  1144. <Input
  1145. placeholder="客户名称"
  1146. value={this.state.nameSearch}
  1147. style={{ marginLeft: 10 }}
  1148. onChange={(e) => {
  1149. this.setState({ nameSearch: e.target.value });
  1150. }}
  1151. />
  1152. <Input
  1153. placeholder="订单编号"
  1154. value={this.state.orderNoSearch}
  1155. onChange={(e) => {
  1156. this.setState({ orderNoSearch: e.target.value });
  1157. }}
  1158. />
  1159. <Input
  1160. placeholder="任务编号"
  1161. value={this.state.taskNoSearch}
  1162. onChange={(e) => {
  1163. this.setState({ taskNoSearch: e.target.value });
  1164. }}
  1165. />
  1166. <Cascaders
  1167. ref={ref => this.Cascaders = ref}
  1168. placeholder="选择部门"
  1169. height={28}
  1170. onSel={(e) => {
  1171. this.setState({
  1172. departmenttSearch: JSON.stringify(e)
  1173. })
  1174. }}
  1175. />
  1176. {/* <Select
  1177. placeholder="选择部门"
  1178. style={{ width: 200, marginRight: "10px" }}
  1179. value={this.state.departmenttSearch}
  1180. onChange={(e) => {
  1181. this.setState({ departmenttSearch: e });
  1182. }}
  1183. >
  1184. {departmentArr.map(function (item) {
  1185. return (
  1186. <Select.Option key={item.id}>{item.name}</Select.Option>
  1187. );
  1188. })}
  1189. </Select> */}
  1190. <Button type="primary" onClick={this.search}>
  1191. 搜索
  1192. </Button>
  1193. <Button onClick={this.reset}>重置</Button>
  1194. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  1195. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  1196. <span>订单时间 :</span>
  1197. <RangePicker
  1198. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1199. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1200. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1201. </div> */}
  1202. </div>
  1203. </TabPane>
  1204. <TabPane tab="更改表格显示数据" key="2">
  1205. <div style={{ marginLeft: 10 }}>
  1206. <ChooseList
  1207. columns={this.state.columns}
  1208. changeFn={this.changeList}
  1209. changeList={this.state.changeList}
  1210. top={55}
  1211. margin={11}
  1212. />
  1213. </div>
  1214. </TabPane>
  1215. </Tabs>
  1216. <div className="patent-table">
  1217. <Spin spinning={this.state.loading}>
  1218. <Table
  1219. columns={
  1220. this.state.changeList
  1221. ? this.state.changeList
  1222. : this.state.columns
  1223. }
  1224. dataSource={this.state.dataSource}
  1225. expandedRowRender={expandedRowRender}
  1226. // rowSelection={rowSelection}
  1227. pagination={this.state.pagination}
  1228. onRowClick={this.tableRowClick.bind(this)}
  1229. bordered
  1230. size="small"
  1231. />
  1232. </Spin>
  1233. </div>
  1234. <Assign
  1235. title="任务"
  1236. selApi={"/api/admin/orderProject/projectDistribution"}
  1237. data={this.state.assignData}
  1238. showDesc={this.state.assignVisible}
  1239. closeDesc={this.closeAssign.bind(this)}
  1240. fenpaiData={8}
  1241. type={this.state.nub == "咨询师经理" ? 1 : 2}
  1242. // 判断是转交按钮还是分配任务按钮
  1243. // chooseBtn={this.state.nub == "咨询师经理" ? true : false}
  1244. roleName={this.state.nub}
  1245. requestMethod={"post"}
  1246. />
  1247. <Modal
  1248. className="customeDetails"
  1249. footer=""
  1250. title=""
  1251. width="1200px"
  1252. visible={this.state.visible}
  1253. onOk={this.visitOk}
  1254. onCancel={this.visitCancel}
  1255. >
  1256. <Tabs activeKey={this.state.activeKey} onChange={this.orderChange} tabBarExtraContent={
  1257. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  1258. <OrderItemStatus deleteSign={this.state.deleteSign} />
  1259. </div>
  1260. }>
  1261. <TabPane tab="任务详情" key="1">
  1262. <Form
  1263. layout="horizontal"
  1264. onSubmit={this.handleSubmit}
  1265. id="demand-form"
  1266. style={{ paddingBottom: "40px" }}
  1267. >
  1268. <Spin spinning={this.state.loading}>
  1269. <div className="clearfix">
  1270. <FormItem
  1271. className="half-item"
  1272. {...formItemLayout}
  1273. label="订单编号"
  1274. >
  1275. <span>{this.state.orderNo}</span>
  1276. </FormItem>
  1277. <FormItem
  1278. className="half-item"
  1279. {...formItemLayout}
  1280. label="合同编号"
  1281. >
  1282. <span>{this.state.contractNo}</span>
  1283. </FormItem>
  1284. <FormItem
  1285. className="half-item"
  1286. {...formItemLayout}
  1287. label="客户名称"
  1288. >
  1289. <span>{this.state.userName}</span>
  1290. <EnterpriseNameChange
  1291. type='journal'
  1292. style={{ marginLeft: 10 }}
  1293. enterpriseId={this.state.orderUid} />
  1294. </FormItem>
  1295. <FormItem
  1296. className="half-item"
  1297. {...formItemLayout}
  1298. label="合同签订时间"
  1299. >
  1300. <span>{this.state.signDate}</span>
  1301. </FormItem>
  1302. <FormItem
  1303. className="half-item"
  1304. {...formItemLayout}
  1305. label="流程状态"
  1306. >
  1307. <span>{getProcessStatus(this.state.processStatus)}</span>
  1308. </FormItem>
  1309. <FormItem
  1310. className="half-item"
  1311. {...formItemLayout}
  1312. label="结算状态"
  1313. >
  1314. <span>
  1315. {getLiquidationStatus(this.state.liquidationStatus)}
  1316. </span>
  1317. </FormItem>
  1318. <FormItem
  1319. className="half-item"
  1320. {...formItemLayout}
  1321. label="企业联系人"
  1322. >
  1323. <span>{this.state.contacts}</span>
  1324. </FormItem>
  1325. <FormItem
  1326. className="half-item"
  1327. {...formItemLayout}
  1328. label="联系人电话"
  1329. >
  1330. <span>{this.state.contactMobile}</span>
  1331. </FormItem>
  1332. <FormItem
  1333. className="half-item"
  1334. {...formItemLayout}
  1335. label="企业法人"
  1336. >
  1337. <span>{this.state.legalPerson}</span>
  1338. </FormItem>
  1339. <FormItem
  1340. className="half-item"
  1341. {...formItemLayout}
  1342. label="法人电话"
  1343. >
  1344. <span>{this.state.legalPersonTel}</span>
  1345. </FormItem>
  1346. <FormItem
  1347. className="half-item"
  1348. {...formItemLayout}
  1349. label="签单金额(万元)"
  1350. >
  1351. <span>{this.state.totalAmount}</span>
  1352. </FormItem>
  1353. <FormItem
  1354. className="half-item"
  1355. {...formItemLayout}
  1356. label="首付金额(万元)"
  1357. >
  1358. <span>{this.state.firstAmount}</span>
  1359. </FormItem>
  1360. <FormItem
  1361. className="half-item"
  1362. {...formItemLayout}
  1363. label="特批立项"
  1364. >
  1365. <span>{getApprovedState(this.state.approval)}</span>
  1366. </FormItem>
  1367. <FormItem
  1368. className="half-item"
  1369. {...formItemLayout}
  1370. label="已收款项(万元)"
  1371. >
  1372. <span>{this.state.settlementAmount}</span>
  1373. </FormItem>
  1374. <div className="clearfix">
  1375. <FormItem
  1376. labelCol={{ span: 4 }}
  1377. wrapperCol={{ span: 16 }}
  1378. label="订单留言"
  1379. >
  1380. <p style={{ width: 500, wordWrap: "break-word" }}>
  1381. {this.state.orderRemarks}
  1382. </p>
  1383. </FormItem>
  1384. </div>
  1385. <div className="clearfix">
  1386. <FormItem
  1387. className="half-item"
  1388. {...formItemLayout}
  1389. label="订单负责人"
  1390. >
  1391. <span>{this.state.salesmanName}</span>
  1392. </FormItem>
  1393. <FormItem
  1394. className="half-item"
  1395. {...formItemLayout}
  1396. label="订单负责人电话"
  1397. >
  1398. <span>{this.state.salesmanMobile}</span>
  1399. </FormItem>
  1400. <FormItem
  1401. className="half-item"
  1402. {...formItemLayout}
  1403. label="订单部门"
  1404. >
  1405. <span>{this.state.depName}</span>
  1406. </FormItem>
  1407. </div>
  1408. <div className="clearfix">
  1409. <FormItem
  1410. className="half-item"
  1411. {...formItemLayout}
  1412. label="当前财务负责人"
  1413. >
  1414. <span>{this.state.nowFinance}</span>
  1415. </FormItem>
  1416. <FormItem
  1417. className="half-item"
  1418. {...formItemLayout}
  1419. label="当前财务负责人电话"
  1420. >
  1421. <span>{this.state.nowFinanceMobile}</span>
  1422. </FormItem>
  1423. </div>
  1424. <div className="clearfix">
  1425. <FormItem
  1426. className="half-item"
  1427. {...formItemLayout}
  1428. style={{ opacity: ".5" }}
  1429. label="原订单负责人"
  1430. >
  1431. <span>{this.state.oldSalesmanName}</span>
  1432. </FormItem>
  1433. <FormItem
  1434. className="half-item"
  1435. {...formItemLayout}
  1436. style={{ opacity: ".5" }}
  1437. label="原订单负责人电话"
  1438. >
  1439. <span>{this.state.oldSalesmanMobile}</span>
  1440. </FormItem>
  1441. </div>
  1442. <div className="clearfix">
  1443. <FormItem
  1444. className="half-item"
  1445. {...formItemLayout}
  1446. style={{ opacity: ".5" }}
  1447. label="实际财务操作人"
  1448. >
  1449. <span>{this.state.financeName}</span>
  1450. </FormItem>
  1451. <FormItem
  1452. className="half-item"
  1453. {...formItemLayout}
  1454. style={{ opacity: ".5" }}
  1455. label="实际财务操作人电话"
  1456. >
  1457. <span>{this.state.financeMobile}</span>
  1458. </FormItem>
  1459. </div>
  1460. <div className="clearfix">
  1461. <FormItem
  1462. className="half-item"
  1463. {...formItemLayout}
  1464. label="订单留言"
  1465. >
  1466. <span>{this.state.orderRemarks}</span>
  1467. </FormItem>
  1468. <FormItem
  1469. className="half-item"
  1470. {...formItemLayout}
  1471. label=""
  1472. >
  1473. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  1474. </FormItem>
  1475. </div>
  1476. <OrderRiZi
  1477. dataSourcerizhi={this.state.dataSourceY}
  1478. closeOrderLog={this.closeOrderLog}
  1479. visible={this.state.avisible}
  1480. loading={this.state.loading}
  1481. />
  1482. <div>
  1483. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  1484. 项目业务
  1485. </span>
  1486. {this.state.processStatus == 0 ? (
  1487. <Button
  1488. type="primary"
  1489. onClick={this.addDetailed}
  1490. style={{
  1491. float: "right",
  1492. marginRight: "50px",
  1493. marginBottom: "15px",
  1494. }}
  1495. >
  1496. 添加项目明细
  1497. </Button>
  1498. ) : (
  1499. ""
  1500. )}
  1501. </div>
  1502. <div className="patent-table">
  1503. <Spin spinning={this.state.loading}>
  1504. <Table
  1505. columns={this.state.columnsX}
  1506. dataSource={this.state.dataSourceX}
  1507. pagination={this.state.paginations}
  1508. onRowClick={this.tableRowClickX}
  1509. expandedRowRender={expandedRowRenderVip}
  1510. rowClassName={this.addRowColor}
  1511. bordered
  1512. size="small"
  1513. />
  1514. </Spin>
  1515. </div>
  1516. </div>
  1517. </Spin>
  1518. </Form>
  1519. </TabPane>
  1520. <TabPane tab="订单详情" key="2">
  1521. <Spin spinning={this.state.loading}>
  1522. <OrderDetail
  1523. orderUid={this.state.orderUid}
  1524. orderData={this.state.orderData}
  1525. getOrderLog={this.getOrderLog}
  1526. dataSourceX={this.state.dataSourceX}
  1527. contactList={this.state.jiedian}
  1528. orderNo={this.state.orderNo}
  1529. totalCui={this.state.totalCui}
  1530. contactListNew={this.state.jiedianNew}
  1531. pictureUrl={this.state.contractPictureUrl}
  1532. />
  1533. </Spin>
  1534. </TabPane>
  1535. </Tabs>
  1536. </Modal>
  1537. {/* {this.state.addnextVisible && <ProjectDetailsReadOnly
  1538. infor={this.state.dataInfor}
  1539. visible={this.state.addnextVisible}
  1540. onCancel={this.nextCancel}
  1541. />} */}
  1542. {
  1543. // 项目业务详情
  1544. this.state.addnextVisible &&
  1545. <NewEditProject
  1546. readOnly={true}
  1547. visible={this.state.addnextVisible}
  1548. dataInfor={this.state.dataInfor}
  1549. onCancel={this.nextCancel}
  1550. />
  1551. }
  1552. </div>
  1553. );
  1554. },
  1555. });
  1556. export default Task;