taskQuery.jsx 93 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638
  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. width: 140,
  1223. },
  1224. {
  1225. title: "负责人电话",
  1226. dataIndex: "receiverMobile",
  1227. key: "receiverMobile",
  1228. align: "center",
  1229. width: 120,
  1230. },
  1231. {
  1232. title: "会员负责人",
  1233. dataIndex: "projectMemberName",
  1234. key: "projectMemberName",
  1235. width: 140,
  1236. align: "center",
  1237. },
  1238. {
  1239. title: "项目状态",
  1240. dataIndex: "projectStatus",
  1241. key: "projectStatus",
  1242. align: "center",
  1243. width: 100,
  1244. render: (text) => {
  1245. return getProjectName(text);
  1246. },
  1247. },
  1248. {
  1249. title: "本次派单",
  1250. dataIndex: "serviceYear",
  1251. key: "serviceYear",
  1252. width: 80,
  1253. align: "center"
  1254. },
  1255. {
  1256. title: "项目说明",
  1257. dataIndex: "taskComment",
  1258. key: "taskComment",
  1259. render: (text, record) => {
  1260. let textStr = text;
  1261. let textArr = [];
  1262. if (record.htMember === 1) {
  1263. textArr.push("高新会员");
  1264. }
  1265. if (record.additionalDeduction === 1) {
  1266. textArr.push("加计扣除");
  1267. }
  1268. if (record.rdAwardsubsidy === 1) {
  1269. textArr.push("研发奖补");
  1270. }
  1271. if (textArr.length) {
  1272. textStr = `${textArr.join("&")} ${!!text ? `(${text})` : ''}`
  1273. }
  1274. return (
  1275. <Tooltip title={textStr}>
  1276. <div
  1277. // style={{
  1278. // width: 100,
  1279. // overflow: "hidden",
  1280. // whiteSpace: "nowrap",
  1281. // textOverflow: "ellipsis",
  1282. // }}
  1283. >{textStr}</div>
  1284. </Tooltip>
  1285. )
  1286. },
  1287. },
  1288. ];
  1289. } else {
  1290. columns = [
  1291. {
  1292. title: "子项目名称",
  1293. dataIndex: "taskName",
  1294. key: "taskName"
  1295. },
  1296. {
  1297. title: "子项目数量",
  1298. dataIndex: "commodityQuantity",
  1299. key: "commodityQuantity"
  1300. },
  1301. {
  1302. title: "拆分操作人",
  1303. dataIndex: "splitAname",
  1304. key: "splitAname"
  1305. },
  1306. {
  1307. title: "项目负责人",
  1308. dataIndex: "receiverName",
  1309. key: "receiverName"
  1310. },
  1311. {
  1312. title: "拆分时间",
  1313. dataIndex: "splitTimes",
  1314. key: "splitTimes"
  1315. }
  1316. ]
  1317. }
  1318. return (
  1319. <Table
  1320. columns={columns}
  1321. dataSource={data}
  1322. pagination={false}
  1323. />
  1324. );
  1325. } else {
  1326. columns = [];
  1327. return (
  1328. <p
  1329. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  1330. >
  1331. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  1332. </p>
  1333. );
  1334. }
  1335. };
  1336. const utils = {
  1337. getSatisfaction: function (num) {
  1338. switch (num) {
  1339. case 0:
  1340. return "未收回";
  1341. case 1:
  1342. return "已收回";
  1343. default:
  1344. return "其它";
  1345. }
  1346. },
  1347. getChargeback: function (num) {
  1348. switch (num) {
  1349. case 0:
  1350. return "已完成";
  1351. case 1:
  1352. return "未完成";
  1353. default:
  1354. return "其它";
  1355. }
  1356. },
  1357. };
  1358. const formItemLayout = {
  1359. labelCol: { span: 10 },
  1360. wrapperCol: { span: 14 },
  1361. };
  1362. let departmentArr = this.state.departmentArr || [];
  1363. const approvaChildren = approvalOptions.map(i => (
  1364. <Option key={i.value}>{i.label}</Option>
  1365. ));
  1366. return (
  1367. <div className="user-content">
  1368. <ShowModalDiv ShowModal={this.state.showModal} onClose={() => { this.setState({ showModal: false }) }} />
  1369. <div className="content-title" style={{ marginBottom: 10 }}>
  1370. <span style={{ fontWeight: 900, fontSize: 16 }}>任务查询</span>
  1371. </div>
  1372. <Tabs defaultActiveKey="1" onChange={this.callback} className="test">
  1373. <TabPane tab="搜索" key="1">
  1374. <div className="user-search" style={{ marginLeft: 10 }}>
  1375. <Input
  1376. placeholder="订单编号"
  1377. value={this.state.orderNoSearch}
  1378. onChange={(e) => {
  1379. this.setState({ orderNoSearch: e.target.value });
  1380. }}
  1381. />
  1382. <Input
  1383. placeholder="客户名称"
  1384. style={{ width: 150 }}
  1385. value={this.state.nameSearch}
  1386. onChange={(e) => {
  1387. this.setState({ nameSearch: e.target.value });
  1388. }}
  1389. />
  1390. <Input
  1391. placeholder="任务编号"
  1392. value={this.state.taskNoSearch}
  1393. onChange={(e) => {
  1394. this.setState({ taskNoSearch: e.target.value });
  1395. }}
  1396. />
  1397. <Select
  1398. placeholder="选择部门"
  1399. style={{ width: 200, marginRight: "10px" }}
  1400. value={this.state.departmenttSearch}
  1401. onChange={(e) => {
  1402. this.setState({ departmenttSearch: e });
  1403. }}
  1404. >
  1405. {departmentArr.map(function (item) {
  1406. return (
  1407. <Select.Option key={item.id}>{item.name}</Select.Option>
  1408. );
  1409. })}
  1410. </Select>
  1411. <AutoComplete
  1412. className="certain-category-search"
  1413. dropdownClassName="certain-category-search-dropdown"
  1414. dropdownMatchSelectWidth={false}
  1415. style={{ width: 200 }}
  1416. dataSource={options}
  1417. placeholder='请输入咨询师/经理姓名'
  1418. value={this.state.auto}
  1419. onChange={this.httpChange}
  1420. filterOption={true}
  1421. onBlur={this.blurChange}
  1422. onSelect={this.selectAuto}
  1423. >
  1424. <Input />
  1425. </AutoComplete>
  1426. <Select
  1427. mode="multiple"
  1428. style={{ width: 200 }}
  1429. placeholder="特批类型"
  1430. value={this.state.approvaType}
  1431. onChange={e => {
  1432. this.setState({
  1433. approvaType: e
  1434. })
  1435. }}
  1436. >
  1437. {approvaChildren}
  1438. </Select>
  1439. <Button type="primary" onClick={this.search}>
  1440. 搜索
  1441. </Button>
  1442. <Button onClick={this.reset}>重置</Button>
  1443. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  1444. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  1445. <span>订单时间 :</span>
  1446. <RangePicker
  1447. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1448. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1449. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1450. </div> */}
  1451. </div>
  1452. </TabPane>
  1453. <TabPane tab="更改表格显示数据" key="2">
  1454. <div style={{ marginLeft: 10 }}>
  1455. <ChooseList
  1456. columns={this.state.columns}
  1457. changeFn={this.changeList}
  1458. changeList={this.state.changeList}
  1459. top={55}
  1460. margin={11}
  1461. />
  1462. </div>
  1463. </TabPane>
  1464. </Tabs>
  1465. <div className="patent-table">
  1466. <Spin spinning={this.state.loading}>
  1467. <Table
  1468. bordered
  1469. size="small"
  1470. columns={
  1471. this.state.changeList
  1472. ? this.state.changeList
  1473. : this.state.columns
  1474. }
  1475. dataSource={this.state.dataSource}
  1476. onHeaderRow={(column) => {
  1477. // console.log(column.index);
  1478. }}
  1479. pagination={this.state.pagination}
  1480. onRowClick={this.tableRowClick.bind(this)}
  1481. rowClassName={this.suspendColor}
  1482. />
  1483. </Spin>
  1484. </div>
  1485. {this.state.visible ? <Modal
  1486. className="customeDetails"
  1487. footer=""
  1488. title=""
  1489. width="1200px"
  1490. maskClosable={false}
  1491. visible={this.state.visible}
  1492. onOk={this.visitOk}
  1493. onCancel={this.visitCancel}
  1494. >
  1495. <Tabs activeKey={this.state.activeKey} onChange={this.orderChange} tabBarExtraContent={
  1496. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  1497. <OrderItemStatus deleteSign={this.state.deleteSign} />
  1498. </div>
  1499. }>
  1500. <TabPane tab="项目概况" key="1">
  1501. {this.state.activeKey === "1" ? <Form
  1502. layout="horizontal"
  1503. onSubmit={this.handleSubmit}
  1504. id="demand-form"
  1505. style={{ paddingBottom: "00px" }}
  1506. >
  1507. <Spin spinning={this.state.loading}>
  1508. <div className="clearfix">
  1509. <div className="clearfix">
  1510. <FormItem
  1511. className="half-item"
  1512. {...formItemLayout}
  1513. label="项目状态"
  1514. >
  1515. <span>{getProjectName(parseInt(this.state.projectStatus))}</span>
  1516. <Button
  1517. type="primary"
  1518. size="small"
  1519. style={{ marginTop: '5px', position: 'absolute' }}
  1520. onClick={this.caozuorizhi}
  1521. >
  1522. 操作日志
  1523. </Button>
  1524. </FormItem>
  1525. <FormItem
  1526. className="half-item"
  1527. {...formItemLayout}
  1528. label="合同编号"
  1529. >
  1530. <span>{this.state.contractNo}</span>
  1531. </FormItem>
  1532. </div>
  1533. <div className="clearfix">
  1534. <FormItem
  1535. className="half-item"
  1536. {...formItemLayout}
  1537. label="是否特批"
  1538. >
  1539. <span>{getApproval(this.state.approval)}</span>
  1540. </FormItem>
  1541. <FormItem
  1542. className="half-item"
  1543. {...formItemLayout}
  1544. label="结算状态"
  1545. >
  1546. <span>
  1547. {getLiquidationStatus(this.state.liquidationStatus)}
  1548. </span>
  1549. </FormItem>
  1550. <FormItem
  1551. className="half-item"
  1552. {...formItemLayout}
  1553. label="流程状态"
  1554. >
  1555. <span>
  1556. {getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}
  1557. </span>
  1558. </FormItem>
  1559. <FormItem
  1560. className="half-item"
  1561. {...formItemLayout}
  1562. label="订单编号"
  1563. >
  1564. <span>{this.state.orderNo}</span>
  1565. </FormItem>
  1566. <FormItem
  1567. className="half-item"
  1568. {...formItemLayout}
  1569. label="是否外包"
  1570. >
  1571. <span>{this.state.outsource == 0 ? "否" : "是"}</span>
  1572. </FormItem>
  1573. </div>
  1574. <div className="clearfix">
  1575. <FormItem
  1576. className="half-item"
  1577. {...formItemLayout}
  1578. label="满意度表格"
  1579. >
  1580. <span>
  1581. {utils.getSatisfaction(this.state.formRetrieve)}
  1582. </span>
  1583. </FormItem>
  1584. {
  1585. <FormItem
  1586. className="half-item"
  1587. {...formItemLayout}
  1588. label="(满意度)备注"
  1589. >
  1590. <span>{this.state.retrieveContent}</span>
  1591. </FormItem>
  1592. }
  1593. {/*<FormItem*/}
  1594. {/* className="half-item"*/}
  1595. {/* {...formItemLayout}*/}
  1596. {/* label="退单"*/}
  1597. {/*>*/}
  1598. {/* <span>*/}
  1599. {/* {utils.getChargeback(this.state.taskRefund)}*/}
  1600. {/* </span>*/}
  1601. {/*</FormItem>*/}
  1602. </div>
  1603. <div className="clearfix">
  1604. <div style={{
  1605. paddingLeft: '8%',
  1606. }}>
  1607. <div style={{ color: '#000', fontWeight: 500 }}>
  1608. 特别说明
  1609. <span style={{ color: '#58a3ff', }}>(针对项目的特殊情况说明)</span>
  1610. </div>
  1611. <div style={{
  1612. display: 'flex',
  1613. }}>
  1614. <span style={{ paddingRight: '10px', whiteSpace: "nowrap" }}>备注:</span>
  1615. <span style={{
  1616. flex: 1,
  1617. wordBreak: 'break-all',
  1618. }}>{this.state.specialComment}</span>
  1619. </div>
  1620. </div>
  1621. {
  1622. // <FormItem
  1623. // className="half-item"
  1624. // {...formItemLayout}
  1625. // label="(退单)备注"
  1626. // >
  1627. // <span>{this.state.refundContent}</span>
  1628. // </FormItem>
  1629. }
  1630. </div>
  1631. <div className="clearfix">
  1632. <h3 className="sub-title">任务信息</h3>
  1633. {/*0通用 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1634. {/*贯标需要显示*/}
  1635. {
  1636. this.state.isIso ?
  1637. <div>
  1638. <FormItem
  1639. className="half-item"
  1640. {...formItemLayout}
  1641. label="认证费"
  1642. >
  1643. <span>
  1644. {
  1645. this.state.ifCertificationFee === 1 ? '包含' : '不包含'
  1646. }
  1647. </span>
  1648. </FormItem>
  1649. {this.state.ifCertificationFee === 1 ? <FormItem
  1650. className="half-item"
  1651. {...formItemLayout}
  1652. label="认证费(万元)"
  1653. >
  1654. <span>
  1655. {
  1656. this.state.certificationFee
  1657. }
  1658. </span>
  1659. </FormItem> : null}
  1660. {this.state.ifCertificationFee === 1 ? <FormItem
  1661. className="half-item"
  1662. {...formItemLayout}
  1663. label=""
  1664. /> : null}
  1665. {this.state.ifCertificationFee === 1 ? <FormItem
  1666. className="half-item"
  1667. {...formItemLayout}
  1668. label="付款公司名称"
  1669. >
  1670. <span>
  1671. {this.state.certificationCorporate}
  1672. </span>
  1673. </FormItem> : null}
  1674. </div> : null
  1675. }
  1676. <FormItem
  1677. className="half-item"
  1678. {...formItemLayout}
  1679. label="任务编号"
  1680. >
  1681. <span>
  1682. {this.state.splitStatus == 2
  1683. ? this.state.splitSuper + "-" + this.state.splitId
  1684. : this.state.id}
  1685. </span>
  1686. </FormItem>
  1687. <FormItem
  1688. className="half-item"
  1689. {...formItemLayout}
  1690. label="任务名称"
  1691. >
  1692. <span>{this.state.taskName}</span>
  1693. </FormItem>
  1694. <FormItem
  1695. className="half-item"
  1696. {...formItemLayout}
  1697. label="任务状态"
  1698. >
  1699. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1700. </FormItem>
  1701. <FormItem
  1702. className="half-item"
  1703. {...formItemLayout}
  1704. label="任务类别"
  1705. >
  1706. <span>{this.state.cname}</span>
  1707. </FormItem>
  1708. <FormItem
  1709. className="half-item"
  1710. {...formItemLayout}
  1711. label="证书编号"
  1712. >
  1713. <span>{this.state.certificateNumber}</span>
  1714. </FormItem>
  1715. </div>
  1716. {/*{this.state.outsource === 1 ? (*/}
  1717. {/* <div className="clearfix">*/}
  1718. {/* <h3 className="sub-title">外包信息</h3>*/}
  1719. {/* <FormItem*/}
  1720. {/* className="half-item"*/}
  1721. {/* {...formItemLayout}*/}
  1722. {/* label="外包公司"*/}
  1723. {/* >*/}
  1724. {/* <span>{this.state.outsourceName}</span>*/}
  1725. {/* </FormItem>*/}
  1726. {/* <FormItem*/}
  1727. {/* className="half-item"*/}
  1728. {/* {...formItemLayout}*/}
  1729. {/* label="外包成本(万元)"*/}
  1730. {/* >*/}
  1731. {/* <span>{this.state.outsourcePrice}</span>*/}
  1732. {/* </FormItem>*/}
  1733. {/* </div>*/}
  1734. {/*) : (*/}
  1735. {/* ""*/}
  1736. {/*)}*/}
  1737. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1738. <div className="clearfix">
  1739. <h3 className="sub-title">联系信息</h3>
  1740. <FormItem
  1741. className="half-item"
  1742. {...formItemLayout}
  1743. label="客户名称"
  1744. >
  1745. <span>{this.state.userName}</span>
  1746. <EnterpriseNameChange
  1747. type='journal'
  1748. style={{ marginLeft: 10 }}
  1749. enterpriseId={this.state.orderUid} />
  1750. </FormItem>
  1751. <FormItem
  1752. className="half-item"
  1753. {...formItemLayout}
  1754. label="企业法人"
  1755. >
  1756. <span>{this.state.legalPerson}</span>
  1757. </FormItem>
  1758. <FormItem
  1759. className="half-item"
  1760. {...formItemLayout}
  1761. label="法人电话"
  1762. >
  1763. <span>{this.state.legalPersonTel}</span>
  1764. </FormItem>
  1765. <FormItem
  1766. className="half-item"
  1767. {...formItemLayout}
  1768. label="客户联系人"
  1769. >
  1770. <span>{this.state.contacts}</span>
  1771. </FormItem>
  1772. <FormItem
  1773. className="half-item"
  1774. {...formItemLayout}
  1775. label="联系人电话"
  1776. >
  1777. <span>{this.state.contactMobile}</span>
  1778. </FormItem>
  1779. <FormItem
  1780. className="half-item"
  1781. {...formItemLayout}
  1782. label="企业地址"
  1783. >
  1784. <span>
  1785. {getprovince(this.state.locationProvince)}/
  1786. {getprovince(this.state.locationCity)}/
  1787. {getprovince(this.state.locationArea)}
  1788. </span>
  1789. </FormItem>
  1790. <FormItem
  1791. className="half-item"
  1792. {...formItemLayout}
  1793. label=""
  1794. />
  1795. <FormItem className="half-item" {...formItemLayout}>
  1796. <span style={{ paddingLeft: "12em" }}>
  1797. {this.state.postalAddress}
  1798. </span>
  1799. </FormItem>
  1800. </div>
  1801. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1802. <div className="clearfix">
  1803. <h3 className="sub-title">订单负责人信息</h3>
  1804. <FormItem
  1805. className="half-item"
  1806. {...formItemLayout}
  1807. label="负责人"
  1808. >
  1809. <span>
  1810. {this.state.salesmanName +
  1811. "(" +
  1812. this.state.depName +
  1813. ")"}
  1814. </span>
  1815. </FormItem>
  1816. <FormItem
  1817. className="half-item"
  1818. {...formItemLayout}
  1819. label="负责人电话"
  1820. >
  1821. <span>{this.state.salesmanMobile}</span>
  1822. </FormItem>
  1823. <FormItem
  1824. className="half-item"
  1825. {...formItemLayout}
  1826. label="当前财务负责人"
  1827. >
  1828. <span>{this.state.nowFinance}</span>
  1829. </FormItem>
  1830. <FormItem
  1831. className="half-item"
  1832. {...formItemLayout}
  1833. label="当前财务负责人电话"
  1834. >
  1835. <span>{this.state.nowFinanceMobile}</span>
  1836. </FormItem>
  1837. <FormItem
  1838. className="half-item"
  1839. {...formItemLayout}
  1840. style={{ opacity: ".5" }}
  1841. label="原负责人"
  1842. >
  1843. <span>{this.state.oldSalesmanName}</span>
  1844. </FormItem>
  1845. <FormItem
  1846. className="half-item"
  1847. {...formItemLayout}
  1848. style={{ opacity: ".5" }}
  1849. label="原负责人电话"
  1850. >
  1851. <span>{this.state.oldSalesmanMobile}</span>
  1852. </FormItem>
  1853. <FormItem
  1854. className="half-item"
  1855. {...formItemLayout}
  1856. style={{ opacity: ".5" }}
  1857. label="实际财务操作人"
  1858. >
  1859. <span>{this.state.financeName}</span>
  1860. </FormItem>
  1861. <FormItem
  1862. className="half-item"
  1863. {...formItemLayout}
  1864. style={{ opacity: ".5" }}
  1865. label="实际财务操作人电话"
  1866. >
  1867. <span>{this.state.financeMobile}</span>
  1868. </FormItem>
  1869. {/* 知识产权情况 */}
  1870. <Property patentStatus={this.state.patentStatus} />
  1871. <FormItem
  1872. className="half-item"
  1873. {...formItemLayout}
  1874. label="订单留言"
  1875. >
  1876. <span>{this.state.orderRemarks}</span>
  1877. </FormItem>
  1878. <FormItem
  1879. className="half-item"
  1880. {...formItemLayout}
  1881. label=""
  1882. >
  1883. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  1884. </FormItem>
  1885. <OrderRiZi
  1886. dataSourcerizhi={this.state.dataSourceY}
  1887. closeOrderLog={this.closeOrderLog}
  1888. visible={this.state.avisible}
  1889. loading={this.state.loading}
  1890. />
  1891. </div>
  1892. <div className="clearfix">
  1893. <h3 className="sub-title">申报系统账户信息</h3>
  1894. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  1895. <FormItem
  1896. className="half-item"
  1897. {...formItemLayout}
  1898. label="用户名"
  1899. >
  1900. <span>{this.state.declareUser}</span>
  1901. </FormItem>
  1902. <FormItem
  1903. className="half-item"
  1904. {...formItemLayout}
  1905. label="密码"
  1906. >
  1907. <span>{this.state.declarePwd}</span>
  1908. </FormItem>
  1909. </div>
  1910. <div className="clearfix">
  1911. <h3 className="sub-title">项目申报进度</h3>
  1912. <DeclarationProgress
  1913. timeRecordparse={this.state.timeRecordparse}
  1914. startDate={this.state.startDate}
  1915. taskDate={this.state.taskDate}
  1916. list={[
  1917. { id: 4, name: '完成时间', value: this.state.endDate },
  1918. { id: 6, name: '受理时间', value: this.state.acceptDate },
  1919. { id: 8, name: '公示时间', value: this.state.publicityDate },
  1920. { id: 10, name: '发证时间', value: this.state.licenceDate },
  1921. { id: 15, name: '立项金额', value: this.state.setUpAmount }
  1922. ]} />
  1923. {/*专利显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1924. {
  1925. this.state.bpType === 1 || this.state.bpType === 6 ?
  1926. <div>
  1927. <FormItem
  1928. labelCol={{ span: 3 }}
  1929. wrapperCol={{ span: 16 }}
  1930. label="是否高新企业"
  1931. >
  1932. <span>
  1933. {
  1934. this.state.highTechStatus === 1 ? '是' :
  1935. this.state.highTechStatus === 0 ? '否' : ''
  1936. }
  1937. </span>
  1938. </FormItem>
  1939. <FormItem />
  1940. <PatentSchedule
  1941. readOnly
  1942. bpType={this.state.bpType}
  1943. taskId={this.state.id}
  1944. acceptCount={this.state.acceptCount}
  1945. certificatesCount={this.state.certificatesCount}
  1946. rejectCount={this.state.rejectCount}
  1947. commodityQuantity={this.state.commodityQuantity}
  1948. refresh={() => { this.xiangqing(this.state.id) }}
  1949. />
  1950. </div> :
  1951. <div>
  1952. {/*高新显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1953. {this.state.bpType === 5 ? <FormItem
  1954. className="half-item"
  1955. {...formItemLayout}
  1956. label="是否抽查">
  1957. {
  1958. this.state.spotCheckStatus === 0 ? '否' :
  1959. this.state.spotCheckStatus === 1 ? '是,未通过' :
  1960. this.state.spotCheckStatus === 2 ? '是,通过' : ''
  1961. }
  1962. </FormItem> : null}
  1963. <FormItem />
  1964. {this.state.bpType === 5 ? <FormItem
  1965. className="half-item"
  1966. {...formItemLayout}
  1967. label="是否立项"
  1968. >
  1969. {
  1970. this.state.setUpStatus === 1 ? '是' :
  1971. this.state.setUpStatus === 0 ? '否' : ''
  1972. }
  1973. </FormItem> : null}
  1974. {this.state.bpType === 5 ? <FormItem
  1975. className="half-item"
  1976. {...formItemLayout}
  1977. label={this.state.setUpStatus === 1 ? "立项时间" : ''}
  1978. >
  1979. {this.state.setUpStatus === 1 ? this.state.setUpTime : null}
  1980. </FormItem> : null}
  1981. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1982. {/*cSort: 3 科技项目 6: 会员*/}
  1983. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  1984. className="half-item"
  1985. {...formItemLayout}
  1986. label="申报批次"
  1987. >
  1988. <span>{this.state.declarationBatch}</span>
  1989. </FormItem>}
  1990. {/*只有科技项目才有是否到款*/}
  1991. {/*cSort: 3 科技项目 6: 会员*/}
  1992. {this.state.cSort === 3 && <FormItem
  1993. className="half-item"
  1994. {...formItemLayout}
  1995. label="是否到款"
  1996. >
  1997. <span>
  1998. {this.state.arrivalMoney ? "已到企业" : "未到企业"}
  1999. </span>
  2000. </FormItem>}
  2001. </div>}
  2002. </div>
  2003. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  2004. <FormItem
  2005. labelCol={{ span: 3 }}
  2006. wrapperCol={{ span: 18 }}
  2007. label="附件"
  2008. >
  2009. {/*<Upload*/}
  2010. {/* className="demandDetailShow-upload"*/}
  2011. {/* listType="picture-card"*/}
  2012. {/* fileList={this.state.attachmentUrl}*/}
  2013. {/* onPreview={(file) => {*/}
  2014. {/* this.setState({*/}
  2015. {/* previewImage: file.url || file.thumbUrl,*/}
  2016. {/* previewVisible: true,*/}
  2017. {/* });*/}
  2018. {/* }}*/}
  2019. {/*/>*/}
  2020. {this.state.visible && this.state.attachmentUrl && this.state.activeKey === "1" ? <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  2021. <ImgList fileList={this.state.attachmentUrl} domId={'taskQuery1'} />
  2022. </div> : <div />}
  2023. {this.state.previewVisible ? <Modal
  2024. maskClosable={false}
  2025. footer={null}
  2026. visible={this.state.previewVisible}
  2027. onCancel={() => {
  2028. this.setState({ previewVisible: false });
  2029. }}
  2030. >
  2031. <img
  2032. alt=""
  2033. style={{ width: "100%" }}
  2034. src={this.state.previewImage || ""}
  2035. />
  2036. </Modal> : null}
  2037. </FormItem>
  2038. </div> : null}
  2039. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  2040. <FormItem
  2041. labelCol={{ span: 3 }}
  2042. wrapperCol={{ span: 16 }}
  2043. label="项目说明"
  2044. >
  2045. <span>{this.state.taskComment}</span>
  2046. </FormItem>
  2047. </div> : null}
  2048. <div>
  2049. <h3 className="sub-title">项目业务</h3>
  2050. {this.state.processStatus == 0 ? (
  2051. <Button
  2052. type="primary"
  2053. onClick={this.addDetailed}
  2054. style={{
  2055. float: "right",
  2056. marginRight: "50px",
  2057. marginBottom: "15px",
  2058. }}
  2059. >
  2060. 添加项目明细
  2061. </Button>
  2062. ) : (
  2063. ""
  2064. )}
  2065. </div>
  2066. <div className="patent-table">
  2067. <Spin spinning={this.state.loading}>
  2068. <Table
  2069. columns={this.state.columnsX}
  2070. dataSource={this.state.dataSourceX}
  2071. pagination={this.state.paginations}
  2072. onRowClick={this.tableRowClickX}
  2073. expandedRowRender={expandedRowRenderVip}
  2074. rowClassName={this.addRowColor}
  2075. bordered
  2076. size="small"
  2077. />
  2078. </Spin>
  2079. </div>
  2080. </div>
  2081. </Spin>
  2082. </Form> : <div />}
  2083. </TabPane>
  2084. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  2085. <TabPane tab="订单详情" key="2">
  2086. {this.state.activeKey === "2" ? <Spin spinning={this.state.loading}>
  2087. <OrderDetail
  2088. orderUid={this.state.orderUid}
  2089. orderData={this.state.orderData}
  2090. getOrderLog={this.getOrderLog}
  2091. dataSourceX={this.state.dataSourceX}
  2092. contactList={this.state.jiedian}
  2093. orderNo={this.state.orderNo}
  2094. totalCui={this.state.totalCui}
  2095. contactListNew={this.state.jiedianNew}
  2096. pictureUrl={this.state.contractPictureUrl}
  2097. />
  2098. </Spin> : <div />}
  2099. <OrderRiZi
  2100. dataSourcerizhi={this.state.dataSourceY}
  2101. closeOrderLog={this.closeOrderLog}
  2102. visible={this.state.avisible}
  2103. loading={this.state.loading}
  2104. />
  2105. </TabPane>
  2106. ) : (
  2107. ""
  2108. )}
  2109. </Tabs>
  2110. </Modal> : <div />}
  2111. <Modal
  2112. width="800px"
  2113. title="操作日志"
  2114. footer=""
  2115. maskClosable={false}
  2116. className="admin-desc-content"
  2117. >
  2118. <div className="patent-table patent-table-center">
  2119. <Spin spinning={this.state.loading}>
  2120. <Table columns={this.state.columnsY} bordered size="small" />
  2121. </Spin>
  2122. </div>
  2123. </Modal>
  2124. {this.state.speVisible ? <Modal
  2125. maskClosable={false}
  2126. visible={this.state.speVisible}
  2127. onOk={this.visitOk}
  2128. onCancel={this.visitCancel}
  2129. width="1200px"
  2130. title=""
  2131. footer=""
  2132. className="admin-desc-content"
  2133. >
  2134. <Tabs activeKey={this.state.activeKey} onChange={this.orderChange} tabBarExtraContent={
  2135. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  2136. <OrderItemStatus deleteSign={this.state.deleteSign} />
  2137. </div>
  2138. }>
  2139. <TabPane tab="项目概况" key="1">
  2140. {this.state.activeKey === "1" ?
  2141. <div>
  2142. <div className="clearfix">
  2143. <FormItem
  2144. className="half-item"
  2145. {...formItemLayout}
  2146. label="项目状态"
  2147. >
  2148. <span>{getProjectName(parseInt(this.state.projectStatus))}</span>
  2149. <Button
  2150. type="primary"
  2151. size="small"
  2152. style={{ marginTop: '5px', position: 'absolute' }}
  2153. onClick={this.caozuorizhi}
  2154. >
  2155. 操作日志
  2156. </Button>
  2157. </FormItem>
  2158. <FormItem
  2159. className="half-item"
  2160. {...formItemLayout}
  2161. label="合同编号"
  2162. >
  2163. <span>{this.state.contractNo}</span>
  2164. </FormItem>
  2165. </div>
  2166. <div className="clearfix">
  2167. <FormItem
  2168. className="half-item"
  2169. {...formItemLayout}
  2170. label="是否特批"
  2171. >
  2172. <span>{getApproval(this.state.approval)}</span>
  2173. </FormItem>
  2174. <FormItem
  2175. className="half-item"
  2176. {...formItemLayout}
  2177. label="结算状态"
  2178. >
  2179. <span>
  2180. {getLiquidationStatus(this.state.liquidationStatus)}
  2181. </span>
  2182. </FormItem>
  2183. <FormItem
  2184. className="half-item"
  2185. {...formItemLayout}
  2186. label="流程状态"
  2187. >
  2188. <span>{getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}</span>
  2189. </FormItem>
  2190. <FormItem
  2191. className="half-item"
  2192. {...formItemLayout}
  2193. label="订单编号"
  2194. >
  2195. <span>{this.state.orderNo}</span>
  2196. </FormItem>
  2197. </div>
  2198. <div className="clearfix">
  2199. <FormItem
  2200. className="half-item"
  2201. {...formItemLayout}
  2202. label="满意度表格"
  2203. >
  2204. <span>{utils.getSatisfaction(this.state.formRetrieve)}</span>
  2205. </FormItem>
  2206. {
  2207. <FormItem
  2208. className="half-item"
  2209. {...formItemLayout}
  2210. label="(满意度)备注"
  2211. >
  2212. <span>{this.state.retrieveContent}</span>
  2213. </FormItem>
  2214. }
  2215. {/*<FormItem*/}
  2216. {/* className="half-item"*/}
  2217. {/* {...formItemLayout}*/}
  2218. {/* label="退单"*/}
  2219. {/*>*/}
  2220. {/* <span>{utils.getChargeback(this.state.taskRefund)}</span>*/}
  2221. {/*</FormItem>*/}
  2222. </div>
  2223. {/*软著显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  2224. {this.state.bpType === 2 ? <div className="clearfix">
  2225. <FormItem
  2226. className="half-item"
  2227. {...formItemLayout}
  2228. label="加急天数"
  2229. >
  2230. {
  2231. this.state.urgentDay === 1 ? '是' :
  2232. this.state.urgentDay === 0 ? '否' : ''
  2233. }
  2234. </FormItem>
  2235. <FormItem
  2236. className="half-item"
  2237. {...formItemLayout}
  2238. label="有无方案"
  2239. >
  2240. {
  2241. this.state.ifMaterial === 1 ? '是' :
  2242. this.state.ifMaterial === 0 ? '否' : ''
  2243. }
  2244. </FormItem>
  2245. </div> : null}
  2246. <div className="clearfix">
  2247. <div style={{
  2248. paddingLeft: '8%',
  2249. }}>
  2250. <div style={{ color: '#000', fontWeight: 500 }}>
  2251. 特别说明
  2252. <span style={{ color: '#58a3ff', }}>(针对项目的特殊情况说明)</span>
  2253. </div>
  2254. <div style={{
  2255. display: 'flex',
  2256. }}>
  2257. <span style={{ paddingRight: '10px', whiteSpace: "nowrap" }}>备注:</span>
  2258. <span style={{
  2259. flex: 1,
  2260. wordBreak: 'break-all',
  2261. }}>{this.state.specialComment}</span>
  2262. </div>
  2263. </div>
  2264. {
  2265. // <FormItem
  2266. // className="half-item"
  2267. // {...formItemLayout}
  2268. // label="(退单)备注"
  2269. // >
  2270. // <span>{this.state.refundContent}</span>
  2271. // </FormItem>
  2272. }
  2273. </div>
  2274. <div className="clearfix">
  2275. <h3 className="sub-title">任务信息</h3>
  2276. <FormItem
  2277. className="half-item"
  2278. {...formItemLayout}
  2279. label="任务编号"
  2280. >
  2281. <span>
  2282. {this.state.splitStatus == 2
  2283. ? this.state.splitSuper + "-" + this.state.splitId
  2284. : this.state.id}
  2285. </span>
  2286. </FormItem>
  2287. <FormItem
  2288. className="half-item"
  2289. {...formItemLayout}
  2290. label="任务名称"
  2291. >
  2292. <span>{this.state.taskName}</span>
  2293. </FormItem>
  2294. <FormItem
  2295. className="half-item"
  2296. {...formItemLayout}
  2297. label="任务状态"
  2298. >
  2299. <span>{getTaskStatus(this.state.taskStatus)}</span>
  2300. </FormItem>
  2301. <FormItem
  2302. className="half-item"
  2303. {...formItemLayout}
  2304. label="任务类别"
  2305. >
  2306. <span>{this.state.cname}</span>
  2307. </FormItem>
  2308. <FormItem
  2309. className="half-item"
  2310. {...formItemLayout}
  2311. label="证书编号"
  2312. >
  2313. <span>{this.state.certificateNumber}</span>
  2314. </FormItem>
  2315. </div>
  2316. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2317. <div className="clearfix">
  2318. <h3 className="sub-title">联系信息</h3>
  2319. <FormItem
  2320. className="half-item"
  2321. {...formItemLayout}
  2322. label="客户名称"
  2323. >
  2324. <span>{this.state.userName}</span>
  2325. <EnterpriseNameChange
  2326. type='journal'
  2327. style={{ marginLeft: 10 }}
  2328. enterpriseId={this.state.orderUid} />
  2329. </FormItem>
  2330. <FormItem
  2331. className="half-item"
  2332. {...formItemLayout}
  2333. label="企业法人"
  2334. >
  2335. <span>{this.state.legalPerson}</span>
  2336. </FormItem>
  2337. <FormItem
  2338. className="half-item"
  2339. {...formItemLayout}
  2340. label="法人电话"
  2341. >
  2342. <span>{this.state.legalPersonTel}</span>
  2343. </FormItem>
  2344. <FormItem
  2345. className="half-item"
  2346. {...formItemLayout}
  2347. label="客户联系人"
  2348. >
  2349. <span>{this.state.contacts}</span>
  2350. </FormItem>
  2351. <FormItem
  2352. className="half-item"
  2353. {...formItemLayout}
  2354. label="联系人电话"
  2355. >
  2356. <span>{this.state.contactMobile}</span>
  2357. </FormItem>
  2358. <FormItem
  2359. className="half-item"
  2360. {...formItemLayout}
  2361. label="企业地址"
  2362. >
  2363. <span>
  2364. {getprovince(this.state.locationProvince)}/
  2365. {getprovince(this.state.locationCity)}/
  2366. {getprovince(this.state.locationArea)}
  2367. </span>
  2368. </FormItem>
  2369. <FormItem
  2370. className="half-item"
  2371. {...formItemLayout}
  2372. label=""
  2373. />
  2374. <FormItem className="half-item" {...formItemLayout} label="">
  2375. <span style={{ paddingLeft: "12em" }}>
  2376. {this.state.postalAddress}
  2377. </span>
  2378. </FormItem>
  2379. </div>
  2380. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2381. <div className="clearfix">
  2382. <h3 className="sub-title">订单负责人信息</h3>
  2383. <FormItem
  2384. className="half-item"
  2385. {...formItemLayout}
  2386. label="负责人"
  2387. >
  2388. <span>
  2389. {this.state.salesmanName + "(" + this.state.depName + ")"}
  2390. </span>
  2391. </FormItem>
  2392. <FormItem
  2393. className="half-item"
  2394. {...formItemLayout}
  2395. label="负责人电话"
  2396. >
  2397. <span>{this.state.salesmanMobile}</span>
  2398. </FormItem>
  2399. <FormItem
  2400. className="half-item"
  2401. {...formItemLayout}
  2402. label="财务负责人"
  2403. >
  2404. <span>{this.state.financeName}</span>
  2405. </FormItem>
  2406. <FormItem
  2407. className="half-item"
  2408. {...formItemLayout}
  2409. label="财务负责人电话"
  2410. >
  2411. <span>{this.state.financeMobile}</span>
  2412. </FormItem>
  2413. </div>
  2414. <div className="clearfix" style={{ marginTop: "10px" }}>
  2415. <FormItem
  2416. labelCol={{ span: 3 }}
  2417. wrapperCol={{ span: 18 }}
  2418. label="附件"
  2419. >
  2420. {/*<Upload*/}
  2421. {/* className="demandDetailShow-upload"*/}
  2422. {/* listType="picture-card"*/}
  2423. {/* fileList={this.state.attachmentUrl}*/}
  2424. {/* onPreview={(file) => {*/}
  2425. {/* this.setState({*/}
  2426. {/* previewImage: file.url || file.thumbUrl,*/}
  2427. {/* previewVisible: true,*/}
  2428. {/* });*/}
  2429. {/* }}*/}
  2430. {/*/>*/}
  2431. {this.state.speVisible && this.state.attachmentUrl && this.state.activeKey === "1" ? <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  2432. <ImgList fileList={this.state.attachmentUrl} domId={'taskQuery1'} />
  2433. </div> : <div />}
  2434. {this.state.previewVisible ? <Modal
  2435. maskClosable={false}
  2436. footer={null}
  2437. visible={this.state.previewVisible}
  2438. onCancel={() => {
  2439. this.setState({ previewVisible: false });
  2440. }}
  2441. >
  2442. <img
  2443. alt=""
  2444. style={{ width: "100%" }}
  2445. src={this.state.previewImage || ""}
  2446. />
  2447. </Modal> : null}
  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.taskComment}</span>
  2457. </FormItem>
  2458. </div>
  2459. <div className="clearfix">
  2460. <FormItem
  2461. labelCol={{ span: 3 }}
  2462. wrapperCol={{ span: 16 }}
  2463. label="订单留言"
  2464. >
  2465. <span>{this.state.orderRemarks}</span>
  2466. </FormItem>
  2467. </div>
  2468. <div className="clearfix">
  2469. <FormItem
  2470. labelCol={{ span: 3 }}
  2471. wrapperCol={{ span: 16 }}
  2472. label=""
  2473. >
  2474. <Button
  2475. style={{ marginLeft: 500 }}
  2476. onClick={this.getOrderLog}
  2477. >
  2478. 查看订单日志
  2479. </Button>
  2480. </FormItem>
  2481. </div>
  2482. <OrderRiZi
  2483. dataSourcerizhi={this.state.dataSourceY}
  2484. closeOrderLog={this.closeOrderLog}
  2485. visible={this.state.avisible}
  2486. loading={this.state.loading}
  2487. />
  2488. <div className="clearfix">
  2489. <h3 className="sub-title">项目申报进度</h3>
  2490. <DeclarationProgress
  2491. timeRecordparse={this.state.timeRecordparse}
  2492. startDate={this.state.startDate}
  2493. taskDate={this.state.taskDate}
  2494. list={[
  2495. { id: 4, name: '完成时间', value: this.state.endDate },
  2496. { id: 6, name: '受理时间', value: this.state.acceptDate },
  2497. { id: 8, name: '公示时间', value: this.state.publicityDate },
  2498. { id: 10, name: '发证时间', value: this.state.licenceDate },
  2499. { id: 15, name: '立项金额', value: this.state.setUpAmount }
  2500. ]} />
  2501. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  2502. {/*cSort: 3 科技项目 6: 会员*/}
  2503. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  2504. className="half-item"
  2505. {...formItemLayout}
  2506. label="申报批次"
  2507. >
  2508. <span>{this.state.declarationBatch}</span>
  2509. </FormItem>}
  2510. <FormItem
  2511. className="half-item"
  2512. {...formItemLayout}
  2513. label="软著派单数量"
  2514. >
  2515. <span>{this.state.commodityQuantity}</span>
  2516. </FormItem>
  2517. <div className="patent-table patent-table-center">
  2518. <Spin spinning={this.state.loading}>
  2519. <Table
  2520. columns={this.state.ContactsLists}
  2521. dataSource={this.state.contactList}
  2522. pagination={false}
  2523. bordered
  2524. size="small"
  2525. />
  2526. </Spin>
  2527. </div>
  2528. </div>
  2529. <div className="clearfix">
  2530. <h3 className="sub-title">项目业务</h3>
  2531. <div className="patent-table">
  2532. <Spin spinning={this.state.loading}>
  2533. <Table
  2534. columns={this.state.columnsX}
  2535. dataSource={this.state.dataSourceX}
  2536. pagination={this.state.paginations}
  2537. onRowClick={this.tableRowClickX}
  2538. bordered
  2539. size="small"
  2540. />
  2541. </Spin>
  2542. </div>
  2543. </div>
  2544. </div> : <div />}
  2545. </TabPane>
  2546. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  2547. <TabPane tab="订单详情" key="2">
  2548. {this.state.activeKey === "2" ? <Spin spinning={this.state.loading}>
  2549. <OrderDetail
  2550. orderUid={this.state.orderUid}
  2551. orderData={this.state.orderData}
  2552. getOrderLog={this.getOrderLog}
  2553. dataSourceX={this.state.dataSourceX}
  2554. contactList={this.state.jiedian}
  2555. orderNo={this.state.orderNo}
  2556. totalCui={this.state.totalCui}
  2557. contactListNew={this.state.jiedianNew}
  2558. pictureUrl={this.state.contractPictureUrl}
  2559. />
  2560. </Spin> : <div />}
  2561. <OrderRiZi
  2562. dataSourcerizhi={this.state.dataSourceY}
  2563. closeOrderLog={this.closeOrderLog}
  2564. visible={this.state.avisible}
  2565. loading={this.state.loading}
  2566. />
  2567. </TabPane>
  2568. ) : (
  2569. ""
  2570. )}
  2571. </Tabs>
  2572. </Modal> : <div />}
  2573. {this.state.visibleA ? <Modal
  2574. width="800px"
  2575. maskClosable={false}
  2576. visible={this.state.visibleA}
  2577. onCancel={this.visitCancelA}
  2578. title="操作日志"
  2579. footer=""
  2580. className="admin-desc-content"
  2581. >
  2582. <div className="patent-table patent-table-center">
  2583. <Spin spinning={this.state.loading}>
  2584. <Table
  2585. columns={this.state.columnsA}
  2586. dataSource={this.state.dataSourceA}
  2587. pagination={false}
  2588. bordered
  2589. size="small"
  2590. />
  2591. </Spin>
  2592. </div>
  2593. </Modal> : null}
  2594. {this.state.resVisible ? (
  2595. <ResolutionDetail
  2596. cancel={this.resCancel}
  2597. detail={this.state.resRecord}
  2598. visible={this.state.resVisible}
  2599. id={this.state.resRecord.orderNo}
  2600. />
  2601. ) : (
  2602. ""
  2603. )}
  2604. {/* {this.state.addnextVisible && <ProjectDetailsReadOnly
  2605. infor={this.state.dataInfor}
  2606. visible={this.state.addnextVisible}
  2607. onCancel={this.nextCancel}
  2608. />} */}
  2609. {
  2610. // 项目业务详情
  2611. this.state.addnextVisible &&
  2612. <NewEditProject
  2613. readOnly={true}
  2614. visible={this.state.addnextVisible}
  2615. dataInfor={this.state.dataInfor}
  2616. onCancel={this.nextCancel}
  2617. />
  2618. }
  2619. </div>
  2620. );
  2621. },
  2622. });
  2623. export default Task;