projectDetails.jsx 78 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640
  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. examineName: thisdata.examineName,
  589. processStatus: thisdata.processStatus, //流程状态
  590. liquidationStatus: thisdata.liquidationStatus, //结算状态
  591. approval: thisdata.approval, //特批状态
  592. orderRemarks: thisdata.orderRemarks, //订单留言
  593. salesmanName: thisdata.salesmanName, //营销员名称
  594. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  595. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  596. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  597. financeName: thisdata.financeName, //财务名称
  598. financeMobile: thisdata.financeMobile, //财务电话
  599. nowFinance: thisdata.nowFinance, //财务名称
  600. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  601. depName: thisdata.depName, //订单部门
  602. locationProvince: thisdata.locationProvince,
  603. locationCity: thisdata.locationCity,
  604. locationArea: thisdata.locationArea,
  605. ProvinceCity: ProvinceCityArr,
  606. postalAddress: thisdata.postalAddress, //详细地址
  607. outsource: thisdata.outsource,
  608. deleteSign: thisdata.deleteSign,
  609. });
  610. }
  611. }.bind(this),
  612. }).always(
  613. function () {
  614. this.setState({
  615. loading: false,
  616. });
  617. }.bind(this)
  618. );
  619. }
  620. //查看下证信息
  621. loaduserss(id) {
  622. $.ajax({
  623. method: "get",
  624. dataType: "json",
  625. crossDomain: false,
  626. url: globalConfig.context + "/api/admin/orderProject/selectTaskProgress",
  627. data: {
  628. tid: id,
  629. },
  630. success: function (data) {
  631. let theArr = [];
  632. let thisData = [];
  633. if (!thisData) {
  634. if (data.error && data.error.length) {
  635. message.warning(data.error[0].message);
  636. }
  637. } else {
  638. for (let i = 0; i < data.data.length; i++) {
  639. thisData = data.data[i];
  640. theArr.push({
  641. num: i + 1,
  642. key: i,
  643. id: thisData.id, //编号
  644. alreadyNumber: thisData.alreadyNumber, //下证数
  645. licenceTimes: thisData.licenceTimes, //下证时间
  646. notCount: thisData.notCount, //未下证数
  647. flag: true,
  648. });
  649. }
  650. this.setState({
  651. contactList: theArr,
  652. });
  653. }
  654. }.bind(this),
  655. }).always(
  656. function () {
  657. this.setState({
  658. loading: false,
  659. });
  660. }.bind(this)
  661. );
  662. }
  663. jiedianNew(orderNos) {
  664. $.ajax({
  665. method: "get",
  666. dataType: "json",
  667. crossDomain: false,
  668. url:
  669. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  670. data: {
  671. orderNo: orderNos,
  672. },
  673. success: function (data) {
  674. if (data.error && data.error.length) {
  675. message.warning(data.error[0].message);
  676. } else {
  677. let theArr = [];
  678. let thisData = [];
  679. let arr = data.data || [];
  680. let totalCui = 0;
  681. for (let i = 0; i < arr.length; i++) {
  682. thisData = arr[i];
  683. totalCui += +thisData.money;
  684. thisData.key = i;
  685. thisData.dunSubject = thisData.dunSubject
  686. ? thisData.dunSubject.toString()
  687. : "", //催款科目
  688. theArr.push(thisData);
  689. }
  690. if (!totalCui) {
  691. totalCui = 0;
  692. }
  693. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  694. this.setState({
  695. jiedianNew: theArr,
  696. totalCui,
  697. });
  698. }
  699. }.bind(this),
  700. }).always(
  701. function () {
  702. this.setState({
  703. loading: false,
  704. });
  705. }.bind(this)
  706. );
  707. }
  708. orderDetailData(orderNos) {
  709. this.setState({
  710. loading: true,
  711. });
  712. $.ajax({
  713. method: "get",
  714. dataType: "json",
  715. crossDomain: false,
  716. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  717. data: {
  718. orderNo: orderNos,
  719. },
  720. success: function (data) {
  721. if (data.error.length || data.data.list == "") {
  722. if (data.error && data.error.length) {
  723. message.warning(data.error[0].message);
  724. this.setState({
  725. loading: false,
  726. });
  727. }
  728. } else {
  729. let thisdata = data.data;
  730. this.setState({
  731. loading: false,
  732. orderUid: thisdata.uid,
  733. userName: thisdata.userName,
  734. primaryOrderNo: thisdata.primaryOrder,
  735. additionalOrder: thisdata.additionalOrder,
  736. contractNo: thisdata.contractNo,
  737. orderData: thisdata,
  738. isAddition: thisdata.additionalOrder ? true : false,
  739. contractPictureUrl: thisdata.contractPictureUrl
  740. ? splitUrl(
  741. thisdata.contractPictureUrl,
  742. ",",
  743. globalConfig.avatarHost + "/upload"
  744. )
  745. : [],
  746. deleteSign: thisdata.deleteSign,
  747. });
  748. }
  749. }.bind(this),
  750. });
  751. }
  752. //项目列表
  753. xiangmu(orderNos) {
  754. this.setState({
  755. loading: true,
  756. });
  757. $.ajax({
  758. method: "get",
  759. dataType: "json",
  760. crossDomain: false,
  761. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  762. data: {
  763. orderNo: orderNos,
  764. },
  765. success: function (data) {
  766. let theArr = [];
  767. if (data.error.length || data.data.list == "") {
  768. if (data.error && data.error.length) {
  769. message.warning(data.error[0].message);
  770. }
  771. } else {
  772. for (let i = 0; i < data.data.length; i++) {
  773. let thisdata = data.data[i];
  774. thisdata.key = i;
  775. theArr.push(thisdata);
  776. }
  777. }
  778. this.setState({
  779. dataSourceX: theArr,
  780. });
  781. }.bind(this),
  782. }).always(
  783. function () {
  784. this.setState({
  785. loading: false,
  786. });
  787. }.bind(this)
  788. );
  789. }
  790. rizhi() {
  791. this.setState({
  792. loading: true,
  793. });
  794. $.ajax({
  795. method: "get",
  796. dataType: "json",
  797. crossDomain: false,
  798. url: "/api/admin/newOrder/selectOrderLog",
  799. data: {
  800. orderNo: this.props.orderNo,
  801. },
  802. success: function (data) {
  803. let theArr = [];
  804. let thisData = data.data;
  805. if (!thisData.length) {
  806. if (data.error && data.error.length) {
  807. message.warning(data.error[0].message);
  808. }
  809. } else {
  810. for (let i = 0; i < data.data.length; i++) {
  811. let thisdata = data.data[i];
  812. theArr.push({
  813. processName: thisdata.processName,
  814. adminName: thisdata.adminName,
  815. createDate: thisdata.createDate,
  816. remarks: thisdata.remarks,
  817. });
  818. }
  819. }
  820. this.setState({
  821. dataSourceY: theArr,
  822. });
  823. }.bind(this),
  824. }).always(
  825. function () {
  826. this.setState({
  827. loading: false,
  828. });
  829. }.bind(this)
  830. );
  831. }
  832. getOrderLog() {
  833. this.setState({
  834. avisible: true,
  835. });
  836. this.rizhi();
  837. }
  838. componentDidMount() {
  839. if (this.props.taskName.substring(0, 5) === "软件著作权") {
  840. this.setState({
  841. isSoftware: true,
  842. })
  843. }
  844. this.setState({
  845. isIso: this.props.taskName.indexOf("贯标") !== -1,
  846. })
  847. this.departmentList();
  848. this.xiangqing(this.props.id);
  849. this.xiangqings(this.props.orderNo);
  850. this.xiangmu(this.props.orderNo);
  851. this.loaduserss(this.props.id);
  852. }
  853. // 可展开颜色不同
  854. addRowColor(record) {
  855. if (!!record.splitList && record.splitList.length > 0) {
  856. return 'light'
  857. } else {
  858. return 'dark'
  859. }
  860. }
  861. render() {
  862. const expandedRowRenderVip = (e) => {
  863. const data = e.splitList;
  864. let columns = [];
  865. if (data instanceof Array && data.length) {
  866. if (e.cSort == 6) {
  867. columns = [
  868. {
  869. title: "负责人",
  870. dataIndex: "contacts",
  871. key: "contacts",
  872. },
  873. {
  874. title: "负责人电话",
  875. dataIndex: "contactsMobile",
  876. key: "contactsMobile",
  877. },
  878. {
  879. title: "项目状态",
  880. dataIndex: "projectStatus",
  881. key: "projectStatus",
  882. render: (text) => {
  883. return getProjectName(text);
  884. },
  885. },
  886. {
  887. title: "本次派单",
  888. dataIndex: "serviceYear",
  889. key: "serviceYear",
  890. },
  891. {
  892. title: "项目说明",
  893. dataIndex: "taskComment",
  894. key: "taskComment",
  895. render: (text) => {
  896. return (
  897. <Tooltip title={text}>
  898. <div
  899. >{text}</div>
  900. </Tooltip>
  901. )
  902. },
  903. },
  904. ];
  905. } else {
  906. columns = [
  907. {
  908. title: "子项目名称",
  909. dataIndex: "taskName",
  910. key: "taskName"
  911. },
  912. {
  913. title: "子项目数量",
  914. dataIndex: "commodityQuantity",
  915. key: "commodityQuantity"
  916. },
  917. {
  918. title: "拆分操作人",
  919. dataIndex: "splitAname",
  920. key: "splitAname"
  921. },
  922. {
  923. title: "项目负责人",
  924. dataIndex: "receiverName",
  925. key: "receiverName"
  926. },
  927. {
  928. title: "拆分时间",
  929. dataIndex: "splitTimes",
  930. key: "splitTimes"
  931. }
  932. ]
  933. }
  934. return (
  935. <Table
  936. columns={columns}
  937. dataSource={data}
  938. pagination={false}
  939. />
  940. );
  941. } else {
  942. columns = [];
  943. return (
  944. <p
  945. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  946. >
  947. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  948. </p>
  949. );
  950. }
  951. };
  952. return (
  953. this.props.visible ? <Modal
  954. maskClosable={false}
  955. className="customeDetails"
  956. footer=""
  957. title=""
  958. width="1200px"
  959. visible={this.props.visible}
  960. onOk={() => {
  961. this.props.visitOk && this.props.visitOk()
  962. }}
  963. onCancel={() => {
  964. this.props.visitCancel && this.props.visitCancel();
  965. }}
  966. >
  967. <Tabs activeKey={this.state.activeKey} onChange={this.orderChange} tabBarExtraContent={
  968. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  969. <OrderItemStatus deleteSign={this.state.deleteSign} />
  970. </div>
  971. }>
  972. <TabPane tab="项目概况" key="1">
  973. {this.state.activeKey === "1" ? <Form
  974. layout="horizontal"
  975. id="demand-form"
  976. style={{ paddingBottom: "0px" }}
  977. >
  978. <Spin spinning={this.state.loading}>
  979. <div className="clearfix">
  980. <div className="clearfix">
  981. <FormItem
  982. className="half-item"
  983. {...formItemLayout}
  984. label="项目状态"
  985. >
  986. <span>{getProjectName(parseInt(this.state.projectStatus))}</span>
  987. <Button
  988. type="primary"
  989. size="small"
  990. style={{ marginTop: "5px", position: "absolute" }}
  991. onClick={this.caozuorizhi}
  992. >
  993. 操作日志
  994. </Button>
  995. {this.state.visibleA ? <Modal
  996. maskClosable={false}
  997. width="800px"
  998. visible={this.state.visibleA}
  999. onCancel={() => {
  1000. this.setState({
  1001. visibleA: false
  1002. })
  1003. }}
  1004. title="操作日志"
  1005. footer=""
  1006. className="admin-desc-content"
  1007. >
  1008. <div className="patent-table patent-table-center">
  1009. <Spin spinning={this.state.loading}>
  1010. <Table
  1011. columns={this.state.columnsA}
  1012. dataSource={this.state.dataSourceA}
  1013. pagination={false}
  1014. bordered
  1015. size="small"
  1016. />
  1017. </Spin>
  1018. </div>
  1019. </Modal> : null}
  1020. </FormItem>
  1021. <FormItem
  1022. className="half-item"
  1023. {...formItemLayout}
  1024. label="合同编号"
  1025. >
  1026. <span>{this.state.contractNo}</span>
  1027. </FormItem>
  1028. </div>
  1029. <div className="clearfix">
  1030. <FormItem
  1031. className="half-item"
  1032. {...formItemLayout}
  1033. label="是否特批"
  1034. >
  1035. <span>{getApproval(this.state.approval)}</span>
  1036. </FormItem>
  1037. <FormItem
  1038. className="half-item"
  1039. {...formItemLayout}
  1040. label="结算状态"
  1041. >
  1042. <span>
  1043. {getLiquidationStatus(this.state.liquidationStatus)}
  1044. </span>
  1045. </FormItem>
  1046. <FormItem
  1047. className="half-item"
  1048. {...formItemLayout}
  1049. label="流程状态"
  1050. >
  1051. <span>
  1052. {getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}
  1053. </span>
  1054. </FormItem>
  1055. <FormItem
  1056. className="half-item"
  1057. {...formItemLayout}
  1058. label="订单编号"
  1059. >
  1060. <span>{this.state.orderNo}</span>
  1061. </FormItem>
  1062. <FormItem
  1063. className="half-item"
  1064. {...formItemLayout}
  1065. label="是否外包"
  1066. >
  1067. <span>{this.state.outsource === 0 ? "否" : "是"}</span>
  1068. </FormItem>
  1069. </div>
  1070. <div className="clearfix">
  1071. <FormItem
  1072. className="half-item"
  1073. {...formItemLayout}
  1074. label="满意度表格"
  1075. >
  1076. <span>
  1077. {utils.getSatisfaction(this.state.formRetrieve)}
  1078. </span>
  1079. </FormItem>
  1080. <FormItem
  1081. className="half-item"
  1082. {...formItemLayout}
  1083. label="(满意度)备注"
  1084. >
  1085. <span>{this.state.retrieveContent}</span>
  1086. </FormItem>
  1087. </div>
  1088. {/*软著显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1089. {this.state.bpType === 2 ? <div className="clearfix">
  1090. <FormItem
  1091. className="half-item"
  1092. {...formItemLayout}
  1093. label="加急天数"
  1094. >
  1095. {
  1096. this.state.urgentDay === 1 ? '是' :
  1097. this.state.urgentDay === 0 ? '否' : ''
  1098. }
  1099. </FormItem>
  1100. <FormItem
  1101. className="half-item"
  1102. {...formItemLayout}
  1103. label="有无材料"
  1104. >
  1105. {
  1106. this.state.ifMaterial === 1 ? '是' :
  1107. this.state.ifMaterial === 0 ? '否' : ''
  1108. }
  1109. </FormItem>
  1110. </div> : null}
  1111. <div className="clearfix">
  1112. <div style={{
  1113. paddingLeft: '8%',
  1114. }}>
  1115. <div style={{ color: '#000', fontWeight: 500 }}>
  1116. 特别说明
  1117. <span style={{ color: '#58a3ff', }}>(针对项目的特殊情况说明)</span>
  1118. </div>
  1119. <div style={{
  1120. display: 'flex',
  1121. }}>
  1122. <span style={{ paddingRight: '10px', whiteSpace: "nowrap" }}>备注:</span>
  1123. <span style={{
  1124. flex: 1,
  1125. wordBreak: 'break-all',
  1126. }}>{this.state.specialComment}</span>
  1127. </div>
  1128. </div>
  1129. </div>
  1130. <div className="clearfix">
  1131. <h3 className="sub-title">任务信息</h3>
  1132. {/*0通用 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1133. {/*贯标需要显示*/}
  1134. {
  1135. this.state.isIso ?
  1136. <div>
  1137. <FormItem
  1138. className="half-item"
  1139. {...formItemLayout}
  1140. label="认证费"
  1141. >
  1142. <span>
  1143. {
  1144. this.state.ifCertificationFee === 1 ? '包含' : '不包含'
  1145. }
  1146. </span>
  1147. </FormItem>
  1148. {this.state.ifCertificationFee === 1 ? <FormItem
  1149. className="half-item"
  1150. {...formItemLayout}
  1151. label="认证费(万元)"
  1152. >
  1153. <span>
  1154. {
  1155. this.state.certificationFee
  1156. }
  1157. </span>
  1158. </FormItem> : null}
  1159. {this.state.ifCertificationFee === 1 ? <FormItem
  1160. className="half-item"
  1161. {...formItemLayout}
  1162. label=""
  1163. /> : null}
  1164. {this.state.ifCertificationFee === 1 ? <FormItem
  1165. className="half-item"
  1166. {...formItemLayout}
  1167. label="付款公司名称"
  1168. >
  1169. <span>
  1170. {this.state.certificationCorporate}
  1171. </span>
  1172. </FormItem> : null}
  1173. </div> : null
  1174. }
  1175. <FormItem
  1176. className="half-item"
  1177. {...formItemLayout}
  1178. label="任务编号"
  1179. >
  1180. <span>
  1181. {
  1182. this.state.splitStatus === 2
  1183. ? this.state.splitSuper + "-" + this.state.splitId
  1184. : this.state.id
  1185. }
  1186. </span>
  1187. </FormItem>
  1188. <FormItem
  1189. className="half-item"
  1190. {...formItemLayout}
  1191. label="任务名称"
  1192. >
  1193. <span>{this.state.taskName}</span>
  1194. </FormItem>
  1195. <FormItem
  1196. className="half-item"
  1197. {...formItemLayout}
  1198. label="任务状态"
  1199. >
  1200. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1201. </FormItem>
  1202. <FormItem
  1203. className="half-item"
  1204. {...formItemLayout}
  1205. label="任务类别"
  1206. >
  1207. <span>{this.state.cname}</span>
  1208. </FormItem>
  1209. <FormItem
  1210. className="half-item"
  1211. {...formItemLayout}
  1212. label="证书编号"
  1213. >
  1214. <span>{this.state.certificateNumber}</span>
  1215. </FormItem>
  1216. </div>
  1217. <div className="clearfix">
  1218. <h3 className="sub-title">联系信息</h3>
  1219. <FormItem
  1220. className="half-item"
  1221. {...formItemLayout}
  1222. label="客户名称"
  1223. >
  1224. <span>{this.state.userName}</span>
  1225. <EnterpriseNameChange
  1226. type='journal'
  1227. style={{ marginLeft: 10 }}
  1228. enterpriseId={this.state.orderUid} />
  1229. </FormItem>
  1230. <FormItem
  1231. className="half-item"
  1232. {...formItemLayout}
  1233. label="企业法人"
  1234. >
  1235. <span>{this.state.legalPerson}</span>
  1236. </FormItem>
  1237. <FormItem
  1238. className="half-item"
  1239. {...formItemLayout}
  1240. label="法人电话"
  1241. >
  1242. <span>{this.state.legalPersonTel}</span>
  1243. </FormItem>
  1244. <FormItem
  1245. className="half-item"
  1246. {...formItemLayout}
  1247. label="客户联系人"
  1248. >
  1249. <span>{this.state.contacts}</span>
  1250. </FormItem>
  1251. <FormItem
  1252. className="half-item"
  1253. {...formItemLayout}
  1254. label="联系人电话"
  1255. >
  1256. <span>{this.state.contactMobile}</span>
  1257. </FormItem>
  1258. <FormItem
  1259. className="half-item"
  1260. {...formItemLayout}
  1261. label="企业地址"
  1262. >
  1263. <span>
  1264. {getprovince(this.state.locationProvince)}/
  1265. {getprovince(this.state.locationCity)}/
  1266. {getprovince(this.state.locationArea)}
  1267. </span>
  1268. </FormItem>
  1269. <FormItem
  1270. className="half-item"
  1271. {...formItemLayout}
  1272. label=""
  1273. />
  1274. <FormItem className="half-item" {...formItemLayout}>
  1275. <span style={{ paddingLeft: "12em" }}>
  1276. {this.state.postalAddress}
  1277. </span>
  1278. </FormItem>
  1279. </div>
  1280. <div className="clearfix">
  1281. <h3 className="sub-title">订单负责人信息</h3>
  1282. <FormItem
  1283. className="half-item"
  1284. {...formItemLayout}
  1285. label="负责人"
  1286. >
  1287. <span>
  1288. {this.state.salesmanName +
  1289. "(" +
  1290. this.state.depName +
  1291. ")"}
  1292. </span>
  1293. </FormItem>
  1294. <FormItem
  1295. className="half-item"
  1296. {...formItemLayout}
  1297. label="负责人电话"
  1298. >
  1299. <span>{this.state.salesmanMobile}</span>
  1300. </FormItem>
  1301. <FormItem
  1302. className="half-item"
  1303. {...formItemLayout}
  1304. label="当前财务负责人"
  1305. >
  1306. <span>{this.state.nowFinance}</span>
  1307. </FormItem>
  1308. <FormItem
  1309. className="half-item"
  1310. {...formItemLayout}
  1311. label="当前财务负责人电话"
  1312. >
  1313. <span>{this.state.nowFinanceMobile}</span>
  1314. </FormItem>
  1315. {!this.state.isSoftware ? <div>
  1316. <FormItem
  1317. className="half-item"
  1318. {...formItemLayout}
  1319. style={{ opacity: ".5" }}
  1320. label="原负责人"
  1321. >
  1322. <span>{this.state.oldSalesmanName}</span>
  1323. </FormItem>
  1324. <FormItem
  1325. className="half-item"
  1326. {...formItemLayout}
  1327. style={{ opacity: ".5" }}
  1328. label="原负责人电话"
  1329. >
  1330. <span>{this.state.oldSalesmanMobile}</span>
  1331. </FormItem>
  1332. <FormItem
  1333. className="half-item"
  1334. {...formItemLayout}
  1335. style={{ opacity: ".5" }}
  1336. label="实际财务操作人"
  1337. >
  1338. <span>{this.state.financeName}</span>
  1339. </FormItem>
  1340. <FormItem
  1341. className="half-item"
  1342. {...formItemLayout}
  1343. style={{ opacity: ".5" }}
  1344. label="实际财务操作人电话"
  1345. >
  1346. <span>{this.state.financeMobile}</span>
  1347. </FormItem>
  1348. </div> : null}
  1349. <FormItem
  1350. className="half-item"
  1351. {...formItemLayout}
  1352. label="订单留言"
  1353. >
  1354. <span>{this.state.orderRemarks}</span>
  1355. </FormItem>
  1356. <FormItem
  1357. className="half-item"
  1358. {...formItemLayout}
  1359. label=""
  1360. >
  1361. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  1362. </FormItem>
  1363. <OrderRiZi
  1364. dataSourcerizhi={this.state.dataSourceY}
  1365. closeOrderLog={() => {
  1366. this.setState({
  1367. avisible: false
  1368. })
  1369. }}
  1370. visible={this.state.avisible}
  1371. loading={this.state.loading}
  1372. />
  1373. </div>
  1374. {!this.state.isSoftware ? <div className="clearfix">
  1375. <h3 className="sub-title">申报系统账户信息</h3>
  1376. <FormItem
  1377. className="half-item"
  1378. {...formItemLayout}
  1379. label="用户名"
  1380. >
  1381. <span>{this.state.declareUser}</span>
  1382. </FormItem>
  1383. <FormItem
  1384. className="half-item"
  1385. {...formItemLayout}
  1386. label="密码"
  1387. >
  1388. <span>{this.state.declarePwd}</span>
  1389. </FormItem>
  1390. </div> : null}
  1391. {this.state.isSoftware ?
  1392. <div className="clearfix">
  1393. <h3 className="sub-title">项目申报进度</h3>
  1394. <DeclarationProgress
  1395. timeRecordparse={this.state.timeRecordparse}
  1396. startDate={this.state.startDate}
  1397. taskDate={this.state.taskDate}
  1398. list={[
  1399. { id: 4, name: '完成时间', value: this.state.endDate },
  1400. { id: 6, name: '受理时间', value: this.state.acceptDate },
  1401. { id: 8, name: '公示时间', value: this.state.publicityDate },
  1402. { id: 10, name: '发证时间', value: this.state.licenceDate },
  1403. { id: 15, name: '立项金额', value: this.state.setUpAmount }
  1404. ]} />
  1405. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1406. {/*cSort: 3 科技项目 6: 会员*/}
  1407. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  1408. className="half-item"
  1409. {...formItemLayout}
  1410. label="申报批次"
  1411. >
  1412. <span>{this.state.declarationBatch}</span>
  1413. </FormItem>}
  1414. <FormItem
  1415. className="half-item"
  1416. {...formItemLayout}
  1417. label="软著派单数量"
  1418. >
  1419. <span>{this.state.commodityQuantity}</span>
  1420. </FormItem>
  1421. <div className="patent-table patent-table-center">
  1422. <Spin spinning={this.state.loading}>
  1423. <Table
  1424. columns={this.state.ContactsLists}
  1425. dataSource={this.state.contactList}
  1426. pagination={false}
  1427. bordered
  1428. size="small"
  1429. />
  1430. </Spin>
  1431. </div>
  1432. </div> :
  1433. <div className="clearfix">
  1434. <h3 className="sub-title">项目申报进度</h3>
  1435. <DeclarationProgress
  1436. timeRecordparse={this.state.timeRecordparse}
  1437. startDate={this.state.startDate}
  1438. taskDate={this.state.taskDate}
  1439. list={[
  1440. { id: 4, name: '完成时间', value: this.state.endDate },
  1441. { id: 6, name: '受理时间', value: this.state.acceptDate },
  1442. { id: 8, name: '公示时间', value: this.state.publicityDate },
  1443. { id: 10, name: '发证时间', value: this.state.licenceDate },
  1444. { id: 15, name: '立项金额', value: this.state.setUpAmount }
  1445. ]} />
  1446. {
  1447. this.state.bpType === 1 || this.state.bpType === 6 ?
  1448. <div>
  1449. <FormItem
  1450. labelCol={{ span: 3 }}
  1451. wrapperCol={{ span: 16 }}
  1452. label="是否高新企业"
  1453. >
  1454. <span>
  1455. {
  1456. this.state.highTechStatus === 1 ? '是' :
  1457. this.state.highTechStatus === 0 ? '否' : ''
  1458. }
  1459. </span>
  1460. </FormItem>
  1461. <FormItem />
  1462. <PatentSchedule
  1463. readOnly
  1464. bpType={this.state.bpType}
  1465. taskId={this.state.id}
  1466. acceptCount={this.state.acceptCount}
  1467. certificatesCount={this.state.certificatesCount}
  1468. rejectCount={this.state.rejectCount}
  1469. commodityQuantity={this.state.commodityQuantity}
  1470. refresh={() => { this.xiangqing(this.state.id) }}
  1471. />
  1472. </div> :
  1473. <div>
  1474. {/*高新显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1475. {this.state.bpType === 5 ? <FormItem
  1476. className="half-item"
  1477. {...formItemLayout}
  1478. label="是否抽查">
  1479. {
  1480. this.state.spotCheckStatus === 0 ? '否' :
  1481. this.state.spotCheckStatus === 1 ? '是,未通过' :
  1482. this.state.spotCheckStatus === 2 ? '是,通过' : ''
  1483. }
  1484. </FormItem> : null}
  1485. <FormItem />
  1486. {this.state.bpType === 5 ? <FormItem
  1487. className="half-item"
  1488. {...formItemLayout}
  1489. label="是否立项"
  1490. >
  1491. {
  1492. this.state.setUpStatus === 1 ? '是' :
  1493. this.state.setUpStatus === 0 ? '否' : ''
  1494. }
  1495. </FormItem> : null}
  1496. {this.state.bpType === 5 ? <FormItem
  1497. className="half-item"
  1498. {...formItemLayout}
  1499. label={this.state.setUpStatus === 1 ? "立项时间" : ''}
  1500. >
  1501. {this.state.setUpStatus === 1 ? this.state.setUpTime : null}
  1502. </FormItem> : null}
  1503. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1504. {/*cSort: 3 科技项目 6: 会员*/}
  1505. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  1506. className="half-item"
  1507. {...formItemLayout}
  1508. label="申报批次"
  1509. >
  1510. <span>{this.state.declarationBatch}</span>
  1511. </FormItem>}
  1512. {/*只有科技项目才有是否到款*/}
  1513. {/*cSort: 3 科技项目 6: 会员*/}
  1514. {this.state.cSort === 3 && <FormItem
  1515. className="half-item"
  1516. {...formItemLayout}
  1517. label="是否到款"
  1518. >
  1519. <span>
  1520. {this.state.arrivalMoney ? "已到企业" : "未到企业"}
  1521. </span>
  1522. </FormItem>}
  1523. </div>
  1524. }
  1525. </div>}
  1526. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  1527. <FormItem
  1528. labelCol={{ span: 3 }}
  1529. wrapperCol={{ span: 18 }}
  1530. label="附件"
  1531. >
  1532. {this.state.visible && this.state.attachmentUrl && this.state.activeKey === "1" ? <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  1533. <ImgList fileList={this.state.attachmentUrl} domId={'taskQuery1'} />
  1534. </div> : null}
  1535. </FormItem>
  1536. </div> : null}
  1537. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  1538. <FormItem
  1539. labelCol={{ span: 3 }}
  1540. wrapperCol={{ span: 16 }}
  1541. label="项目说明"
  1542. >
  1543. <span>{this.state.taskComment}</span>
  1544. </FormItem>
  1545. </div> : null}
  1546. <div>
  1547. <h3 className="sub-title">项目业务</h3>
  1548. {this.state.processStatus === 0 ? (
  1549. <Button
  1550. type="primary"
  1551. onClick={this.addDetailed}
  1552. style={{
  1553. float: "right",
  1554. marginRight: "50px",
  1555. marginBottom: "15px",
  1556. }}
  1557. >
  1558. 添加项目明细
  1559. </Button>
  1560. ) : null}
  1561. </div>
  1562. <div className="patent-table">
  1563. <Spin spinning={this.state.loading}>
  1564. <Table
  1565. columns={this.state.columnsX}
  1566. dataSource={this.state.dataSourceX}
  1567. pagination={this.state.paginations}
  1568. onRowClick={this.tableRowClickX}
  1569. expandedRowRender={expandedRowRenderVip}
  1570. rowClassName={this.addRowColor}
  1571. style={{
  1572. cursor: 'pointer',
  1573. }}
  1574. bordered
  1575. size="small"
  1576. />
  1577. </Spin>
  1578. </div>
  1579. </div>
  1580. </Spin>
  1581. </Form> : null}
  1582. </TabPane>
  1583. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  1584. <TabPane tab="订单详情" key="2">
  1585. {this.state.activeKey === "2" ? <Spin spinning={this.state.loading}>
  1586. <OrderDetail
  1587. orderUid={this.state.orderUid}
  1588. orderData={this.state.orderData}
  1589. getOrderLog={this.getOrderLog}
  1590. dataSourceX={this.state.dataSourceX}
  1591. contactList={this.state.jiedian}
  1592. orderNo={this.state.orderNo}
  1593. totalCui={this.state.totalCui}
  1594. contactListNew={this.state.jiedianNew}
  1595. pictureUrl={this.state.contractPictureUrl}
  1596. />
  1597. </Spin> : null}
  1598. <OrderRiZi
  1599. dataSourcerizhi={this.state.dataSourceY}
  1600. closeOrderLog={() => {
  1601. this.setState({
  1602. avisible: false
  1603. })
  1604. }}
  1605. visible={this.state.avisible}
  1606. loading={this.state.loading}
  1607. />
  1608. </TabPane>
  1609. ) : null}
  1610. </Tabs>
  1611. </Modal> : null
  1612. );
  1613. }
  1614. }
  1615. export default ProjectDetails;