project.jsx 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286
  1. import React from "react";
  2. import $ from "jquery";
  3. import { Spin, Button, Tabs, Table, message, Modal, Form, Upload, Tag } from "antd";
  4. import {
  5. getProcessStatus,
  6. getApproval,
  7. getTaskStatus,
  8. getLiquidationStatus,
  9. splitUrl,
  10. getProjectStatus,
  11. getboutique,
  12. getprovince,
  13. ShowModal,
  14. getRefundStatus
  15. } from "@/tools";
  16. const FormItem = Form.Item;
  17. import ResolutionDetail from "@/resolutionDetail";
  18. const { TabPane } = Tabs
  19. const project = React.createClass({
  20. getInitialState() {
  21. return {
  22. visible: false,
  23. record: this.props.record,
  24. paginations: false,
  25. columnsX: [
  26. {
  27. title: "业务项目名称",
  28. dataIndex: "commodityName",
  29. key: "commodityName"
  30. },
  31. {
  32. title: "项目类别",
  33. dataIndex: "cname",
  34. key: "cname"
  35. },
  36. {
  37. title: "项目数量",
  38. dataIndex: "commodityQuantity",
  39. key: "commodityQuantity",
  40. render: (text, record) => {
  41. if (record.splitStatus == 1) {
  42. return (
  43. <span>
  44. {text}{" "}
  45. <Tag
  46. color="#108ee9"
  47. onClick={e => {
  48. e.stopPropagation();
  49. this.showRes(record);
  50. }}
  51. >
  52. 已拆
  53. </Tag>
  54. </span>
  55. );
  56. } else {
  57. return text;
  58. }
  59. }
  60. },
  61. {
  62. title: "金额(万元)",
  63. dataIndex: "commodityPrice",
  64. key: "commodityPrice"
  65. },
  66. {
  67. title: "负责人",
  68. dataIndex: "contacts",
  69. key: "contacts"
  70. },
  71. {
  72. title: "负责人电话",
  73. dataIndex: "contactsMobile",
  74. key: "contactsMobile"
  75. },
  76. {
  77. title: "主要项目",
  78. dataIndex: "main",
  79. key: "main",
  80. render: text => {
  81. return text ? "是" : "否";
  82. }
  83. },
  84. {
  85. title: "项目说明",
  86. dataIndex: "taskComment",
  87. key: "taskComment",
  88. render: text => {
  89. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  90. }
  91. }
  92. ],
  93. columnsA: [
  94. {
  95. title: "流程",
  96. dataIndex: "content",
  97. key: "content",
  98. align: "center"
  99. },
  100. {
  101. title: "操作人",
  102. dataIndex: "aName",
  103. key: "aName",
  104. align: "center"
  105. },
  106. {
  107. title: "时间",
  108. dataIndex: "createTimes",
  109. key: "createTimes",
  110. align: "center"
  111. }
  112. ],
  113. resVisible: false,
  114. companyColumns: [
  115. {
  116. title: "公司",
  117. dataIndex: "name",
  118. key: "name",
  119. //fixed:'left',
  120. width: 160
  121. },
  122. {
  123. title: "联系人",
  124. dataIndex: "contacts",
  125. key: "contacts"
  126. },
  127. {
  128. title: "联系人电话",
  129. dataIndex: "contactsMobile",
  130. key: "contactsMobile"
  131. },
  132. {
  133. title: "地址",
  134. dataIndex: "companyProvinceArr",
  135. key: "companyProvinceArr",
  136. width: 140,
  137. render: test => {
  138. return test[0] === null
  139. ? ""
  140. : getprovince(test[0]) +
  141. "/" +
  142. getprovince(test[1]) +
  143. "/" +
  144. getprovince(test[2]);
  145. }
  146. },
  147. {
  148. title: "详细地址",
  149. dataIndex: "address",
  150. key: "address"
  151. }
  152. ]
  153. };
  154. },
  155. componentWillReceiveProps(nextProps) {
  156. console.log(nextProps.visible);
  157. console.log(nextProps.record, "ss");
  158. this.setState({
  159. visible: nextProps.visible,
  160. record: nextProps.record
  161. });
  162. if (nextProps.record) {
  163. this.xiangqing(nextProps.record.id);
  164. this.xiangqings(nextProps.record.orderNo);
  165. this.xiangmu(nextProps.record.orderNo);
  166. this.loaduserss(nextProps.record);
  167. }
  168. },
  169. // handleOk() {
  170. // this.setState({
  171. // newVisible: false
  172. // });
  173. // // window.setTimeout( () => {
  174. // // this.setState({
  175. // // newVisible: true
  176. // // });
  177. // // },)
  178. // },
  179. // 拆分详细
  180. showRes(record) {
  181. this.setState({
  182. resVisible: true,
  183. resRecord: record
  184. });
  185. },
  186. resCancel() {
  187. this.setState({
  188. resVisible: false
  189. });
  190. },
  191. componentDidMount() {},
  192. xiangqing(id) {
  193. this.setState({
  194. loading: true
  195. });
  196. $.ajax({
  197. method: "get",
  198. dataType: "json",
  199. crossDomain: false,
  200. url: globalConfig.context + "/api/admin/orderProject/orderTaskDetail",
  201. data: {
  202. id: id
  203. },
  204. success: function(data) {
  205. if (data.error.length || data.data.list == "") {
  206. if (data.error && data.error.length) {
  207. message.warning(data.error[0].message);
  208. }
  209. } else {
  210. let thisdata = data.data;
  211. this.setState({
  212. id: thisdata.id, //ID
  213. orderNo: thisdata.orderNo, //订单编号
  214. userName: thisdata.userName, //客户名称
  215. taskName: thisdata.taskName, //任务名称
  216. cname: thisdata.cname, //项目品类
  217. contractNo: thisdata.contractNo, //合同编号
  218. projectStatus: thisdata.projectStatus, //项目状态
  219. taskStatus: thisdata.taskStatus, //任务状态
  220. taskDate: thisdata.taskDate, //分配时间
  221. taskComment: thisdata.taskComment, //说明
  222. attachmentUrl: thisdata.attachmentUrl
  223. ? splitUrl(
  224. thisdata.attachmentUrl,
  225. ",",
  226. globalConfig.avatarHost + "/upload"
  227. )
  228. : [], //图片地址
  229. salesmanName: thisdata.salesmanName, //订单负责人
  230. startDate: thisdata.startDate, //启动日期
  231. endDate: thisdata.endDate, //结束日期
  232. acceptDate: thisdata.acceptDate, //受理日期
  233. reviewDate: thisdata.reviewDate, //评审日期
  234. publicityDate: thisdata.publicityDate, //公示日期
  235. licenceDate: thisdata.licenceDate, //发证日期
  236. contacts: thisdata.contacts, //联系人
  237. contactMobile: thisdata.contactMobile, //联系人电话
  238. legalPerson: thisdata.legalPerson, //法人
  239. legalPersonTel: thisdata.legalPersonTel, //法人电话
  240. certificateNumber: thisdata.certificateNumber, //证书编号
  241. status: thisdata.status, //状态
  242. formRetrieve: thisdata.formRetrieve, //满意度表格
  243. taskRefund: thisdata.taskRefund, //退单
  244. refundContent: thisdata.refundContent, //退单信息
  245. retrieveContent: thisdata.retrieveContent, //回收信息
  246. arrivalMoney: thisdata.arrivalMoney, //是否到款
  247. setUpAmount: thisdata.setUpAmount, //立项金额
  248. declareUser: thisdata.declareUser, //账号
  249. declarePwd: thisdata.declarePwd, //密码
  250. depName: thisdata.depName, //订单部门
  251. outsourceName: thisdata.outsourceName, //外包公司名称
  252. outsourcePrice: thisdata.outsourcePrice //外包价格
  253. });
  254. }
  255. }.bind(this)
  256. }).always(
  257. function() {
  258. this.setState({
  259. loading: false
  260. });
  261. }.bind(this)
  262. );
  263. },
  264. //订单详情
  265. xiangqings(orderNos) {
  266. this.setState({
  267. loading: true
  268. });
  269. $.ajax({
  270. method: "get",
  271. dataType: "json",
  272. crossDomain: false,
  273. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  274. data: {
  275. orderNo: orderNos
  276. },
  277. success: function(data) {
  278. let thisdata = data.data;
  279. let ProvinceCityArr = [];
  280. let ProvinceS = thisdata.locationProvince; //省
  281. let citys = thisdata.locationCity; //市
  282. let Areas = thisdata.locationArea; //区
  283. ProvinceCityArr.push(ProvinceS, citys, Areas);
  284. if (data.error.length || data.data.list == "") {
  285. if (data.error && data.error.length) {
  286. message.warning(data.error[0].message);
  287. }
  288. } else {
  289. this.setState({
  290. processStatus: thisdata.processStatus, //流程状态
  291. liquidationStatus: thisdata.liquidationStatus, //结算状态
  292. approval: thisdata.approval, //特批状态
  293. orderRemarks: thisdata.orderRemarks, //订单留言
  294. salesmanName: thisdata.salesmanName, //营销员名称
  295. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  296. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  297. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  298. financeName: thisdata.financeName, //财务名称
  299. financeMobile: thisdata.financeMobile, //财务电话
  300. nowFinance: thisdata.nowFinance, //财务名称
  301. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  302. depName: thisdata.depName, //订单部门
  303. locationProvince: thisdata.locationProvince,
  304. locationCity: thisdata.locationCity,
  305. locationArea: thisdata.locationArea,
  306. ProvinceCity: ProvinceCityArr,
  307. postalAddress: thisdata.postalAddress, //详细地址
  308. outsource: thisdata.outsource
  309. });
  310. }
  311. }.bind(this)
  312. }).always(
  313. function() {
  314. this.setState({
  315. loading: false
  316. });
  317. }.bind(this)
  318. );
  319. },
  320. //查看下证信息
  321. loaduserss(record) {
  322. this.setState({
  323. loading: true
  324. });
  325. $.ajax({
  326. method: "get",
  327. dataType: "json",
  328. crossDomain: false,
  329. url: globalConfig.context + "/api/admin/orderProject/selectTaskProgress",
  330. data: {
  331. tid: record.id
  332. },
  333. success: function(data) {
  334. let theArr = [];
  335. let thisData = [];
  336. if (!thisData) {
  337. if (data.error && data.error.length) {
  338. message.warning(data.error[0].message);
  339. }
  340. thisData = {};
  341. } else {
  342. for (let i = 0; i < data.data.length; i++) {
  343. thisData = data.data[i];
  344. theArr.push({
  345. num: i + 1,
  346. key: i,
  347. id: thisData.id, //编号
  348. alreadyNumber: thisData.alreadyNumber, //下证数
  349. licenceTimes: thisData.licenceTimes, //下证时间
  350. notCount: thisData.notCount, //未下证数
  351. flag: true
  352. });
  353. }
  354. this.setState({
  355. contactList: theArr
  356. });
  357. }
  358. }.bind(this)
  359. }).always(
  360. function() {
  361. this.setState({
  362. loading: false
  363. });
  364. }.bind(this)
  365. );
  366. },
  367. //项目列表
  368. xiangmu(orderNos) {
  369. this.setState({
  370. loading: true
  371. });
  372. $.ajax({
  373. method: "get",
  374. dataType: "json",
  375. crossDomain: false,
  376. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  377. data: {
  378. orderNo: orderNos
  379. },
  380. success: function(data) {
  381. let theArr = [];
  382. if (data.error.length || data.data.list == "") {
  383. if (data.error && data.error.length) {
  384. message.warning(data.error[0].message);
  385. }
  386. } else {
  387. for (let i = 0; i < data.data.length; i++) {
  388. let thisdata = data.data[i];
  389. theArr.push({
  390. key: i,
  391. id: thisdata.id,
  392. orderNo: thisdata.orderNo, //订单编号
  393. commodityId: thisdata.commodityId, //项目ID
  394. commodityName: thisdata.commodityName, //项目名称
  395. cname: thisdata.cname, //项目类别
  396. commodityPrice: thisdata.commodityPrice, //项目价格
  397. commodityQuantity: thisdata.commodityQuantity, //项目数量
  398. main: thisdata.main, //是否为主要任务
  399. taskComment: thisdata.taskComment, //任务说明
  400. contacts: thisdata.contacts, //联系人
  401. contactsMobile: thisdata.contactsMobile, //联系人电话
  402. taskStatus: thisdata.taskStatus, //是否分配
  403. splitStatus: thisdata.splitStatus
  404. });
  405. }
  406. }
  407. this.setState({
  408. dataSourceX: theArr
  409. });
  410. }.bind(this)
  411. }).always(
  412. function() {
  413. this.setState({
  414. loading: false
  415. });
  416. }.bind(this)
  417. );
  418. },
  419. tableRowClickX(record) {
  420. this.setState({
  421. jid: record.id, //项目ID
  422. kid: record.commodityId, //商品ID
  423. commodityName: record.commodityName, //金额
  424. commodityPrice: record.commodityPrice, //金额
  425. commodityQuantity: record.commodityQuantity, //数量
  426. taskComment: record.taskComment, //备注
  427. main: record.main.toString(), //是否为主要
  428. addnextVisible: true,
  429. addState: 0
  430. });
  431. },
  432. caozuorizhi() {
  433. this.setState({
  434. loading: true
  435. });
  436. this.setState({
  437. visibleA: true
  438. });
  439. $.ajax({
  440. method: "get",
  441. dataType: "json",
  442. crossDomain: false,
  443. url: globalConfig.context + "/api/admin/orderProject/TaskLogList",
  444. data: {
  445. id: this.state.id
  446. },
  447. success: function(data) {
  448. let theArr = [];
  449. if (data.error.length || data.data.list == "") {
  450. if (data.error && data.error.length) {
  451. message.warning(data.error[0].message);
  452. }
  453. } else {
  454. for (let i = 0; i < data.data.length; i++) {
  455. let thisdata = data.data[i];
  456. theArr.push({
  457. key: i,
  458. id: thisdata.id, //日志ID
  459. content: thisdata.content, //流程
  460. taskId: thisdata.taskId, //任务ID
  461. aName: thisdata.aName, //负责人
  462. createTimes: thisdata.createTimes //时间
  463. });
  464. }
  465. }
  466. this.setState({
  467. dataSourceA: theArr
  468. });
  469. }.bind(this)
  470. }).always(
  471. function() {
  472. this.setState({
  473. loading: false
  474. });
  475. }.bind(this)
  476. );
  477. }, //关闭操作工时
  478. visitCancelA() {
  479. this.setState({
  480. visibleA: false
  481. });
  482. },
  483. waiDetail() {
  484. let url = window.location.href.substring(7);
  485. this.setState({
  486. loading: true
  487. });
  488. $.ajax({
  489. method: "get",
  490. dataType: "json",
  491. crossDomain: false,
  492. url:
  493. globalConfig.context + "/api/admin/outsourceOrg/orderOutsourceDtails",
  494. data: {
  495. tid: this.props.record.id,
  496. orderNo: this.props.record.orderNo
  497. }
  498. }).done(
  499. function(data) {
  500. this.setState({
  501. loading: false
  502. });
  503. if (!data.error.length && data.data) {
  504. this.setState({
  505. outsourceRemarks: data.data.outsourceRemarks,
  506. remarks: data.data.remarks,
  507. companyName: data.data.companyName,
  508. amount: data.data.amount,
  509. mid: data.data.id,
  510. unitPrice: data.data.unitPrice,
  511. refundStatus: data.data.refundStatus,
  512. unitNumber: data.data.unitNumber,
  513. pictureUrl: data.data.pictureUrl
  514. ? splitUrl(
  515. data.data.pictureUrl,
  516. ",",
  517. globalConfig.avatarHost + "/upload",
  518. url
  519. )
  520. : [], //图片地址
  521. createTimes: data.data.createTimes,
  522. auditTimes: data.data.auditTimes
  523. });
  524. } else if (data.error && data.error.length) {
  525. message.warning(data.error[0].message);
  526. } else if (!data.data) {
  527. this.setState({
  528. refundStatus: undefined
  529. });
  530. }
  531. }.bind(this)
  532. );
  533. },
  534. //加载外包
  535. loadCompany() {
  536. this.setState({
  537. loading: true
  538. });
  539. $.ajax({
  540. method: "get",
  541. dataType: "json",
  542. crossDomain: false,
  543. url: globalConfig.context + "/api/admin/outsourceOrg/selectOutsourceOrg",
  544. data: {
  545. tid: this.props.record.id,
  546. orderNo: this.props.record.orderNo
  547. },
  548. success: function(data) {
  549. let theArr = [];
  550. if (data.error.length || data.data.list == "") {
  551. if (data.error && data.error.length) {
  552. message.warning(data.error[0].message);
  553. }
  554. } else {
  555. for (let i = 0; i < data.data.length; i++) {
  556. let thisdata = data.data[i];
  557. let ProvinceCityArr = [];
  558. let ProvinceS = thisdata.province; //省
  559. let citys = thisdata.city; //市
  560. let Areas = thisdata.area; //区
  561. ProvinceCityArr.push(ProvinceS, citys, Areas);
  562. theArr.push({
  563. key: i,
  564. id: thisdata.id, //外包Id
  565. name: thisdata.name, //名称
  566. contacts: thisdata.contacts, //联系人
  567. contactsMobile: thisdata.contactsMobile, //联系人电话
  568. companyProvinceArr: ProvinceCityArr,
  569. address: thisdata.address,
  570. remarks: thisdata.remarks
  571. });
  572. }
  573. }
  574. this.setState({
  575. companys: theArr
  576. });
  577. }.bind(this)
  578. }).always(
  579. function() {
  580. this.setState({
  581. loading: false
  582. });
  583. }.bind(this)
  584. );
  585. },
  586. tabChange(e) {
  587. if (e == 2) {
  588. this.waiDetail();
  589. } else if (e == 3) {
  590. this.loadCompany();
  591. }
  592. },
  593. render() {
  594. const formItemLayout = {
  595. labelCol: { span: 8 },
  596. wrapperCol: { span: 14 }
  597. };
  598. const utils = {
  599. getSatisfaction: function(num) {
  600. switch (num) {
  601. case 0:
  602. return "未收回";
  603. case 1:
  604. return "已收回";
  605. default:
  606. return "其它";
  607. }
  608. },
  609. getChargeback: function(num) {
  610. switch (num) {
  611. case 0:
  612. return "已完成";
  613. case 1:
  614. return "未完成";
  615. default:
  616. return "其它";
  617. }
  618. }
  619. };
  620. return (
  621. <Modal
  622. className="customeDetails"
  623. footer=""
  624. title=""
  625. width="900px"
  626. visible={this.state.visible}
  627. // onOk={this.visitOk}
  628. onCancel={e => {
  629. this.props.cancel();
  630. }}
  631. >
  632. {this.state.resVisible ? (
  633. <ResolutionDetail
  634. cancel={this.resCancel}
  635. detail={this.state.resRecord}
  636. visible={this.state.resVisible}
  637. id={this.state.resRecord.orderNo}
  638. />
  639. ) : (
  640. ""
  641. )}
  642. <Tabs defaultActiveKey="1" onChange={this.tabChange}>
  643. <TabPane tab="项目概况" key="1">
  644. <Form
  645. layout="horizontal"
  646. onSubmit={this.handleSubmit}
  647. id="demand-form"
  648. style={{ paddingBottom: "0px" }}
  649. >
  650. <Spin spinning={this.state.loading}>
  651. <div className="clearfix">
  652. <div className="clearfix">
  653. <FormItem
  654. className="half-item"
  655. {...formItemLayout}
  656. label="当前项目情况"
  657. >
  658. <span>{this.state.status ? "暂停" : "开启"}</span>
  659. <Button
  660. type="primary"
  661. size="small"
  662. style={{ marginTop: "5px", position: "absolute" }}
  663. onClick={this.caozuorizhi}
  664. >
  665. 操作日志
  666. </Button>
  667. </FormItem>
  668. <FormItem
  669. className="half-item"
  670. {...formItemLayout}
  671. label="合同编号"
  672. >
  673. <span>{this.state.contractNo}</span>
  674. </FormItem>
  675. </div>
  676. <div className="clearfix">
  677. <FormItem
  678. className="half-item"
  679. {...formItemLayout}
  680. label="项目状态"
  681. >
  682. {/* <span>{getProcessStatus(this.state.projectStatus)}</span> */}
  683. <span>{getProjectStatus(this.state.projectStatus)}</span>
  684. </FormItem>
  685. <FormItem
  686. className="half-item"
  687. {...formItemLayout}
  688. label="是否特批"
  689. >
  690. <span>{getApproval(this.state.approval)}</span>
  691. </FormItem>
  692. <FormItem
  693. className="half-item"
  694. {...formItemLayout}
  695. label="结算状态"
  696. >
  697. <span>
  698. {getLiquidationStatus(this.state.liquidationStatus)}
  699. </span>
  700. </FormItem>
  701. <FormItem
  702. className="half-item"
  703. {...formItemLayout}
  704. label="流程状态"
  705. >
  706. <span>{getProcessStatus(this.state.processStatus)}</span>
  707. </FormItem>
  708. <FormItem
  709. className="half-item"
  710. {...formItemLayout}
  711. label="订单编号"
  712. >
  713. <span>{this.state.orderNo}</span>
  714. </FormItem>
  715. <FormItem
  716. className="half-item"
  717. {...formItemLayout}
  718. label="是否外包"
  719. >
  720. <span>{this.state.outsource == 0 ? "否" : "是"}</span>
  721. </FormItem>
  722. </div>
  723. <div className="clearfix">
  724. <FormItem
  725. className="half-item"
  726. {...formItemLayout}
  727. label="满意度表格"
  728. >
  729. <span>
  730. {utils.getSatisfaction(this.state.formRetrieve)}
  731. </span>
  732. </FormItem>
  733. <FormItem
  734. className="half-item"
  735. {...formItemLayout}
  736. label="退单"
  737. >
  738. <span>{utils.getChargeback(this.state.taskRefund)}</span>
  739. </FormItem>
  740. </div>
  741. <div className="clearfix">
  742. {
  743. <FormItem
  744. className="half-item"
  745. {...formItemLayout}
  746. label="(满意度)备注"
  747. >
  748. <span>{this.state.retrieveContent}</span>
  749. </FormItem>
  750. }
  751. {
  752. <FormItem
  753. className="half-item"
  754. {...formItemLayout}
  755. label="(退单)备注"
  756. >
  757. <span>{this.state.refundContent}</span>
  758. </FormItem>
  759. }
  760. </div>
  761. <div className="clearfix">
  762. <h3 className="sub-title">任务信息</h3>
  763. <FormItem
  764. className="half-item"
  765. {...formItemLayout}
  766. label="任务编号"
  767. >
  768. <span>{this.state.id}</span>
  769. </FormItem>
  770. <FormItem
  771. className="half-item"
  772. {...formItemLayout}
  773. label="任务名称"
  774. >
  775. <span>{this.state.taskName}</span>
  776. </FormItem>
  777. <FormItem
  778. className="half-item"
  779. {...formItemLayout}
  780. label="任务状态"
  781. >
  782. <span>{getTaskStatus(this.state.taskStatus)}</span>
  783. </FormItem>
  784. <FormItem
  785. className="half-item"
  786. {...formItemLayout}
  787. label="任务类别"
  788. >
  789. <span>{this.state.cname}</span>
  790. </FormItem>
  791. <FormItem
  792. className="half-item"
  793. {...formItemLayout}
  794. label="证书编号"
  795. >
  796. <span>{this.state.certificateNumber}</span>
  797. </FormItem>
  798. </div>
  799. {this.state.outsource === 1 ? (
  800. <div className="clearfix">
  801. <h3 className="sub-title">外包信息</h3>
  802. <FormItem
  803. className="half-item"
  804. {...formItemLayout}
  805. label="外包公司"
  806. >
  807. <span>{this.state.outsourceName}</span>
  808. </FormItem>
  809. <FormItem
  810. className="half-item"
  811. {...formItemLayout}
  812. label="外包成本(万元)"
  813. >
  814. <span>{this.state.outsourcePrice}</span>
  815. </FormItem>
  816. </div>
  817. ) : (
  818. ""
  819. )}
  820. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  821. <div className="clearfix">
  822. <h3 className="sub-title">联系信息</h3>
  823. <FormItem
  824. className="half-item"
  825. {...formItemLayout}
  826. label="客户名称"
  827. >
  828. <span>{this.state.userName}</span>
  829. </FormItem>
  830. <FormItem
  831. className="half-item"
  832. {...formItemLayout}
  833. label="企业法人"
  834. >
  835. <span>{this.state.legalPerson}</span>
  836. </FormItem>
  837. <FormItem
  838. className="half-item"
  839. {...formItemLayout}
  840. label="法人电话"
  841. >
  842. <span>{this.state.legalPersonTel}</span>
  843. </FormItem>
  844. <FormItem
  845. className="half-item"
  846. {...formItemLayout}
  847. label="客户联系人"
  848. >
  849. <span>{this.state.contacts}</span>
  850. </FormItem>
  851. <FormItem
  852. className="half-item"
  853. {...formItemLayout}
  854. label="联系人电话"
  855. >
  856. <span>{this.state.contactMobile}</span>
  857. </FormItem>
  858. <FormItem
  859. className="half-item"
  860. {...formItemLayout}
  861. label="企业地址"
  862. >
  863. <span>
  864. {getprovince(this.state.locationProvince)}/
  865. {getprovince(this.state.locationCity)}/
  866. {getprovince(this.state.locationArea)}
  867. </span>
  868. </FormItem>
  869. <FormItem
  870. className="half-item"
  871. {...formItemLayout}
  872. label=""
  873. ></FormItem>
  874. <FormItem className="half-item" {...formItemLayout}>
  875. <span style={{ paddingLeft: "12em" }}>
  876. {this.state.postalAddress}
  877. </span>
  878. </FormItem>
  879. </div>
  880. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  881. <div className="clearfix">
  882. <h3 className="sub-title">订单负责人信息</h3>
  883. <FormItem
  884. className="half-item"
  885. {...formItemLayout}
  886. label="负责人"
  887. >
  888. <span>
  889. {this.state.salesmanName +
  890. "(" +
  891. this.state.depName +
  892. ")"}
  893. </span>
  894. </FormItem>
  895. <FormItem
  896. className="half-item"
  897. {...formItemLayout}
  898. label="负责人电话"
  899. >
  900. <span>{this.state.salesmanMobile}</span>
  901. </FormItem>
  902. <FormItem
  903. className="half-item"
  904. {...formItemLayout}
  905. label="当前财务负责人"
  906. >
  907. <span>{this.state.nowFinance}</span>
  908. </FormItem>
  909. <FormItem
  910. className="half-item"
  911. {...formItemLayout}
  912. label="当前财务负责人电话"
  913. >
  914. <span>{this.state.nowFinanceMobile}</span>
  915. </FormItem>
  916. <FormItem
  917. className="half-item"
  918. {...formItemLayout}
  919. style={{ opacity: ".5" }}
  920. label="原负责人"
  921. >
  922. <span>{this.state.oldSalesmanName}</span>
  923. </FormItem>
  924. <FormItem
  925. className="half-item"
  926. {...formItemLayout}
  927. style={{ opacity: ".5" }}
  928. label="原负责人电话"
  929. >
  930. <span>{this.state.oldSalesmanMobile}</span>
  931. </FormItem>
  932. <FormItem
  933. className="half-item"
  934. {...formItemLayout}
  935. style={{ opacity: ".5" }}
  936. label="实际财务操作人"
  937. >
  938. <span>{this.state.financeName}</span>
  939. </FormItem>
  940. <FormItem
  941. className="half-item"
  942. {...formItemLayout}
  943. style={{ opacity: ".5" }}
  944. label="实际财务操作人电话"
  945. >
  946. <span>{this.state.financeMobile}</span>
  947. </FormItem>
  948. </div>
  949. <div className="clearfix">
  950. <h3 className="sub-title">申报系统账户信息</h3>
  951. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  952. <FormItem
  953. className="half-item"
  954. {...formItemLayout}
  955. label="用户名"
  956. >
  957. <span>{this.state.declareUser ? "****" : ""}</span>
  958. </FormItem>
  959. <FormItem
  960. className="half-item"
  961. {...formItemLayout}
  962. label="密码"
  963. >
  964. <span>{this.state.declarePwd ? "****" : ""}</span>
  965. </FormItem>
  966. </div>
  967. <div className="clearfix">
  968. <h3 className="sub-title">项目申报进度</h3>
  969. <FormItem
  970. className="half-item"
  971. {...formItemLayout}
  972. label="启动时间"
  973. >
  974. <span>{this.state.startDate}</span>
  975. </FormItem>
  976. <FormItem
  977. className="half-item"
  978. {...formItemLayout}
  979. label="完成时间"
  980. >
  981. <span>{this.state.endDate}</span>
  982. </FormItem>
  983. <FormItem
  984. className="half-item"
  985. {...formItemLayout}
  986. label="受理时间"
  987. >
  988. <span>{this.state.acceptDate}</span>
  989. </FormItem>
  990. <FormItem
  991. className="half-item"
  992. {...formItemLayout}
  993. label="评审时间"
  994. >
  995. <span>{this.state.reviewDate}</span>
  996. </FormItem>
  997. <FormItem
  998. className="half-item"
  999. {...formItemLayout}
  1000. label="公示时间"
  1001. >
  1002. <span>{this.state.publicityDate}</span>
  1003. </FormItem>
  1004. <FormItem
  1005. className="half-item"
  1006. {...formItemLayout}
  1007. label="发证时间"
  1008. >
  1009. <span>{this.state.licenceDate}</span>
  1010. </FormItem>
  1011. <FormItem
  1012. className="half-item"
  1013. {...formItemLayout}
  1014. label="立项金额(万元)"
  1015. >
  1016. <span>{this.state.setUpAmount}</span>
  1017. </FormItem>
  1018. <FormItem
  1019. className="half-item"
  1020. {...formItemLayout}
  1021. label="是否到款"
  1022. >
  1023. <span>
  1024. {this.state.arrivalMoney ? "已到企业" : "未到企业"}
  1025. </span>
  1026. </FormItem>
  1027. </div>
  1028. <div className="clearfix">
  1029. <FormItem
  1030. labelCol={{ span: 3 }}
  1031. wrapperCol={{ span: 18 }}
  1032. label="附件"
  1033. >
  1034. <Upload
  1035. className="demandDetailShow-upload"
  1036. listType="picture-card"
  1037. fileList={this.state.attachmentUrl}
  1038. onPreview={file => {
  1039. this.setState({
  1040. previewImage: file.url || file.thumbUrl,
  1041. previewVisible: true
  1042. });
  1043. }}
  1044. ></Upload>
  1045. <Modal
  1046. maskClosable={false}
  1047. footer={null}
  1048. visible={this.state.previewVisible}
  1049. onCancel={() => {
  1050. this.setState({ previewVisible: false });
  1051. }}
  1052. >
  1053. <img
  1054. alt=""
  1055. style={{ width: "100%" }}
  1056. src={this.state.previewImage || ""}
  1057. />
  1058. </Modal>
  1059. </FormItem>
  1060. </div>
  1061. <div className="clearfix">
  1062. <FormItem
  1063. labelCol={{ span: 3 }}
  1064. wrapperCol={{ span: 16 }}
  1065. label="备注"
  1066. >
  1067. <span>{this.state.taskComment}</span>
  1068. </FormItem>
  1069. </div>
  1070. <div>
  1071. <h3 className="sub-title">项目业务</h3>
  1072. {/* {this.state.processStatus == 0 ? (
  1073. <Button
  1074. type="primary"
  1075. onClick={this.addDetailed}
  1076. style={{
  1077. float: "right",
  1078. marginRight: "50px",
  1079. marginBottom: "15px"
  1080. }}
  1081. >
  1082. 添加项目明细
  1083. </Button>
  1084. ) : (
  1085. ""
  1086. )} */}
  1087. </div>
  1088. <div className="patent-table">
  1089. <Spin spinning={this.state.loading}>
  1090. <Table
  1091. columns={this.state.columnsX}
  1092. dataSource={this.state.dataSourceX}
  1093. pagination={this.state.paginations}
  1094. onRowClick={this.tableRowClickX}
  1095. bordered
  1096. size="small"
  1097. />
  1098. </Spin>
  1099. </div>
  1100. </div>
  1101. </Spin>
  1102. </Form>
  1103. </TabPane>
  1104. {this.props.record && this.props.record.outsource == 1 ? (
  1105. <TabPane tab="外包审核信息" key="2">
  1106. <Spin spinning={this.state.loading}>
  1107. <div>
  1108. <div className="clearfix">
  1109. <FormItem
  1110. className="half-item"
  1111. {...formItemLayout}
  1112. label="外包公司"
  1113. >
  1114. <span>{this.state.companyName}</span>
  1115. </FormItem>
  1116. </div>
  1117. <div className="clearfix">
  1118. <FormItem
  1119. className="half-item"
  1120. {...formItemLayout}
  1121. label="单价(万元)"
  1122. >
  1123. <span>{this.state.unitPrice}</span>
  1124. </FormItem>
  1125. </div>
  1126. <div className="clearfix">
  1127. <FormItem
  1128. className="half-item"
  1129. {...formItemLayout}
  1130. label="数量(个)"
  1131. >
  1132. <span>{this.state.unitNumber}</span>
  1133. </FormItem>
  1134. </div>
  1135. <div className="clearfix">
  1136. <FormItem
  1137. className="half-item"
  1138. {...formItemLayout}
  1139. label="总金额(万元)"
  1140. >
  1141. <span>{this.state.amount}</span>
  1142. </FormItem>
  1143. </div>
  1144. <div className="clearfix">
  1145. <FormItem
  1146. className="half-item"
  1147. {...formItemLayout}
  1148. label="备注"
  1149. >
  1150. <span>{this.state.outsourceRemarks}</span>
  1151. </FormItem>
  1152. </div>
  1153. <div className="clearfix">
  1154. <FormItem
  1155. labelCol={{ span: 4 }}
  1156. wrapperCol={{ span: 18 }}
  1157. label="合同/协议扫描件"
  1158. >
  1159. <Upload
  1160. className="demandDetailShow-upload"
  1161. listType="picture-card"
  1162. fileList={this.state.pictureUrl}
  1163. onPreview={file => {
  1164. this.setState({
  1165. previewImage: file.url || file.thumbUrl,
  1166. previewVisible: true
  1167. });
  1168. }}
  1169. ></Upload>
  1170. <Modal
  1171. maskClosable={false}
  1172. footer={null}
  1173. visible={this.state.previewVisible}
  1174. onCancel={() => {
  1175. this.setState({ previewVisible: false });
  1176. }}
  1177. >
  1178. <img
  1179. alt=""
  1180. style={{ width: "100%" }}
  1181. src={this.state.previewImage || ""}
  1182. />
  1183. </Modal>
  1184. </FormItem>
  1185. </div>
  1186. </div>
  1187. <div className="clearfix">
  1188. <hr className="division" />
  1189. <div
  1190. className="clearfix"
  1191. style={{
  1192. display: this.state.refundStatus == 0 ? "none" : "block"
  1193. }}
  1194. >
  1195. <FormItem
  1196. className="half-item"
  1197. {...formItemLayout}
  1198. label="审核意见"
  1199. >
  1200. <span>{this.state.remarks}</span>
  1201. </FormItem>
  1202. </div>
  1203. <div className="clearfix">
  1204. <FormItem
  1205. className="half-item"
  1206. {...formItemLayout}
  1207. label="审核结果"
  1208. >
  1209. <span>{getRefundStatus(this.state.refundStatus)}</span>
  1210. </FormItem>
  1211. </div>
  1212. <div
  1213. className="clearfix"
  1214. style={{
  1215. display: this.state.refundStatus == 0 ? "none" : "block"
  1216. }}
  1217. >
  1218. <FormItem
  1219. className="half-item"
  1220. {...formItemLayout}
  1221. label="审核时间"
  1222. >
  1223. <span>{this.state.auditTimes}</span>
  1224. </FormItem>
  1225. </div>
  1226. </div>
  1227. </Spin>
  1228. </TabPane>
  1229. ) : (
  1230. ""
  1231. )}
  1232. {this.props.record && this.props.record.outsource == 1 ? (
  1233. <TabPane tab="外包公司信息" key="3">
  1234. <div className="patent-table" style={{ marginTop: "10px" }}>
  1235. <Spin spinning={this.state.loading}>
  1236. <Table
  1237. columns={this.state.companyColumns}
  1238. dataSource={this.state.companys}
  1239. scroll={{ x: 300, y: 0 }}
  1240. bordered
  1241. size="small"
  1242. expandedRowRender={record => {
  1243. return <p>{record.remarks}</p>;
  1244. }}
  1245. pagination={false}
  1246. />
  1247. </Spin>
  1248. </div>
  1249. </TabPane>
  1250. ) : (
  1251. ""
  1252. )}
  1253. </Tabs>
  1254. <Modal
  1255. width="800px"
  1256. visible={this.state.visibleA}
  1257. onCancel={this.visitCancelA}
  1258. title="操作日志"
  1259. footer=""
  1260. className="admin-desc-content"
  1261. >
  1262. <div className="patent-table patent-table-center">
  1263. <Spin spinning={this.state.loading}>
  1264. <Table
  1265. columns={this.state.columnsA}
  1266. dataSource={this.state.dataSourceA}
  1267. pagination={false}
  1268. bordered
  1269. size="small"
  1270. />
  1271. </Spin>
  1272. </div>
  1273. </Modal>
  1274. </Modal>
  1275. );
  1276. }
  1277. });
  1278. export default project;