taskQuery.jsx 79 KB

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