projectDetails.jsx 78 KB

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