projectDetails.jsx 72 KB

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