myTaskCount.jsx 73 KB

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