taskQuery.jsx 82 KB

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