taskQuery.jsx 88 KB

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