taskQuery.jsx 81 KB

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