orderDetail.js 24 KB

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