taskCount.jsx 82 KB

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