project.jsx 43 KB

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