project.jsx 43 KB

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