taskQuery.jsx 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761
  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. Upload,
  10. Spin,
  11. Table,
  12. message,
  13. Modal,
  14. Tabs,
  15. Tag
  16. } from "antd";
  17. import Assign from '@/manageCenter/publicComponent/assign';
  18. import ResolutionDetail from "@/resolutionDetail";
  19. import './table.less';
  20. import {
  21. getProcessStatus,
  22. getApproval,
  23. getTaskStatus,
  24. getLiquidationStatus,
  25. splitUrl,
  26. getProjectStatus,
  27. getboutique,
  28. getprovince,
  29. ShowModal
  30. } from "@/tools";
  31. const FormItem =Form.Item;
  32. const {TabPane} = Tabs
  33. import ShowModalDiv from "@/showModal.jsx";
  34. const Task = React.createClass({
  35. loadData(pageNo) {
  36. this.state.data = [];
  37. this.setState({
  38. page: pageNo,
  39. loading: true
  40. });
  41. $.ajax({
  42. method: "get",
  43. dataType: "json",
  44. crossDomain: false,
  45. url: globalConfig.context + "/api/admin/orderProject/selectTaskList",
  46. data: {
  47. pageNo: pageNo || this.state.page || 1,
  48. pageSize: this.state.pagination.pageSize,
  49. specially: 1, //经理
  50. name: this.state.nameSearch, //客户名称
  51. orderNo: this.state.orderNoSearch, //订单编号
  52. depId: this.state.departmenttSearch, //订单部门
  53. taskId: this.state.taskNoSearch, //任务编号
  54. adminName: this.state.adminName //任务受理人
  55. },
  56. success: function(data) {
  57. ShowModal(this);
  58. let theArr = [];
  59. if (!data.data || !data.data.list) {
  60. if (data.error && data.error.length) {
  61. message.warning(data.error[0].message);
  62. }
  63. } else {
  64. for (let i = 0; i < data.data.list.length; i++) {
  65. let thisdata = data.data.list[i];
  66. theArr.push({
  67. key: i,
  68. orderNo: thisdata.orderNo, //订单编号
  69. id: thisdata.id, //任务ID
  70. taskName: thisdata.taskName, //名称
  71. cname: thisdata.cname, //项目品类
  72. receiverName: thisdata.receiverName, //受理人
  73. projectStatus: thisdata.projectStatus, //项目状态
  74. taskStatus: thisdata.taskStatus, //任务状态
  75. taskDate: thisdata.taskDate, //分配时间
  76. commodityQuantity: thisdata.commodityQuantity, //软著数量
  77. alreadyNumber: thisdata.alreadyNumber, //下证数量
  78. userName:
  79. thisdata.taskName.substring(0, 5) === "软件著作权"
  80. ? thisdata.userName +
  81. "(" +
  82. thisdata.commodityQuantity.toString() +
  83. "/" +
  84. thisdata.alreadyNumber +
  85. ")"
  86. : thisdata.userName, //用户名
  87. depName: thisdata.depName, //部门名称
  88. receiverName: thisdata.receiverName, //任务责任人
  89. splitStatus: thisdata.splitStatus, //是否为子项目 2是 1主项目
  90. splitSuper: thisdata.splitSuper,
  91. splitId: thisdata.splitId
  92. });
  93. }
  94. }
  95. this.state.pagination.current = data.data.pageNo;
  96. this.state.pagination.total = data.data.totalCount;
  97. if (data.data && data.data.list && !data.data.list.length) {
  98. this.state.pagination.current = 0;
  99. this.state.pagination.total = 0;
  100. }
  101. this.setState({
  102. dataSource: theArr,
  103. pagination: this.state.pagination
  104. });
  105. }.bind(this)
  106. }).always(
  107. function() {
  108. this.setState({
  109. loading: false
  110. });
  111. }.bind(this)
  112. );
  113. },
  114. getInitialState() {
  115. return {
  116. searchMore: true,
  117. assignVisible: false,
  118. releaseDate: [],
  119. roleName: "",
  120. testFlag: true,
  121. departmentArr: [],
  122. boHuivisible: false,
  123. selectedRowKeys: [],
  124. selectedRows: [],
  125. paginations: false,
  126. loading: false,
  127. pagination: {
  128. defaultCurrent: 1,
  129. defaultPageSize: 10,
  130. showQuickJumper: true,
  131. pageSize: 10,
  132. onChange: function(page) {
  133. this.loadData(page);
  134. }.bind(this),
  135. showTotal: function(total) {
  136. return "共" + total + "条数据";
  137. }
  138. },
  139. columns: [
  140. {
  141. title: "项目编号",
  142. dataIndex: "id",
  143. key: "id",
  144. render: (text, record) => {
  145. if (record.splitStatus == 2) {
  146. return <span>{record.splitSuper + "-" + record.splitId}</span>;
  147. } else {
  148. return text;
  149. }
  150. }
  151. },
  152. {
  153. title: "任务名称",
  154. dataIndex: "taskName",
  155. key: "taskName",
  156. className: "taskName"
  157. },
  158. {
  159. title: "订单编号",
  160. dataIndex: "orderNo",
  161. key: "orderNo"
  162. },
  163. {
  164. title: "业务类别",
  165. dataIndex: "cname",
  166. key: "cname"
  167. },
  168. {
  169. title: "客户名称",
  170. dataIndex: "userName",
  171. key: "userName",
  172. className: "userName"
  173. },
  174. {
  175. title: "任务状态",
  176. dataIndex: "taskStatus",
  177. key: "taskStatus",
  178. render: text => {
  179. return getTaskStatus(text);
  180. }
  181. },
  182. {
  183. title: "项目状态",
  184. dataIndex: "projectStatus",
  185. key: "projectStatus",
  186. render: text => {
  187. return getProjectStatus(text);
  188. }
  189. },
  190. {
  191. title: "分配时间",
  192. dataIndex: "taskDate",
  193. key: "taskDate"
  194. },
  195. {
  196. title: "任务数量",
  197. dataIndex: "commodityQuantity",
  198. key: "commodityQuantity"
  199. },
  200. {
  201. title: "任务责任人",
  202. dataIndex: "receiverName",
  203. key: "receiverName"
  204. },
  205. {
  206. title: "订单部门",
  207. dataIndex: "depName",
  208. key: "depName"
  209. }
  210. ],
  211. dataSource: [],
  212. searchTime: [],
  213. columnsX: [
  214. {
  215. title: "业务项目名称",
  216. dataIndex: "commodityName",
  217. key: "commodityName"
  218. },
  219. {
  220. title: "项目类别",
  221. dataIndex: "cname",
  222. key: "cname"
  223. },
  224. {
  225. title: "项目数量",
  226. dataIndex: "commodityQuantity",
  227. key: "commodityQuantity",
  228. render: (text, record) => {
  229. if (record.splitStatus == 1) {
  230. return (
  231. <span>
  232. {text}{" "}
  233. <Tag
  234. color="#108ee9"
  235. onClick={e => {
  236. e.stopPropagation();
  237. this.showRes(record);
  238. }}
  239. >
  240. 已拆
  241. </Tag>
  242. </span>
  243. );
  244. } else {
  245. return text;
  246. }
  247. }
  248. },
  249. {
  250. title: "金额(万元)",
  251. dataIndex: "commodityPrice",
  252. key: "commodityPrice"
  253. },
  254. {
  255. title: "负责人",
  256. dataIndex: "contacts",
  257. key: "contacts"
  258. },
  259. {
  260. title: "负责人电话",
  261. dataIndex: "contactsMobile",
  262. key: "contactsMobile"
  263. },
  264. {
  265. title: "主要项目",
  266. dataIndex: "main",
  267. key: "main",
  268. render: text => {
  269. return text ? "是" : "否";
  270. }
  271. },
  272. {
  273. title: "项目说明",
  274. dataIndex: "taskComment",
  275. key: "taskComment",
  276. render: text => {
  277. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  278. }
  279. }
  280. ],
  281. columnsA: [
  282. {
  283. title: "流程",
  284. dataIndex: "content",
  285. key: "content",
  286. align: "center"
  287. },
  288. {
  289. title: "操作人",
  290. dataIndex: "aName",
  291. key: "aName",
  292. align: "center"
  293. },
  294. {
  295. title: "时间",
  296. dataIndex: "createTimes",
  297. key: "createTimes",
  298. align: "center"
  299. }
  300. ],
  301. dataSourceX: [],
  302. dataSourceA: [],
  303. ContactsLists: [
  304. {
  305. title: "批次",
  306. dataIndex: "num",
  307. key: "num"
  308. },
  309. {
  310. title: "下证时间",
  311. dataIndex: "licenceTimes",
  312. key: "licenceTimes"
  313. },
  314. {
  315. title: "下证数量",
  316. dataIndex: "alreadyNumber",
  317. key: "alreadyNumber"
  318. },
  319. {
  320. title: "未下证数量",
  321. dataIndex: "notCount",
  322. key: "notCount"
  323. }
  324. ]
  325. };
  326. },
  327. /* 分派 */
  328. evaluate(record, nub) {
  329. this.state.assignData = record;
  330. this.setState({
  331. nub,
  332. assignVisible: true
  333. });
  334. },
  335. componentDidMount() {
  336. this.setColor();
  337. },
  338. componentWillMount() {
  339. this.departmentList();
  340. this.loadData();
  341. },
  342. tableRowClick(record) {
  343. this.state.RowData = record;
  344. if (record.taskName.substring(0, 5) === "软件著作权") {
  345. this.setState({
  346. speVisible: true,
  347. id: record.id,
  348. splitStatus: record.splitStatus,
  349. splitSuper: record.splitSuper,
  350. splitId: record.splitId,
  351. dataArr: record,
  352. commodityQuantity: record.commodityQuantity
  353. });
  354. } else {
  355. this.setState({
  356. visible: true,
  357. splitStatus: record.splitStatus,
  358. splitSuper: record.splitSuper,
  359. splitId: record.splitId
  360. });
  361. }
  362. this.xiangqing(record.id, record.taskName);
  363. this.xiangqings(record.orderNo);
  364. this.xiangmu(record.orderNo);
  365. this.loaduserss(record);
  366. },
  367. // 拆分详细
  368. showRes(record) {
  369. this.setState({
  370. resVisible: true,
  371. resRecord: record
  372. });
  373. },
  374. resCancel() {
  375. this.setState({
  376. resVisible: false
  377. });
  378. },
  379. //订单详情
  380. xiangqing(id) {
  381. $.ajax({
  382. method: "get",
  383. dataType: "json",
  384. crossDomain: false,
  385. url: globalConfig.context + "/api/admin/orderProject/orderTaskDetail",
  386. data: {
  387. id: id
  388. },
  389. success: function(data) {
  390. if (data.error.length || data.data.list == "") {
  391. if (data.error && data.error.length) {
  392. message.warning(data.error[0].message);
  393. }
  394. } else {
  395. let thisdata = data.data;
  396. this.setState({
  397. id: thisdata.id, //ID
  398. orderNo: thisdata.orderNo, //订单编号
  399. userName: thisdata.userName, //客户名称
  400. taskName: thisdata.taskName, //任务名称
  401. cname: thisdata.cname, //项目品类
  402. contractNo: thisdata.contractNo, //合同编号
  403. projectStatus: thisdata.projectStatus, //项目状态
  404. taskStatus: thisdata.taskStatus, //任务状态
  405. taskDate: thisdata.taskDate, //分配时间
  406. taskComment: thisdata.taskComment, //说明
  407. attachmentUrl: thisdata.attachmentUrl
  408. ? splitUrl(
  409. thisdata.attachmentUrl,
  410. ",",
  411. globalConfig.avatarHost + "/upload"
  412. )
  413. : [], //图片地址
  414. salesmanName: thisdata.salesmanName, //订单负责人
  415. startDate: thisdata.startDate, //启动日期
  416. endDate: thisdata.endDate, //结束日期
  417. acceptDate: thisdata.acceptDate, //受理日期
  418. reviewDate: thisdata.reviewDate, //评审日期
  419. publicityDate: thisdata.publicityDate, //公示日期
  420. licenceDate: thisdata.licenceDate, //发证日期
  421. contacts: thisdata.contacts, //联系人
  422. contactMobile: thisdata.contactMobile, //联系人电话
  423. legalPerson: thisdata.legalPerson, //法人
  424. legalPersonTel: thisdata.legalPersonTel, //法人电话
  425. certificateNumber: thisdata.certificateNumber, //证书编号
  426. status: thisdata.status, //状态
  427. formRetrieve: thisdata.formRetrieve, //满意度表格
  428. taskRefund: thisdata.taskRefund, //退单
  429. refundContent: thisdata.refundContent, //退单信息
  430. retrieveContent: thisdata.retrieveContent, //回收信息
  431. arrivalMoney: thisdata.arrivalMoney, //是否到款
  432. setUpAmount: thisdata.setUpAmount, //立项金额
  433. declareUser: thisdata.declareUser, //账号
  434. declarePwd: thisdata.declarePwd, //密码
  435. depName: thisdata.depName, //订单部门
  436. outsourceName: thisdata.outsourceName, //外包公司名称
  437. outsourcePrice: thisdata.outsourcePrice, //外包价格
  438. });
  439. }
  440. }.bind(this)
  441. }).always(
  442. function() {
  443. this.setState({
  444. loading: false
  445. });
  446. }.bind(this)
  447. );
  448. },
  449. //订单详情
  450. xiangqings(orderNos) {
  451. $.ajax({
  452. method: "get",
  453. dataType: "json",
  454. crossDomain: false,
  455. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  456. data: {
  457. orderNo: orderNos
  458. },
  459. success: function(data) {
  460. let thisdata = data.data;
  461. let ProvinceCityArr = [];
  462. let ProvinceS = thisdata.locationProvince; //省
  463. let citys = thisdata.locationCity; //市
  464. let Areas = thisdata.locationArea; //区
  465. ProvinceCityArr.push(ProvinceS, citys, Areas);
  466. if (data.error.length || data.data.list == "") {
  467. if (data.error && data.error.length) {
  468. message.warning(data.error[0].message);
  469. }
  470. } else {
  471. this.setState({
  472. processStatus: thisdata.processStatus, //流程状态
  473. liquidationStatus: thisdata.liquidationStatus, //结算状态
  474. approval: thisdata.approval, //特批状态
  475. orderRemarks: thisdata.orderRemarks, //订单留言
  476. salesmanName: thisdata.salesmanName, //营销员名称
  477. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  478. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  479. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  480. financeName: thisdata.financeName, //财务名称
  481. financeMobile: thisdata.financeMobile, //财务电话
  482. nowFinance: thisdata.nowFinance, //财务名称
  483. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  484. depName: thisdata.depName, //订单部门
  485. locationProvince: thisdata.locationProvince,
  486. locationCity: thisdata.locationCity,
  487. locationArea: thisdata.locationArea,
  488. ProvinceCity: ProvinceCityArr,
  489. postalAddress: thisdata.postalAddress, //详细地址
  490. outsource: thisdata.outsource
  491. });
  492. }
  493. }.bind(this)
  494. }).always(
  495. function() {
  496. this.setState({
  497. loading: false
  498. });
  499. }.bind(this)
  500. );
  501. },
  502. //查看下证信息
  503. loaduserss(record) {
  504. $.ajax({
  505. method: "get",
  506. dataType: "json",
  507. crossDomain: false,
  508. url: globalConfig.context + "/api/admin/orderProject/selectTaskProgress",
  509. data: {
  510. tid: record.id
  511. },
  512. success: function(data) {
  513. let theArr = [];
  514. let thisData = [];
  515. if (!thisData) {
  516. if (data.error && data.error.length) {
  517. message.warning(data.error[0].message);
  518. }
  519. thisData = {};
  520. } else {
  521. for (let i = 0; i < data.data.length; i++) {
  522. thisData = data.data[i];
  523. theArr.push({
  524. num: i + 1,
  525. key: i,
  526. id: thisData.id, //编号
  527. alreadyNumber: thisData.alreadyNumber, //下证数
  528. licenceTimes: thisData.licenceTimes, //下证时间
  529. notCount: thisData.notCount, //未下证数
  530. flag: true
  531. });
  532. }
  533. this.setState({
  534. contactList: theArr
  535. });
  536. }
  537. }.bind(this)
  538. }).always(
  539. function() {
  540. this.setState({
  541. loading: false
  542. });
  543. }.bind(this)
  544. );
  545. },
  546. //项目列表
  547. xiangmu(orderNos) {
  548. $.ajax({
  549. method: "get",
  550. dataType: "json",
  551. crossDomain: false,
  552. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  553. data: {
  554. orderNo: orderNos
  555. },
  556. success: function(data) {
  557. let theArr = [];
  558. if (data.error.length || data.data.list == "") {
  559. if (data.error && data.error.length) {
  560. message.warning(data.error[0].message);
  561. }
  562. } else {
  563. for (let i = 0; i < data.data.length; i++) {
  564. let thisdata = data.data[i];
  565. theArr.push({
  566. key: i,
  567. id: thisdata.id,
  568. orderNo: thisdata.orderNo, //订单编号
  569. commodityId: thisdata.commodityId, //项目ID
  570. commodityName: thisdata.commodityName, //项目名称
  571. cname: thisdata.cname, //项目类别
  572. commodityPrice: thisdata.commodityPrice, //项目价格
  573. commodityQuantity: thisdata.commodityQuantity, //项目数量
  574. main: thisdata.main, //是否为主要任务
  575. taskComment: thisdata.taskComment, //任务说明
  576. contacts: thisdata.contacts, //联系人
  577. contactsMobile: thisdata.contactsMobile, //联系人电话
  578. taskStatus: thisdata.taskStatus, //是否分配
  579. splitStatus: thisdata.splitStatus, //是否为子项目 2是 1主项目
  580. splitSuper: thisdata.splitSuper,
  581. splitId: thisdata.splitId
  582. });
  583. }
  584. }
  585. this.setState({
  586. dataSourceX: theArr
  587. });
  588. }.bind(this)
  589. }).always(
  590. function() {
  591. this.setState({
  592. loading: false
  593. });
  594. }.bind(this)
  595. );
  596. },
  597. caozuorizhi() {
  598. this.setState({
  599. visibleA: true
  600. });
  601. $.ajax({
  602. method: "get",
  603. dataType: "json",
  604. crossDomain: false,
  605. url: globalConfig.context + "/api/admin/orderProject/TaskLogList",
  606. data: {
  607. id: this.state.id
  608. },
  609. success: function(data) {
  610. let theArr = [];
  611. if (data.error.length || data.data.list == "") {
  612. if (data.error && data.error.length) {
  613. message.warning(data.error[0].message);
  614. }
  615. } else {
  616. for (let i = 0; i < data.data.length; i++) {
  617. let thisdata = data.data[i];
  618. theArr.push({
  619. key: i,
  620. id: thisdata.id, //日志ID
  621. content: thisdata.content, //流程
  622. taskId: thisdata.taskId, //任务ID
  623. aName: thisdata.aName, //负责人
  624. createTimes: thisdata.createTimes //时间
  625. });
  626. }
  627. }
  628. this.setState({
  629. dataSourceA: theArr
  630. });
  631. }.bind(this)
  632. }).always(
  633. function() {
  634. this.setState({
  635. loading: false
  636. });
  637. }.bind(this)
  638. );
  639. },
  640. //关闭操作工时
  641. visitCancelA() {
  642. this.setState({
  643. visibleA: false
  644. });
  645. },
  646. //关闭详情
  647. visitCancel() {
  648. this.setState({
  649. visible: false,
  650. speVisible: false
  651. });
  652. this.reset();
  653. },
  654. visitOk() {
  655. this.setState({
  656. visible: false
  657. });
  658. this.reset();
  659. },
  660. setColor() {
  661. $(".userName span").after(
  662. "(<span class='ruanzhu'>软著数</span>/<span class='xiazheng'>下证数</span>)"
  663. );
  664. },
  665. closeDesc(e, s) {
  666. this.state.showDesc = e;
  667. if (s) {
  668. this.loadData(this.state.page);
  669. }
  670. },
  671. closeAssign(e, s) {
  672. this.state.roleName = "";
  673. this.state.assignVisible = e;
  674. if (s) {
  675. this.loadData(this.state.page);
  676. }
  677. },
  678. nextCancel() {
  679. this.setState({
  680. addnextVisible: false
  681. });
  682. },
  683. //点击打卡项目详情
  684. tableRowClickX(record) {
  685. this.setState({
  686. jid: record.id, //项目ID
  687. kid: record.commodityId, //商品ID
  688. commodityName: record.commodityName, //金额
  689. commodityPrice: record.commodityPrice, //金额
  690. commodityQuantity: record.commodityQuantity, //数量
  691. taskComment: record.taskComment, //备注
  692. main: record.main.toString(), //是否为主要
  693. addnextVisible: true,
  694. addState: 0
  695. });
  696. },
  697. search() {
  698. this.loadData();
  699. },
  700. reset() {
  701. this.state.nameSearch = "";
  702. this.state.releaseDate = [];
  703. this.state.orderNoSearch = "";
  704. this.state.taskNoSearch = "";
  705. this.state.departmenttSearch = undefined;
  706. this.loadData(this.state.page);
  707. },
  708. searchSwitch() {
  709. this.setState({
  710. searchMore: !this.state.searchMore
  711. });
  712. },
  713. //部门
  714. departmentList() {
  715. this.setState({
  716. loading: true
  717. });
  718. $.ajax({
  719. method: "get",
  720. dataType: "json",
  721. crossDomain: false,
  722. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  723. data: {},
  724. success: function(data) {
  725. let thedata = data.data;
  726. let theArr = [];
  727. if (!thedata) {
  728. if (data.error && data.error.length) {
  729. message.warning(data.error[0].message);
  730. }
  731. thedata = {};
  732. } else {
  733. thedata.map(function(item, index) {
  734. theArr.push({
  735. key: index,
  736. name: item.name,
  737. id: item.id
  738. });
  739. });
  740. }
  741. this.setState({
  742. departmentArr: theArr
  743. });
  744. }.bind(this)
  745. }).always(
  746. function() {
  747. this.setState({
  748. loading: false
  749. });
  750. }.bind(this)
  751. );
  752. },
  753. render() {
  754. const utils = {
  755. getSatisfaction: function(num) {
  756. switch (num) {
  757. case 0:
  758. return "未收回";
  759. case 1:
  760. return "已收回";
  761. default:
  762. return "其它";
  763. }
  764. },
  765. getChargeback: function(num) {
  766. switch (num) {
  767. case 0:
  768. return "已完成";
  769. case 1:
  770. return "未完成";
  771. default:
  772. return "其它";
  773. }
  774. }
  775. };
  776. const formItemLayout = {
  777. labelCol: { span: 8 },
  778. wrapperCol: { span: 14 }
  779. };
  780. let departmentArr = this.state.departmentArr || [];
  781. return (
  782. <div className="user-content">
  783. <ShowModalDiv ShowModal={this.state.showModal} />
  784. <div className="content-title">
  785. <span>任务查询</span>
  786. </div>
  787. <Tabs defaultActiveKey="1" onChange={this.callback} className="test">
  788. <TabPane tab="搜索" key="1">
  789. <div className="user-search" style={{ marginLeft: 10 }}>
  790. <Input
  791. placeholder="客户名称"
  792. style={{ width: 150 }}
  793. value={this.state.nameSearch}
  794. onChange={e => {
  795. this.setState({ nameSearch: e.target.value });
  796. }}
  797. />
  798. <Input
  799. placeholder="订单编号"
  800. value={this.state.orderNoSearch}
  801. onChange={e => {
  802. this.setState({ orderNoSearch: e.target.value });
  803. }}
  804. />
  805. <Input
  806. placeholder="任务编号"
  807. value={this.state.taskNoSearch}
  808. onChange={e => {
  809. this.setState({ taskNoSearch: e.target.value });
  810. }}
  811. />
  812. <Select
  813. placeholder="选择部门"
  814. style={{ width: 150, marginRight: "10px" }}
  815. value={this.state.departmenttSearch}
  816. onChange={e => {
  817. this.setState({ departmenttSearch: e });
  818. }}
  819. >
  820. {departmentArr.map(function(item) {
  821. return (
  822. <Select.Option key={item.id}>{item.name}</Select.Option>
  823. );
  824. })}
  825. </Select>
  826. <Button type="primary" onClick={this.search}>
  827. 搜索
  828. </Button>
  829. <Button onClick={this.reset}>重置</Button>
  830. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  831. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  832. <span>订单时间 :</span>
  833. <RangePicker
  834. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  835. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  836. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  837. </div> */}
  838. </div>
  839. </TabPane>
  840. </Tabs>
  841. <div className="patent-table">
  842. <Spin spinning={this.state.loading}>
  843. <Table
  844. bordered
  845. size="small"
  846. columns={this.state.columns}
  847. dataSource={this.state.dataSource}
  848. onHeaderRow={column => {
  849. console.log(column.index);
  850. }}
  851. pagination={this.state.pagination}
  852. onRowClick={this.tableRowClick.bind(this)}
  853. />
  854. </Spin>
  855. </div>
  856. <Assign
  857. title="任务"
  858. selApi={"/api/admin/orderProject/projectDistribution"}
  859. data={this.state.assignData}
  860. showDesc={this.state.assignVisible}
  861. closeDesc={this.closeAssign.bind(this)}
  862. fenpaiData={8}
  863. specially={0}
  864. roleName={this.state.nub}
  865. />
  866. <Modal
  867. className="customeDetails"
  868. footer=""
  869. title="项目概况"
  870. width="900px"
  871. visible={this.state.visible}
  872. onOk={this.visitOk}
  873. onCancel={this.visitCancel}
  874. >
  875. <Form
  876. layout="horizontal"
  877. onSubmit={this.handleSubmit}
  878. id="demand-form"
  879. style={{ paddingBottom: "00px" }}
  880. >
  881. <Spin spinning={this.state.loading}>
  882. <div className="clearfix">
  883. <div className="clearfix">
  884. <FormItem
  885. className="half-item"
  886. {...formItemLayout}
  887. label="当前项目情况"
  888. >
  889. <span>{this.state.status ? "暂停" : "开启"}</span>
  890. <Button
  891. type="primary"
  892. size="small"
  893. style={{ marginTop: "5px", position: "absolute" }}
  894. onClick={this.caozuorizhi}
  895. >
  896. 操作日志
  897. </Button>
  898. </FormItem>
  899. <FormItem
  900. className="half-item"
  901. {...formItemLayout}
  902. label="合同编号"
  903. >
  904. <span>{this.state.contractNo}</span>
  905. </FormItem>
  906. </div>
  907. <div className="clearfix">
  908. <FormItem
  909. className="half-item"
  910. {...formItemLayout}
  911. label="项目状态"
  912. >
  913. <span>{getProcessStatus(this.state.projectStatus)}</span>
  914. </FormItem>
  915. <FormItem
  916. className="half-item"
  917. {...formItemLayout}
  918. label="是否特批"
  919. >
  920. <span>{getApproval(this.state.approval)}</span>
  921. </FormItem>
  922. <FormItem
  923. className="half-item"
  924. {...formItemLayout}
  925. label="结算状态"
  926. >
  927. <span>
  928. {getLiquidationStatus(this.state.liquidationStatus)}
  929. </span>
  930. </FormItem>
  931. <FormItem
  932. className="half-item"
  933. {...formItemLayout}
  934. label="流程状态"
  935. >
  936. <span>{getProcessStatus(this.state.processStatus)}</span>
  937. </FormItem>
  938. <FormItem
  939. className="half-item"
  940. {...formItemLayout}
  941. label="订单编号"
  942. >
  943. <span>{this.state.orderNo}</span>
  944. </FormItem>
  945. <FormItem
  946. className="half-item"
  947. {...formItemLayout}
  948. label="是否外包"
  949. >
  950. <span>{this.state.outsource == 0 ? "否" : "是"}</span>
  951. </FormItem>
  952. </div>
  953. <div className="clearfix">
  954. <FormItem
  955. className="half-item"
  956. {...formItemLayout}
  957. label="满意度表格"
  958. >
  959. <span>
  960. {utils.getSatisfaction(this.state.formRetrieve)}
  961. </span>
  962. </FormItem>
  963. <FormItem
  964. className="half-item"
  965. {...formItemLayout}
  966. label="退单"
  967. >
  968. <span>{utils.getChargeback(this.state.taskRefund)}</span>
  969. </FormItem>
  970. </div>
  971. <div className="clearfix">
  972. {
  973. <FormItem
  974. className="half-item"
  975. {...formItemLayout}
  976. label="(满意度)备注"
  977. >
  978. <span>{this.state.retrieveContent}</span>
  979. </FormItem>
  980. }
  981. {
  982. <FormItem
  983. className="half-item"
  984. {...formItemLayout}
  985. label="(退单)备注"
  986. >
  987. <span>{this.state.refundContent}</span>
  988. </FormItem>
  989. }
  990. </div>
  991. <div className="clearfix">
  992. <h3 className="sub-title">任务信息</h3>
  993. <FormItem
  994. className="half-item"
  995. {...formItemLayout}
  996. label="任务编号"
  997. >
  998. <span>
  999. {this.state.splitStatus == 2
  1000. ? this.state.splitSuper + "-" + this.state.splitId
  1001. : this.state.id}
  1002. </span>
  1003. </FormItem>
  1004. <FormItem
  1005. className="half-item"
  1006. {...formItemLayout}
  1007. label="任务名称"
  1008. >
  1009. <span>{this.state.taskName}</span>
  1010. </FormItem>
  1011. <FormItem
  1012. className="half-item"
  1013. {...formItemLayout}
  1014. label="任务状态"
  1015. >
  1016. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1017. </FormItem>
  1018. <FormItem
  1019. className="half-item"
  1020. {...formItemLayout}
  1021. label="任务类别"
  1022. >
  1023. <span>{this.state.cname}</span>
  1024. </FormItem>
  1025. <FormItem
  1026. className="half-item"
  1027. {...formItemLayout}
  1028. label="证书编号"
  1029. >
  1030. <span>{this.state.certificateNumber}</span>
  1031. </FormItem>
  1032. </div>
  1033. {this.state.outsource === 1 ? (
  1034. <div className="clearfix">
  1035. <h3 className="sub-title">外包信息</h3>
  1036. <FormItem
  1037. className="half-item"
  1038. {...formItemLayout}
  1039. label="外包公司"
  1040. >
  1041. <span>{this.state.outsourceName}</span>
  1042. </FormItem>
  1043. <FormItem
  1044. className="half-item"
  1045. {...formItemLayout}
  1046. label="外包成本(万元)"
  1047. >
  1048. <span>{this.state.outsourcePrice}</span>
  1049. </FormItem>
  1050. </div>
  1051. ) : (
  1052. ""
  1053. )}
  1054. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1055. <div className="clearfix">
  1056. <h3 className="sub-title">联系信息</h3>
  1057. <FormItem
  1058. className="half-item"
  1059. {...formItemLayout}
  1060. label="客户名称"
  1061. >
  1062. <span>{this.state.userName}</span>
  1063. </FormItem>
  1064. <FormItem
  1065. className="half-item"
  1066. {...formItemLayout}
  1067. label="企业法人"
  1068. >
  1069. <span>{this.state.legalPerson}</span>
  1070. </FormItem>
  1071. <FormItem
  1072. className="half-item"
  1073. {...formItemLayout}
  1074. label="法人电话"
  1075. >
  1076. <span>{this.state.legalPersonTel}</span>
  1077. </FormItem>
  1078. <FormItem
  1079. className="half-item"
  1080. {...formItemLayout}
  1081. label="客户联系人"
  1082. >
  1083. <span>{this.state.contacts}</span>
  1084. </FormItem>
  1085. <FormItem
  1086. className="half-item"
  1087. {...formItemLayout}
  1088. label="联系人电话"
  1089. >
  1090. <span>{this.state.contactMobile}</span>
  1091. </FormItem>
  1092. <FormItem
  1093. className="half-item"
  1094. {...formItemLayout}
  1095. label="企业地址"
  1096. >
  1097. <span>
  1098. {getprovince(this.state.locationProvince)}/
  1099. {getprovince(this.state.locationCity)}/
  1100. {getprovince(this.state.locationArea)}
  1101. </span>
  1102. </FormItem>
  1103. <FormItem
  1104. className="half-item"
  1105. {...formItemLayout}
  1106. label=""
  1107. ></FormItem>
  1108. <FormItem className="half-item" {...formItemLayout}>
  1109. <span style={{ paddingLeft: "12em" }}>
  1110. {this.state.postalAddress}
  1111. </span>
  1112. </FormItem>
  1113. </div>
  1114. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1115. <div className="clearfix">
  1116. <h3 className="sub-title">订单负责人信息</h3>
  1117. <FormItem
  1118. className="half-item"
  1119. {...formItemLayout}
  1120. label="负责人"
  1121. >
  1122. <span>
  1123. {this.state.salesmanName + "(" + this.state.depName + ")"}
  1124. </span>
  1125. </FormItem>
  1126. <FormItem
  1127. className="half-item"
  1128. {...formItemLayout}
  1129. label="负责人电话"
  1130. >
  1131. <span>{this.state.salesmanMobile}</span>
  1132. </FormItem>
  1133. <FormItem
  1134. className="half-item"
  1135. {...formItemLayout}
  1136. label="当前财务负责人"
  1137. >
  1138. <span>{this.state.nowFinance}</span>
  1139. </FormItem>
  1140. <FormItem
  1141. className="half-item"
  1142. {...formItemLayout}
  1143. label="当前财务负责人电话"
  1144. >
  1145. <span>{this.state.nowFinanceMobile}</span>
  1146. </FormItem>
  1147. <FormItem
  1148. className="half-item"
  1149. {...formItemLayout}
  1150. style={{ opacity: ".5" }}
  1151. label="原负责人"
  1152. >
  1153. <span>{this.state.oldSalesmanName}</span>
  1154. </FormItem>
  1155. <FormItem
  1156. className="half-item"
  1157. {...formItemLayout}
  1158. style={{ opacity: ".5" }}
  1159. label="原负责人电话"
  1160. >
  1161. <span>{this.state.oldSalesmanMobile}</span>
  1162. </FormItem>
  1163. <FormItem
  1164. className="half-item"
  1165. {...formItemLayout}
  1166. style={{ opacity: ".5" }}
  1167. label="实际财务操作人"
  1168. >
  1169. <span>{this.state.financeName}</span>
  1170. </FormItem>
  1171. <FormItem
  1172. className="half-item"
  1173. {...formItemLayout}
  1174. style={{ opacity: ".5" }}
  1175. label="实际财务操作人电话"
  1176. >
  1177. <span>{this.state.financeMobile}</span>
  1178. </FormItem>
  1179. </div>
  1180. <div className="clearfix">
  1181. <h3 className="sub-title">申报系统账户信息</h3>
  1182. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  1183. <FormItem
  1184. className="half-item"
  1185. {...formItemLayout}
  1186. label="用户名"
  1187. >
  1188. <span>{this.state.declareUser}</span>
  1189. </FormItem>
  1190. <FormItem
  1191. className="half-item"
  1192. {...formItemLayout}
  1193. label="密码"
  1194. >
  1195. <span>{this.state.declarePwd}</span>
  1196. </FormItem>
  1197. </div>
  1198. <div className="clearfix">
  1199. <h3 className="sub-title">项目申报进度</h3>
  1200. <FormItem
  1201. className="half-item"
  1202. {...formItemLayout}
  1203. label="启动时间"
  1204. >
  1205. <span>{this.state.startDate}</span>
  1206. </FormItem>
  1207. <FormItem
  1208. className="half-item"
  1209. {...formItemLayout}
  1210. label="完成时间"
  1211. >
  1212. <span>{this.state.endDate}</span>
  1213. </FormItem>
  1214. <FormItem
  1215. className="half-item"
  1216. {...formItemLayout}
  1217. label="受理时间"
  1218. >
  1219. <span>{this.state.acceptDate}</span>
  1220. </FormItem>
  1221. <FormItem
  1222. className="half-item"
  1223. {...formItemLayout}
  1224. label="评审时间"
  1225. >
  1226. <span>{this.state.reviewDate}</span>
  1227. </FormItem>
  1228. <FormItem
  1229. className="half-item"
  1230. {...formItemLayout}
  1231. label="公示时间"
  1232. >
  1233. <span>{this.state.publicityDate}</span>
  1234. </FormItem>
  1235. <FormItem
  1236. className="half-item"
  1237. {...formItemLayout}
  1238. label="发证时间"
  1239. >
  1240. <span>{this.state.licenceDate}</span>
  1241. </FormItem>
  1242. <FormItem
  1243. className="half-item"
  1244. {...formItemLayout}
  1245. label="立项金额(万元)"
  1246. >
  1247. <span>{this.state.setUpAmount}</span>
  1248. </FormItem>
  1249. <FormItem
  1250. className="half-item"
  1251. {...formItemLayout}
  1252. label="是否到款"
  1253. >
  1254. <span>
  1255. {this.state.arrivalMoney ? "已到企业" : "未到企业"}
  1256. </span>
  1257. </FormItem>
  1258. </div>
  1259. <div className="clearfix">
  1260. <FormItem
  1261. labelCol={{ span: 3 }}
  1262. wrapperCol={{ span: 18 }}
  1263. label="附件"
  1264. >
  1265. <Upload
  1266. className="demandDetailShow-upload"
  1267. listType="picture-card"
  1268. fileList={this.state.attachmentUrl}
  1269. onPreview={file => {
  1270. this.setState({
  1271. previewImage: file.url || file.thumbUrl,
  1272. previewVisible: true
  1273. });
  1274. }}
  1275. ></Upload>
  1276. <Modal
  1277. maskClosable={false}
  1278. footer={null}
  1279. visible={this.state.previewVisible}
  1280. onCancel={() => {
  1281. this.setState({ previewVisible: false });
  1282. }}
  1283. >
  1284. <img
  1285. alt=""
  1286. style={{ width: "100%" }}
  1287. src={this.state.previewImage || ""}
  1288. />
  1289. </Modal>
  1290. </FormItem>
  1291. </div>
  1292. <div className="clearfix">
  1293. <FormItem
  1294. labelCol={{ span: 3 }}
  1295. wrapperCol={{ span: 16 }}
  1296. label="备注"
  1297. >
  1298. <span>{this.state.taskComment}</span>
  1299. </FormItem>
  1300. </div>
  1301. <div>
  1302. <h3 className="sub-title">项目业务</h3>
  1303. {this.state.processStatus == 0 ? (
  1304. <Button
  1305. type="primary"
  1306. onClick={this.addDetailed}
  1307. style={{
  1308. float: "right",
  1309. marginRight: "50px",
  1310. marginBottom: "15px"
  1311. }}
  1312. >
  1313. 添加项目明细
  1314. </Button>
  1315. ) : (
  1316. ""
  1317. )}
  1318. </div>
  1319. <div className="patent-table">
  1320. <Spin spinning={this.state.loading}>
  1321. <Table
  1322. columns={this.state.columnsX}
  1323. dataSource={this.state.dataSourceX}
  1324. pagination={this.state.paginations}
  1325. onRowClick={this.tableRowClickX}
  1326. bordered
  1327. size="small"
  1328. />
  1329. </Spin>
  1330. </div>
  1331. </div>
  1332. </Spin>
  1333. </Form>
  1334. </Modal>
  1335. <Modal
  1336. maskClosable={false}
  1337. visible={this.state.addnextVisible}
  1338. onOk={this.nextCancel}
  1339. onCancel={this.nextCancel}
  1340. width="900px"
  1341. title="项目任务详情"
  1342. footer=""
  1343. className="admin-desc-content"
  1344. >
  1345. <Form layout="horizontal" onSubmit={this.nextSubmit} id="demand-form">
  1346. <Spin spinning={this.state.loading}>
  1347. <div className="clearfix">
  1348. <FormItem
  1349. className="half-item"
  1350. {...formItemLayout}
  1351. label="项目名称"
  1352. >
  1353. <span>{this.state.commodityName}</span>
  1354. </FormItem>
  1355. <FormItem
  1356. className="half-item"
  1357. {...formItemLayout}
  1358. label="项目数量"
  1359. >
  1360. <span>{this.state.commodityQuantity}</span>
  1361. </FormItem>
  1362. <FormItem
  1363. className="half-item"
  1364. {...formItemLayout}
  1365. label="金额(万元)"
  1366. >
  1367. <span>{this.state.commodityPrice}</span>
  1368. </FormItem>
  1369. <FormItem
  1370. className="half-item"
  1371. {...formItemLayout}
  1372. label="主要项目"
  1373. >
  1374. <span>{getboutique(this.state.main)}</span>
  1375. </FormItem>
  1376. <div className="clearfix">
  1377. <FormItem
  1378. labelCol={{ span: 4 }}
  1379. wrapperCol={{ span: 16 }}
  1380. label="服务说明"
  1381. >
  1382. <span>{this.state.taskComment}</span>
  1383. </FormItem>
  1384. </div>
  1385. </div>
  1386. </Spin>
  1387. </Form>
  1388. </Modal>
  1389. <Modal
  1390. width="800px"
  1391. title="操作日志"
  1392. footer=""
  1393. className="admin-desc-content"
  1394. >
  1395. <div className="patent-table patent-table-center">
  1396. <Spin spinning={this.state.loading}>
  1397. <Table columns={this.state.columnsY} bordered size="small" />
  1398. </Spin>
  1399. </div>
  1400. </Modal>
  1401. <Modal
  1402. maskClosable={false}
  1403. visible={this.state.speVisible}
  1404. onOk={this.visitOk}
  1405. onCancel={this.visitCancel}
  1406. width="900px"
  1407. title="项目概况"
  1408. footer=""
  1409. className="admin-desc-content"
  1410. >
  1411. <div className="clearfix">
  1412. <FormItem
  1413. className="half-item"
  1414. {...formItemLayout}
  1415. label="当前项目情况"
  1416. >
  1417. <span>{this.state.status ? "暂停" : "开启"}</span>
  1418. <Button
  1419. type="primary"
  1420. size="small"
  1421. style={{ marginTop: "5px", position: "absolute" }}
  1422. onClick={this.caozuorizhi}
  1423. >
  1424. 操作日志
  1425. </Button>
  1426. </FormItem>
  1427. <FormItem
  1428. className="half-item"
  1429. {...formItemLayout}
  1430. label="合同编号"
  1431. >
  1432. <span>{this.state.contractNo}</span>
  1433. </FormItem>
  1434. </div>
  1435. <div className="clearfix">
  1436. <FormItem
  1437. className="half-item"
  1438. {...formItemLayout}
  1439. label="项目状态"
  1440. >
  1441. <span>{getProcessStatus(this.state.projectStatus)}</span>
  1442. </FormItem>
  1443. <FormItem
  1444. className="half-item"
  1445. {...formItemLayout}
  1446. label="是否特批"
  1447. >
  1448. <span>{getApproval(this.state.approval)}</span>
  1449. </FormItem>
  1450. <FormItem
  1451. className="half-item"
  1452. {...formItemLayout}
  1453. label="结算状态"
  1454. >
  1455. <span>{getLiquidationStatus(this.state.liquidationStatus)}</span>
  1456. </FormItem>
  1457. <FormItem
  1458. className="half-item"
  1459. {...formItemLayout}
  1460. label="流程状态"
  1461. >
  1462. <span>{getProcessStatus(this.state.processStatus)}</span>
  1463. </FormItem>
  1464. <FormItem
  1465. className="half-item"
  1466. {...formItemLayout}
  1467. label="订单编号"
  1468. >
  1469. <span>{this.state.orderNo}</span>
  1470. </FormItem>
  1471. </div>
  1472. <div className="clearfix">
  1473. <FormItem
  1474. className="half-item"
  1475. {...formItemLayout}
  1476. label="满意度表格"
  1477. >
  1478. <span>{utils.getSatisfaction(this.state.formRetrieve)}</span>
  1479. </FormItem>
  1480. <FormItem className="half-item" {...formItemLayout} label="退单">
  1481. <span>{utils.getChargeback(this.state.taskRefund)}</span>
  1482. </FormItem>
  1483. </div>
  1484. <div className="clearfix">
  1485. {
  1486. <FormItem
  1487. className="half-item"
  1488. {...formItemLayout}
  1489. label="(满意度)备注"
  1490. >
  1491. <span>{this.state.retrieveContent}</span>
  1492. </FormItem>
  1493. }
  1494. {
  1495. <FormItem
  1496. className="half-item"
  1497. {...formItemLayout}
  1498. label="(退单)备注"
  1499. >
  1500. <span>{this.state.refundContent}</span>
  1501. </FormItem>
  1502. }
  1503. </div>
  1504. <div className="clearfix">
  1505. <h3 className="sub-title">任务信息</h3>
  1506. <FormItem
  1507. className="half-item"
  1508. {...formItemLayout}
  1509. label="任务编号"
  1510. >
  1511. <span>
  1512. {this.state.splitStatus == 2
  1513. ? this.state.splitSuper + "-" + this.state.splitId
  1514. : this.state.id}
  1515. </span>
  1516. </FormItem>
  1517. <FormItem
  1518. className="half-item"
  1519. {...formItemLayout}
  1520. label="任务名称"
  1521. >
  1522. <span>{this.state.taskName}</span>
  1523. </FormItem>
  1524. <FormItem
  1525. className="half-item"
  1526. {...formItemLayout}
  1527. label="任务状态"
  1528. >
  1529. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1530. </FormItem>
  1531. <FormItem
  1532. className="half-item"
  1533. {...formItemLayout}
  1534. label="任务类别"
  1535. >
  1536. <span>{this.state.cname}</span>
  1537. </FormItem>
  1538. <FormItem
  1539. className="half-item"
  1540. {...formItemLayout}
  1541. label="证书编号"
  1542. >
  1543. <span>{this.state.certificateNumber}</span>
  1544. </FormItem>
  1545. </div>
  1546. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1547. <div className="clearfix">
  1548. <h3 className="sub-title">联系信息</h3>
  1549. <FormItem
  1550. className="half-item"
  1551. {...formItemLayout}
  1552. label="客户名称"
  1553. >
  1554. <span>{this.state.userName}</span>
  1555. </FormItem>
  1556. <FormItem
  1557. className="half-item"
  1558. {...formItemLayout}
  1559. label="企业法人"
  1560. >
  1561. <span>{this.state.legalPerson}</span>
  1562. </FormItem>
  1563. <FormItem
  1564. className="half-item"
  1565. {...formItemLayout}
  1566. label="法人电话"
  1567. >
  1568. <span>{this.state.legalPersonTel}</span>
  1569. </FormItem>
  1570. <FormItem
  1571. className="half-item"
  1572. {...formItemLayout}
  1573. label="客户联系人"
  1574. >
  1575. <span>{this.state.contacts}</span>
  1576. </FormItem>
  1577. <FormItem
  1578. className="half-item"
  1579. {...formItemLayout}
  1580. label="联系人电话"
  1581. >
  1582. <span>{this.state.contactMobile}</span>
  1583. </FormItem>
  1584. <FormItem
  1585. className="half-item"
  1586. {...formItemLayout}
  1587. label="企业地址"
  1588. >
  1589. <span>
  1590. {getprovince(this.state.locationProvince)}/
  1591. {getprovince(this.state.locationCity)}/
  1592. {getprovince(this.state.locationArea)}
  1593. </span>
  1594. </FormItem>
  1595. <FormItem
  1596. className="half-item"
  1597. {...formItemLayout}
  1598. label=""
  1599. ></FormItem>
  1600. <FormItem className="half-item" {...formItemLayout} label="">
  1601. <span style={{ paddingLeft: "12em" }}>
  1602. {this.state.postalAddress}
  1603. </span>
  1604. </FormItem>
  1605. </div>
  1606. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1607. <div className="clearfix">
  1608. <h3 className="sub-title">订单负责人信息</h3>
  1609. <FormItem className="half-item" {...formItemLayout} label="负责人">
  1610. <span>
  1611. {this.state.salesmanName + "(" + this.state.depName + ")"}
  1612. </span>
  1613. </FormItem>
  1614. <FormItem
  1615. className="half-item"
  1616. {...formItemLayout}
  1617. label="负责人电话"
  1618. >
  1619. <span>{this.state.salesmanMobile}</span>
  1620. </FormItem>
  1621. <FormItem
  1622. className="half-item"
  1623. {...formItemLayout}
  1624. label="财务负责人"
  1625. >
  1626. <span>{this.state.financeName}</span>
  1627. </FormItem>
  1628. <FormItem
  1629. className="half-item"
  1630. {...formItemLayout}
  1631. label="财务负责人电话"
  1632. >
  1633. <span>{this.state.financeMobile}</span>
  1634. </FormItem>
  1635. </div>
  1636. <div className="clearfix" style={{ marginTop: "10px" }}>
  1637. <FormItem
  1638. labelCol={{ span: 3 }}
  1639. wrapperCol={{ span: 18 }}
  1640. label="附件"
  1641. >
  1642. <Upload
  1643. className="demandDetailShow-upload"
  1644. listType="picture-card"
  1645. fileList={this.state.attachmentUrl}
  1646. onPreview={file => {
  1647. this.setState({
  1648. previewImage: file.url || file.thumbUrl,
  1649. previewVisible: true
  1650. });
  1651. }}
  1652. ></Upload>
  1653. <Modal
  1654. maskClosable={false}
  1655. footer={null}
  1656. visible={this.state.previewVisible}
  1657. onCancel={() => {
  1658. this.setState({ previewVisible: false });
  1659. }}
  1660. >
  1661. <img
  1662. alt=""
  1663. style={{ width: "100%" }}
  1664. src={this.state.previewImage || ""}
  1665. />
  1666. </Modal>
  1667. </FormItem>
  1668. </div>
  1669. <div className="clearfix">
  1670. <FormItem
  1671. labelCol={{ span: 3 }}
  1672. wrapperCol={{ span: 16 }}
  1673. label="备注"
  1674. >
  1675. <span>{this.state.taskComment}</span>
  1676. </FormItem>
  1677. </div>
  1678. <div className="clearfix">
  1679. <h3 className="sub-title">项目申报进度</h3>
  1680. <FormItem
  1681. className="half-item"
  1682. {...formItemLayout}
  1683. label="启动时间"
  1684. >
  1685. <span>{this.state.startDate}</span>
  1686. </FormItem>
  1687. <FormItem
  1688. className="half-item"
  1689. {...formItemLayout}
  1690. label="软著派单数量"
  1691. >
  1692. <span>{this.state.commodityQuantity}</span>
  1693. </FormItem>
  1694. <div className="patent-table patent-table-center">
  1695. <Spin spinning={this.state.loading}>
  1696. <Table
  1697. columns={this.state.ContactsLists}
  1698. dataSource={this.state.contactList}
  1699. pagination={false}
  1700. bordered
  1701. size="small"
  1702. />
  1703. </Spin>
  1704. </div>
  1705. </div>
  1706. <div className="clearfix">
  1707. <h3 className="sub-title">项目业务</h3>
  1708. <div className="patent-table">
  1709. <Spin spinning={this.state.loading}>
  1710. <Table
  1711. columns={this.state.columnsX}
  1712. dataSource={this.state.dataSourceX}
  1713. pagination={this.state.paginations}
  1714. onRowClick={this.tableRowClickX}
  1715. bordered
  1716. size="small"
  1717. />
  1718. </Spin>
  1719. </div>
  1720. </div>
  1721. </Modal>
  1722. <Modal
  1723. width="800px"
  1724. visible={this.state.visibleA}
  1725. onCancel={this.visitCancelA}
  1726. title="操作日志"
  1727. footer=""
  1728. className="admin-desc-content"
  1729. >
  1730. <div className="patent-table patent-table-center">
  1731. <Spin spinning={this.state.loading}>
  1732. <Table
  1733. columns={this.state.columnsA}
  1734. dataSource={this.state.dataSourceA}
  1735. pagination={false}
  1736. bordered
  1737. size="small"
  1738. />
  1739. </Spin>
  1740. </div>
  1741. </Modal>
  1742. {this.state.resVisible ? (
  1743. <ResolutionDetail
  1744. cancel={this.resCancel}
  1745. detail={this.state.resRecord}
  1746. visible={this.state.resVisible}
  1747. id={this.state.resRecord.orderNo}
  1748. />
  1749. ) : (
  1750. ""
  1751. )}
  1752. </div>
  1753. );
  1754. }
  1755. });
  1756. export default Task;