taskCount.jsx 78 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259
  1. import React from 'react';
  2. import { Button, Input, Spin, Table, message,DatePicker, Upload, Form ,Modal,Tabs, Select, Tag} from 'antd';
  3. import $ from 'jquery/src/ajax';
  4. import moment from 'moment';
  5. import {
  6. getLiquidationStatus,
  7. getProcessStatus,
  8. splitUrl,
  9. getboutique,
  10. getTaskStatus,
  11. getApproval,
  12. getprovince,
  13. ShowModal,
  14. getProjectStatus,
  15. getProjectName
  16. } from "@/tools.js";
  17. import ShowModalDiv from "@/showModal.jsx";
  18. import ResolutionDetail from "@/resolutionDetail";
  19. import OrderRiZi from "@/orderRiZi.jsx";
  20. import {ChooseList} from "../../order/orderNew/chooseList";
  21. import PatentSchedule from './patentSchedule';
  22. import DeclarationProgress from "../../../common/declarationProgress";
  23. import ProjectDetailsReadOnly from "../../../common/projectDetailsReadOnly";
  24. import OrderItemStatus from "../../../common/orderItemStatus";
  25. const {TabPane} = Tabs
  26. const IntentionCustomer = Form.create()(
  27. React.createClass({
  28. loadData(pageNo) {
  29. this.setState({
  30. visitModul: false,
  31. loadingA: true,
  32. ispage: pageNo,
  33. modalVisible: false
  34. });
  35. let nameText = this.state.SuperArr;
  36. let superText =
  37. this.state.cid && typeof this.state.cid != "object"
  38. ? nameText[parseInt(this.state.cid)].id
  39. : "";
  40. if (superText) {
  41. $.ajax({
  42. method: "get",
  43. dataType: "json",
  44. crossDomain: false,
  45. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  46. data: {
  47. pageNo: pageNo || 1,
  48. pageSize: this.state.pagination.pageSize,
  49. name: this.state.customerName, //名称
  50. taskId: this.state.idSearch, //订单编号
  51. orderNo: this.state.orderNoSearch,
  52. starTime: this.state.releaseDate[0], //开始时间
  53. endTime: this.state.releaseDate[1], //结束时间
  54. contractNo: this.state.contractNoSearch,
  55. cid: superText, //业务分类
  56. depId: this.state.departmenttList, //部门ID
  57. outsource: this.state.outsourceSearch
  58. },
  59. success: function(data) {
  60. let theArr = [];
  61. if (data.error.length || data.data.list == "") {
  62. if (data.error && data.error.length) {
  63. message.warning(data.error[0].message);
  64. }
  65. } else {
  66. for (let i = 0; i < data.data.list.length; i++) {
  67. let thisdata = data.data.list[i];
  68. theArr.push({
  69. key: i,
  70. id: thisdata.id, //ID
  71. orderNo: thisdata.orderNo, //订单编号
  72. taskName: thisdata.taskName, //任务名称
  73. userName: thisdata.userName, //客户名称
  74. cname: thisdata.cname, //项目品类
  75. taskStatus: thisdata.taskStatus, //任务状态
  76. receiverName: thisdata.receiverName, //负责人
  77. hours: thisdata.hours, //任务工时
  78. depName: thisdata.depName, //派单公司
  79. contractNo: thisdata.contractNo,
  80. signTime: thisdata.signTime,
  81. creteTime: thisdata.creteTime,
  82. projectStatus: thisdata.projectStatus,
  83. commodityPrice: thisdata.commodityPrice, //价格
  84. commodityQuantity: thisdata.commodityQuantity, //数量
  85. salesmanName: thisdata.salesmanName, //订单负责人
  86. taskDistributionTime: thisdata.taskDistributionTime,
  87. taskEndTime: thisdata.taskEndTime,
  88. outsource: thisdata.outsource,
  89. splitStatus: thisdata.splitStatus,
  90. splitSuper: thisdata.splitSuper,
  91. splitId: thisdata.splitId
  92. });
  93. }
  94. this.state.pagination.total = data.data.totalCount;
  95. this.state.pagination.current = data.data.pageNo;
  96. }
  97. if (data.data && data.data.list && !data.data.list.length) {
  98. this.state.pagination.total = 0;
  99. }
  100. this.setState({
  101. dataSource: theArr,
  102. pageNo: pageNo,
  103. pagination: this.state.pagination,
  104. selectedRowKeys: []
  105. });
  106. }.bind(this)
  107. }).always(
  108. function() {
  109. this.setState({
  110. loadingA: false
  111. });
  112. }.bind(this)
  113. );
  114. } else {
  115. $.ajax({
  116. method: "get",
  117. dataType: "json",
  118. crossDomain: false,
  119. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  120. data: {
  121. pageNo: pageNo || 1,
  122. pageSize: this.state.pagination.pageSize,
  123. name: this.state.customerName, //名称
  124. taskId: this.state.idSearch, //订单编号
  125. orderNo: this.state.orderNoSearch,
  126. starTime: this.state.releaseDate[0], //开始时间
  127. endTime: this.state.releaseDate[1], //结束时间
  128. contractNo: this.state.contractNoSearch,
  129. depId: this.state.departmenttList, //部门ID
  130. outsource: this.state.outsourceSearch
  131. },
  132. success: function(data) {
  133. let theArr = [];
  134. if (data.error.length || data.data.list == "") {
  135. if (data.error && data.error.length) {
  136. message.warning(data.error[0].message);
  137. }
  138. } else {
  139. for (let i = 0; i < data.data.list.length; i++) {
  140. let thisdata = data.data.list[i];
  141. thisdata.key = i;
  142. theArr.push(thisdata);
  143. }
  144. this.state.pagination.total = data.data.totalCount;
  145. this.state.pagination.current = data.data.pageNo;
  146. }
  147. if (data.data && data.data.list && !data.data.list.length) {
  148. this.state.pagination.total = 0;
  149. }
  150. this.setState({
  151. dataSource: theArr,
  152. pageNo: pageNo,
  153. pagination: this.state.pagination,
  154. selectedRowKeys: []
  155. });
  156. }.bind(this)
  157. }).always(
  158. function() {
  159. this.setState({
  160. loadingA: false
  161. });
  162. }.bind(this)
  163. );
  164. }
  165. },
  166. getInitialState() {
  167. return {
  168. page: 1,
  169. releaseDate: [],
  170. selectedRowKeys: [],
  171. timeRecordparse:{},
  172. orgCodeUrl: [],
  173. declarationBatch: 1,
  174. dataInfor: {},
  175. loadingA: false,
  176. paginations: false,
  177. pagination: {
  178. defaultCurrent: 1,
  179. defaultPageSize: 10,
  180. showQuickJumper: true,
  181. pageSize: 10,
  182. onChange: function(page) {
  183. this.loadData(page);
  184. }.bind(this),
  185. showTotal: function(total) {
  186. return "共" + total + "条数据";
  187. }
  188. },
  189. columns: [
  190. {
  191. title: "合同编号",
  192. dataIndex: "contractNo",
  193. key: "contractNo"
  194. },
  195. {
  196. title: "订单编号",
  197. dataIndex: "orderNo",
  198. key: "orderNo"
  199. },
  200. {
  201. title: "项目编号",
  202. dataIndex: "id",
  203. key: "id",
  204. render: (text, record) => {
  205. if (record.splitStatus == 2) {
  206. return <span>{record.splitSuper + "-" + record.splitId}</span>;
  207. } else {
  208. return text;
  209. }
  210. }
  211. },
  212. {
  213. title: "客户名称",
  214. dataIndex: "userName",
  215. key: "userName",
  216. render: text => {
  217. return text && text.length > 9 ? text.substr(0, 9) + "..." : text;
  218. }
  219. },
  220. {
  221. title: "订单部门",
  222. dataIndex: "depName",
  223. key: "depName"
  224. },
  225. {
  226. title: "订单负责人",
  227. dataIndex: "salesmanName",
  228. key: "salesmanName"
  229. },
  230. {
  231. title: "项目类别",
  232. dataIndex: "cname",
  233. key: "cname"
  234. },
  235. {
  236. title: "项目名称",
  237. dataIndex: "taskName",
  238. key: "taskName"
  239. },
  240. {
  241. title: "项目负责人",
  242. dataIndex: "receiverName",
  243. key: "receiverName"
  244. },
  245. {
  246. title: "项目价格(万元)",
  247. dataIndex: "commodityPrice",
  248. key: "commodityPrice"
  249. },
  250. {
  251. title: "实际成本(万元)",
  252. dataIndex: "costAmount",
  253. key: "costAmount"
  254. },
  255. {
  256. title: "已付成本(万元)",
  257. dataIndex: "partyAmount",
  258. key: "partyAmount"
  259. },
  260. {
  261. title: "数量(个)",
  262. dataIndex: "commodityQuantity",
  263. key: "commodityQuantity"
  264. },
  265. {
  266. title: "任务状态",
  267. dataIndex: "taskStatus",
  268. key: "taskStatus",
  269. render: text => {
  270. return getTaskStatus(text);
  271. }
  272. },
  273. {
  274. title: "项目状态",
  275. dataIndex: "projectStatus",
  276. key: "projectStatus",
  277. render: text => {
  278. return getProjectName(text);
  279. }
  280. },
  281. {
  282. title: "工时",
  283. dataIndex: "hours",
  284. key: "hours"
  285. },
  286. {
  287. title: "是否外包",
  288. dataIndex: "outsource",
  289. key: "outsource",
  290. render: text => {
  291. if (text == 0) {
  292. return "否";
  293. } else if (text == 1) {
  294. return "是";
  295. }
  296. }
  297. },
  298. {
  299. title: "签单日期",
  300. dataIndex: "signTime",
  301. key: "signTime"
  302. },
  303. {
  304. title: "派单日期",
  305. dataIndex: "creteTime",
  306. key: "creteTime"
  307. },
  308. {
  309. title: "分配时间",
  310. dataIndex: "taskDistributionTime",
  311. key: "taskDistributionTime"
  312. },
  313. {
  314. title: "完成时间",
  315. dataIndex: "taskEndTime",
  316. key: "taskEndTime"
  317. }
  318. ],
  319. data: [],
  320. dataSource: [],
  321. columnsX: [
  322. {
  323. title: "业务项目名称",
  324. dataIndex: "commodityName",
  325. key: "commodityName"
  326. },
  327. {
  328. title: "项目类别",
  329. dataIndex: "cname",
  330. key: "cname"
  331. },
  332. {
  333. title: "项目数量",
  334. dataIndex: "commodityQuantity",
  335. key: "commodityQuantity",
  336. render: (text, record) => {
  337. if (record.splitStatus == 1) {
  338. return (
  339. <span>
  340. {text}{" "}
  341. <Tag
  342. color="#108ee9"
  343. onClick={e => {
  344. e.stopPropagation();
  345. this.showRes(record);
  346. }}
  347. >
  348. 已拆
  349. </Tag>
  350. </span>
  351. );
  352. } else {
  353. return text;
  354. }
  355. }
  356. },
  357. {
  358. title: "金额(万元)",
  359. dataIndex: "commodityPrice",
  360. key: "commodityPrice"
  361. },
  362. {
  363. title: "负责人",
  364. dataIndex: "contacts",
  365. key: "contacts"
  366. },
  367. {
  368. title: "负责人电话",
  369. dataIndex: "contactsMobile",
  370. key: "contactsMobile"
  371. },
  372. {
  373. title: "主要项目",
  374. dataIndex: "main",
  375. key: "main",
  376. render: text => {
  377. return text ? "是" : "否";
  378. }
  379. },
  380. {
  381. title: "项目说明",
  382. dataIndex: "taskComment",
  383. key: "taskComment",
  384. render: text => {
  385. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  386. }
  387. }
  388. ],
  389. columnsA: [
  390. {
  391. title: "流程",
  392. dataIndex: "content",
  393. key: "content",
  394. align: "center"
  395. },
  396. {
  397. title: "操作人",
  398. dataIndex: "aName",
  399. key: "aName",
  400. align: "center"
  401. },
  402. {
  403. title: "时间",
  404. dataIndex: "createTimes",
  405. key: "createTimes",
  406. align: "center"
  407. }
  408. ],
  409. dataSourceX: [],
  410. dataSourceA: [],
  411. ContactsLists: [
  412. {
  413. title: "批次",
  414. dataIndex: "num",
  415. key: "num"
  416. },
  417. {
  418. title: "下证时间",
  419. dataIndex: "licenceTimes",
  420. key: "licenceTimes"
  421. },
  422. {
  423. title: "下证数量",
  424. dataIndex: "alreadyNumber",
  425. key: "alreadyNumber"
  426. },
  427. {
  428. title: "未下证数量",
  429. dataIndex: "notCount",
  430. key: "notCount"
  431. }
  432. ]
  433. };
  434. },
  435. departmentList() {
  436. this.setState({
  437. loading: true
  438. });
  439. $.ajax({
  440. method: "get",
  441. dataType: "json",
  442. crossDomain: false,
  443. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  444. data: {},
  445. success: function(data) {
  446. let thedata = data.data;
  447. let theArr = [];
  448. if (!thedata) {
  449. if (data.error && data.error.length) {
  450. message.warning(data.error[0].message);
  451. }
  452. } else {
  453. thedata.map(function(item, index) {
  454. theArr.push({
  455. key: index,
  456. name: item.name,
  457. id: item.id
  458. });
  459. });
  460. }
  461. this.setState({
  462. departmentArr: theArr
  463. });
  464. }.bind(this)
  465. }).always(
  466. function() {
  467. this.setState({
  468. loading: false
  469. });
  470. }.bind(this)
  471. );
  472. },
  473. //页面加载函数
  474. componentWillMount() {
  475. this.loadData();
  476. this.selectSuperId();
  477. this.departmentList();
  478. },
  479. // //整行点击
  480. tableRowClick(record) {
  481. this.state.RowData = record;
  482. if (record.taskName.substring(0, 5) === "软件著作权") {
  483. this.setState({
  484. speVisible: true,
  485. id: record.id,
  486. dataArr: record,
  487. commodityQuantity: record.commodityQuantity
  488. });
  489. } else {
  490. this.setState({
  491. visible: true
  492. });
  493. }
  494. this.setState({
  495. isIso: record.taskName.indexOf("贯标") !== -1,
  496. })
  497. this.xiangqing(record.id, record.taskName);
  498. this.xiangqings(record.orderNo);
  499. this.xiangmu(record.orderNo);
  500. this.loaduserss(record);
  501. },
  502. //订单详情
  503. xiangqing(id) {
  504. $.ajax({
  505. method: "get",
  506. dataType: "json",
  507. crossDomain: false,
  508. url: globalConfig.context + "/api/admin/orderProject/orderTaskDetail",
  509. data: {
  510. id: id
  511. },
  512. success: function(data) {
  513. if (data.error.length || data.data.list == "") {
  514. if (data.error && data.error.length) {
  515. message.warning(data.error[0].message);
  516. }
  517. } else {
  518. let thisdata = data.data;
  519. this.setState({
  520. certificationCorporate: thisdata.certificationCorporate,//认证费公司
  521. certificationFee: thisdata.certificationFee,//认证费
  522. ifCertificationFee: thisdata.ifCertificationFee,//是否包含认证费
  523. id: thisdata.id, //ID
  524. orderNo: thisdata.orderNo, //订单编号
  525. userName: thisdata.userName, //客户名称
  526. taskName: thisdata.taskName, //任务名称
  527. cname: thisdata.cname, //项目品类
  528. contractNo: thisdata.contractNo, //合同编号
  529. projectStatus: thisdata.projectStatus, //项目状态
  530. taskStatus: thisdata.taskStatus, //任务状态
  531. taskDate: thisdata.taskDate, //分配时间
  532. taskComment: thisdata.taskComment, //说明
  533. attachmentUrl: thisdata.attachmentUrl
  534. ? splitUrl(
  535. thisdata.attachmentUrl,
  536. ",",
  537. globalConfig.avatarHost + "/upload"
  538. )
  539. : [], //图片地址
  540. salesmanName: thisdata.salesmanName, //订单负责人
  541. startDate: thisdata.startDate, //启动日期
  542. endDate: thisdata.endDate, //结束日期
  543. acceptDate: thisdata.acceptDate, //受理日期
  544. reviewDate: thisdata.reviewDate, //评审日期
  545. publicityDate: thisdata.publicityDate, //公示日期
  546. licenceDate: thisdata.licenceDate, //发证日期
  547. contacts: thisdata.contacts, //联系人
  548. contactMobile: thisdata.contactMobile, //联系人电话
  549. legalPerson: thisdata.legalPerson, //法人
  550. legalPersonTel: thisdata.legalPersonTel, //法人电话
  551. certificateNumber: thisdata.certificateNumber, //证书编号
  552. status: thisdata.status, //状态
  553. formRetrieve: thisdata.formRetrieve, //满意度表格
  554. taskRefund: thisdata.taskRefund, //退单
  555. refundContent: thisdata.refundContent, //退单信息
  556. retrieveContent: thisdata.retrieveContent, //回收信息
  557. arrivalMoney: thisdata.arrivalMoney, //是否到款
  558. setUpAmount: thisdata.setUpAmount, //立项金额
  559. declareUser: thisdata.declareUser, //账号
  560. declarePwd: thisdata.declarePwd, //密码
  561. depName: thisdata.depName, //订单部门
  562. outsourceName: thisdata.outsourceName, //外包公司名称
  563. outsourcePrice: thisdata.outsourcePrice, //外包价格
  564. splitStatus: thisdata.splitStatus, //是否为子项目 2是 1主项目
  565. splitSuper: thisdata.splitSuper,
  566. splitId: thisdata.splitId,
  567. declarationBatch: thisdata.declarationBatch,
  568. bpType:thisdata.bpType,//0 正常 1专利 2软著 3审计 4双软 5高新 6商标
  569. cSort: thisdata.sort,
  570. specialComment: thisdata.specialComment,
  571. urgentDay: thisdata.urgentDay, //有无材料
  572. ifMaterial: thisdata.ifMaterial, //加急情况
  573. spotCheckStatus: thisdata.spotCheckStatus,
  574. setUpStatus: thisdata.setUpStatus,
  575. setUpTime: thisdata.setUpTime,
  576. highTechStatus: thisdata.highTechStatus,
  577. acceptCount:thisdata.acceptCount, //受理数
  578. certificatesCount:thisdata.certificatesCount, //授权数
  579. rejectCount:thisdata.rejectCount, //驳回数
  580. commodityQuantity:thisdata.commodityQuantity, //派单项目数
  581. timeRecordparse: thisdata.timeRecord ? JSON.parse(thisdata.timeRecord) : {},//项目状态JSON
  582. });
  583. }
  584. }.bind(this)
  585. }).always(
  586. function() {
  587. this.setState({
  588. loading: false
  589. });
  590. }.bind(this)
  591. );
  592. },
  593. //订单详情
  594. xiangqings(orderNos) {
  595. $.ajax({
  596. method: "get",
  597. dataType: "json",
  598. crossDomain: false,
  599. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  600. data: {
  601. orderNo: orderNos
  602. },
  603. success: function(data) {
  604. let thisdata = data.data;
  605. let ProvinceCityArr = [];
  606. let ProvinceS = thisdata.locationProvince; //省
  607. let citys = thisdata.locationCity; //市
  608. let Areas = thisdata.locationArea; //区
  609. ProvinceCityArr.push(ProvinceS, citys, Areas);
  610. if (data.error.length || data.data.list == "") {
  611. if (data.error && data.error.length) {
  612. message.warning(data.error[0].message);
  613. }
  614. } else {
  615. this.setState({
  616. processStatus: thisdata.processStatus, //流程状态
  617. liquidationStatus: thisdata.liquidationStatus, //结算状态
  618. approval: thisdata.approval, //特批状态
  619. orderRemarks: thisdata.orderRemarks, //订单留言
  620. salesmanName: thisdata.salesmanName, //营销员名称
  621. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  622. financeName: thisdata.financeName, //财务名称
  623. financeMobile: thisdata.financeMobile, //财务电话
  624. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  625. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  626. nowFinance: thisdata.nowFinance, //财务名称
  627. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  628. depName: thisdata.depName, //订单部门
  629. locationProvince: thisdata.locationProvince,
  630. locationCity: thisdata.locationCity,
  631. locationArea: thisdata.locationArea,
  632. ProvinceCity: ProvinceCityArr,
  633. postalAddress: thisdata.postalAddress, //详细地址
  634. outsource: thisdata.outsource,
  635. deleteSign:thisdata.deleteSign,
  636. });
  637. }
  638. }.bind(this)
  639. }).always(
  640. function() {
  641. this.setState({
  642. loading: false
  643. });
  644. }.bind(this)
  645. );
  646. },
  647. //查看下证信息
  648. loaduserss(record) {
  649. $.ajax({
  650. method: "get",
  651. dataType: "json",
  652. crossDomain: false,
  653. url:
  654. globalConfig.context + "/api/admin/orderProject/selectTaskProgress",
  655. data: {
  656. tid: record.id
  657. },
  658. success: function(data) {
  659. let theArr = [];
  660. let thisData = [];
  661. if (!thisData) {
  662. if (data.error && data.error.length) {
  663. message.warning(data.error[0].message);
  664. }
  665. thisData = {};
  666. } else {
  667. for (let i = 0; i < data.data.length; i++) {
  668. thisData = data.data[i];
  669. theArr.push({
  670. num: i + 1,
  671. key: i,
  672. id: thisData.id, //编号
  673. alreadyNumber: thisData.alreadyNumber, //下证数
  674. licenceTimes: thisData.licenceTimes, //下证时间
  675. notCount: thisData.notCount, //未下证数
  676. flag: true
  677. });
  678. }
  679. this.setState({
  680. contactList: theArr
  681. });
  682. }
  683. }.bind(this)
  684. }).always(
  685. function() {
  686. this.setState({
  687. loading: false
  688. });
  689. }.bind(this)
  690. );
  691. },
  692. //操作日志
  693. caozuorizhi() {
  694. this.setState({
  695. visibleA: true
  696. });
  697. $.ajax({
  698. method: "get",
  699. dataType: "json",
  700. crossDomain: false,
  701. url: globalConfig.context + "/api/admin/orderProject/TaskLogList",
  702. data: {
  703. id: this.state.id
  704. },
  705. success: function(data) {
  706. let theArr = [];
  707. if (data.error.length || data.data.list == "") {
  708. if (data.error && data.error.length) {
  709. message.warning(data.error[0].message);
  710. }
  711. } else {
  712. for (let i = 0; i < data.data.length; i++) {
  713. let thisdata = data.data[i];
  714. theArr.push({
  715. key: i,
  716. id: thisdata.id, //日志ID
  717. content: thisdata.content, //流程
  718. taskId: thisdata.taskId, //任务ID
  719. aName: thisdata.aName, //负责人
  720. createTimes: thisdata.createTimes //时间
  721. });
  722. }
  723. }
  724. this.setState({
  725. dataSourceA: theArr
  726. });
  727. }.bind(this)
  728. }).always(
  729. function() {
  730. this.setState({
  731. loading: false
  732. });
  733. }.bind(this)
  734. );
  735. },
  736. //关闭操作工时
  737. visitCancelA() {
  738. this.setState({
  739. visibleA: false
  740. });
  741. },
  742. //项目列表
  743. xiangmu(orderNos) {
  744. $.ajax({
  745. method: "get",
  746. dataType: "json",
  747. crossDomain: false,
  748. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  749. data: {
  750. orderNo: orderNos
  751. },
  752. success: function(data) {
  753. let theArr = [];
  754. if (data.error.length || data.data.list == "") {
  755. if (data.error && data.error.length) {
  756. message.warning(data.error[0].message);
  757. }
  758. } else {
  759. for (let i = 0; i < data.data.length; i++) {
  760. let thisdata = data.data[i];
  761. thisdata.key = i;
  762. theArr.push(thisdata);
  763. }
  764. }
  765. this.setState({
  766. dataSourceX: theArr
  767. });
  768. }.bind(this)
  769. }).always(
  770. function() {
  771. this.setState({
  772. loading: false
  773. });
  774. }.bind(this)
  775. );
  776. },
  777. // 拆分详细
  778. showRes(record) {
  779. this.setState({
  780. resVisible: true,
  781. resRecord: record
  782. });
  783. },
  784. resCancel() {
  785. this.setState({
  786. resVisible: false
  787. });
  788. },
  789. //关闭输入理由框
  790. noCancel() {
  791. this.setState({
  792. noVisible: false
  793. });
  794. },
  795. //搜索
  796. search() {
  797. this.setState({
  798. //signBillVisible:false
  799. });
  800. this.loadData();
  801. },
  802. //重置
  803. reset() {
  804. this.setState({
  805. signBillVisible: false
  806. });
  807. this.state.orderNo = "";
  808. this.state.customerName = "";
  809. this.state.releaseDate[0] = undefined;
  810. this.state.releaseDate[1] = undefined;
  811. this.state.orderNoSearch = "";
  812. this.state.departmenttList = [];
  813. this.state.cid = [];
  814. this.state.contractNoSearch = "";
  815. this.state.outsourceSearch = [];
  816. this.setState({
  817. urgentDay: '', //有无材料
  818. ifMaterial: '', //加急情况
  819. specialComment: '', //特别说明
  820. spotCheckStatus: '',
  821. setUpStatus: '',
  822. setUpTime: '',
  823. highTechStatus: '',
  824. })
  825. this.loadData();
  826. },
  827. resets() {
  828. this.state.orderNo = "";
  829. this.state.customerName = "";
  830. this.state.releaseDate[0] = undefined;
  831. this.state.releaseDate[1] = undefined;
  832. },
  833. getOrgCodeUrl(e) {
  834. this.setState({ orgCodeUrl: e });
  835. },
  836. setColor() {
  837. $(".userName span").after(
  838. "(<span class='ruanzhu'>软著数</span>/<span class='xiazheng'>下证数</span>)"
  839. );
  840. },
  841. closeDesc(e, s) {
  842. this.state.showDesc = e;
  843. if (s) {
  844. this.loadData(this.state.page);
  845. }
  846. },
  847. closeAssign(e, s) {
  848. this.state.roleName = "";
  849. this.state.assignVisible = e;
  850. if (s) {
  851. this.loadData(this.state.page);
  852. }
  853. },
  854. nextCancel() {
  855. this.setState({
  856. addnextVisible: false
  857. });
  858. },
  859. //点击打卡项目详情
  860. tableRowClickX(record) {
  861. this.setState({
  862. jid: record.id, //项目ID
  863. kid: record.commodityId, //商品ID
  864. commodityName: record.commodityName, //金额
  865. commodityPrice: record.commodityPrice, //金额
  866. commodityQuantity: record.commodityQuantity, //数量
  867. taskComment: record.taskComment, //备注
  868. main: record.main.toString(), //是否为主要
  869. addnextVisible: true,
  870. dataInfor:record,
  871. addState: 0
  872. });
  873. },
  874. //关闭详情
  875. visitCancel() {
  876. this.setState({
  877. visible: false,
  878. speVisible: false
  879. });
  880. this.resets();
  881. },
  882. visitOk() {
  883. this.setState({
  884. visible: false
  885. });
  886. this.resets();
  887. },
  888. //关闭详情
  889. visitCancels() {
  890. this.setState({
  891. visibles: false
  892. });
  893. this.resets();
  894. },
  895. //导出
  896. exportExec() {
  897. var data = {
  898. name: this.state.customerName ? this.state.customerName : undefined, //订单负责人
  899. taskId: this.state.orderNo ? this.state.orderNo : undefined, //订单编号
  900. starTime: this.state.releaseDate[0]
  901. ? this.state.releaseDate[0]
  902. : undefined,
  903. endTime: this.state.releaseDate[1]
  904. ? this.state.releaseDate[1]
  905. : undefined
  906. };
  907. window.location.href =
  908. globalConfig.context +
  909. "/api/admin/orderProject/exportMyTaskList?" +
  910. $.param(data);
  911. },
  912. visitOks() {
  913. this.setState({
  914. visibles: false
  915. });
  916. this.resets();
  917. },
  918. selectSuperId() {
  919. this.state.data = [];
  920. $.ajax({
  921. method: "get",
  922. dataType: "json",
  923. crossDomain: false,
  924. url: globalConfig.context + "/api/admin/ProjectSize/getAllCname",
  925. data: {
  926. flag: 0
  927. },
  928. success: function(data) {
  929. let theArr = [];
  930. let thedata = data.data;
  931. if (!thedata) {
  932. if (data.error && data.error.length) {
  933. message.warning(data.error[0].message);
  934. }
  935. thedata = {};
  936. }
  937. var contactIds = [];
  938. for (var i = 0; i < data.data.length; i++) {
  939. let theData = data.data[i];
  940. theArr.push(
  941. <Select.Option value={i.toString()} key={theData.cname}>
  942. {theData.cname}
  943. </Select.Option>
  944. );
  945. }
  946. this.setState({
  947. SuperArr: thedata,
  948. contactsOption: theArr,
  949. orderStatusOptions: data.data
  950. });
  951. }.bind(this)
  952. }).always(
  953. function() {
  954. this.loadData(this.state.ispage);
  955. this.setState({
  956. loading: false
  957. });
  958. }.bind(this)
  959. );
  960. },
  961. rizhi() {
  962. this.setState({
  963. loading: true
  964. });
  965. $.ajax({
  966. method: "get",
  967. dataType: "json",
  968. crossDomain: false,
  969. url: "/api/admin/newOrder/selectOrderLog",
  970. data: {
  971. orderNo: this.state.orderNo
  972. },
  973. success: function(data) {
  974. let theArr = [];
  975. let thisData = data.data;
  976. if (!thisData.length) {
  977. if (data.error && data.error.length) {
  978. message.warning(data.error[0].message);
  979. }
  980. thisData = {};
  981. } else {
  982. for (let i = 0; i < data.data.length; i++) {
  983. let thisdata = data.data[i];
  984. theArr.push({
  985. processName: thisdata.processName,
  986. adminName: thisdata.adminName,
  987. createDate: thisdata.createDate,
  988. remarks: thisdata.remarks
  989. });
  990. }
  991. }
  992. this.setState({
  993. dataSourceY: theArr
  994. });
  995. }.bind(this)
  996. }).always(
  997. function() {
  998. this.setState({
  999. loading: false
  1000. });
  1001. }.bind(this)
  1002. );
  1003. },
  1004. closeOrderLog() {
  1005. this.setState({
  1006. avisible: false
  1007. });
  1008. },
  1009. getOrderLog() {
  1010. this.setState({
  1011. avisible: true
  1012. });
  1013. this.rizhi();
  1014. },
  1015. changeList(arr) {
  1016. const newArr = [];
  1017. this.state.columns.forEach(item => {
  1018. arr.forEach(val => {
  1019. if (val === item.title) {
  1020. newArr.push(item);
  1021. }
  1022. });
  1023. });
  1024. this.setState({
  1025. changeList: newArr
  1026. });
  1027. },
  1028. render() {
  1029. const formItemLayout = {
  1030. labelCol: { span: 8 },
  1031. wrapperCol: { span: 14 }
  1032. };
  1033. const utils = {
  1034. getSatisfaction: function(num) {
  1035. switch (num) {
  1036. case 0:
  1037. return "未收回";
  1038. case 1:
  1039. return "已收回";
  1040. default:
  1041. return "其它";
  1042. }
  1043. },
  1044. getChargeback: function(num) {
  1045. switch (num) {
  1046. case 0:
  1047. return "已完成";
  1048. case 1:
  1049. return "未完成";
  1050. default:
  1051. return "其它";
  1052. }
  1053. }
  1054. };
  1055. const FormItem = Form.Item;
  1056. const { RangePicker } = DatePicker;
  1057. const departmentArr = this.state.departmentArr || [];
  1058. const isWai = [
  1059. {
  1060. id: 0,
  1061. name: "非外包"
  1062. },
  1063. {
  1064. id: 1,
  1065. name: "外包"
  1066. }
  1067. ];
  1068. return (
  1069. <div className="user-content">
  1070. {this.state.resVisible ? (
  1071. <ResolutionDetail
  1072. cancel={this.resCancel}
  1073. detail={this.state.resRecord}
  1074. visible={this.state.resVisible}
  1075. id={this.state.resRecord.orderNo}
  1076. />
  1077. ) : (
  1078. ""
  1079. )}
  1080. <ShowModalDiv ShowModal={this.state.showModal} />
  1081. <div className="content-title">
  1082. <span>工时数据统计</span>
  1083. </div>
  1084. <div className="user-search">
  1085. <Tabs
  1086. defaultActiveKey="1"
  1087. onChange={this.callback}
  1088. className="test"
  1089. >
  1090. <TabPane tab="搜索" key="1">
  1091. <Input
  1092. placeholder="客户名称"
  1093. style={{
  1094. width: "150px",
  1095. marginBottom: "10px",
  1096. marginTop: 10,
  1097. marginLeft: 10,
  1098. marginRight: 10,
  1099. }}
  1100. value={this.state.customerName}
  1101. onChange={(e) => {
  1102. this.setState({ customerName: e.target.value });
  1103. }}
  1104. />
  1105. <Input
  1106. placeholder="任务编号"
  1107. style={{ width: "150px", marginRight: 10 }}
  1108. value={this.state.idSearch}
  1109. onChange={(e) => {
  1110. this.setState({ idSearch: e.target.value });
  1111. }}
  1112. />
  1113. <Input
  1114. placeholder="订单编号"
  1115. style={{ width: "150px", marginRight: 10 }}
  1116. value={this.state.orderNoSearch}
  1117. onChange={(e) => {
  1118. this.setState({
  1119. orderNoSearch: e.target.value,
  1120. });
  1121. }}
  1122. />
  1123. <Input
  1124. placeholder="合同编号"
  1125. style={{ width: "150px", marginRight: 10 }}
  1126. value={this.state.contractNoSearch}
  1127. onChange={(e) => {
  1128. this.setState({
  1129. contractNoSearch: e.target.value,
  1130. });
  1131. }}
  1132. />
  1133. <Select
  1134. placeholder="订单部门"
  1135. style={{ width: 150, marginRight: 10 }}
  1136. value={this.state.departmenttList}
  1137. onChange={(e) => {
  1138. this.setState({ departmenttList: e });
  1139. }}
  1140. >
  1141. {departmentArr.map(function (item) {
  1142. return (
  1143. <Select.Option key={item.id}>{item.name}</Select.Option>
  1144. );
  1145. })}
  1146. </Select>
  1147. <Select
  1148. placeholder="项目类别"
  1149. style={{ width: "150", marginRight: "10px" }}
  1150. value={this.state.cid}
  1151. onChange={(e) => {
  1152. this.setState({ cid: e });
  1153. }}
  1154. notFoundContent="未获取到上级品类列表"
  1155. >
  1156. {this.state.contactsOption}
  1157. </Select>
  1158. <Select
  1159. placeholder="是否外包"
  1160. style={{ width: "150", marginRight: "10px" }}
  1161. value={this.state.outsourceSearch}
  1162. onChange={(e) => {
  1163. this.setState({ outsourceSearch: e });
  1164. }}
  1165. >
  1166. {isWai.map(function (item) {
  1167. return (
  1168. <Select.Option key={item.id}>{item.name}</Select.Option>
  1169. );
  1170. })}
  1171. </Select>
  1172. <span style={{ marginRight: "10px" }}>合同签订时间 :</span>
  1173. <RangePicker
  1174. value={[
  1175. this.state.releaseDate[0]
  1176. ? moment(this.state.releaseDate[0])
  1177. : null,
  1178. this.state.releaseDate[1]
  1179. ? moment(this.state.releaseDate[1])
  1180. : null,
  1181. ]}
  1182. onChange={(data, dataString) => {
  1183. this.setState({ releaseDate: dataString });
  1184. }}
  1185. />
  1186. <Button
  1187. type="primary"
  1188. onClick={this.search}
  1189. style={{ marginLeft: "10px", marginRight: 10 }}
  1190. >
  1191. 搜索
  1192. </Button>
  1193. <Button onClick={this.reset}>重置</Button>
  1194. </TabPane>
  1195. <TabPane tab="导出" key="2">
  1196. <Button
  1197. type="primary"
  1198. onClick={this.exportExec}
  1199. style={{ margin: "10px" }}
  1200. >
  1201. 导出工时数据
  1202. </Button>
  1203. </TabPane>
  1204. <TabPane tab="更改表格显示数据" key="3">
  1205. <div style={{ marginLeft: 10 }}>
  1206. <ChooseList
  1207. columns={this.state.columns}
  1208. changeFn={this.changeList}
  1209. changeList={this.state.changeList}
  1210. top={55}
  1211. margin={11}
  1212. />
  1213. </div>
  1214. </TabPane>
  1215. </Tabs>
  1216. <div className="patent-table">
  1217. <Spin spinning={this.state.loadingA}>
  1218. <Table
  1219. columns={
  1220. this.state.changeList
  1221. ? this.state.changeList
  1222. : this.state.columns
  1223. }
  1224. dataSource={this.state.dataSource}
  1225. pagination={this.state.pagination}
  1226. onRowClick={this.tableRowClick.bind(this)}
  1227. scroll={{ x: "max-content", y: 0 }}
  1228. bordered
  1229. size="small"
  1230. />
  1231. </Spin>
  1232. </div>
  1233. </div>
  1234. <Modal
  1235. className="customeDetails"
  1236. footer=""
  1237. title="项目概况"
  1238. width="900px"
  1239. visible={this.state.visible}
  1240. onOk={this.visitOk}
  1241. onCancel={this.visitCancel}
  1242. >
  1243. <Form
  1244. layout="horizontal"
  1245. onSubmit={this.handleSubmit}
  1246. id="demand-form"
  1247. style={{ paddingBottom: "00px" }}
  1248. >
  1249. <Spin spinning={this.state.loading}>
  1250. <div className="clearfix">
  1251. <div style={{position:"absolute",top:'-52px',left:'81px',zIndex:10000}}>
  1252. <OrderItemStatus deleteSign={this.state.deleteSign}/>
  1253. </div>
  1254. <div className="clearfix">
  1255. <FormItem
  1256. className="half-item"
  1257. {...formItemLayout}
  1258. label="项目状态"
  1259. >
  1260. <span>{getProjectName(parseInt(this.state.projectStatus))}</span>
  1261. <Button
  1262. type="primary"
  1263. size="small"
  1264. style={{ marginTop: '5px', position: 'absolute' }}
  1265. onClick={this.caozuorizhi}
  1266. >
  1267. 操作日志
  1268. </Button>
  1269. </FormItem>
  1270. <FormItem
  1271. className="half-item"
  1272. {...formItemLayout}
  1273. label="合同编号"
  1274. >
  1275. <span>{this.state.contractNo}</span>
  1276. </FormItem>
  1277. </div>
  1278. <div className="clearfix">
  1279. <FormItem
  1280. className="half-item"
  1281. {...formItemLayout}
  1282. label="是否特批"
  1283. >
  1284. <span>{getApproval(this.state.approval)}</span>
  1285. </FormItem>
  1286. <FormItem
  1287. className="half-item"
  1288. {...formItemLayout}
  1289. label="结算状态"
  1290. >
  1291. <span>
  1292. {getLiquidationStatus(this.state.liquidationStatus)}
  1293. </span>
  1294. </FormItem>
  1295. <FormItem
  1296. className="half-item"
  1297. {...formItemLayout}
  1298. label="流程状态"
  1299. >
  1300. <span>{getProcessStatus(this.state.processStatus)}</span>
  1301. </FormItem>
  1302. <FormItem
  1303. className="half-item"
  1304. {...formItemLayout}
  1305. label="订单编号"
  1306. >
  1307. <span>{this.state.orderNo}</span>
  1308. </FormItem>
  1309. </div>
  1310. <div className="clearfix">
  1311. <FormItem
  1312. className="half-item"
  1313. {...formItemLayout}
  1314. label="满意度表格"
  1315. >
  1316. <span>
  1317. {utils.getSatisfaction(this.state.formRetrieve)}
  1318. </span>
  1319. </FormItem>
  1320. {
  1321. <FormItem
  1322. className="half-item"
  1323. {...formItemLayout}
  1324. label="(满意度)备注"
  1325. >
  1326. <span>{this.state.retrieveContent}</span>
  1327. </FormItem>
  1328. }
  1329. {/*<FormItem*/}
  1330. {/* className="half-item"*/}
  1331. {/* {...formItemLayout}*/}
  1332. {/* label="退单"*/}
  1333. {/*>*/}
  1334. {/* <span>{utils.getChargeback(this.state.taskRefund)}</span>*/}
  1335. {/*</FormItem>*/}
  1336. </div>
  1337. <div className="clearfix">
  1338. <div style={{
  1339. paddingLeft: '8%',
  1340. }}>
  1341. <div style={{color:'#000',fontWeight:500}}>
  1342. 特别说明
  1343. <span style={{color: '#58a3ff',}}>(针对项目的特殊情况说明)</span>
  1344. </div>
  1345. <div style={{
  1346. display:'flex',
  1347. }}>
  1348. <span style={{paddingRight:'10px',whiteSpace:"nowrap"}}>备注:</span>
  1349. <span style={{
  1350. flex: 1,
  1351. wordBreak: 'break-all',
  1352. }}>{this.state.specialComment}</span>
  1353. </div>
  1354. </div>
  1355. {
  1356. // <FormItem
  1357. // className="half-item"
  1358. // {...formItemLayout}
  1359. // label="(退单)备注"
  1360. // >
  1361. // <span>{this.state.refundContent}</span>
  1362. // </FormItem>
  1363. }
  1364. </div>
  1365. <div className="clearfix">
  1366. <h3 className="sub-title">任务信息</h3>
  1367. {/*0通用 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1368. {/*贯标需要显示*/}
  1369. {
  1370. this.state.isIso ?
  1371. <div>
  1372. <FormItem
  1373. className="half-item"
  1374. {...formItemLayout}
  1375. label="认证费"
  1376. >
  1377. <span>
  1378. {
  1379. this.state.ifCertificationFee === 1 ? '包含' : '不包含'
  1380. }
  1381. </span>
  1382. </FormItem>
  1383. {this.state.ifCertificationFee === 1 ?<FormItem
  1384. className="half-item"
  1385. {...formItemLayout}
  1386. label="认证费(万元)"
  1387. >
  1388. <span>
  1389. {
  1390. this.state.certificationFee
  1391. }
  1392. </span>
  1393. </FormItem> : null}
  1394. {this.state.ifCertificationFee === 1 ? <FormItem
  1395. className="half-item"
  1396. {...formItemLayout}
  1397. label=""
  1398. /> : null}
  1399. {this.state.ifCertificationFee === 1 ? <FormItem
  1400. className="half-item"
  1401. {...formItemLayout}
  1402. label="付款公司名称"
  1403. >
  1404. <span>
  1405. {this.state.certificationCorporate}
  1406. </span>
  1407. </FormItem>:null}
  1408. </div> : null
  1409. }
  1410. <FormItem
  1411. className="half-item"
  1412. {...formItemLayout}
  1413. label="任务编号"
  1414. >
  1415. <span>
  1416. {this.state.splitStatus == 2
  1417. ? this.state.splitSuper + "-" + this.state.splitId
  1418. : this.state.id}
  1419. </span>
  1420. </FormItem>
  1421. <FormItem
  1422. className="half-item"
  1423. {...formItemLayout}
  1424. label="任务名称"
  1425. >
  1426. <span>{this.state.taskName}</span>
  1427. </FormItem>
  1428. <FormItem
  1429. className="half-item"
  1430. {...formItemLayout}
  1431. label="任务状态"
  1432. >
  1433. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1434. </FormItem>
  1435. <FormItem
  1436. className="half-item"
  1437. {...formItemLayout}
  1438. label="任务类别"
  1439. >
  1440. <span>{this.state.cname}</span>
  1441. </FormItem>
  1442. <FormItem
  1443. className="half-item"
  1444. {...formItemLayout}
  1445. label="证书编号"
  1446. >
  1447. <span>{this.state.certificateNumber}</span>
  1448. </FormItem>
  1449. </div>
  1450. {/*{this.state.outsource === 1 ? (*/}
  1451. {/* <div className="clearfix">*/}
  1452. {/* <h3 className="sub-title">外包信息</h3>*/}
  1453. {/* <FormItem*/}
  1454. {/* className="half-item"*/}
  1455. {/* {...formItemLayout}*/}
  1456. {/* label="外包公司"*/}
  1457. {/* >*/}
  1458. {/* <span>{this.state.outsourceName}</span>*/}
  1459. {/* </FormItem>*/}
  1460. {/* <FormItem*/}
  1461. {/* className="half-item"*/}
  1462. {/* {...formItemLayout}*/}
  1463. {/* label="外包成本(万元)"*/}
  1464. {/* >*/}
  1465. {/* <span>{this.state.outsourcePrice}</span>*/}
  1466. {/* </FormItem>*/}
  1467. {/* </div>*/}
  1468. {/*) : (*/}
  1469. {/* ""*/}
  1470. {/*)}*/}
  1471. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1472. <div className="clearfix">
  1473. <h3 className="sub-title">联系信息</h3>
  1474. <FormItem
  1475. className="half-item"
  1476. {...formItemLayout}
  1477. label="客户名称"
  1478. >
  1479. <span>{this.state.userName}</span>
  1480. </FormItem>
  1481. <FormItem
  1482. className="half-item"
  1483. {...formItemLayout}
  1484. label="企业法人"
  1485. >
  1486. <span>{this.state.legalPerson}</span>
  1487. </FormItem>
  1488. <FormItem
  1489. className="half-item"
  1490. {...formItemLayout}
  1491. label="法人电话"
  1492. >
  1493. <span>{this.state.legalPersonTel}</span>
  1494. </FormItem>
  1495. <FormItem
  1496. className="half-item"
  1497. {...formItemLayout}
  1498. label="客户联系人"
  1499. >
  1500. <span>{this.state.contacts}</span>
  1501. </FormItem>
  1502. <FormItem
  1503. className="half-item"
  1504. {...formItemLayout}
  1505. label="联系人电话"
  1506. >
  1507. <span>{this.state.contactMobile}</span>
  1508. </FormItem>
  1509. <FormItem
  1510. className="half-item"
  1511. {...formItemLayout}
  1512. label="企业地址"
  1513. >
  1514. <span>
  1515. {getprovince(this.state.locationProvince)}/
  1516. {getprovince(this.state.locationCity)}/
  1517. {getprovince(this.state.locationArea)}
  1518. </span>
  1519. </FormItem>
  1520. <FormItem
  1521. className="half-item"
  1522. {...formItemLayout}
  1523. label=""
  1524. ></FormItem>
  1525. <FormItem
  1526. className="half-item"
  1527. {...formItemLayout}
  1528. label="详细地址"
  1529. >
  1530. <span>{this.state.postalAddress}</span>
  1531. </FormItem>
  1532. </div>
  1533. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1534. <div className="clearfix">
  1535. <h3 className="sub-title">订单负责人信息</h3>
  1536. <FormItem
  1537. className="half-item"
  1538. {...formItemLayout}
  1539. label="负责人"
  1540. >
  1541. <span>
  1542. {this.state.salesmanName +
  1543. "(" +
  1544. this.state.depName +
  1545. ")"}
  1546. </span>
  1547. </FormItem>
  1548. <FormItem
  1549. className="half-item"
  1550. {...formItemLayout}
  1551. label="负责人电话"
  1552. >
  1553. <span>{this.state.salesmanMobile}</span>
  1554. </FormItem>
  1555. <FormItem
  1556. className="half-item"
  1557. {...formItemLayout}
  1558. label="当前财务负责人"
  1559. >
  1560. <span>{this.state.nowFinance}</span>
  1561. </FormItem>
  1562. <FormItem
  1563. className="half-item"
  1564. {...formItemLayout}
  1565. label="当前财务负责人电话"
  1566. >
  1567. <span>{this.state.nowFinanceMobile}</span>
  1568. </FormItem>
  1569. <FormItem
  1570. className="half-item"
  1571. {...formItemLayout}
  1572. style={{ opacity: ".5" }}
  1573. label="原负责人"
  1574. >
  1575. <span>{this.state.oldSalesmanName}</span>
  1576. </FormItem>
  1577. <FormItem
  1578. className="half-item"
  1579. {...formItemLayout}
  1580. style={{ opacity: ".5" }}
  1581. label="原负责人电话"
  1582. >
  1583. <span>{this.state.oldSalesmanMobile}</span>
  1584. </FormItem>
  1585. <FormItem
  1586. className="half-item"
  1587. {...formItemLayout}
  1588. style={{ opacity: ".5" }}
  1589. label="实际财务操作人"
  1590. >
  1591. <span>{this.state.financeName}</span>
  1592. </FormItem>
  1593. <FormItem
  1594. className="half-item"
  1595. {...formItemLayout}
  1596. style={{ opacity: ".5" }}
  1597. label="实际财务操作人电话"
  1598. >
  1599. <span>{this.state.financeMobile}</span>
  1600. </FormItem>
  1601. <FormItem
  1602. className="half-item"
  1603. {...formItemLayout}
  1604. label="订单留言"
  1605. >
  1606. <span>{this.state.orderRemarks}</span>
  1607. </FormItem>
  1608. <FormItem
  1609. className="half-item"
  1610. {...formItemLayout}
  1611. label=""
  1612. >
  1613. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  1614. </FormItem>
  1615. <OrderRiZi
  1616. dataSourcerizhi={this.state.dataSourceY}
  1617. closeOrderLog={this.closeOrderLog}
  1618. visible={this.state.avisible}
  1619. loading={this.state.loading}
  1620. />
  1621. </div>
  1622. <div className="clearfix">
  1623. <h3 className="sub-title">申报系统账户信息</h3>
  1624. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  1625. <FormItem
  1626. className="half-item"
  1627. {...formItemLayout}
  1628. label="用户名"
  1629. >
  1630. <span>{this.state.declareUser ? "*" : ""}</span>
  1631. </FormItem>
  1632. <FormItem
  1633. className="half-item"
  1634. {...formItemLayout}
  1635. label="密码"
  1636. >
  1637. <span>{this.state.declarePwd ? "*" : ""}</span>
  1638. </FormItem>
  1639. </div>
  1640. <div className="clearfix">
  1641. <h3 className="sub-title">项目申报进度</h3>
  1642. <DeclarationProgress
  1643. timeRecordparse={this.state.timeRecordparse}
  1644. startDate={this.state.startDate}
  1645. taskDate={this.state.taskDate}
  1646. list={[
  1647. {id:4,name:'完成时间',value:this.state.endDate},
  1648. {id:6,name:'受理时间',value:this.state.acceptDate},
  1649. {id:8,name:'公示时间',value:this.state.publicityDate},
  1650. {id:10,name:'发证时间',value:this.state.licenceDate},
  1651. {id:15,name:'立项金额',value:this.state.setUpAmount}
  1652. ]}/>
  1653. {/*专利显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1654. {
  1655. this.state.bpType === 1 || this.state.bpType === 6 ?
  1656. <div>
  1657. <FormItem
  1658. labelCol={{ span: 3 }}
  1659. wrapperCol={{ span: 16 }}
  1660. label="是否高新企业"
  1661. >
  1662. <span>
  1663. {
  1664. this.state.highTechStatus === 1 ? '是':
  1665. this.state.highTechStatus === 0 ? '否' : ''
  1666. }
  1667. </span>
  1668. </FormItem>
  1669. <FormItem/>
  1670. <PatentSchedule
  1671. readOnly
  1672. bpType={this.state.bpType}
  1673. taskId={this.state.id}
  1674. acceptCount={this.state.acceptCount}
  1675. certificatesCount={this.state.certificatesCount}
  1676. rejectCount={this.state.rejectCount}
  1677. commodityQuantity={this.state.commodityQuantity}
  1678. />
  1679. </div> :
  1680. <div>
  1681. {/*高新显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1682. {this.state.bpType === 5 ? <FormItem
  1683. className="half-item"
  1684. {...formItemLayout}
  1685. label="是否抽查">
  1686. {
  1687. this.state.spotCheckStatus === 0 ? '否':
  1688. this.state.spotCheckStatus === 1 ? '是,未通过':
  1689. this.state.spotCheckStatus === 2 ? '是,通过': ''
  1690. }
  1691. </FormItem> : null}
  1692. <FormItem/>
  1693. {this.state.bpType === 5 ? <FormItem
  1694. className="half-item"
  1695. {...formItemLayout}
  1696. label="是否立项"
  1697. >
  1698. {
  1699. this.state.setUpStatus === 1 ? '是' :
  1700. this.state.setUpStatus === 0 ? '否' : ''
  1701. }
  1702. </FormItem> : null}
  1703. {this.state.bpType === 5 ? <FormItem
  1704. className="half-item"
  1705. {...formItemLayout}
  1706. label={this.state.setUpStatus === 1 ? "立项时间" : ''}
  1707. >
  1708. {this.state.setUpStatus === 1 ?this.state.setUpTime : null }
  1709. </FormItem> : null}
  1710. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1711. {/*cSort: 3 科技项目 6: 会员*/}
  1712. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  1713. className="half-item"
  1714. {...formItemLayout}
  1715. label="申报批次"
  1716. >
  1717. <span>{this.state.declarationBatch}</span>
  1718. </FormItem>}
  1719. {/*只有科技项目才有是否到款*/}
  1720. {/*cSort: 3 科技项目 6: 会员*/}
  1721. {this.state.cSort === 3 && <FormItem
  1722. className="half-item"
  1723. {...formItemLayout}
  1724. label="是否到款"
  1725. >
  1726. <span>
  1727. {this.state.arrivalMoney ? "已到企业" : "未到企业"}
  1728. </span>
  1729. </FormItem>}
  1730. </div>}
  1731. </div>
  1732. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  1733. <FormItem
  1734. labelCol={{ span: 3 }}
  1735. wrapperCol={{ span: 18 }}
  1736. label="附件"
  1737. >
  1738. <Upload
  1739. className="demandDetailShow-upload"
  1740. listType="picture-card"
  1741. fileList={this.state.attachmentUrl}
  1742. onPreview={(file) => {
  1743. this.setState({
  1744. previewImage: file.url || file.thumbUrl,
  1745. previewVisible: true,
  1746. });
  1747. }}
  1748. />
  1749. <Modal
  1750. maskClosable={false}
  1751. footer={null}
  1752. visible={this.state.previewVisible}
  1753. onCancel={() => {
  1754. this.setState({ previewVisible: false });
  1755. }}
  1756. >
  1757. <img
  1758. alt=""
  1759. style={{ width: "100%" }}
  1760. src={this.state.previewImage || ""}
  1761. />
  1762. </Modal>
  1763. </FormItem>
  1764. </div> : null}
  1765. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  1766. <FormItem
  1767. labelCol={{ span: 3 }}
  1768. wrapperCol={{ span: 16 }}
  1769. label="项目说明"
  1770. >
  1771. <span>{this.state.taskComment}</span>
  1772. </FormItem>
  1773. </div> : null}
  1774. <div>
  1775. <h3 className="sub-title">项目业务</h3>
  1776. {this.state.processStatus == 0 ? (
  1777. <Button
  1778. type="primary"
  1779. onClick={this.addDetailed}
  1780. style={{
  1781. float: "right",
  1782. marginRight: "50px",
  1783. marginBottom: "15px",
  1784. }}
  1785. >
  1786. 添加项目明细
  1787. </Button>
  1788. ) : (
  1789. ""
  1790. )}
  1791. </div>
  1792. <div className="patent-table">
  1793. <Spin spinning={this.state.loading}>
  1794. <Table
  1795. columns={this.state.columnsX}
  1796. dataSource={this.state.dataSourceX}
  1797. size="small"
  1798. bordered
  1799. style={{
  1800. cursor: 'pointer',
  1801. }}
  1802. pagination={this.state.paginations}
  1803. onRowClick={this.tableRowClickX}
  1804. />
  1805. </Spin>
  1806. </div>
  1807. </div>
  1808. </Spin>
  1809. </Form>
  1810. </Modal>
  1811. <Modal
  1812. width="800px"
  1813. title="操作日志"
  1814. footer=""
  1815. className="admin-desc-content"
  1816. >
  1817. <div className="patent-table patent-table-center">
  1818. <Spin spinning={this.state.loading}>
  1819. <Table columns={this.state.columnsY} />
  1820. </Spin>
  1821. </div>
  1822. </Modal>
  1823. <Modal
  1824. maskClosable={false}
  1825. visible={this.state.speVisible}
  1826. onOk={this.visitOk}
  1827. onCancel={this.visitCancel}
  1828. width="900px"
  1829. title="项目概况"
  1830. footer=""
  1831. className="admin-desc-content"
  1832. >
  1833. <div className="clearfix">
  1834. <div style={{position:"absolute",top:'-52px',left:'81px',zIndex:10000}}>
  1835. <OrderItemStatus deleteSign={this.state.deleteSign}/>
  1836. </div>
  1837. <FormItem
  1838. className="half-item"
  1839. {...formItemLayout}
  1840. label="项目状态"
  1841. >
  1842. <span>{getProjectName(parseInt(this.state.projectStatus))}</span>
  1843. <Button
  1844. type="primary"
  1845. size="small"
  1846. style={{ marginTop: '5px', position: 'absolute' }}
  1847. onClick={this.caozuorizhi}
  1848. >
  1849. 操作日志
  1850. </Button>
  1851. </FormItem>
  1852. <FormItem
  1853. className="half-item"
  1854. {...formItemLayout}
  1855. label="合同编号"
  1856. >
  1857. <span>{this.state.contractNo}</span>
  1858. </FormItem>
  1859. </div>
  1860. <div className="clearfix">
  1861. <FormItem
  1862. className="half-item"
  1863. {...formItemLayout}
  1864. label="是否特批"
  1865. >
  1866. <span>{getApproval(this.state.approval)}</span>
  1867. </FormItem>
  1868. <FormItem
  1869. className="half-item"
  1870. {...formItemLayout}
  1871. label="结算状态"
  1872. >
  1873. <span>
  1874. {getLiquidationStatus(this.state.liquidationStatus)}
  1875. </span>
  1876. </FormItem>
  1877. <FormItem
  1878. className="half-item"
  1879. {...formItemLayout}
  1880. label="流程状态"
  1881. >
  1882. <span>{getProcessStatus(this.state.processStatus)}</span>
  1883. </FormItem>
  1884. <FormItem
  1885. className="half-item"
  1886. {...formItemLayout}
  1887. label="订单编号"
  1888. >
  1889. <span>{this.state.orderNo}</span>
  1890. </FormItem>
  1891. </div>
  1892. <div className="clearfix">
  1893. <FormItem
  1894. className="half-item"
  1895. {...formItemLayout}
  1896. label="满意度表格"
  1897. >
  1898. <span>{utils.getSatisfaction(this.state.formRetrieve)}</span>
  1899. </FormItem>
  1900. {
  1901. <FormItem
  1902. className="half-item"
  1903. {...formItemLayout}
  1904. label="(满意度)备注"
  1905. >
  1906. <span>{this.state.retrieveContent}</span>
  1907. </FormItem>
  1908. }
  1909. {/*<FormItem className="half-item" {...formItemLayout} label="退单">*/}
  1910. {/* <span>{utils.getChargeback(this.state.taskRefund)}</span>*/}
  1911. {/*</FormItem>*/}
  1912. </div>
  1913. {/*软著显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1914. {this.state.bpType === 2 ? <div className="clearfix">
  1915. <FormItem
  1916. className="half-item"
  1917. {...formItemLayout}
  1918. label="加急天数"
  1919. >
  1920. {
  1921. this.state.urgentDay === 1 ? '是' :
  1922. this.state.urgentDay === 0 ? '否' : ''
  1923. }
  1924. </FormItem>
  1925. <FormItem
  1926. className="half-item"
  1927. {...formItemLayout}
  1928. label="有无材料"
  1929. >
  1930. {
  1931. this.state.ifMaterial === 1 ? '是':
  1932. this.state.ifMaterial === 0 ? '否': ''
  1933. }
  1934. </FormItem>
  1935. </div> : null}
  1936. <div className="clearfix">
  1937. <div style={{
  1938. paddingLeft: '8%',
  1939. }}>
  1940. <div style={{color:'#000',fontWeight:500}}>
  1941. 特别说明
  1942. <span style={{color: '#58a3ff',}}>(针对项目的特殊情况说明)</span>
  1943. </div>
  1944. <div style={{
  1945. display:'flex',
  1946. }}>
  1947. <span style={{paddingRight:'10px',whiteSpace:"nowrap"}}>备注:</span>
  1948. <span style={{
  1949. flex: 1,
  1950. wordBreak: 'break-all',
  1951. }}>{this.state.specialComment}</span>
  1952. </div>
  1953. </div>
  1954. {
  1955. // <FormItem
  1956. // className="half-item"
  1957. // {...formItemLayout}
  1958. // label="(退单)备注"
  1959. // >
  1960. // <span>{this.state.refundContent}</span>
  1961. // </FormItem>
  1962. }
  1963. </div>
  1964. <div className="clearfix">
  1965. <h3 className="sub-title">任务信息</h3>
  1966. <FormItem
  1967. className="half-item"
  1968. {...formItemLayout}
  1969. label="任务编号"
  1970. >
  1971. <span>
  1972. {this.state.splitStatus == 2
  1973. ? this.state.splitSuper + "-" + this.state.splitId
  1974. : this.state.id}
  1975. </span>
  1976. </FormItem>
  1977. <FormItem
  1978. className="half-item"
  1979. {...formItemLayout}
  1980. label="任务名称"
  1981. >
  1982. <span>{this.state.taskName}</span>
  1983. </FormItem>
  1984. <FormItem
  1985. className="half-item"
  1986. {...formItemLayout}
  1987. label="任务状态"
  1988. >
  1989. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1990. </FormItem>
  1991. <FormItem
  1992. className="half-item"
  1993. {...formItemLayout}
  1994. label="任务类别"
  1995. >
  1996. <span>{this.state.cname}</span>
  1997. </FormItem>
  1998. <FormItem
  1999. className="half-item"
  2000. {...formItemLayout}
  2001. label="证书编号"
  2002. >
  2003. <span>{this.state.certificateNumber}</span>
  2004. </FormItem>
  2005. </div>
  2006. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2007. <div className="clearfix">
  2008. <h3 className="sub-title">联系信息</h3>
  2009. <FormItem
  2010. className="half-item"
  2011. {...formItemLayout}
  2012. label="客户名称"
  2013. >
  2014. <span>{this.state.userName}</span>
  2015. </FormItem>
  2016. <FormItem
  2017. className="half-item"
  2018. {...formItemLayout}
  2019. label="企业法人"
  2020. >
  2021. <span>{this.state.legalPerson}</span>
  2022. </FormItem>
  2023. <FormItem
  2024. className="half-item"
  2025. {...formItemLayout}
  2026. label="法人电话"
  2027. >
  2028. <span>{this.state.legalPersonTel}</span>
  2029. </FormItem>
  2030. <FormItem
  2031. className="half-item"
  2032. {...formItemLayout}
  2033. label="客户联系人"
  2034. >
  2035. <span>{this.state.contacts}</span>
  2036. </FormItem>
  2037. <FormItem
  2038. className="half-item"
  2039. {...formItemLayout}
  2040. label="联系人电话"
  2041. >
  2042. <span>{this.state.contactMobile}</span>
  2043. </FormItem>
  2044. <FormItem
  2045. className="half-item"
  2046. {...formItemLayout}
  2047. label="企业地址"
  2048. >
  2049. <span>
  2050. {getprovince(this.state.locationProvince)}/
  2051. {getprovince(this.state.locationCity)}/
  2052. {getprovince(this.state.locationArea)}
  2053. </span>
  2054. </FormItem>
  2055. <FormItem
  2056. className="half-item"
  2057. {...formItemLayout}
  2058. label=""
  2059. ></FormItem>
  2060. <FormItem className="half-item" {...formItemLayout} label="">
  2061. <span style={{ paddingLeft: "12em" }}>
  2062. {this.state.postalAddress}
  2063. </span>
  2064. </FormItem>
  2065. </div>
  2066. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2067. <div className="clearfix">
  2068. <h3 className="sub-title">订单负责人信息</h3>
  2069. <FormItem
  2070. className="half-item"
  2071. {...formItemLayout}
  2072. label="负责人"
  2073. >
  2074. <span>
  2075. {this.state.salesmanName + "(" + this.state.depName + ")"}
  2076. </span>
  2077. </FormItem>
  2078. <FormItem
  2079. className="half-item"
  2080. {...formItemLayout}
  2081. label="负责人电话"
  2082. >
  2083. <span>{this.state.salesmanMobile}</span>
  2084. </FormItem>
  2085. <FormItem
  2086. className="half-item"
  2087. {...formItemLayout}
  2088. label="财务负责人"
  2089. >
  2090. <span>{this.state.financeName}</span>
  2091. </FormItem>
  2092. <FormItem
  2093. className="half-item"
  2094. {...formItemLayout}
  2095. label="财务负责人电话"
  2096. >
  2097. <span>{this.state.financeMobile}</span>
  2098. </FormItem>
  2099. <FormItem
  2100. className="half-item"
  2101. {...formItemLayout}
  2102. label="订单留言"
  2103. >
  2104. <span>{this.state.orderRemarks}</span>
  2105. </FormItem>
  2106. <FormItem className="half-item" {...formItemLayout} label="">
  2107. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  2108. </FormItem>
  2109. <OrderRiZi
  2110. dataSourcerizhi={this.state.dataSourceY}
  2111. closeOrderLog={this.closeOrderLog}
  2112. visible={this.state.avisible}
  2113. loading={this.state.loading}
  2114. />
  2115. </div>
  2116. <div className="clearfix" style={{ marginTop: "10px" }}>
  2117. <FormItem
  2118. labelCol={{ span: 3 }}
  2119. wrapperCol={{ span: 18 }}
  2120. label="附件"
  2121. >
  2122. <Upload
  2123. className="demandDetailShow-upload"
  2124. listType="picture-card"
  2125. fileList={this.state.attachmentUrl}
  2126. onPreview={(file) => {
  2127. this.setState({
  2128. previewImage: file.url || file.thumbUrl,
  2129. previewVisible: true,
  2130. });
  2131. }}
  2132. ></Upload>
  2133. <Modal
  2134. maskClosable={false}
  2135. footer={null}
  2136. visible={this.state.previewVisible}
  2137. onCancel={() => {
  2138. this.setState({ previewVisible: false });
  2139. }}
  2140. >
  2141. <img
  2142. alt=""
  2143. style={{ width: "100%" }}
  2144. src={this.state.previewImage || ""}
  2145. />
  2146. </Modal>
  2147. </FormItem>
  2148. </div>
  2149. <div className="clearfix">
  2150. <FormItem
  2151. labelCol={{ span: 3 }}
  2152. wrapperCol={{ span: 16 }}
  2153. label="备注"
  2154. >
  2155. <span>{this.state.taskComment}</span>
  2156. </FormItem>
  2157. </div>
  2158. <div className="clearfix">
  2159. <h3 className="sub-title">项目申报进度</h3>
  2160. <DeclarationProgress
  2161. timeRecordparse={this.state.timeRecordparse}
  2162. startDate={this.state.startDate}
  2163. taskDate={this.state.taskDate}
  2164. list={[
  2165. {id:4,name:'完成时间',value:this.state.endDate},
  2166. {id:6,name:'受理时间',value:this.state.acceptDate},
  2167. {id:8,name:'公示时间',value:this.state.publicityDate},
  2168. {id:10,name:'发证时间',value:this.state.licenceDate},
  2169. {id:15,name:'立项金额',value:this.state.setUpAmount}
  2170. ]}/>
  2171. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  2172. {/*cSort: 3 科技项目 6: 会员*/}
  2173. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  2174. className="half-item"
  2175. {...formItemLayout}
  2176. label="申报批次"
  2177. >
  2178. <span>{this.state.declarationBatch}</span>
  2179. </FormItem>}
  2180. <FormItem
  2181. className="half-item"
  2182. {...formItemLayout}
  2183. label="软著派单数量"
  2184. >
  2185. <span>{this.state.commodityQuantity}</span>
  2186. </FormItem>
  2187. <div className="patent-table patent-table-center">
  2188. <Spin spinning={this.state.loading}>
  2189. <Table
  2190. columns={this.state.ContactsLists}
  2191. dataSource={this.state.contactList}
  2192. pagination={false}
  2193. />
  2194. </Spin>
  2195. </div>
  2196. </div>
  2197. <div className="clearfix">
  2198. <h3 className="sub-title">项目业务</h3>
  2199. <div className="patent-table">
  2200. <Spin spinning={this.state.loading}>
  2201. <Table
  2202. columns={this.state.columnsX}
  2203. dataSource={this.state.dataSourceX}
  2204. pagination={this.state.paginations}
  2205. onRowClick={this.tableRowClickX}
  2206. />
  2207. </Spin>
  2208. </div>
  2209. </div>
  2210. </Modal>
  2211. <Modal
  2212. width="800px"
  2213. visible={this.state.visibleA}
  2214. onCancel={this.visitCancelA}
  2215. title="操作日志"
  2216. footer=""
  2217. className="admin-desc-content"
  2218. >
  2219. <div className="patent-table patent-table-center">
  2220. <Spin spinning={this.state.loading}>
  2221. <Table
  2222. columns={this.state.columnsA}
  2223. dataSource={this.state.dataSourceA}
  2224. pagination={false}
  2225. />
  2226. </Spin>
  2227. </div>
  2228. </Modal>
  2229. {this.state.addnextVisible && <ProjectDetailsReadOnly
  2230. infor={this.state.dataInfor}
  2231. visible={this.state.addnextVisible}
  2232. onCancel={this.nextCancel}
  2233. />}
  2234. </div>
  2235. );
  2236. }
  2237. })
  2238. );
  2239. export default IntentionCustomer;