taskQuery.jsx 79 KB

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