taskAssignment.jsx 49 KB

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