project.jsx 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293
  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. sort: thisdata.cSort,
  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.declarationBatch}</span>
  975. </FormItem>
  976. <FormItem
  977. className="half-item"
  978. {...formItemLayout}
  979. label="启动时间"
  980. >
  981. <span>{this.state.startDate}</span>
  982. </FormItem>
  983. <FormItem
  984. className="half-item"
  985. {...formItemLayout}
  986. label="完成时间"
  987. >
  988. <span>{this.state.endDate}</span>
  989. </FormItem>
  990. <FormItem
  991. className="half-item"
  992. {...formItemLayout}
  993. label="受理时间"
  994. >
  995. <span>{this.state.acceptDate}</span>
  996. </FormItem>
  997. <FormItem
  998. className="half-item"
  999. {...formItemLayout}
  1000. label="评审时间"
  1001. >
  1002. <span>{this.state.reviewDate}</span>
  1003. </FormItem>
  1004. <FormItem
  1005. className="half-item"
  1006. {...formItemLayout}
  1007. label="公示时间"
  1008. >
  1009. <span>{this.state.publicityDate}</span>
  1010. </FormItem>
  1011. <FormItem
  1012. className="half-item"
  1013. {...formItemLayout}
  1014. label="发证时间"
  1015. >
  1016. <span>{this.state.licenceDate}</span>
  1017. </FormItem>
  1018. <FormItem
  1019. className="half-item"
  1020. {...formItemLayout}
  1021. label="立项金额(万元)"
  1022. >
  1023. <span>{this.state.setUpAmount}</span>
  1024. </FormItem>
  1025. <FormItem
  1026. className="half-item"
  1027. {...formItemLayout}
  1028. label="是否到款"
  1029. >
  1030. <span>
  1031. {this.state.arrivalMoney ? "已到企业" : "未到企业"}
  1032. </span>
  1033. </FormItem>
  1034. </div>
  1035. <div className="clearfix">
  1036. <FormItem
  1037. labelCol={{ span: 3 }}
  1038. wrapperCol={{ span: 18 }}
  1039. label="附件"
  1040. >
  1041. <Upload
  1042. className="demandDetailShow-upload"
  1043. listType="picture-card"
  1044. fileList={this.state.attachmentUrl}
  1045. onPreview={(file) => {
  1046. this.setState({
  1047. previewImage: file.url || file.thumbUrl,
  1048. previewVisible: true,
  1049. });
  1050. }}
  1051. ></Upload>
  1052. <Modal
  1053. maskClosable={false}
  1054. footer={null}
  1055. visible={this.state.previewVisible}
  1056. onCancel={() => {
  1057. this.setState({ previewVisible: false });
  1058. }}
  1059. >
  1060. <img
  1061. alt=""
  1062. style={{ width: "100%" }}
  1063. src={this.state.previewImage || ""}
  1064. />
  1065. </Modal>
  1066. </FormItem>
  1067. </div>
  1068. <div className="clearfix">
  1069. <FormItem
  1070. labelCol={{ span: 3 }}
  1071. wrapperCol={{ span: 16 }}
  1072. label="备注"
  1073. >
  1074. <span>{this.state.taskComment}</span>
  1075. </FormItem>
  1076. </div>
  1077. <div>
  1078. <h3 className="sub-title">项目业务</h3>
  1079. {/* {this.state.processStatus == 0 ? (
  1080. <Button
  1081. type="primary"
  1082. onClick={this.addDetailed}
  1083. style={{
  1084. float: "right",
  1085. marginRight: "50px",
  1086. marginBottom: "15px"
  1087. }}
  1088. >
  1089. 添加项目明细
  1090. </Button>
  1091. ) : (
  1092. ""
  1093. )} */}
  1094. </div>
  1095. <div className="patent-table">
  1096. <Spin spinning={this.state.loading}>
  1097. <Table
  1098. columns={this.state.columnsX}
  1099. dataSource={this.state.dataSourceX}
  1100. pagination={this.state.paginations}
  1101. onRowClick={this.tableRowClickX}
  1102. bordered
  1103. size="small"
  1104. />
  1105. </Spin>
  1106. </div>
  1107. </div>
  1108. </Spin>
  1109. </Form>
  1110. </TabPane>
  1111. {this.props.record && this.props.record.outsource == 1 ? (
  1112. <TabPane tab="外包审核信息" key="2">
  1113. <Spin spinning={this.state.loading}>
  1114. <div>
  1115. <div className="clearfix">
  1116. <FormItem
  1117. className="half-item"
  1118. {...formItemLayout}
  1119. label="外包公司"
  1120. >
  1121. <span>{this.state.companyName}</span>
  1122. </FormItem>
  1123. </div>
  1124. <div className="clearfix">
  1125. <FormItem
  1126. className="half-item"
  1127. {...formItemLayout}
  1128. label="单价(万元)"
  1129. >
  1130. <span>{this.state.unitPrice}</span>
  1131. </FormItem>
  1132. </div>
  1133. <div className="clearfix">
  1134. <FormItem
  1135. className="half-item"
  1136. {...formItemLayout}
  1137. label="数量(个)"
  1138. >
  1139. <span>{this.state.unitNumber}</span>
  1140. </FormItem>
  1141. </div>
  1142. <div className="clearfix">
  1143. <FormItem
  1144. className="half-item"
  1145. {...formItemLayout}
  1146. label="总金额(万元)"
  1147. >
  1148. <span>{this.state.amount}</span>
  1149. </FormItem>
  1150. </div>
  1151. <div className="clearfix">
  1152. <FormItem
  1153. className="half-item"
  1154. {...formItemLayout}
  1155. label="备注"
  1156. >
  1157. <span>{this.state.outsourceRemarks}</span>
  1158. </FormItem>
  1159. </div>
  1160. <div className="clearfix">
  1161. <FormItem
  1162. labelCol={{ span: 4 }}
  1163. wrapperCol={{ span: 18 }}
  1164. label="合同/协议扫描件"
  1165. >
  1166. <Upload
  1167. className="demandDetailShow-upload"
  1168. listType="picture-card"
  1169. fileList={this.state.pictureUrl}
  1170. onPreview={(file) => {
  1171. this.setState({
  1172. previewImage: file.url || file.thumbUrl,
  1173. previewVisible: true,
  1174. });
  1175. }}
  1176. ></Upload>
  1177. <Modal
  1178. maskClosable={false}
  1179. footer={null}
  1180. visible={this.state.previewVisible}
  1181. onCancel={() => {
  1182. this.setState({ previewVisible: false });
  1183. }}
  1184. >
  1185. <img
  1186. alt=""
  1187. style={{ width: "100%" }}
  1188. src={this.state.previewImage || ""}
  1189. />
  1190. </Modal>
  1191. </FormItem>
  1192. </div>
  1193. </div>
  1194. <div className="clearfix">
  1195. <hr className="division" />
  1196. <div
  1197. className="clearfix"
  1198. style={{
  1199. display: this.state.refundStatus == 0 ? "none" : "block",
  1200. }}
  1201. >
  1202. <FormItem
  1203. className="half-item"
  1204. {...formItemLayout}
  1205. label="审核意见"
  1206. >
  1207. <span>{this.state.remarks}</span>
  1208. </FormItem>
  1209. </div>
  1210. <div className="clearfix">
  1211. <FormItem
  1212. className="half-item"
  1213. {...formItemLayout}
  1214. label="审核结果"
  1215. >
  1216. <span>{getRefundStatus(this.state.refundStatus)}</span>
  1217. </FormItem>
  1218. </div>
  1219. <div
  1220. className="clearfix"
  1221. style={{
  1222. display: this.state.refundStatus == 0 ? "none" : "block",
  1223. }}
  1224. >
  1225. <FormItem
  1226. className="half-item"
  1227. {...formItemLayout}
  1228. label="审核时间"
  1229. >
  1230. <span>{this.state.auditTimes}</span>
  1231. </FormItem>
  1232. </div>
  1233. </div>
  1234. </Spin>
  1235. </TabPane>
  1236. ) : (
  1237. ""
  1238. )}
  1239. {this.props.record && this.props.record.outsource == 1 ? (
  1240. <TabPane tab="外包公司信息" key="3">
  1241. <div className="patent-table" style={{ marginTop: "10px" }}>
  1242. <Spin spinning={this.state.loading}>
  1243. <Table
  1244. columns={this.state.companyColumns}
  1245. dataSource={this.state.companys}
  1246. scroll={{ x: 300, y: 0 }}
  1247. bordered
  1248. size="small"
  1249. expandedRowRender={(record) => {
  1250. return <p>{record.remarks}</p>;
  1251. }}
  1252. pagination={false}
  1253. />
  1254. </Spin>
  1255. </div>
  1256. </TabPane>
  1257. ) : (
  1258. ""
  1259. )}
  1260. </Tabs>
  1261. <Modal
  1262. width="800px"
  1263. visible={this.state.visibleA}
  1264. onCancel={this.visitCancelA}
  1265. title="操作日志"
  1266. footer=""
  1267. className="admin-desc-content"
  1268. >
  1269. <div className="patent-table patent-table-center">
  1270. <Spin spinning={this.state.loading}>
  1271. <Table
  1272. columns={this.state.columnsA}
  1273. dataSource={this.state.dataSourceA}
  1274. pagination={false}
  1275. bordered
  1276. size="small"
  1277. />
  1278. </Spin>
  1279. </div>
  1280. </Modal>
  1281. </Modal>
  1282. );
  1283. }
  1284. });
  1285. export default project;