taskQuery.jsx 88 KB

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