orderDetail.js 24 KB

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