orderDetail.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824
  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. {this.props.orderData && data.contractPictureUrl ?
  528. <ImgList
  529. domId={this.props.domId ? this.props.domId : 'orderDetail1'}
  530. fileList={
  531. data.contractPictureUrl ? splitUrl(data.contractPictureUrl, ",", globalConfig.avatarHost + "/upload") : []
  532. }
  533. /> :
  534. <div/>
  535. }
  536. <Modal
  537. maskClosable={false}
  538. footer={null}
  539. width={"50%"}
  540. visible={this.state.previewVisible}
  541. onCancel={() => {
  542. this.state.rotateDeg = 0;
  543. this.setState({
  544. previewVisible: false,
  545. rotateDeg: this.state.rotateDeg,
  546. });
  547. }}
  548. >
  549. <img
  550. alt=""
  551. style={{
  552. width: "100%",
  553. transform: `rotate(${this.state.rotateDeg}deg)`,
  554. }}
  555. src={this.state.previewImage || ""}
  556. />
  557. <Button
  558. onClick={this.rotate}
  559. style={{
  560. position: "relative",
  561. left: "50%",
  562. transform: "translateX(-50%)",
  563. }}
  564. >
  565. 旋转
  566. </Button>
  567. <Button
  568. onClick={this.upImg}
  569. style={{
  570. position: "absolute",
  571. left: -81,
  572. top: "50%",
  573. transform: "translateY(-50%)",
  574. }}
  575. >
  576. 上一张
  577. </Button>
  578. <Button
  579. onClick={this.downImg}
  580. style={{
  581. position: "absolute",
  582. right: -81,
  583. top: "50%",
  584. transform: "translateY(-50%)",
  585. }}
  586. >
  587. 下一张
  588. </Button>
  589. </Modal>
  590. <Button
  591. style={{
  592. float: "right",
  593. marginRight: "140px",
  594. marginTop: "20px",
  595. }}
  596. onClick={() => {
  597. this.props.getOrderLog(data.orderNo);
  598. }}
  599. >
  600. 查看订单日志
  601. </Button>
  602. </FormItem>
  603. <FormItem
  604. labelCol={{ span: 4 }}
  605. wrapperCol={{ span: 18 }}
  606. label="补充协议"
  607. >
  608. {/*<Upload*/}
  609. {/* className="demandDetailShow-upload"*/}
  610. {/* listType="picture-card"*/}
  611. {/* fileList={*/}
  612. {/* data.agreementUrl*/}
  613. {/* ? splitUrl(*/}
  614. {/* data.agreementUrl,*/}
  615. {/* ",",*/}
  616. {/* globalConfig.avatarHost + "/upload"*/}
  617. {/* )*/}
  618. {/* : []*/}
  619. {/* }*/}
  620. {/* onPreview={(file) => {*/}
  621. {/* this.setState({*/}
  622. {/* previewImage: file.url || file.thumbUrl,*/}
  623. {/* previewVisibles: true,*/}
  624. {/* });*/}
  625. {/* }}*/}
  626. {/*/>*/}
  627. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  628. <ImgList
  629. domId={this.props.domId ? this.props.domId+'1' : 'orderDetail2'}
  630. fileList={
  631. data.agreementUrl ? splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload") : []
  632. }/>
  633. </div>
  634. <Modal
  635. maskClosable={false}
  636. footer={null}
  637. width={"50%"}
  638. visible={this.state.previewVisibles}
  639. onCancel={() => {
  640. this.state.rotateDeg = 0;
  641. this.setState({
  642. previewVisibles: false,
  643. rotateDeg: this.state.rotateDeg,
  644. });
  645. }}
  646. >
  647. <img
  648. alt=""
  649. style={{
  650. width: "100%",
  651. transform: `rotate(${this.state.rotateDeg}deg)`,
  652. }}
  653. src={this.state.previewImage || ""}
  654. />
  655. <Button
  656. onClick={this.rotate}
  657. style={{
  658. position: "relative",
  659. left: "50%",
  660. transform: "translateX(-50%)",
  661. }}
  662. >
  663. 旋转
  664. </Button>
  665. <Button
  666. onClick={this.upImgs}
  667. style={{
  668. position: "absolute",
  669. left: -81,
  670. top: "50%",
  671. transform: "translateY(-50%)",
  672. }}
  673. >
  674. 上一张
  675. </Button>
  676. <Button
  677. onClick={this.downImgs}
  678. style={{
  679. position: "absolute",
  680. right: -81,
  681. top: "50%",
  682. transform: "translateY(-50%)",
  683. }}
  684. >
  685. 下一张
  686. </Button>
  687. </Modal>
  688. </FormItem>
  689. </div>
  690. <div className="clearfix">
  691. <FormItem
  692. className="half-item"
  693. {...formItemLayout}
  694. label="订单负责人"
  695. >
  696. <span>{data.salesmanName}</span>
  697. </FormItem>
  698. <FormItem
  699. className="half-item"
  700. {...formItemLayout}
  701. label="订单负责人电话"
  702. >
  703. <span>{data.salesmanMobile}</span>
  704. </FormItem>
  705. </div>
  706. <div className="clearfix">
  707. <FormItem
  708. className="half-item"
  709. {...formItemLayout}
  710. label="当前财务负责人"
  711. >
  712. <span>{data.nowFinance}</span>
  713. </FormItem>
  714. <FormItem
  715. className="half-item"
  716. {...formItemLayout}
  717. label="当前财务负责人电话"
  718. >
  719. <span>{data.nowFinanceMobile}</span>
  720. </FormItem>
  721. </div>
  722. <div className="clearfix">
  723. <FormItem
  724. className="half-item"
  725. {...formItemLayout}
  726. style={{ opacity: ".5" }}
  727. label="原订单负责人"
  728. >
  729. <span>{data.oldSalesmanName}</span>
  730. </FormItem>
  731. <FormItem
  732. className="half-item"
  733. {...formItemLayout}
  734. style={{ opacity: ".5" }}
  735. label="原订单负责人电话"
  736. >
  737. <span>{data.oldSalesmanMobile}</span>
  738. </FormItem>
  739. </div>
  740. <div className="clearfix">
  741. <FormItem
  742. className="half-item"
  743. style={{ opacity: ".5" }}
  744. {...formItemLayout}
  745. label="实际财务操作人"
  746. >
  747. <span>{data.financeName}</span>
  748. </FormItem>
  749. <FormItem
  750. className="half-item"
  751. {...formItemLayout}
  752. style={{ opacity: ".5" }}
  753. label="实际财务操作人电话"
  754. >
  755. <span>{data.financeMobile}</span>
  756. </FormItem>
  757. </div>
  758. <div>
  759. <span style={{ marginLeft: "50px", fontSize: "20px" }}>项目业务</span>
  760. </div>
  761. <div className="patent-table">
  762. <Table
  763. columns={this.state.columnsX}
  764. pagination={false}
  765. dataSource={this.props.dataSourceX}
  766. onRowClick={this.tableRowClickX}
  767. style={{
  768. cursor: 'pointer',
  769. }}
  770. bordered
  771. size="small"
  772. />
  773. </div>
  774. <div>
  775. <span style={{ marginLeft: "50px", fontSize: "20px" }}>催款节点</span>
  776. <span
  777. style={{
  778. display: propsList.length ? "none" : "inline-block",
  779. marginLeft: 10,
  780. color: "red",
  781. }}
  782. >
  783. 金额总计(万元): {this.props.totalCui}
  784. </span>
  785. </div>
  786. <div className="clearfix">
  787. <Form layout="horizontal" id="demand-form">
  788. <Table
  789. pagination={false}
  790. bordered
  791. size="small"
  792. // columns={this.state.ContactsLists}
  793. columns={
  794. propsList.length
  795. ? this.state.ContactsLists
  796. : this.state.newContactsLists
  797. }
  798. dataSource={
  799. propsList.length
  800. ? this.props.contactList
  801. : this.props.contactListNew
  802. }
  803. />
  804. <Col span={24} offset={9} style={{ marginTop: "15px" }}></Col>
  805. </Form>
  806. </div>
  807. {this.state.visible && <ProjectDetailsReadOnly
  808. infor={this.state.dataInfor}
  809. visible={this.state.visible}
  810. onCancel={this.nextCancel}
  811. />}
  812. </div>
  813. );
  814. }
  815. }
  816. export default OrderDetail;