taskAssignment.jsx 47 KB

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