orderDetail.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. import React, { Component } from "react";
  2. import { Form, Upload, Modal, Button, Table, Col, message, Tag } from "antd";
  3. import {
  4. splitUrl,
  5. getProcessStatus,
  6. getjiedian,
  7. getLiquidationStatus,
  8. getboutique,
  9. getCuikuan,
  10. getApprovedState,
  11. getProjectStatus
  12. } from "@/tools.js";
  13. import img from "./img.png"
  14. import ResolutionDetail from "@/resolutionDetail";
  15. import ImgList from "../../../../common/imgList";
  16. import {getProjectName} from "../../../../tools";
  17. import ProjectDetailsReadOnly from "../../../../common/projectDetailsReadOnly";
  18. import EnterpriseNameChange from "../../../../common/enterpriseNameChange";
  19. const FormItem = Form.Item;
  20. class OrderDetail extends Component {
  21. constructor(props) {
  22. super(props);
  23. this.state = {
  24. dataInfor:{},
  25. newContactsLists: [
  26. {
  27. title: "项目名称",
  28. dataIndex: "commodityName",
  29. key: "commodityName",
  30. render: (text, record) => {
  31. return <span>{text + "-" + record.tid}</span>;
  32. }
  33. },
  34. {
  35. title: "项目分类",
  36. dataIndex: "projectType",
  37. key: "projectType",
  38. render: text => {
  39. let arr = this.props.dataSourceX || [];
  40. let str = "";
  41. for (let i = 0; i < arr.length; i++) {
  42. if (this.props.dataSourceX[i].sort == text) {
  43. str = this.props.dataSourceX[i].cname;
  44. return <span>{str}</span>;
  45. }
  46. }
  47. if(!str){
  48. return <span>未知</span>;
  49. }
  50. }
  51. },
  52. {
  53. title: "催款科目",
  54. dataIndex: "dunTypeName",
  55. key: "dunTypeName",
  56. render: (text, record) => {
  57. if(record.customizeName) {
  58. return text + record.customizeName;
  59. }
  60. return <span>{text}</span>;
  61. }
  62. },
  63. {
  64. title: "时间",
  65. dataIndex: "waitDay",
  66. key: "waitDay",
  67. render: (text, record) => {
  68. if (record.dunTypeName) {
  69. if (record.customizeTimes) {
  70. return record.customizeTimes;
  71. }
  72. return <span>{text}</span>;
  73. }
  74. }
  75. },
  76. {
  77. title: "金额(万元)",
  78. dataIndex: "money",
  79. key: "money",
  80. render: (text, record) => {
  81. if (record.dunTypeName) {
  82. if (record.appropriationRatio) {
  83. return <span>{record.appropriationRatio}(拨款比例)</span>;
  84. } else {
  85. return <span>{text}</span>;
  86. }
  87. }
  88. }
  89. },
  90. {
  91. title: "服务年限",
  92. dataIndex: "startDate",
  93. key: "startDate",
  94. render: (text, record) => {
  95. if (record.dunTypeName) {
  96. return <span>{text}</span>;
  97. }
  98. }
  99. },
  100. {
  101. title: "催款状态",
  102. dataIndex: "status",
  103. key: "status",
  104. render: text => {
  105. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  106. }
  107. }
  108. ],
  109. ContactsLists: [
  110. {
  111. title: "催款科目",
  112. dataIndex: "dunSubject",
  113. key: "dunSubject",
  114. render: text => {
  115. return getjiedian(text);
  116. }
  117. },
  118. {
  119. title: "金额(万元)",
  120. dataIndex: "money",
  121. key: "money"
  122. },
  123. {
  124. title: "催款状态",
  125. dataIndex: "dunStatus",
  126. key: "dunStatus",
  127. render: text => {
  128. return getCuikuan(text);
  129. }
  130. }
  131. ],
  132. resVisible: false,
  133. columnsX: [
  134. {
  135. title: "业务项目名称",
  136. dataIndex: "commodityName",
  137. key: "commodityName",
  138. render: (text, record) => {
  139. return text + "-" + record.id
  140. }
  141. },
  142. {
  143. title: "项目类别",
  144. dataIndex: "cname",
  145. key: "cname"
  146. },
  147. {
  148. title: "项目数量",
  149. dataIndex: "commodityQuantity",
  150. key: "commodityQuantity",
  151. render: (text, record) => {
  152. if (record.splitStatus == 1) {
  153. return (
  154. <span>
  155. {text}{" "}
  156. <Tag
  157. color="#108ee9"
  158. onClick={e => {
  159. e.stopPropagation();
  160. this.showRes(record);
  161. }}
  162. >
  163. 已拆
  164. </Tag>
  165. </span>
  166. );
  167. } else {
  168. return text;
  169. }
  170. }
  171. },
  172. {
  173. title: "金额(万元)",
  174. dataIndex: "commodityPrice",
  175. key: "commodityPrice",
  176. render: text => {
  177. return this.props.processState === 2 ? "***" : text;
  178. }
  179. },
  180. {
  181. title: "负责人",
  182. dataIndex: "contacts",
  183. key: "contacts"
  184. },
  185. {
  186. title: "负责人电话",
  187. dataIndex: "contactsMobile",
  188. key: "contactsMobile"
  189. },
  190. {
  191. title: "项目状态",
  192. dataIndex: "projectStatus",
  193. key: "projectStatus",
  194. render: text => {
  195. return getProjectName(text);
  196. }
  197. },
  198. {
  199. title: "主要项目",
  200. dataIndex: "main",
  201. key: "main",
  202. render: text => {
  203. return text ? "是" : "否";
  204. }
  205. },
  206. {
  207. title: "项目说明",
  208. dataIndex: "taskComment",
  209. key: "taskComment",
  210. render: text => {
  211. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  212. }
  213. }
  214. ],
  215. rotateDeg: 0
  216. };
  217. this.tableRowClickX = this.tableRowClickX.bind(this);
  218. this.nextCancel = this.nextCancel.bind(this);
  219. this.rotate = this.rotate.bind(this);
  220. this.downImg = this.downImg.bind(this);
  221. this.upImg = this.upImg.bind(this);
  222. this.downImgs = this.downImgs.bind(this);
  223. this.upImgs = this.upImgs.bind(this);
  224. this.showRes = this.showRes.bind(this);
  225. this.resCancel = this.resCancel.bind(this);
  226. }
  227. rotate() {
  228. let rotateDeg = this.state.rotateDeg + 90;
  229. this.setState({
  230. rotateDeg
  231. });
  232. }
  233. //项目详情关闭
  234. nextCancel() {
  235. this.setState({
  236. visible: false
  237. });
  238. }
  239. //点击打卡项目详情
  240. tableRowClickX(record) {
  241. this.setState({
  242. dataInfor: record,
  243. jid: record.id, //项目ID
  244. kid: record.commodityId, //商品ID
  245. commodityName: record.commodityName, //金额
  246. commodityPrice: record.commodityPrice, //金额
  247. commodityQuantity: record.commodityQuantity, //数量
  248. taskComment: record.taskComment, //备注
  249. main: record.main.toString(), //是否为主要
  250. visible: true,
  251. addState: 0
  252. });
  253. }
  254. downImg() {
  255. const data = this.props.orderData;
  256. let num = 0;
  257. for (
  258. let i = 0;
  259. i <
  260. splitUrl(
  261. data.contractPictureUrl,
  262. ",",
  263. globalConfig.avatarHost + "/upload"
  264. ).length;
  265. i++
  266. ) {
  267. if (
  268. splitUrl(
  269. data.contractPictureUrl,
  270. ",",
  271. globalConfig.avatarHost + "/upload"
  272. )[i].url == this.state.previewImage
  273. ) {
  274. num = i;
  275. }
  276. }
  277. if (
  278. num ==
  279. splitUrl(
  280. data.contractPictureUrl,
  281. ",",
  282. globalConfig.avatarHost + "/upload"
  283. ).length -
  284. 1
  285. ) {
  286. return message.warning("已经是最后一张了哦");
  287. }
  288. this.state.previewImage = splitUrl(
  289. data.contractPictureUrl,
  290. ",",
  291. globalConfig.avatarHost + "/upload"
  292. )[num + 1].url;
  293. this.setState({
  294. previewImage: this.state.previewImage,
  295. rotateDeg: 0
  296. });
  297. }
  298. upImg() {
  299. const data = this.props.orderData;
  300. let num = 0;
  301. for (
  302. let i = 0;
  303. i <
  304. splitUrl(
  305. data.contractPictureUrl,
  306. ",",
  307. globalConfig.avatarHost + "/upload"
  308. ).length;
  309. i++
  310. ) {
  311. if (
  312. splitUrl(
  313. data.contractPictureUrl,
  314. ",",
  315. globalConfig.avatarHost + "/upload"
  316. )[i].url == this.state.previewImage
  317. ) {
  318. num = i;
  319. }
  320. }
  321. if (num == 0) {
  322. return message.warning("已经是第一张了哦");
  323. }
  324. this.state.previewImage = splitUrl(
  325. data.contractPictureUrl,
  326. ",",
  327. globalConfig.avatarHost + "/upload"
  328. )[num - 1].url;
  329. this.setState({
  330. previewImage: this.state.previewImage,
  331. rotateDeg: 0
  332. });
  333. }
  334. downImgs() {
  335. const data = this.props.orderData;
  336. let num = 0;
  337. for (
  338. let i = 0;
  339. i <
  340. splitUrl(
  341. data.rep,
  342. ",",
  343. globalConfig.avatarHost + "/upload"
  344. ).length;
  345. i++
  346. ) {
  347. if (
  348. splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload")[i]
  349. .url == this.state.previewImage
  350. ) {
  351. num = i;
  352. }
  353. }
  354. if (
  355. num ==
  356. splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload")
  357. .length -
  358. 1
  359. ) {
  360. return message.warning("已经是最后一张了哦");
  361. }
  362. this.state.previewImage = splitUrl(
  363. data.agreementUrl,
  364. ",",
  365. globalConfig.avatarHost + "/upload"
  366. )[num + 1].url;
  367. this.setState({
  368. previewImage: this.state.previewImage,
  369. rotateDeg: 0
  370. });
  371. }
  372. upImgs() {
  373. const data = this.props.orderData;
  374. let num = 0;
  375. for (
  376. let i = 0;
  377. i <
  378. splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload")
  379. .length;
  380. i++
  381. ) {
  382. if (
  383. splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload")[i]
  384. .url == this.state.previewImage
  385. ) {
  386. num = i;
  387. }
  388. }
  389. if (num == 0) {
  390. return message.warning("已经是第一张了哦");
  391. }
  392. this.state.previewImage = splitUrl(
  393. data.agreementUrl,
  394. ",",
  395. globalConfig.avatarHost + "/upload"
  396. )[num - 1].url;
  397. this.setState({
  398. previewImage: this.state.previewImage,
  399. rotateDeg: 0
  400. });
  401. }
  402. // 拆分详细
  403. showRes(record) {
  404. this.setState({
  405. resVisible: true,
  406. resRecord: record
  407. })
  408. }
  409. resCancel() {
  410. this.setState({
  411. resVisible: false
  412. })
  413. }
  414. render() {
  415. const formItemLayout = {
  416. labelCol: { span: 8 },
  417. wrapperCol: { span: 14 }
  418. };
  419. const data = this.props.orderData;
  420. const propsList = this.props.contactList || [];
  421. return (
  422. <div className="clearfix">
  423. {this.state.resVisible ? (
  424. <ResolutionDetail
  425. cancel={this.resCancel}
  426. detail={this.state.resRecord}
  427. visible={this.state.resVisible}
  428. id={this.state.resRecord.orderNo}
  429. />
  430. ) : (
  431. ""
  432. )}
  433. <FormItem className="half-item" {...formItemLayout} label="订单编号">
  434. <span>{data.orderNo}</span>
  435. </FormItem>
  436. <FormItem className="half-item" {...formItemLayout} label="合同编号">
  437. <span>{data.contractNo}</span>
  438. </FormItem>
  439. <FormItem className="half-item" {...formItemLayout} label="客户名称">
  440. <span>{data.userName}</span>
  441. <EnterpriseNameChange
  442. type='journal'
  443. style={{ marginLeft: 10 }}
  444. enterpriseId={this.props.orderUid}/>
  445. </FormItem>
  446. <FormItem
  447. className="half-item"
  448. {...formItemLayout}
  449. label="合同签订时间"
  450. >
  451. <span>{data.signDate}</span>
  452. </FormItem>
  453. <FormItem className="half-item" {...formItemLayout} label="流程状态">
  454. <span>{getProcessStatus(data.processStatus)}</span>
  455. </FormItem>
  456. <FormItem className="half-item" {...formItemLayout} label="结算状态">
  457. <span>{getLiquidationStatus(data.liquidationStatus)}</span>
  458. </FormItem>
  459. <FormItem className="half-item" {...formItemLayout} label="企业联系人">
  460. {/* <span>{data.contacts}</span> */}
  461. <span>{this.props.isCaiWu ? "***" : data.contacts}</span>
  462. </FormItem>
  463. <FormItem className="half-item" {...formItemLayout} label="联系人电话">
  464. {/* <span>{data.contactMobile}</span> */}
  465. <span>{this.props.isCaiWu ? "***" : data.contactMobile}</span>
  466. </FormItem>
  467. <FormItem className="half-item" {...formItemLayout} label="企业法人">
  468. <span>{this.props.isCaiWu ? "***" : data.legalPerson}</span>
  469. </FormItem>
  470. <FormItem className="half-item" {...formItemLayout} label="法人电话">
  471. {/* <span>{data.legalPersonTel}</span> */}
  472. <span>{this.props.isCaiWu ? "***" : data.legalPersonTel}</span>
  473. </FormItem>
  474. <FormItem
  475. className="half-item"
  476. {...formItemLayout}
  477. label="签单金额(万元)"
  478. >
  479. <span>
  480. {this.props.processState === 2 ? "***" : data.totalAmount}
  481. </span>
  482. </FormItem>
  483. <FormItem
  484. className="half-item"
  485. {...formItemLayout}
  486. label="首付金额(万元)"
  487. >
  488. <span>
  489. {this.props.processState === 2 ? "***" : data.firstAmount}
  490. </span>
  491. </FormItem>
  492. <FormItem className="half-item" {...formItemLayout} label="特批立项">
  493. <span>{getApprovedState(data.approval)}</span>
  494. </FormItem>
  495. <FormItem
  496. className="half-item"
  497. {...formItemLayout}
  498. label="已收款项(万元)"
  499. >
  500. <span>
  501. {this.props.processState === 2 ? "***" : data.settlementAmount}
  502. </span>
  503. </FormItem>
  504. <FormItem className="half-item" {...formItemLayout} label="订单部门">
  505. <span>{data.depName}</span>
  506. </FormItem>
  507. <FormItem className="half-item" {...formItemLayout} label="是否外包">
  508. {data.outsource == 0 ? "否" : "是"}
  509. </FormItem>
  510. <div className="clearfix">
  511. <FormItem
  512. labelCol={{ span: 4 }}
  513. wrapperCol={{ span: 16 }}
  514. label="订单留言"
  515. >
  516. <p style={{ width: 500, wordWrap: "break-word" }}>
  517. {data.orderRemarks}
  518. </p>
  519. </FormItem>
  520. </div>
  521. <div className="clearfix">
  522. <FormItem
  523. labelCol={{ span: 4 }}
  524. wrapperCol={{ span: 18 }}
  525. label="合同扫描件"
  526. >
  527. {/*<Upload*/}
  528. {/* className="demandDetailShow-upload"*/}
  529. {/* listType="picture-card"*/}
  530. {/* fileList={*/}
  531. {/* data.contractPictureUrl*/}
  532. {/* ? splitUrl(*/}
  533. {/* data.contractPictureUrl,*/}
  534. {/* ",",*/}
  535. {/* globalConfig.avatarHost + "/upload"*/}
  536. {/* )*/}
  537. {/* : []*/}
  538. {/* }*/}
  539. {/* onPreview={(file) => {*/}
  540. {/* this.setState({*/}
  541. {/* previewImage: file.url || file.thumbUrl,*/}
  542. {/* previewVisible: true,*/}
  543. {/* });*/}
  544. {/* }}*/}
  545. {/*/>*/}
  546. {this.props.orderData && data.contractPictureUrl ?
  547. <ImgList
  548. domId={'orderDetail1'}
  549. fileList={
  550. data.contractPictureUrl ? splitUrl(data.contractPictureUrl, ",", globalConfig.avatarHost + "/upload") : []
  551. }
  552. /> :
  553. <div/>
  554. }
  555. <Modal
  556. maskClosable={false}
  557. footer={null}
  558. width={"50%"}
  559. visible={this.state.previewVisible}
  560. onCancel={() => {
  561. this.state.rotateDeg = 0;
  562. this.setState({
  563. previewVisible: false,
  564. rotateDeg: this.state.rotateDeg,
  565. });
  566. }}
  567. >
  568. <img
  569. alt=""
  570. style={{
  571. width: "100%",
  572. transform: `rotate(${this.state.rotateDeg}deg)`,
  573. }}
  574. src={this.state.previewImage || ""}
  575. />
  576. <Button
  577. onClick={this.rotate}
  578. style={{
  579. position: "relative",
  580. left: "50%",
  581. transform: "translateX(-50%)",
  582. }}
  583. >
  584. 旋转
  585. </Button>
  586. <Button
  587. onClick={this.upImg}
  588. style={{
  589. position: "absolute",
  590. left: -81,
  591. top: "50%",
  592. transform: "translateY(-50%)",
  593. }}
  594. >
  595. 上一张
  596. </Button>
  597. <Button
  598. onClick={this.downImg}
  599. style={{
  600. position: "absolute",
  601. right: -81,
  602. top: "50%",
  603. transform: "translateY(-50%)",
  604. }}
  605. >
  606. 下一张
  607. </Button>
  608. </Modal>
  609. <Button
  610. style={{
  611. float: "right",
  612. marginRight: "140px",
  613. marginTop: "20px",
  614. }}
  615. onClick={() => {
  616. this.props.getOrderLog(data.orderNo);
  617. }}
  618. >
  619. 查看订单日志
  620. </Button>
  621. </FormItem>
  622. <FormItem
  623. labelCol={{ span: 4 }}
  624. wrapperCol={{ span: 18 }}
  625. label="补充协议"
  626. >
  627. {/*<Upload*/}
  628. {/* className="demandDetailShow-upload"*/}
  629. {/* listType="picture-card"*/}
  630. {/* fileList={*/}
  631. {/* data.agreementUrl*/}
  632. {/* ? splitUrl(*/}
  633. {/* data.agreementUrl,*/}
  634. {/* ",",*/}
  635. {/* globalConfig.avatarHost + "/upload"*/}
  636. {/* )*/}
  637. {/* : []*/}
  638. {/* }*/}
  639. {/* onPreview={(file) => {*/}
  640. {/* this.setState({*/}
  641. {/* previewImage: file.url || file.thumbUrl,*/}
  642. {/* previewVisibles: true,*/}
  643. {/* });*/}
  644. {/* }}*/}
  645. {/*/>*/}
  646. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  647. <ImgList
  648. domId={'orderDetail2'}
  649. fileList={
  650. data.agreementUrl ? splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload") : []
  651. }/>
  652. </div>
  653. <Modal
  654. maskClosable={false}
  655. footer={null}
  656. width={"50%"}
  657. visible={this.state.previewVisibles}
  658. onCancel={() => {
  659. this.state.rotateDeg = 0;
  660. this.setState({
  661. previewVisibles: false,
  662. rotateDeg: this.state.rotateDeg,
  663. });
  664. }}
  665. >
  666. <img
  667. alt=""
  668. style={{
  669. width: "100%",
  670. transform: `rotate(${this.state.rotateDeg}deg)`,
  671. }}
  672. src={this.state.previewImage || ""}
  673. />
  674. <Button
  675. onClick={this.rotate}
  676. style={{
  677. position: "relative",
  678. left: "50%",
  679. transform: "translateX(-50%)",
  680. }}
  681. >
  682. 旋转
  683. </Button>
  684. <Button
  685. onClick={this.upImgs}
  686. style={{
  687. position: "absolute",
  688. left: -81,
  689. top: "50%",
  690. transform: "translateY(-50%)",
  691. }}
  692. >
  693. 上一张
  694. </Button>
  695. <Button
  696. onClick={this.downImgs}
  697. style={{
  698. position: "absolute",
  699. right: -81,
  700. top: "50%",
  701. transform: "translateY(-50%)",
  702. }}
  703. >
  704. 下一张
  705. </Button>
  706. </Modal>
  707. </FormItem>
  708. </div>
  709. <div className="clearfix">
  710. <FormItem
  711. className="half-item"
  712. {...formItemLayout}
  713. label="订单负责人"
  714. >
  715. <span>{data.salesmanName}</span>
  716. </FormItem>
  717. <FormItem
  718. className="half-item"
  719. {...formItemLayout}
  720. label="订单负责人电话"
  721. >
  722. <span>{data.salesmanMobile}</span>
  723. </FormItem>
  724. </div>
  725. <div className="clearfix">
  726. <FormItem
  727. className="half-item"
  728. {...formItemLayout}
  729. label="当前财务负责人"
  730. >
  731. <span>{data.nowFinance}</span>
  732. </FormItem>
  733. <FormItem
  734. className="half-item"
  735. {...formItemLayout}
  736. label="当前财务负责人电话"
  737. >
  738. <span>{data.nowFinanceMobile}</span>
  739. </FormItem>
  740. </div>
  741. <div className="clearfix">
  742. <FormItem
  743. className="half-item"
  744. {...formItemLayout}
  745. style={{ opacity: ".5" }}
  746. label="原订单负责人"
  747. >
  748. <span>{data.oldSalesmanName}</span>
  749. </FormItem>
  750. <FormItem
  751. className="half-item"
  752. {...formItemLayout}
  753. style={{ opacity: ".5" }}
  754. label="原订单负责人电话"
  755. >
  756. <span>{data.oldSalesmanMobile}</span>
  757. </FormItem>
  758. </div>
  759. <div className="clearfix">
  760. <FormItem
  761. className="half-item"
  762. style={{ opacity: ".5" }}
  763. {...formItemLayout}
  764. label="实际财务操作人"
  765. >
  766. <span>{data.financeName}</span>
  767. </FormItem>
  768. <FormItem
  769. className="half-item"
  770. {...formItemLayout}
  771. style={{ opacity: ".5" }}
  772. label="实际财务操作人电话"
  773. >
  774. <span>{data.financeMobile}</span>
  775. </FormItem>
  776. </div>
  777. <div>
  778. <span style={{ marginLeft: "50px", fontSize: "20px" }}>项目业务</span>
  779. </div>
  780. <div className="patent-table">
  781. <Table
  782. columns={this.state.columnsX}
  783. pagination={false}
  784. dataSource={this.props.dataSourceX}
  785. onRowClick={this.tableRowClickX}
  786. style={{
  787. cursor: 'pointer',
  788. }}
  789. bordered
  790. size="small"
  791. />
  792. </div>
  793. <div>
  794. <span style={{ marginLeft: "50px", fontSize: "20px" }}>催款节点</span>
  795. <span
  796. style={{
  797. display: propsList.length ? "none" : "inline-block",
  798. marginLeft: 10,
  799. color: "red",
  800. }}
  801. >
  802. 金额总计(万元): {this.props.totalCui}
  803. </span>
  804. </div>
  805. <div className="clearfix">
  806. <Form layout="horizontal" id="demand-form">
  807. <Table
  808. pagination={false}
  809. bordered
  810. size="small"
  811. // columns={this.state.ContactsLists}
  812. columns={
  813. propsList.length
  814. ? this.state.ContactsLists
  815. : this.state.newContactsLists
  816. }
  817. dataSource={
  818. propsList.length
  819. ? this.props.contactList
  820. : this.props.contactListNew
  821. }
  822. />
  823. <Col span={24} offset={9} style={{ marginTop: "15px" }}></Col>
  824. </Form>
  825. </div>
  826. {this.state.visible && <ProjectDetailsReadOnly
  827. infor={this.state.dataInfor}
  828. visible={this.state.visible}
  829. onCancel={this.nextCancel}
  830. />}
  831. </div>
  832. );
  833. }
  834. }
  835. export default OrderDetail;