taskQuery.jsx 70 KB

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