taskQuery.jsx 92 KB

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