taskQuery.jsx 85 KB

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