taskQuery.jsx 90 KB

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