projectDetails.jsx 72 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451
  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. className="customeDetails"
  780. footer=""
  781. title=""
  782. width="900px"
  783. visible={this.props.visible}
  784. onOk={()=>{
  785. this.props.visitOk && this.props.visitOk()
  786. }}
  787. onCancel={()=>{
  788. this.props.visitCancel && this.props.visitCancel();
  789. }}
  790. >
  791. <Tabs activeKey={this.state.activeKey} onChange={this.orderChange}>
  792. <TabPane tab="项目概况" key="1">
  793. {this.state.activeKey === "1" ? <Form
  794. layout="horizontal"
  795. id="demand-form"
  796. style={{ paddingBottom: "0px" }}
  797. >
  798. <Spin spinning={this.state.loading}>
  799. <div className="clearfix">
  800. <div className="clearfix">
  801. <FormItem
  802. className="half-item"
  803. {...formItemLayout}
  804. label="当前项目情况"
  805. >
  806. <span>
  807. {
  808. this.state.status === 0 ? '未开始':
  809. this.state.status === 1 ? '进行中':
  810. this.state.status === 2 ? '已暂停':
  811. this.state.status === 3 ? '已驳回(专利、软著项目编写)':
  812. this.state.status === 4 ? '已完成':
  813. this.state.status === 5 ? '项目已完成 已退单':
  814. this.state.status === 6 ? '项目未完成 已退单': ''
  815. }
  816. </span>
  817. <Button
  818. type="primary"
  819. size="small"
  820. style={{ marginTop: "5px", position: "absolute" }}
  821. onClick={this.caozuorizhi}
  822. >
  823. 操作日志
  824. </Button>
  825. {this.state.visibleA ? <Modal
  826. width="800px"
  827. visible={this.state.visibleA}
  828. onCancel={()=>{
  829. this.setState({
  830. visibleA: false
  831. })
  832. }}
  833. title="操作日志"
  834. footer=""
  835. className="admin-desc-content"
  836. >
  837. <div className="patent-table patent-table-center">
  838. <Spin spinning={this.state.loading}>
  839. <Table
  840. columns={this.state.columnsA}
  841. dataSource={this.state.dataSourceA}
  842. pagination={false}
  843. bordered
  844. size="small"
  845. />
  846. </Spin>
  847. </div>
  848. </Modal> : null}
  849. </FormItem>
  850. <FormItem
  851. className="half-item"
  852. {...formItemLayout}
  853. label="合同编号"
  854. >
  855. <span>{this.state.contractNo}</span>
  856. </FormItem>
  857. </div>
  858. <div className="clearfix">
  859. <FormItem
  860. className="half-item"
  861. {...formItemLayout}
  862. label="项目状态"
  863. >
  864. <span>
  865. {getProjectStatus(this.state.projectStatus)}
  866. </span>
  867. </FormItem>
  868. <FormItem
  869. className="half-item"
  870. {...formItemLayout}
  871. label="是否特批"
  872. >
  873. <span>{getApproval(this.state.approval)}</span>
  874. </FormItem>
  875. <FormItem
  876. className="half-item"
  877. {...formItemLayout}
  878. label="结算状态"
  879. >
  880. <span>
  881. {getLiquidationStatus(this.state.liquidationStatus)}
  882. </span>
  883. </FormItem>
  884. <FormItem
  885. className="half-item"
  886. {...formItemLayout}
  887. label="流程状态"
  888. >
  889. <span>
  890. {getProcessStatus(this.state.processStatus)}
  891. </span>
  892. </FormItem>
  893. <FormItem
  894. className="half-item"
  895. {...formItemLayout}
  896. label="订单编号"
  897. >
  898. <span>{this.state.orderNo}</span>
  899. </FormItem>
  900. <FormItem
  901. className="half-item"
  902. {...formItemLayout}
  903. label="是否外包"
  904. >
  905. <span>{this.state.outsource === 0 ? "否" : "是"}</span>
  906. </FormItem>
  907. </div>
  908. <div className="clearfix">
  909. <FormItem
  910. className="half-item"
  911. {...formItemLayout}
  912. label="满意度表格"
  913. >
  914. <span>
  915. {utils.getSatisfaction(this.state.formRetrieve)}
  916. </span>
  917. </FormItem>
  918. <FormItem
  919. className="half-item"
  920. {...formItemLayout}
  921. label="(满意度)备注"
  922. >
  923. <span>{this.state.retrieveContent}</span>
  924. </FormItem>
  925. </div>
  926. {/*软著显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  927. {this.state.bpType === 2 ? <div className="clearfix">
  928. <FormItem
  929. className="half-item"
  930. {...formItemLayout}
  931. label="加急天数"
  932. >
  933. {
  934. this.state.urgentDay === 1 ? '是' :
  935. this.state.urgentDay === 0 ? '否' : ''
  936. }
  937. </FormItem>
  938. <FormItem
  939. className="half-item"
  940. {...formItemLayout}
  941. label="有无材料"
  942. >
  943. {
  944. this.state.ifMaterial === 1 ? '是':
  945. this.state.ifMaterial === 0 ? '否': ''
  946. }
  947. </FormItem>
  948. </div> : null}
  949. <div className="clearfix">
  950. <div style={{
  951. paddingLeft: '8%',
  952. }}>
  953. <div style={{color:'#000',fontWeight:500}}>
  954. 特别说明
  955. <span style={{color: '#58a3ff',}}>(针对项目的特殊情况说明)</span>
  956. </div>
  957. <div style={{
  958. display:'flex',
  959. }}>
  960. <span style={{paddingRight:'10px',whiteSpace:"nowrap"}}>备注:</span>
  961. <span style={{
  962. flex: 1,
  963. wordBreak: 'break-all',
  964. }}>{this.state.specialComment}</span>
  965. </div>
  966. </div>
  967. </div>
  968. <div className="clearfix">
  969. <h3 className="sub-title">任务信息</h3>
  970. <FormItem
  971. className="half-item"
  972. {...formItemLayout}
  973. label="任务编号"
  974. >
  975. <span>
  976. {
  977. this.state.splitStatus === 2
  978. ? this.state.splitSuper + "-" + this.state.splitId
  979. : this.state.id
  980. }
  981. </span>
  982. </FormItem>
  983. <FormItem
  984. className="half-item"
  985. {...formItemLayout}
  986. label="任务名称"
  987. >
  988. <span>{this.state.taskName}</span>
  989. </FormItem>
  990. <FormItem
  991. className="half-item"
  992. {...formItemLayout}
  993. label="任务状态"
  994. >
  995. <span>{getTaskStatus(this.state.taskStatus)}</span>
  996. </FormItem>
  997. <FormItem
  998. className="half-item"
  999. {...formItemLayout}
  1000. label="任务类别"
  1001. >
  1002. <span>{this.state.cname}</span>
  1003. </FormItem>
  1004. <FormItem
  1005. className="half-item"
  1006. {...formItemLayout}
  1007. label="证书编号"
  1008. >
  1009. <span>{this.state.certificateNumber}</span>
  1010. </FormItem>
  1011. </div>
  1012. <div className="clearfix">
  1013. <h3 className="sub-title">联系信息</h3>
  1014. <FormItem
  1015. className="half-item"
  1016. {...formItemLayout}
  1017. label="客户名称"
  1018. >
  1019. <span>{this.state.userName}</span>
  1020. </FormItem>
  1021. <FormItem
  1022. className="half-item"
  1023. {...formItemLayout}
  1024. label="企业法人"
  1025. >
  1026. <span>{this.state.legalPerson}</span>
  1027. </FormItem>
  1028. <FormItem
  1029. className="half-item"
  1030. {...formItemLayout}
  1031. label="法人电话"
  1032. >
  1033. <span>{this.state.legalPersonTel}</span>
  1034. </FormItem>
  1035. <FormItem
  1036. className="half-item"
  1037. {...formItemLayout}
  1038. label="客户联系人"
  1039. >
  1040. <span>{this.state.contacts}</span>
  1041. </FormItem>
  1042. <FormItem
  1043. className="half-item"
  1044. {...formItemLayout}
  1045. label="联系人电话"
  1046. >
  1047. <span>{this.state.contactMobile}</span>
  1048. </FormItem>
  1049. <FormItem
  1050. className="half-item"
  1051. {...formItemLayout}
  1052. label="企业地址"
  1053. >
  1054. <span>
  1055. {getprovince(this.state.locationProvince)}/
  1056. {getprovince(this.state.locationCity)}/
  1057. {getprovince(this.state.locationArea)}
  1058. </span>
  1059. </FormItem>
  1060. <FormItem
  1061. className="half-item"
  1062. {...formItemLayout}
  1063. label=""
  1064. />
  1065. <FormItem className="half-item" {...formItemLayout}>
  1066. <span style={{ paddingLeft: "12em" }}>
  1067. {this.state.postalAddress}
  1068. </span>
  1069. </FormItem>
  1070. </div>
  1071. <div className="clearfix">
  1072. <h3 className="sub-title">订单负责人信息</h3>
  1073. <FormItem
  1074. className="half-item"
  1075. {...formItemLayout}
  1076. label="负责人"
  1077. >
  1078. <span>
  1079. {this.state.salesmanName +
  1080. "(" +
  1081. this.state.depName +
  1082. ")"}
  1083. </span>
  1084. </FormItem>
  1085. <FormItem
  1086. className="half-item"
  1087. {...formItemLayout}
  1088. label="负责人电话"
  1089. >
  1090. <span>{this.state.salesmanMobile}</span>
  1091. </FormItem>
  1092. <FormItem
  1093. className="half-item"
  1094. {...formItemLayout}
  1095. label="当前财务负责人"
  1096. >
  1097. <span>{this.state.nowFinance}</span>
  1098. </FormItem>
  1099. <FormItem
  1100. className="half-item"
  1101. {...formItemLayout}
  1102. label="当前财务负责人电话"
  1103. >
  1104. <span>{this.state.nowFinanceMobile}</span>
  1105. </FormItem>
  1106. {!this.state.isSoftware ? <div>
  1107. <FormItem
  1108. className="half-item"
  1109. {...formItemLayout}
  1110. style={{ opacity: ".5" }}
  1111. label="原负责人"
  1112. >
  1113. <span>{this.state.oldSalesmanName}</span>
  1114. </FormItem>
  1115. <FormItem
  1116. className="half-item"
  1117. {...formItemLayout}
  1118. style={{ opacity: ".5" }}
  1119. label="原负责人电话"
  1120. >
  1121. <span>{this.state.oldSalesmanMobile}</span>
  1122. </FormItem>
  1123. <FormItem
  1124. className="half-item"
  1125. {...formItemLayout}
  1126. style={{ opacity: ".5" }}
  1127. label="实际财务操作人"
  1128. >
  1129. <span>{this.state.financeName}</span>
  1130. </FormItem>
  1131. <FormItem
  1132. className="half-item"
  1133. {...formItemLayout}
  1134. style={{ opacity: ".5" }}
  1135. label="实际财务操作人电话"
  1136. >
  1137. <span>{this.state.financeMobile}</span>
  1138. </FormItem>
  1139. </div> : null }
  1140. <FormItem
  1141. className="half-item"
  1142. {...formItemLayout}
  1143. label="订单留言"
  1144. >
  1145. <span>{this.state.orderRemarks}</span>
  1146. </FormItem>
  1147. <FormItem
  1148. className="half-item"
  1149. {...formItemLayout}
  1150. label=""
  1151. >
  1152. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  1153. </FormItem>
  1154. <OrderRiZi
  1155. dataSourcerizhi={this.state.dataSourceY}
  1156. closeOrderLog={()=>{
  1157. this.setState({
  1158. avisible: false
  1159. })
  1160. }}
  1161. visible={this.state.avisible}
  1162. loading={this.state.loading}
  1163. />
  1164. </div>
  1165. {!this.state.isSoftware ? <div className="clearfix">
  1166. <h3 className="sub-title">申报系统账户信息</h3>
  1167. <FormItem
  1168. className="half-item"
  1169. {...formItemLayout}
  1170. label="用户名"
  1171. >
  1172. <span>{this.state.declareUser}</span>
  1173. </FormItem>
  1174. <FormItem
  1175. className="half-item"
  1176. {...formItemLayout}
  1177. label="密码"
  1178. >
  1179. <span>{this.state.declarePwd}</span>
  1180. </FormItem>
  1181. </div> : null}
  1182. {this.state.isSoftware ?
  1183. <div className="clearfix">
  1184. <h3 className="sub-title">项目申报进度</h3>
  1185. <FormItem
  1186. className="half-item"
  1187. {...formItemLayout}
  1188. label="申报批次"
  1189. >
  1190. <span>{this.state.declarationBatch}</span>
  1191. </FormItem>
  1192. <FormItem
  1193. className="half-item"
  1194. {...formItemLayout}
  1195. label="启动时间"
  1196. >
  1197. <span>{this.state.startDate}</span>
  1198. </FormItem>
  1199. <FormItem
  1200. className="half-item"
  1201. {...formItemLayout}
  1202. label="软著派单数量"
  1203. >
  1204. <span>{this.state.commodityQuantity}</span>
  1205. </FormItem>
  1206. <div className="patent-table patent-table-center">
  1207. <Spin spinning={this.state.loading}>
  1208. <Table
  1209. columns={this.state.ContactsLists}
  1210. dataSource={this.state.contactList}
  1211. pagination={false}
  1212. bordered
  1213. size="small"
  1214. />
  1215. </Spin>
  1216. </div>
  1217. </div>:
  1218. <div className="clearfix">
  1219. <h3 className="sub-title">项目申报进度</h3>
  1220. {
  1221. this.state.bpType === 1 || this.state.bpType === 6 ?
  1222. <div>
  1223. <FormItem
  1224. labelCol={{ span: 3 }}
  1225. wrapperCol={{ span: 16 }}
  1226. label="是否高新企业"
  1227. >
  1228. <span>
  1229. {
  1230. this.state.highTechStatus === 1 ? '是':
  1231. this.state.highTechStatus === 0 ? '否' : ''
  1232. }
  1233. </span>
  1234. </FormItem>
  1235. <FormItem/>
  1236. <PatentSchedule
  1237. readOnly
  1238. bpType={this.state.bpType}
  1239. taskId={this.state.id}
  1240. acceptCount={this.state.acceptCount}
  1241. certificatesCount={this.state.certificatesCount}
  1242. rejectCount={this.state.rejectCount}
  1243. commodityQuantity={this.state.commodityQuantity}
  1244. refresh={()=>{this.xiangqing(this.state.id)}}
  1245. />
  1246. </div> :
  1247. <div>
  1248. {/*高新显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1249. {this.state.bpType === 5 ? <FormItem
  1250. className="half-item"
  1251. {...formItemLayout}
  1252. label="是否抽查">
  1253. {
  1254. this.state.spotCheckStatus === 0 ? '否':
  1255. this.state.spotCheckStatus === 1 ? '是,未通过':
  1256. this.state.spotCheckStatus === 2 ? '是,通过': ''
  1257. }
  1258. </FormItem> : null}
  1259. <FormItem/>
  1260. {this.state.bpType === 5 ? <FormItem
  1261. className="half-item"
  1262. {...formItemLayout}
  1263. label="是否立项"
  1264. >
  1265. {
  1266. this.state.setUpStatus === 1 ? '是' :
  1267. this.state.setUpStatus === 0 ? '否' : ''
  1268. }
  1269. </FormItem> : null}
  1270. {this.state.bpType === 5 ? <FormItem
  1271. className="half-item"
  1272. {...formItemLayout}
  1273. label={this.state.setUpStatus === 1 ? "立项时间" : ''}
  1274. >
  1275. {this.state.setUpStatus === 1 ?this.state.setUpTime : null }
  1276. </FormItem> : null}
  1277. <FormItem
  1278. className="half-item"
  1279. {...formItemLayout}
  1280. label="申报批次"
  1281. >
  1282. <span>{this.state.declarationBatch}</span>
  1283. </FormItem>
  1284. <FormItem
  1285. className="half-item"
  1286. {...formItemLayout}
  1287. label="启动时间"
  1288. >
  1289. <span>{this.state.startDate}</span>
  1290. </FormItem>
  1291. <FormItem
  1292. className="half-item"
  1293. {...formItemLayout}
  1294. label="完成时间"
  1295. >
  1296. <span>{this.state.endDate}</span>
  1297. </FormItem>
  1298. <FormItem
  1299. className="half-item"
  1300. {...formItemLayout}
  1301. label="受理时间"
  1302. >
  1303. <span>{this.state.acceptDate}</span>
  1304. </FormItem>
  1305. <FormItem
  1306. className="half-item"
  1307. {...formItemLayout}
  1308. label="评审时间"
  1309. >
  1310. <span>{this.state.reviewDate}</span>
  1311. </FormItem>
  1312. <FormItem
  1313. className="half-item"
  1314. {...formItemLayout}
  1315. label="公示时间"
  1316. >
  1317. <span>{this.state.publicityDate}</span>
  1318. </FormItem>
  1319. <FormItem
  1320. className="half-item"
  1321. {...formItemLayout}
  1322. label="发证时间"
  1323. >
  1324. <span>{this.state.licenceDate}</span>
  1325. </FormItem>
  1326. <FormItem
  1327. className="half-item"
  1328. {...formItemLayout}
  1329. label="立项金额(万元)"
  1330. >
  1331. <span>{this.state.setUpAmount}</span>
  1332. </FormItem>
  1333. <FormItem
  1334. className="half-item"
  1335. {...formItemLayout}
  1336. label="是否到款"
  1337. >
  1338. <span>
  1339. {this.state.arrivalMoney ? "已到企业" : "未到企业"}
  1340. </span>
  1341. </FormItem>
  1342. </div>
  1343. }
  1344. </div>}
  1345. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  1346. <FormItem
  1347. labelCol={{ span: 3 }}
  1348. wrapperCol={{ span: 18 }}
  1349. label="附件"
  1350. >
  1351. {this.state.visible && this.state.attachmentUrl && this.state.activeKey === "1" ? <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  1352. <ImgList fileList={this.state.attachmentUrl} domId={'taskQuery1'}/>
  1353. </div> : null}
  1354. </FormItem>
  1355. </div> : null}
  1356. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  1357. <FormItem
  1358. labelCol={{ span: 3 }}
  1359. wrapperCol={{ span: 16 }}
  1360. label="项目说明"
  1361. >
  1362. <span>{this.state.taskComment}</span>
  1363. </FormItem>
  1364. </div>: null}
  1365. <div>
  1366. <h3 className="sub-title">项目业务</h3>
  1367. {this.state.processStatus === 0 ? (
  1368. <Button
  1369. type="primary"
  1370. onClick={this.addDetailed}
  1371. style={{
  1372. float: "right",
  1373. marginRight: "50px",
  1374. marginBottom: "15px",
  1375. }}
  1376. >
  1377. 添加项目明细
  1378. </Button>
  1379. ) : null}
  1380. </div>
  1381. <div className="patent-table">
  1382. <Spin spinning={this.state.loading}>
  1383. <Table
  1384. columns={this.state.columnsX}
  1385. dataSource={this.state.dataSourceX}
  1386. pagination={this.state.paginations}
  1387. onRowClick={this.tableRowClickX}
  1388. bordered
  1389. size="small"
  1390. />
  1391. </Spin>
  1392. </div>
  1393. </div>
  1394. </Spin>
  1395. </Form> : null}
  1396. </TabPane>
  1397. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  1398. <TabPane tab="订单详情" key="2">
  1399. {this.state.activeKey === "2" ? <Spin spinning={this.state.loading}>
  1400. <OrderDetail
  1401. orderData={this.state.orderData}
  1402. getOrderLog={this.getOrderLog}
  1403. dataSourceX={this.state.dataSourceX}
  1404. contactList={this.state.jiedian}
  1405. orderNo={this.state.orderNo}
  1406. totalCui={this.state.totalCui}
  1407. contactListNew={this.state.jiedianNew}
  1408. pictureUrl={this.state.contractPictureUrl}
  1409. />
  1410. </Spin> : null}
  1411. <OrderRiZi
  1412. dataSourcerizhi={this.state.dataSourceY}
  1413. closeOrderLog={()=>{
  1414. this.setState({
  1415. avisible: false
  1416. })
  1417. }}
  1418. visible={this.state.avisible}
  1419. loading={this.state.loading}
  1420. />
  1421. </TabPane>
  1422. ) : null}
  1423. </Tabs>
  1424. </Modal> : null
  1425. );
  1426. }
  1427. }
  1428. export default ProjectDetails;