taskQuery.jsx 81 KB

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