taskQuery.jsx 81 KB

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