taskQuery.jsx 86 KB

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