projectDetails.jsx 74 KB

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