taskQuery.jsx 80 KB

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