taskCount.jsx 83 KB

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