taskQuery.jsx 89 KB

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