project.jsx 41 KB

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