projectDetails.jsx 72 KB

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