taskQuery.jsx 81 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339
  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. authorizeCount:thisdata.authorizeCount, //授权数
  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. visible={this.state.visible}
  1144. onOk={this.visitOk}
  1145. onCancel={this.visitCancel}
  1146. >
  1147. <Tabs activeKey={this.state.activeKey} onChange={this.orderChange}>
  1148. <TabPane tab="项目概况" key="1">
  1149. {this.state.activeKey === "1" ? <Form
  1150. layout="horizontal"
  1151. onSubmit={this.handleSubmit}
  1152. id="demand-form"
  1153. style={{ paddingBottom: "00px" }}
  1154. >
  1155. <Spin spinning={this.state.loading}>
  1156. <div className="clearfix">
  1157. <div className="clearfix">
  1158. <FormItem
  1159. className="half-item"
  1160. {...formItemLayout}
  1161. label="当前项目情况"
  1162. >
  1163. <span>
  1164. {
  1165. this.state.status === 0 ? '未开始':
  1166. this.state.status === 1 ? '进行中':
  1167. this.state.status === 2 ? '已暂停':
  1168. this.state.status === 3 ? '已驳回(专利、软著项目编写)':
  1169. this.state.status === 4 ? '已完成':
  1170. this.state.status === 5 ? '项目已完成 已退单':
  1171. this.state.status === 6 ? '项目未完成 已退单': ''
  1172. }
  1173. </span>
  1174. <Button
  1175. type="primary"
  1176. size="small"
  1177. style={{ marginTop: "5px", position: "absolute" }}
  1178. onClick={this.caozuorizhi}
  1179. >
  1180. 操作日志
  1181. </Button>
  1182. </FormItem>
  1183. <FormItem
  1184. className="half-item"
  1185. {...formItemLayout}
  1186. label="合同编号"
  1187. >
  1188. <span>{this.state.contractNo}</span>
  1189. </FormItem>
  1190. </div>
  1191. <div className="clearfix">
  1192. <FormItem
  1193. className="half-item"
  1194. {...formItemLayout}
  1195. label="项目状态"
  1196. >
  1197. <span>
  1198. {getProjectStatus(this.state.projectStatus)}
  1199. </span>
  1200. </FormItem>
  1201. <FormItem
  1202. className="half-item"
  1203. {...formItemLayout}
  1204. label="是否特批"
  1205. >
  1206. <span>{getApproval(this.state.approval)}</span>
  1207. </FormItem>
  1208. <FormItem
  1209. className="half-item"
  1210. {...formItemLayout}
  1211. label="结算状态"
  1212. >
  1213. <span>
  1214. {getLiquidationStatus(this.state.liquidationStatus)}
  1215. </span>
  1216. </FormItem>
  1217. <FormItem
  1218. className="half-item"
  1219. {...formItemLayout}
  1220. label="流程状态"
  1221. >
  1222. <span>
  1223. {getProcessStatus(this.state.processStatus)}
  1224. </span>
  1225. </FormItem>
  1226. <FormItem
  1227. className="half-item"
  1228. {...formItemLayout}
  1229. label="订单编号"
  1230. >
  1231. <span>{this.state.orderNo}</span>
  1232. </FormItem>
  1233. <FormItem
  1234. className="half-item"
  1235. {...formItemLayout}
  1236. label="是否外包"
  1237. >
  1238. <span>{this.state.outsource == 0 ? "否" : "是"}</span>
  1239. </FormItem>
  1240. </div>
  1241. <div className="clearfix">
  1242. <FormItem
  1243. className="half-item"
  1244. {...formItemLayout}
  1245. label="满意度表格"
  1246. >
  1247. <span>
  1248. {utils.getSatisfaction(this.state.formRetrieve)}
  1249. </span>
  1250. </FormItem>
  1251. {
  1252. <FormItem
  1253. className="half-item"
  1254. {...formItemLayout}
  1255. label="(满意度)备注"
  1256. >
  1257. <span>{this.state.retrieveContent}</span>
  1258. </FormItem>
  1259. }
  1260. {/*<FormItem*/}
  1261. {/* className="half-item"*/}
  1262. {/* {...formItemLayout}*/}
  1263. {/* label="退单"*/}
  1264. {/*>*/}
  1265. {/* <span>*/}
  1266. {/* {utils.getChargeback(this.state.taskRefund)}*/}
  1267. {/* </span>*/}
  1268. {/*</FormItem>*/}
  1269. </div>
  1270. {/*软著显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1271. {this.state.bpType === 2 ? <div className="clearfix">
  1272. <FormItem
  1273. className="half-item"
  1274. {...formItemLayout}
  1275. label="加急天数"
  1276. >
  1277. {
  1278. this.state.urgentDay === 1 ? '是' :
  1279. this.state.urgentDay === 0 ? '否' : ''
  1280. }
  1281. </FormItem>
  1282. <FormItem
  1283. className="half-item"
  1284. {...formItemLayout}
  1285. label="有无材料"
  1286. >
  1287. {
  1288. this.state.ifMaterial === 1 ? '是':
  1289. this.state.ifMaterial === 0 ? '否': ''
  1290. }
  1291. </FormItem>
  1292. </div> : null}
  1293. <div className="clearfix">
  1294. <div style={{
  1295. paddingLeft: '8%',
  1296. }}>
  1297. <div style={{color:'#000',fontWeight:500}}>
  1298. 特别说明
  1299. <span style={{color: '#58a3ff',}}>(针对项目的特殊情况说明)</span>
  1300. </div>
  1301. <div style={{
  1302. display:'flex',
  1303. }}>
  1304. <span style={{paddingRight:'10px',whiteSpace:"nowrap"}}>备注:</span>
  1305. <span style={{
  1306. flex: 1,
  1307. wordBreak: 'break-all',
  1308. }}>{this.state.specialComment}</span>
  1309. </div>
  1310. </div>
  1311. {
  1312. // <FormItem
  1313. // className="half-item"
  1314. // {...formItemLayout}
  1315. // label="(退单)备注"
  1316. // >
  1317. // <span>{this.state.refundContent}</span>
  1318. // </FormItem>
  1319. }
  1320. </div>
  1321. <div className="clearfix">
  1322. <h3 className="sub-title">任务信息</h3>
  1323. <FormItem
  1324. className="half-item"
  1325. {...formItemLayout}
  1326. label="任务编号"
  1327. >
  1328. <span>
  1329. {this.state.splitStatus == 2
  1330. ? this.state.splitSuper + "-" + this.state.splitId
  1331. : this.state.id}
  1332. </span>
  1333. </FormItem>
  1334. <FormItem
  1335. className="half-item"
  1336. {...formItemLayout}
  1337. label="任务名称"
  1338. >
  1339. <span>{this.state.taskName}</span>
  1340. </FormItem>
  1341. <FormItem
  1342. className="half-item"
  1343. {...formItemLayout}
  1344. label="任务状态"
  1345. >
  1346. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1347. </FormItem>
  1348. <FormItem
  1349. className="half-item"
  1350. {...formItemLayout}
  1351. label="任务类别"
  1352. >
  1353. <span>{this.state.cname}</span>
  1354. </FormItem>
  1355. <FormItem
  1356. className="half-item"
  1357. {...formItemLayout}
  1358. label="证书编号"
  1359. >
  1360. <span>{this.state.certificateNumber}</span>
  1361. </FormItem>
  1362. </div>
  1363. {/*{this.state.outsource === 1 ? (*/}
  1364. {/* <div className="clearfix">*/}
  1365. {/* <h3 className="sub-title">外包信息</h3>*/}
  1366. {/* <FormItem*/}
  1367. {/* className="half-item"*/}
  1368. {/* {...formItemLayout}*/}
  1369. {/* label="外包公司"*/}
  1370. {/* >*/}
  1371. {/* <span>{this.state.outsourceName}</span>*/}
  1372. {/* </FormItem>*/}
  1373. {/* <FormItem*/}
  1374. {/* className="half-item"*/}
  1375. {/* {...formItemLayout}*/}
  1376. {/* label="外包成本(万元)"*/}
  1377. {/* >*/}
  1378. {/* <span>{this.state.outsourcePrice}</span>*/}
  1379. {/* </FormItem>*/}
  1380. {/* </div>*/}
  1381. {/*) : (*/}
  1382. {/* ""*/}
  1383. {/*)}*/}
  1384. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1385. <div className="clearfix">
  1386. <h3 className="sub-title">联系信息</h3>
  1387. <FormItem
  1388. className="half-item"
  1389. {...formItemLayout}
  1390. label="客户名称"
  1391. >
  1392. <span>{this.state.userName}</span>
  1393. </FormItem>
  1394. <FormItem
  1395. className="half-item"
  1396. {...formItemLayout}
  1397. label="企业法人"
  1398. >
  1399. <span>{this.state.legalPerson}</span>
  1400. </FormItem>
  1401. <FormItem
  1402. className="half-item"
  1403. {...formItemLayout}
  1404. label="法人电话"
  1405. >
  1406. <span>{this.state.legalPersonTel}</span>
  1407. </FormItem>
  1408. <FormItem
  1409. className="half-item"
  1410. {...formItemLayout}
  1411. label="客户联系人"
  1412. >
  1413. <span>{this.state.contacts}</span>
  1414. </FormItem>
  1415. <FormItem
  1416. className="half-item"
  1417. {...formItemLayout}
  1418. label="联系人电话"
  1419. >
  1420. <span>{this.state.contactMobile}</span>
  1421. </FormItem>
  1422. <FormItem
  1423. className="half-item"
  1424. {...formItemLayout}
  1425. label="企业地址"
  1426. >
  1427. <span>
  1428. {getprovince(this.state.locationProvince)}/
  1429. {getprovince(this.state.locationCity)}/
  1430. {getprovince(this.state.locationArea)}
  1431. </span>
  1432. </FormItem>
  1433. <FormItem
  1434. className="half-item"
  1435. {...formItemLayout}
  1436. label=""
  1437. />
  1438. <FormItem className="half-item" {...formItemLayout}>
  1439. <span style={{ paddingLeft: "12em" }}>
  1440. {this.state.postalAddress}
  1441. </span>
  1442. </FormItem>
  1443. </div>
  1444. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1445. <div className="clearfix">
  1446. <h3 className="sub-title">订单负责人信息</h3>
  1447. <FormItem
  1448. className="half-item"
  1449. {...formItemLayout}
  1450. label="负责人"
  1451. >
  1452. <span>
  1453. {this.state.salesmanName +
  1454. "(" +
  1455. this.state.depName +
  1456. ")"}
  1457. </span>
  1458. </FormItem>
  1459. <FormItem
  1460. className="half-item"
  1461. {...formItemLayout}
  1462. label="负责人电话"
  1463. >
  1464. <span>{this.state.salesmanMobile}</span>
  1465. </FormItem>
  1466. <FormItem
  1467. className="half-item"
  1468. {...formItemLayout}
  1469. label="当前财务负责人"
  1470. >
  1471. <span>{this.state.nowFinance}</span>
  1472. </FormItem>
  1473. <FormItem
  1474. className="half-item"
  1475. {...formItemLayout}
  1476. label="当前财务负责人电话"
  1477. >
  1478. <span>{this.state.nowFinanceMobile}</span>
  1479. </FormItem>
  1480. <FormItem
  1481. className="half-item"
  1482. {...formItemLayout}
  1483. style={{ opacity: ".5" }}
  1484. label="原负责人"
  1485. >
  1486. <span>{this.state.oldSalesmanName}</span>
  1487. </FormItem>
  1488. <FormItem
  1489. className="half-item"
  1490. {...formItemLayout}
  1491. style={{ opacity: ".5" }}
  1492. label="原负责人电话"
  1493. >
  1494. <span>{this.state.oldSalesmanMobile}</span>
  1495. </FormItem>
  1496. <FormItem
  1497. className="half-item"
  1498. {...formItemLayout}
  1499. style={{ opacity: ".5" }}
  1500. label="实际财务操作人"
  1501. >
  1502. <span>{this.state.financeName}</span>
  1503. </FormItem>
  1504. <FormItem
  1505. className="half-item"
  1506. {...formItemLayout}
  1507. style={{ opacity: ".5" }}
  1508. label="实际财务操作人电话"
  1509. >
  1510. <span>{this.state.financeMobile}</span>
  1511. </FormItem>
  1512. <FormItem
  1513. className="half-item"
  1514. {...formItemLayout}
  1515. label="订单留言"
  1516. >
  1517. <span>{this.state.orderRemarks}</span>
  1518. </FormItem>
  1519. <FormItem
  1520. className="half-item"
  1521. {...formItemLayout}
  1522. label=""
  1523. >
  1524. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  1525. </FormItem>
  1526. <OrderRiZi
  1527. dataSourcerizhi={this.state.dataSourceY}
  1528. closeOrderLog={this.closeOrderLog}
  1529. visible={this.state.avisible}
  1530. loading={this.state.loading}
  1531. />
  1532. </div>
  1533. <div className="clearfix">
  1534. <h3 className="sub-title">申报系统账户信息</h3>
  1535. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  1536. <FormItem
  1537. className="half-item"
  1538. {...formItemLayout}
  1539. label="用户名"
  1540. >
  1541. <span>{this.state.declareUser}</span>
  1542. </FormItem>
  1543. <FormItem
  1544. className="half-item"
  1545. {...formItemLayout}
  1546. label="密码"
  1547. >
  1548. <span>{this.state.declarePwd}</span>
  1549. </FormItem>
  1550. </div>
  1551. <div className="clearfix">
  1552. <h3 className="sub-title">项目申报进度</h3>
  1553. {/*专利显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1554. {
  1555. this.state.bpType === 1 || this.state.bpType === 6 ?
  1556. <div>
  1557. <FormItem
  1558. labelCol={{ span: 3 }}
  1559. wrapperCol={{ span: 16 }}
  1560. label="是否高新企业"
  1561. >
  1562. <span>
  1563. {
  1564. this.state.highTechStatus === 1 ? '是':
  1565. this.state.highTechStatus === 0 ? '否' : ''
  1566. }
  1567. </span>
  1568. </FormItem>
  1569. <FormItem/>
  1570. <PatentSchedule
  1571. readOnly
  1572. bpType={this.state.bpType}
  1573. taskId={this.state.id}
  1574. acceptCount={this.state.acceptCount}
  1575. authorizeCount={this.state.authorizeCount}
  1576. rejectCount={this.state.rejectCount}
  1577. commodityQuantity={this.state.commodityQuantity}
  1578. refresh={()=>{this.xiangqing(this.state.id)}}
  1579. />
  1580. </div> :
  1581. <div>
  1582. {/*高新显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1583. {this.state.bpType === 5 ? <FormItem
  1584. className="half-item"
  1585. {...formItemLayout}
  1586. label="是否抽查">
  1587. {
  1588. this.state.spotCheckStatus === 0 ? '否':
  1589. this.state.spotCheckStatus === 1 ? '是,未通过':
  1590. this.state.spotCheckStatus === 2 ? '是,通过': ''
  1591. }
  1592. </FormItem> : null}
  1593. <FormItem/>
  1594. {this.state.bpType === 5 ? <FormItem
  1595. className="half-item"
  1596. {...formItemLayout}
  1597. label="是否立项"
  1598. >
  1599. {
  1600. this.state.setUpStatus === 1 ? '是' :
  1601. this.state.setUpStatus === 0 ? '否' : ''
  1602. }
  1603. </FormItem> : null}
  1604. {this.state.bpType === 5 ? <FormItem
  1605. className="half-item"
  1606. {...formItemLayout}
  1607. label={this.state.setUpStatus === 1 ? "立项时间" : ''}
  1608. >
  1609. {this.state.setUpStatus === 1 ?this.state.setUpTime : null }
  1610. </FormItem> : null}
  1611. <FormItem
  1612. className="half-item"
  1613. {...formItemLayout}
  1614. label="申报批次"
  1615. >
  1616. <span>{this.state.declarationBatch}</span>
  1617. </FormItem>
  1618. <FormItem
  1619. className="half-item"
  1620. {...formItemLayout}
  1621. label="启动时间"
  1622. >
  1623. <span>{this.state.startDate}</span>
  1624. </FormItem>
  1625. <FormItem
  1626. className="half-item"
  1627. {...formItemLayout}
  1628. label="完成时间"
  1629. >
  1630. <span>{this.state.endDate}</span>
  1631. </FormItem>
  1632. <FormItem
  1633. className="half-item"
  1634. {...formItemLayout}
  1635. label="受理时间"
  1636. >
  1637. <span>{this.state.acceptDate}</span>
  1638. </FormItem>
  1639. <FormItem
  1640. className="half-item"
  1641. {...formItemLayout}
  1642. label="评审时间"
  1643. >
  1644. <span>{this.state.reviewDate}</span>
  1645. </FormItem>
  1646. <FormItem
  1647. className="half-item"
  1648. {...formItemLayout}
  1649. label="公示时间"
  1650. >
  1651. <span>{this.state.publicityDate}</span>
  1652. </FormItem>
  1653. <FormItem
  1654. className="half-item"
  1655. {...formItemLayout}
  1656. label="发证时间"
  1657. >
  1658. <span>{this.state.licenceDate}</span>
  1659. </FormItem>
  1660. <FormItem
  1661. className="half-item"
  1662. {...formItemLayout}
  1663. label="立项金额(万元)"
  1664. >
  1665. <span>{this.state.setUpAmount}</span>
  1666. </FormItem>
  1667. <FormItem
  1668. className="half-item"
  1669. {...formItemLayout}
  1670. label="是否到款"
  1671. >
  1672. <span>
  1673. {this.state.arrivalMoney ? "已到企业" : "未到企业"}
  1674. </span>
  1675. </FormItem>
  1676. </div>}
  1677. </div>
  1678. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  1679. <FormItem
  1680. labelCol={{ span: 3 }}
  1681. wrapperCol={{ span: 18 }}
  1682. label="附件"
  1683. >
  1684. {/*<Upload*/}
  1685. {/* className="demandDetailShow-upload"*/}
  1686. {/* listType="picture-card"*/}
  1687. {/* fileList={this.state.attachmentUrl}*/}
  1688. {/* onPreview={(file) => {*/}
  1689. {/* this.setState({*/}
  1690. {/* previewImage: file.url || file.thumbUrl,*/}
  1691. {/* previewVisible: true,*/}
  1692. {/* });*/}
  1693. {/* }}*/}
  1694. {/*/>*/}
  1695. {this.state.visible && this.state.attachmentUrl && this.state.activeKey === "1" ? <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  1696. <ImgList fileList={this.state.attachmentUrl} domId={'taskQuery1'}/>
  1697. </div> : <div/>}
  1698. {this.state.previewVisible ? <Modal
  1699. maskClosable={false}
  1700. footer={null}
  1701. visible={this.state.previewVisible}
  1702. onCancel={() => {
  1703. this.setState({ previewVisible: false });
  1704. }}
  1705. >
  1706. <img
  1707. alt=""
  1708. style={{ width: "100%" }}
  1709. src={this.state.previewImage || ""}
  1710. />
  1711. </Modal> : null}
  1712. </FormItem>
  1713. </div> : null}
  1714. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  1715. <FormItem
  1716. labelCol={{ span: 3 }}
  1717. wrapperCol={{ span: 16 }}
  1718. label="项目说明"
  1719. >
  1720. <span>{this.state.taskComment}</span>
  1721. </FormItem>
  1722. </div>: null}
  1723. <div>
  1724. <h3 className="sub-title">项目业务</h3>
  1725. {this.state.processStatus == 0 ? (
  1726. <Button
  1727. type="primary"
  1728. onClick={this.addDetailed}
  1729. style={{
  1730. float: "right",
  1731. marginRight: "50px",
  1732. marginBottom: "15px",
  1733. }}
  1734. >
  1735. 添加项目明细
  1736. </Button>
  1737. ) : (
  1738. ""
  1739. )}
  1740. </div>
  1741. <div className="patent-table">
  1742. <Spin spinning={this.state.loading}>
  1743. <Table
  1744. columns={this.state.columnsX}
  1745. dataSource={this.state.dataSourceX}
  1746. pagination={this.state.paginations}
  1747. onRowClick={this.tableRowClickX}
  1748. bordered
  1749. size="small"
  1750. />
  1751. </Spin>
  1752. </div>
  1753. </div>
  1754. </Spin>
  1755. </Form> : <div/>}
  1756. </TabPane>
  1757. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  1758. <TabPane tab="订单详情" key="2">
  1759. {this.state.activeKey === "2" ? <Spin spinning={this.state.loading}>
  1760. <OrderDetail
  1761. orderData={this.state.orderData}
  1762. getOrderLog={this.getOrderLog}
  1763. dataSourceX={this.state.dataSourceX}
  1764. contactList={this.state.jiedian}
  1765. orderNo={this.state.orderNo}
  1766. totalCui={this.state.totalCui}
  1767. contactListNew={this.state.jiedianNew}
  1768. pictureUrl={this.state.contractPictureUrl}
  1769. />
  1770. </Spin> : <div/>}
  1771. <OrderRiZi
  1772. dataSourcerizhi={this.state.dataSourceY}
  1773. closeOrderLog={this.closeOrderLog}
  1774. visible={this.state.avisible}
  1775. loading={this.state.loading}
  1776. />
  1777. </TabPane>
  1778. ) : (
  1779. ""
  1780. )}
  1781. </Tabs>
  1782. </Modal> : <div/>}
  1783. {this.state.addnextVisible ? <Modal
  1784. maskClosable={false}
  1785. visible={this.state.addnextVisible}
  1786. onOk={this.nextCancel}
  1787. onCancel={this.nextCancel}
  1788. width="900px"
  1789. title="项目任务详情"
  1790. footer=""
  1791. className="admin-desc-content"
  1792. >
  1793. <Form layout="horizontal" onSubmit={this.nextSubmit} id="demand-form">
  1794. <Spin spinning={this.state.loading}>
  1795. <div className="clearfix">
  1796. <FormItem
  1797. className="half-item"
  1798. {...formItemLayout}
  1799. label="项目名称"
  1800. >
  1801. <span>{this.state.commodityName}</span>
  1802. </FormItem>
  1803. <FormItem
  1804. className="half-item"
  1805. {...formItemLayout}
  1806. label="项目数量"
  1807. >
  1808. <span>{this.state.commodityQuantity}</span>
  1809. </FormItem>
  1810. <FormItem
  1811. className="half-item"
  1812. {...formItemLayout}
  1813. label="官费"
  1814. style={{ display: this.state.displayFees }}
  1815. >
  1816. <span>
  1817. {this.state.officialCost == 0 ? "无官费" : "有官费"}
  1818. </span>
  1819. </FormItem>
  1820. <FormItem
  1821. className="half-item"
  1822. {...formItemLayout}
  1823. label="费减"
  1824. style={{ display: this.state.displayFees }}
  1825. >
  1826. <span>
  1827. {this.state.costReduction == 0 ? "无费减" : "有费减"}
  1828. </span>
  1829. </FormItem>
  1830. <FormItem
  1831. className="half-item"
  1832. {...formItemLayout}
  1833. label="金额(万元)"
  1834. >
  1835. <span>{this.state.commodityPrice}</span>
  1836. </FormItem>
  1837. <FormItem
  1838. className="half-item"
  1839. {...formItemLayout}
  1840. label="主要项目"
  1841. >
  1842. <span>{getboutique(this.state.main)}</span>
  1843. </FormItem>
  1844. <div className="clearfix">
  1845. <FormItem
  1846. labelCol={{ span: 4 }}
  1847. wrapperCol={{ span: 16 }}
  1848. label="服务说明"
  1849. >
  1850. <span>{this.state.taskComment}</span>
  1851. </FormItem>
  1852. </div>
  1853. </div>
  1854. </Spin>
  1855. </Form>
  1856. </Modal> : <div/>}
  1857. <Modal
  1858. width="800px"
  1859. title="操作日志"
  1860. footer=""
  1861. className="admin-desc-content"
  1862. >
  1863. <div className="patent-table patent-table-center">
  1864. <Spin spinning={this.state.loading}>
  1865. <Table columns={this.state.columnsY} bordered size="small" />
  1866. </Spin>
  1867. </div>
  1868. </Modal>
  1869. {this.state.speVisible ? <Modal
  1870. maskClosable={false}
  1871. visible={this.state.speVisible}
  1872. onOk={this.visitOk}
  1873. onCancel={this.visitCancel}
  1874. width="900px"
  1875. title=""
  1876. footer=""
  1877. className="admin-desc-content"
  1878. >
  1879. <Tabs activeKey={this.state.activeKey} onChange={this.orderChange}>
  1880. <TabPane tab="项目概况" key="1">
  1881. {this.state.activeKey === "1" ?
  1882. <div>
  1883. <div className="clearfix">
  1884. <FormItem
  1885. className="half-item"
  1886. {...formItemLayout}
  1887. label="当前项目情况"
  1888. >
  1889. <span>
  1890. {
  1891. this.state.status === 0 ? '未开始':
  1892. this.state.status === 1 ? '进行中':
  1893. this.state.status === 2 ? '已暂停':
  1894. this.state.status === 3 ? '已驳回(专利、软著项目编写)':
  1895. this.state.status === 4 ? '已完成':
  1896. this.state.status === 5 ? '项目已完成 已退单':
  1897. this.state.status === 6 ? '项目未完成 已退单': ''
  1898. }
  1899. </span>
  1900. <Button
  1901. type="primary"
  1902. size="small"
  1903. style={{ marginTop: "5px", position: "absolute" }}
  1904. onClick={this.caozuorizhi}
  1905. >
  1906. 操作日志
  1907. </Button>
  1908. </FormItem>
  1909. <FormItem
  1910. className="half-item"
  1911. {...formItemLayout}
  1912. label="合同编号"
  1913. >
  1914. <span>{this.state.contractNo}</span>
  1915. </FormItem>
  1916. </div>
  1917. <div className="clearfix">
  1918. <FormItem
  1919. className="half-item"
  1920. {...formItemLayout}
  1921. label="项目状态"
  1922. >
  1923. <span>{getProjectStatus(this.state.projectStatus)}</span>
  1924. </FormItem>
  1925. <FormItem
  1926. className="half-item"
  1927. {...formItemLayout}
  1928. label="是否特批"
  1929. >
  1930. <span>{getApproval(this.state.approval)}</span>
  1931. </FormItem>
  1932. <FormItem
  1933. className="half-item"
  1934. {...formItemLayout}
  1935. label="结算状态"
  1936. >
  1937. <span>
  1938. {getLiquidationStatus(this.state.liquidationStatus)}
  1939. </span>
  1940. </FormItem>
  1941. <FormItem
  1942. className="half-item"
  1943. {...formItemLayout}
  1944. label="流程状态"
  1945. >
  1946. <span>{getProcessStatus(this.state.processStatus)}</span>
  1947. </FormItem>
  1948. <FormItem
  1949. className="half-item"
  1950. {...formItemLayout}
  1951. label="订单编号"
  1952. >
  1953. <span>{this.state.orderNo}</span>
  1954. </FormItem>
  1955. </div>
  1956. <div className="clearfix">
  1957. <FormItem
  1958. className="half-item"
  1959. {...formItemLayout}
  1960. label="满意度表格"
  1961. >
  1962. <span>{utils.getSatisfaction(this.state.formRetrieve)}</span>
  1963. </FormItem>
  1964. {
  1965. <FormItem
  1966. className="half-item"
  1967. {...formItemLayout}
  1968. label="(满意度)备注"
  1969. >
  1970. <span>{this.state.retrieveContent}</span>
  1971. </FormItem>
  1972. }
  1973. {/*<FormItem*/}
  1974. {/* className="half-item"*/}
  1975. {/* {...formItemLayout}*/}
  1976. {/* label="退单"*/}
  1977. {/*>*/}
  1978. {/* <span>{utils.getChargeback(this.state.taskRefund)}</span>*/}
  1979. {/*</FormItem>*/}
  1980. </div>
  1981. <div className="clearfix">
  1982. <div style={{
  1983. paddingLeft: '8%',
  1984. }}>
  1985. <div style={{color:'#000',fontWeight:500}}>
  1986. 特别说明
  1987. <span style={{color: '#58a3ff',}}>(针对项目的特殊情况说明)</span>
  1988. </div>
  1989. <div style={{
  1990. display:'flex',
  1991. }}>
  1992. <span style={{paddingRight:'10px',whiteSpace:"nowrap"}}>备注:</span>
  1993. <span style={{
  1994. flex: 1,
  1995. wordBreak: 'break-all',
  1996. }}>{this.state.specialComment}</span>
  1997. </div>
  1998. </div>
  1999. {
  2000. // <FormItem
  2001. // className="half-item"
  2002. // {...formItemLayout}
  2003. // label="(退单)备注"
  2004. // >
  2005. // <span>{this.state.refundContent}</span>
  2006. // </FormItem>
  2007. }
  2008. </div>
  2009. <div className="clearfix">
  2010. <h3 className="sub-title">任务信息</h3>
  2011. <FormItem
  2012. className="half-item"
  2013. {...formItemLayout}
  2014. label="任务编号"
  2015. >
  2016. <span>
  2017. {this.state.splitStatus == 2
  2018. ? this.state.splitSuper + "-" + this.state.splitId
  2019. : this.state.id}
  2020. </span>
  2021. </FormItem>
  2022. <FormItem
  2023. className="half-item"
  2024. {...formItemLayout}
  2025. label="任务名称"
  2026. >
  2027. <span>{this.state.taskName}</span>
  2028. </FormItem>
  2029. <FormItem
  2030. className="half-item"
  2031. {...formItemLayout}
  2032. label="任务状态"
  2033. >
  2034. <span>{getTaskStatus(this.state.taskStatus)}</span>
  2035. </FormItem>
  2036. <FormItem
  2037. className="half-item"
  2038. {...formItemLayout}
  2039. label="任务类别"
  2040. >
  2041. <span>{this.state.cname}</span>
  2042. </FormItem>
  2043. <FormItem
  2044. className="half-item"
  2045. {...formItemLayout}
  2046. label="证书编号"
  2047. >
  2048. <span>{this.state.certificateNumber}</span>
  2049. </FormItem>
  2050. </div>
  2051. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2052. <div className="clearfix">
  2053. <h3 className="sub-title">联系信息</h3>
  2054. <FormItem
  2055. className="half-item"
  2056. {...formItemLayout}
  2057. label="客户名称"
  2058. >
  2059. <span>{this.state.userName}</span>
  2060. </FormItem>
  2061. <FormItem
  2062. className="half-item"
  2063. {...formItemLayout}
  2064. label="企业法人"
  2065. >
  2066. <span>{this.state.legalPerson}</span>
  2067. </FormItem>
  2068. <FormItem
  2069. className="half-item"
  2070. {...formItemLayout}
  2071. label="法人电话"
  2072. >
  2073. <span>{this.state.legalPersonTel}</span>
  2074. </FormItem>
  2075. <FormItem
  2076. className="half-item"
  2077. {...formItemLayout}
  2078. label="客户联系人"
  2079. >
  2080. <span>{this.state.contacts}</span>
  2081. </FormItem>
  2082. <FormItem
  2083. className="half-item"
  2084. {...formItemLayout}
  2085. label="联系人电话"
  2086. >
  2087. <span>{this.state.contactMobile}</span>
  2088. </FormItem>
  2089. <FormItem
  2090. className="half-item"
  2091. {...formItemLayout}
  2092. label="企业地址"
  2093. >
  2094. <span>
  2095. {getprovince(this.state.locationProvince)}/
  2096. {getprovince(this.state.locationCity)}/
  2097. {getprovince(this.state.locationArea)}
  2098. </span>
  2099. </FormItem>
  2100. <FormItem
  2101. className="half-item"
  2102. {...formItemLayout}
  2103. label=""
  2104. />
  2105. <FormItem className="half-item" {...formItemLayout} label="">
  2106. <span style={{ paddingLeft: "12em" }}>
  2107. {this.state.postalAddress}
  2108. </span>
  2109. </FormItem>
  2110. </div>
  2111. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2112. <div className="clearfix">
  2113. <h3 className="sub-title">订单负责人信息</h3>
  2114. <FormItem
  2115. className="half-item"
  2116. {...formItemLayout}
  2117. label="负责人"
  2118. >
  2119. <span>
  2120. {this.state.salesmanName + "(" + this.state.depName + ")"}
  2121. </span>
  2122. </FormItem>
  2123. <FormItem
  2124. className="half-item"
  2125. {...formItemLayout}
  2126. label="负责人电话"
  2127. >
  2128. <span>{this.state.salesmanMobile}</span>
  2129. </FormItem>
  2130. <FormItem
  2131. className="half-item"
  2132. {...formItemLayout}
  2133. label="财务负责人"
  2134. >
  2135. <span>{this.state.financeName}</span>
  2136. </FormItem>
  2137. <FormItem
  2138. className="half-item"
  2139. {...formItemLayout}
  2140. label="财务负责人电话"
  2141. >
  2142. <span>{this.state.financeMobile}</span>
  2143. </FormItem>
  2144. </div>
  2145. <div className="clearfix" style={{ marginTop: "10px" }}>
  2146. <FormItem
  2147. labelCol={{ span: 3 }}
  2148. wrapperCol={{ span: 18 }}
  2149. label="附件"
  2150. >
  2151. {/*<Upload*/}
  2152. {/* className="demandDetailShow-upload"*/}
  2153. {/* listType="picture-card"*/}
  2154. {/* fileList={this.state.attachmentUrl}*/}
  2155. {/* onPreview={(file) => {*/}
  2156. {/* this.setState({*/}
  2157. {/* previewImage: file.url || file.thumbUrl,*/}
  2158. {/* previewVisible: true,*/}
  2159. {/* });*/}
  2160. {/* }}*/}
  2161. {/*/>*/}
  2162. {this.state.speVisible && this.state.attachmentUrl && this.state.activeKey === "1" ? <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  2163. <ImgList fileList={this.state.attachmentUrl} domId={'taskQuery1'}/>
  2164. </div> : <div/>}
  2165. {this.state.previewVisible ? <Modal
  2166. maskClosable={false}
  2167. footer={null}
  2168. visible={this.state.previewVisible}
  2169. onCancel={() => {
  2170. this.setState({ previewVisible: false });
  2171. }}
  2172. >
  2173. <img
  2174. alt=""
  2175. style={{ width: "100%" }}
  2176. src={this.state.previewImage || ""}
  2177. />
  2178. </Modal> : null}
  2179. </FormItem>
  2180. </div>
  2181. <div className="clearfix">
  2182. <FormItem
  2183. labelCol={{ span: 3 }}
  2184. wrapperCol={{ span: 16 }}
  2185. label="备注"
  2186. >
  2187. <span>{this.state.taskComment}</span>
  2188. </FormItem>
  2189. </div>
  2190. <div className="clearfix">
  2191. <FormItem
  2192. labelCol={{ span: 3 }}
  2193. wrapperCol={{ span: 16 }}
  2194. label="订单留言"
  2195. >
  2196. <span>{this.state.orderRemarks}</span>
  2197. </FormItem>
  2198. </div>
  2199. <div className="clearfix">
  2200. <FormItem
  2201. labelCol={{ span: 3 }}
  2202. wrapperCol={{ span: 16 }}
  2203. label=""
  2204. >
  2205. <Button
  2206. style={{ marginLeft: 500 }}
  2207. onClick={this.getOrderLog}
  2208. >
  2209. 查看订单日志
  2210. </Button>
  2211. </FormItem>
  2212. </div>
  2213. <OrderRiZi
  2214. dataSourcerizhi={this.state.dataSourceY}
  2215. closeOrderLog={this.closeOrderLog}
  2216. visible={this.state.avisible}
  2217. loading={this.state.loading}
  2218. />
  2219. <div className="clearfix">
  2220. <h3 className="sub-title">项目申报进度</h3>
  2221. <FormItem
  2222. className="half-item"
  2223. {...formItemLayout}
  2224. label="申报批次"
  2225. >
  2226. <span>{this.state.declarationBatch}</span>
  2227. </FormItem>
  2228. <FormItem
  2229. className="half-item"
  2230. {...formItemLayout}
  2231. label="启动时间"
  2232. >
  2233. <span>{this.state.startDate}</span>
  2234. </FormItem>
  2235. <FormItem
  2236. className="half-item"
  2237. {...formItemLayout}
  2238. label="软著派单数量"
  2239. >
  2240. <span>{this.state.commodityQuantity}</span>
  2241. </FormItem>
  2242. <div className="patent-table patent-table-center">
  2243. <Spin spinning={this.state.loading}>
  2244. <Table
  2245. columns={this.state.ContactsLists}
  2246. dataSource={this.state.contactList}
  2247. pagination={false}
  2248. bordered
  2249. size="small"
  2250. />
  2251. </Spin>
  2252. </div>
  2253. </div>
  2254. <div className="clearfix">
  2255. <h3 className="sub-title">项目业务</h3>
  2256. <div className="patent-table">
  2257. <Spin spinning={this.state.loading}>
  2258. <Table
  2259. columns={this.state.columnsX}
  2260. dataSource={this.state.dataSourceX}
  2261. pagination={this.state.paginations}
  2262. onRowClick={this.tableRowClickX}
  2263. bordered
  2264. size="small"
  2265. />
  2266. </Spin>
  2267. </div>
  2268. </div>
  2269. </div>:<div/>}
  2270. </TabPane>
  2271. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  2272. <TabPane tab="订单详情" key="2">
  2273. {this.state.activeKey === "2" ? <Spin spinning={this.state.loading}>
  2274. <OrderDetail
  2275. orderData={this.state.orderData}
  2276. getOrderLog={this.getOrderLog}
  2277. dataSourceX={this.state.dataSourceX}
  2278. contactList={this.state.jiedian}
  2279. orderNo={this.state.orderNo}
  2280. totalCui={this.state.totalCui}
  2281. contactListNew={this.state.jiedianNew}
  2282. pictureUrl={this.state.contractPictureUrl}
  2283. />
  2284. </Spin> : <div/>}
  2285. <OrderRiZi
  2286. dataSourcerizhi={this.state.dataSourceY}
  2287. closeOrderLog={this.closeOrderLog}
  2288. visible={this.state.avisible}
  2289. loading={this.state.loading}
  2290. />
  2291. </TabPane>
  2292. ) : (
  2293. ""
  2294. )}
  2295. </Tabs>
  2296. </Modal> : <div/>}
  2297. {this.state.visibleA ? <Modal
  2298. width="800px"
  2299. visible={this.state.visibleA}
  2300. onCancel={this.visitCancelA}
  2301. title="操作日志"
  2302. footer=""
  2303. className="admin-desc-content"
  2304. >
  2305. <div className="patent-table patent-table-center">
  2306. <Spin spinning={this.state.loading}>
  2307. <Table
  2308. columns={this.state.columnsA}
  2309. dataSource={this.state.dataSourceA}
  2310. pagination={false}
  2311. bordered
  2312. size="small"
  2313. />
  2314. </Spin>
  2315. </div>
  2316. </Modal> : null}
  2317. {this.state.resVisible ? (
  2318. <ResolutionDetail
  2319. cancel={this.resCancel}
  2320. detail={this.state.resRecord}
  2321. visible={this.state.resVisible}
  2322. id={this.state.resRecord.orderNo}
  2323. />
  2324. ) : (
  2325. ""
  2326. )}
  2327. </div>
  2328. );
  2329. },
  2330. });
  2331. export default Task;