taskQuery.jsx 83 KB

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