taskQuery.jsx 80 KB

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