taskQuery.jsx 89 KB

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