orderDetail.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849
  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 && !record.money) {
  83. return <span>{record.appropriationRatio}(拨款比例)</span>;
  84. } else if (record.appropriationRatio && record.money) {
  85. return (
  86. <span>
  87. {text}(比例:{record.appropriationRatio})
  88. </span>
  89. );
  90. } else {
  91. return <span>{text}</span>;
  92. }
  93. }
  94. }
  95. },
  96. {
  97. title: "服务年限",
  98. dataIndex: "startDate",
  99. key: "startDate",
  100. render: (text, record) => {
  101. if (record.dunTypeName) {
  102. return <span>{text}</span>;
  103. }
  104. }
  105. },
  106. {
  107. title: "催款状态",
  108. dataIndex: "status",
  109. key: "status",
  110. render: text => {
  111. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  112. }
  113. }
  114. ],
  115. ContactsLists: [
  116. {
  117. title: "催款科目",
  118. dataIndex: "dunSubject",
  119. key: "dunSubject",
  120. render: text => {
  121. return getjiedian(text);
  122. }
  123. },
  124. {
  125. title: "金额(万元)",
  126. dataIndex: "money",
  127. key: "money"
  128. },
  129. {
  130. title: "催款状态",
  131. dataIndex: "dunStatus",
  132. key: "dunStatus",
  133. render: text => {
  134. return getCuikuan(text);
  135. }
  136. }
  137. ],
  138. resVisible: false,
  139. columnsX: [
  140. {
  141. title: "业务项目名称",
  142. dataIndex: "commodityName",
  143. key: "commodityName",
  144. render: (text, record) => {
  145. return text + "-" + record.id
  146. }
  147. },
  148. {
  149. title: "项目类别",
  150. dataIndex: "cname",
  151. key: "cname"
  152. },
  153. {
  154. title: "项目数量",
  155. dataIndex: "commodityQuantity",
  156. key: "commodityQuantity",
  157. render: (text, record) => {
  158. if (record.splitStatus == 1) {
  159. return (
  160. <span>
  161. {text}{" "}
  162. <Tag
  163. color="#108ee9"
  164. onClick={e => {
  165. e.stopPropagation();
  166. this.showRes(record);
  167. }}
  168. >
  169. 已拆
  170. </Tag>
  171. </span>
  172. );
  173. } else {
  174. return text;
  175. }
  176. }
  177. },
  178. {
  179. title: "金额(万元)",
  180. dataIndex: "commodityPrice",
  181. key: "commodityPrice",
  182. render: text => {
  183. return this.props.processState === 2 ? "***" : text;
  184. }
  185. },
  186. {
  187. title: "负责人",
  188. dataIndex: "contacts",
  189. key: "contacts"
  190. },
  191. {
  192. title: "负责人电话",
  193. dataIndex: "contactsMobile",
  194. key: "contactsMobile"
  195. },
  196. {
  197. title: "项目状态",
  198. dataIndex: "projectStatus",
  199. key: "projectStatus",
  200. render: text => {
  201. return getProjectName(text);
  202. }
  203. },
  204. {
  205. title: "主要项目",
  206. dataIndex: "main",
  207. key: "main",
  208. render: text => {
  209. return text ? "是" : "否";
  210. }
  211. },
  212. {
  213. title: "项目说明",
  214. dataIndex: "taskComment",
  215. key: "taskComment",
  216. render: text => {
  217. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  218. }
  219. }
  220. ],
  221. rotateDeg: 0
  222. };
  223. this.tableRowClickX = this.tableRowClickX.bind(this);
  224. this.nextCancel = this.nextCancel.bind(this);
  225. this.rotate = this.rotate.bind(this);
  226. this.downImg = this.downImg.bind(this);
  227. this.upImg = this.upImg.bind(this);
  228. this.downImgs = this.downImgs.bind(this);
  229. this.upImgs = this.upImgs.bind(this);
  230. this.showRes = this.showRes.bind(this);
  231. this.resCancel = this.resCancel.bind(this);
  232. }
  233. rotate() {
  234. let rotateDeg = this.state.rotateDeg + 90;
  235. this.setState({
  236. rotateDeg
  237. });
  238. }
  239. //项目详情关闭
  240. nextCancel() {
  241. this.setState({
  242. visible: false
  243. });
  244. }
  245. //点击打卡项目详情
  246. tableRowClickX(record) {
  247. this.setState({
  248. dataInfor: record,
  249. jid: record.id, //项目ID
  250. kid: record.commodityId, //商品ID
  251. commodityName: record.commodityName, //金额
  252. commodityPrice: record.commodityPrice, //金额
  253. commodityQuantity: record.commodityQuantity, //数量
  254. taskComment: record.taskComment, //备注
  255. main: record.main.toString(), //是否为主要
  256. visible: true,
  257. addState: 0
  258. });
  259. }
  260. downImg() {
  261. const data = this.props.orderData;
  262. let num = 0;
  263. for (
  264. let i = 0;
  265. i <
  266. splitUrl(
  267. data.contractPictureUrl,
  268. ",",
  269. globalConfig.avatarHost + "/upload"
  270. ).length;
  271. i++
  272. ) {
  273. if (
  274. splitUrl(
  275. data.contractPictureUrl,
  276. ",",
  277. globalConfig.avatarHost + "/upload"
  278. )[i].url == this.state.previewImage
  279. ) {
  280. num = i;
  281. }
  282. }
  283. if (
  284. num ==
  285. splitUrl(
  286. data.contractPictureUrl,
  287. ",",
  288. globalConfig.avatarHost + "/upload"
  289. ).length -
  290. 1
  291. ) {
  292. return message.warning("已经是最后一张了哦");
  293. }
  294. this.state.previewImage = splitUrl(
  295. data.contractPictureUrl,
  296. ",",
  297. globalConfig.avatarHost + "/upload"
  298. )[num + 1].url;
  299. this.setState({
  300. previewImage: this.state.previewImage,
  301. rotateDeg: 0
  302. });
  303. }
  304. upImg() {
  305. const data = this.props.orderData;
  306. let num = 0;
  307. for (
  308. let i = 0;
  309. i <
  310. splitUrl(
  311. data.contractPictureUrl,
  312. ",",
  313. globalConfig.avatarHost + "/upload"
  314. ).length;
  315. i++
  316. ) {
  317. if (
  318. splitUrl(
  319. data.contractPictureUrl,
  320. ",",
  321. globalConfig.avatarHost + "/upload"
  322. )[i].url == this.state.previewImage
  323. ) {
  324. num = i;
  325. }
  326. }
  327. if (num == 0) {
  328. return message.warning("已经是第一张了哦");
  329. }
  330. this.state.previewImage = splitUrl(
  331. data.contractPictureUrl,
  332. ",",
  333. globalConfig.avatarHost + "/upload"
  334. )[num - 1].url;
  335. this.setState({
  336. previewImage: this.state.previewImage,
  337. rotateDeg: 0
  338. });
  339. }
  340. downImgs() {
  341. const data = this.props.orderData;
  342. let num = 0;
  343. for (
  344. let i = 0;
  345. i <
  346. splitUrl(
  347. data.rep,
  348. ",",
  349. globalConfig.avatarHost + "/upload"
  350. ).length;
  351. i++
  352. ) {
  353. if (
  354. splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload")[i]
  355. .url == this.state.previewImage
  356. ) {
  357. num = i;
  358. }
  359. }
  360. if (
  361. num ==
  362. splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload")
  363. .length -
  364. 1
  365. ) {
  366. return message.warning("已经是最后一张了哦");
  367. }
  368. this.state.previewImage = splitUrl(
  369. data.agreementUrl,
  370. ",",
  371. globalConfig.avatarHost + "/upload"
  372. )[num + 1].url;
  373. this.setState({
  374. previewImage: this.state.previewImage,
  375. rotateDeg: 0
  376. });
  377. }
  378. upImgs() {
  379. const data = this.props.orderData;
  380. let num = 0;
  381. for (
  382. let i = 0;
  383. i <
  384. splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload")
  385. .length;
  386. i++
  387. ) {
  388. if (
  389. splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload")[i]
  390. .url == this.state.previewImage
  391. ) {
  392. num = i;
  393. }
  394. }
  395. if (num == 0) {
  396. return message.warning("已经是第一张了哦");
  397. }
  398. this.state.previewImage = splitUrl(
  399. data.agreementUrl,
  400. ",",
  401. globalConfig.avatarHost + "/upload"
  402. )[num - 1].url;
  403. this.setState({
  404. previewImage: this.state.previewImage,
  405. rotateDeg: 0
  406. });
  407. }
  408. // 拆分详细
  409. showRes(record) {
  410. this.setState({
  411. resVisible: true,
  412. resRecord: record
  413. })
  414. }
  415. resCancel() {
  416. this.setState({
  417. resVisible: false
  418. })
  419. }
  420. render() {
  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. {/*<Upload*/}
  534. {/* className="demandDetailShow-upload"*/}
  535. {/* listType="picture-card"*/}
  536. {/* fileList={*/}
  537. {/* data.contractPictureUrl*/}
  538. {/* ? splitUrl(*/}
  539. {/* data.contractPictureUrl,*/}
  540. {/* ",",*/}
  541. {/* globalConfig.avatarHost + "/upload"*/}
  542. {/* )*/}
  543. {/* : []*/}
  544. {/* }*/}
  545. {/* onPreview={(file) => {*/}
  546. {/* this.setState({*/}
  547. {/* previewImage: file.url || file.thumbUrl,*/}
  548. {/* previewVisible: true,*/}
  549. {/* });*/}
  550. {/* }}*/}
  551. {/*/>*/}
  552. {this.props.orderData && data.contractPictureUrl ?
  553. <ImgList
  554. domId={'orderDetail1'}
  555. fileList={
  556. data.contractPictureUrl ? splitUrl(data.contractPictureUrl, ",", globalConfig.avatarHost + "/upload") : []
  557. }
  558. /> :
  559. <div/>
  560. }
  561. <Modal
  562. maskClosable={false}
  563. footer={null}
  564. width={"50%"}
  565. visible={this.state.previewVisible}
  566. onCancel={() => {
  567. this.state.rotateDeg = 0;
  568. this.setState({
  569. previewVisible: false,
  570. rotateDeg: this.state.rotateDeg,
  571. });
  572. }}
  573. >
  574. <img
  575. alt=""
  576. style={{
  577. width: "100%",
  578. transform: `rotate(${this.state.rotateDeg}deg)`,
  579. }}
  580. src={this.state.previewImage || ""}
  581. />
  582. <Button
  583. onClick={this.rotate}
  584. style={{
  585. position: "relative",
  586. left: "50%",
  587. transform: "translateX(-50%)",
  588. }}
  589. >
  590. 旋转
  591. </Button>
  592. <Button
  593. onClick={this.upImg}
  594. style={{
  595. position: "absolute",
  596. left: -81,
  597. top: "50%",
  598. transform: "translateY(-50%)",
  599. }}
  600. >
  601. 上一张
  602. </Button>
  603. <Button
  604. onClick={this.downImg}
  605. style={{
  606. position: "absolute",
  607. right: -81,
  608. top: "50%",
  609. transform: "translateY(-50%)",
  610. }}
  611. >
  612. 下一张
  613. </Button>
  614. </Modal>
  615. <Button
  616. style={{
  617. float: "right",
  618. marginRight: "140px",
  619. marginTop: "20px",
  620. }}
  621. onClick={() => {
  622. this.props.getOrderLog(data.orderNo);
  623. }}
  624. >
  625. 查看订单日志
  626. </Button>
  627. </FormItem>
  628. <FormItem
  629. labelCol={{ span: 4 }}
  630. wrapperCol={{ span: 18 }}
  631. label="补充协议"
  632. >
  633. {/*<Upload*/}
  634. {/* className="demandDetailShow-upload"*/}
  635. {/* listType="picture-card"*/}
  636. {/* fileList={*/}
  637. {/* data.agreementUrl*/}
  638. {/* ? splitUrl(*/}
  639. {/* data.agreementUrl,*/}
  640. {/* ",",*/}
  641. {/* globalConfig.avatarHost + "/upload"*/}
  642. {/* )*/}
  643. {/* : []*/}
  644. {/* }*/}
  645. {/* onPreview={(file) => {*/}
  646. {/* this.setState({*/}
  647. {/* previewImage: file.url || file.thumbUrl,*/}
  648. {/* previewVisibles: true,*/}
  649. {/* });*/}
  650. {/* }}*/}
  651. {/*/>*/}
  652. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  653. <ImgList
  654. domId={'orderDetail2'}
  655. fileList={
  656. data.agreementUrl ? splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload") : []
  657. }/>
  658. </div>
  659. <Modal
  660. maskClosable={false}
  661. footer={null}
  662. width={"50%"}
  663. visible={this.state.previewVisibles}
  664. onCancel={() => {
  665. this.state.rotateDeg = 0;
  666. this.setState({
  667. previewVisibles: false,
  668. rotateDeg: this.state.rotateDeg,
  669. });
  670. }}
  671. >
  672. <img
  673. alt=""
  674. style={{
  675. width: "100%",
  676. transform: `rotate(${this.state.rotateDeg}deg)`,
  677. }}
  678. src={this.state.previewImage || ""}
  679. />
  680. <Button
  681. onClick={this.rotate}
  682. style={{
  683. position: "relative",
  684. left: "50%",
  685. transform: "translateX(-50%)",
  686. }}
  687. >
  688. 旋转
  689. </Button>
  690. <Button
  691. onClick={this.upImgs}
  692. style={{
  693. position: "absolute",
  694. left: -81,
  695. top: "50%",
  696. transform: "translateY(-50%)",
  697. }}
  698. >
  699. 上一张
  700. </Button>
  701. <Button
  702. onClick={this.downImgs}
  703. style={{
  704. position: "absolute",
  705. right: -81,
  706. top: "50%",
  707. transform: "translateY(-50%)",
  708. }}
  709. >
  710. 下一张
  711. </Button>
  712. </Modal>
  713. </FormItem>
  714. </div>
  715. <div className="clearfix">
  716. <FormItem
  717. className="half-item"
  718. {...formItemLayout}
  719. label="订单负责人"
  720. >
  721. <span>{data.salesmanName}</span>
  722. </FormItem>
  723. <FormItem
  724. className="half-item"
  725. {...formItemLayout}
  726. label="订单负责人电话"
  727. >
  728. <span>{data.salesmanMobile}</span>
  729. </FormItem>
  730. </div>
  731. <div className="clearfix">
  732. <FormItem
  733. className="half-item"
  734. {...formItemLayout}
  735. label="当前财务负责人"
  736. >
  737. <span>{data.nowFinance}</span>
  738. </FormItem>
  739. <FormItem
  740. className="half-item"
  741. {...formItemLayout}
  742. label="当前财务负责人电话"
  743. >
  744. <span>{data.nowFinanceMobile}</span>
  745. </FormItem>
  746. </div>
  747. <div className="clearfix">
  748. <FormItem
  749. className="half-item"
  750. {...formItemLayout}
  751. style={{ opacity: ".5" }}
  752. label="原订单负责人"
  753. >
  754. <span>{data.oldSalesmanName}</span>
  755. </FormItem>
  756. <FormItem
  757. className="half-item"
  758. {...formItemLayout}
  759. style={{ opacity: ".5" }}
  760. label="原订单负责人电话"
  761. >
  762. <span>{data.oldSalesmanMobile}</span>
  763. </FormItem>
  764. </div>
  765. <div className="clearfix">
  766. <FormItem
  767. className="half-item"
  768. style={{ opacity: ".5" }}
  769. {...formItemLayout}
  770. label="实际财务操作人"
  771. >
  772. <span>{data.financeName}</span>
  773. </FormItem>
  774. <FormItem
  775. className="half-item"
  776. {...formItemLayout}
  777. style={{ opacity: ".5" }}
  778. label="实际财务操作人电话"
  779. >
  780. <span>{data.financeMobile}</span>
  781. </FormItem>
  782. </div>
  783. <div>
  784. <span style={{ marginLeft: "50px", fontSize: "20px" }}>项目业务</span>
  785. </div>
  786. <div className="patent-table">
  787. <Table
  788. columns={this.state.columnsX}
  789. pagination={false}
  790. dataSource={this.props.dataSourceX}
  791. onRowClick={this.tableRowClickX}
  792. style={{
  793. cursor: 'pointer',
  794. }}
  795. bordered
  796. size="small"
  797. />
  798. </div>
  799. <div>
  800. <span style={{ marginLeft: "50px", fontSize: "20px" }}>催款节点</span>
  801. <span
  802. style={{
  803. display: propsList.length ? "none" : "inline-block",
  804. marginLeft: 10,
  805. color: "red",
  806. }}
  807. >
  808. 金额总计(万元): {this.props.totalCui}
  809. </span>
  810. </div>
  811. <div className="clearfix">
  812. <Form layout="horizontal" id="demand-form">
  813. <Table
  814. pagination={false}
  815. bordered
  816. size="small"
  817. // columns={this.state.ContactsLists}
  818. columns={
  819. propsList.length
  820. ? this.state.ContactsLists
  821. : this.state.newContactsLists
  822. }
  823. dataSource={
  824. propsList.length
  825. ? this.props.contactList
  826. : this.props.contactListNew
  827. }
  828. />
  829. <Col span={24} offset={9} style={{ marginTop: "15px" }}></Col>
  830. </Form>
  831. </div>
  832. {this.state.visible && <ProjectDetailsReadOnly
  833. infor={this.state.dataInfor}
  834. visible={this.state.visible}
  835. onCancel={this.nextCancel}
  836. />}
  837. </div>
  838. );
  839. }
  840. }
  841. export default OrderDetail;