taskQuery.jsx 92 KB

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