orderDetail.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. import React, { Component } from "react";
  2. import { Form, Upload, Modal, Button, Table, Col, message, Tag } from "antd";
  3. import {
  4. splitUrl,
  5. getProcessStatus,
  6. getjiedian,
  7. getLiquidationStatus,
  8. getboutique,
  9. getCuikuan,
  10. getApprovedState,
  11. getProjectStatus
  12. } from "@/tools.js";
  13. import img from "./img.png"
  14. import ResolutionDetail from "@/resolutionDetail";
  15. import ImgList from "../../../../common/imgList";
  16. import { getProjectName } from "../../../../tools";
  17. import { 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 <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span>{"-" + record.id}</span>
  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>{(["私有客户-", "签单客户-"][data.userType] || " ") +
  455. (salesList[data.salesType] || "")}</span>
  456. </FormItem>
  457. <FormItem
  458. className="half-item"
  459. {...formItemLayout}
  460. label="合同签订时间"
  461. >
  462. <span>{data.signDate}</span>
  463. </FormItem>
  464. <FormItem className="half-item" {...formItemLayout} label="流程状态">
  465. <span>{getProcessStatus(data.processStatus)}</span>
  466. </FormItem>
  467. <FormItem className="half-item" {...formItemLayout} label="结算状态">
  468. <span>{getLiquidationStatus(data.liquidationStatus)}</span>
  469. </FormItem>
  470. <FormItem className="half-item" {...formItemLayout} label="企业联系人">
  471. {/* <span>{data.contacts}</span> */}
  472. <span>{this.props.isCaiWu ? "***" : data.contacts}</span>
  473. </FormItem>
  474. <FormItem className="half-item" {...formItemLayout} label="联系人电话">
  475. {/* <span>{data.contactMobile}</span> */}
  476. <span>{this.props.isCaiWu ? "***" : data.contactMobile}</span>
  477. </FormItem>
  478. <FormItem className="half-item" {...formItemLayout} label="企业法人">
  479. <span>{this.props.isCaiWu ? "***" : data.legalPerson}</span>
  480. </FormItem>
  481. <FormItem className="half-item" {...formItemLayout} label="法人电话">
  482. {/* <span>{data.legalPersonTel}</span> */}
  483. <span>{this.props.isCaiWu ? "***" : data.legalPersonTel}</span>
  484. </FormItem>
  485. <FormItem
  486. className="half-item"
  487. {...formItemLayout}
  488. label="签单金额(万元)"
  489. >
  490. <span>
  491. {this.props.processState === 2 ? "***" : data.totalAmount}
  492. </span>
  493. </FormItem>
  494. <FormItem
  495. className="half-item"
  496. {...formItemLayout}
  497. label="首付金额(万元)"
  498. >
  499. <span>
  500. {this.props.processState === 2 ? "***" : data.firstAmount}
  501. </span>
  502. </FormItem>
  503. <FormItem className="half-item" {...formItemLayout} label="特批立项">
  504. <span>{getApprovedState(data.approval)}</span>
  505. </FormItem>
  506. <FormItem
  507. className="half-item"
  508. {...formItemLayout}
  509. label="已收款项(万元)"
  510. >
  511. <span>
  512. {this.props.processState === 2 ? "***" : data.settlementAmount}
  513. </span>
  514. </FormItem>
  515. <FormItem className="half-item" {...formItemLayout} label="订单部门">
  516. <span>{data.depName}</span>
  517. </FormItem>
  518. <FormItem className="half-item" {...formItemLayout} label="是否外包">
  519. {data.outsource == 0 ? "否" : "是"}
  520. </FormItem>
  521. <div className="clearfix">
  522. <FormItem
  523. labelCol={{ span: 4 }}
  524. wrapperCol={{ span: 16 }}
  525. label="订单留言"
  526. >
  527. <p style={{ width: 500, wordWrap: "break-word" }}>
  528. {data.orderRemarks}
  529. </p>
  530. </FormItem>
  531. </div>
  532. <div className="clearfix">
  533. <FormItem
  534. labelCol={{ span: 4 }}
  535. wrapperCol={{ span: 18 }}
  536. label="合同扫描件"
  537. >
  538. {this.props.orderData && data.contractPictureUrl ?
  539. <ImgList
  540. domId={this.props.domId ? this.props.domId : 'orderDetail1'}
  541. fileList={
  542. data.contractPictureUrl ? splitUrl(data.contractPictureUrl, ",", globalConfig.avatarHost + "/upload") : []
  543. }
  544. /> :
  545. <div />
  546. }
  547. <Modal
  548. maskClosable={false}
  549. footer={null}
  550. width={"50%"}
  551. visible={this.state.previewVisible}
  552. onCancel={() => {
  553. this.state.rotateDeg = 0;
  554. this.setState({
  555. previewVisible: false,
  556. rotateDeg: this.state.rotateDeg,
  557. });
  558. }}
  559. >
  560. <img
  561. alt=""
  562. style={{
  563. width: "100%",
  564. transform: `rotate(${this.state.rotateDeg}deg)`,
  565. }}
  566. src={this.state.previewImage || ""}
  567. />
  568. <Button
  569. onClick={this.rotate}
  570. style={{
  571. position: "relative",
  572. left: "50%",
  573. transform: "translateX(-50%)",
  574. }}
  575. >
  576. 旋转
  577. </Button>
  578. <Button
  579. onClick={this.upImg}
  580. style={{
  581. position: "absolute",
  582. left: -81,
  583. top: "50%",
  584. transform: "translateY(-50%)",
  585. }}
  586. >
  587. 上一张
  588. </Button>
  589. <Button
  590. onClick={this.downImg}
  591. style={{
  592. position: "absolute",
  593. right: -81,
  594. top: "50%",
  595. transform: "translateY(-50%)",
  596. }}
  597. >
  598. 下一张
  599. </Button>
  600. </Modal>
  601. <Button
  602. style={{
  603. float: "right",
  604. marginRight: "140px",
  605. marginTop: "20px",
  606. }}
  607. onClick={() => {
  608. this.props.getOrderLog(data.orderNo);
  609. }}
  610. >
  611. 查看订单日志
  612. </Button>
  613. </FormItem>
  614. <FormItem
  615. labelCol={{ span: 4 }}
  616. wrapperCol={{ span: 18 }}
  617. label="补充协议"
  618. >
  619. {/*<Upload*/}
  620. {/* className="demandDetailShow-upload"*/}
  621. {/* listType="picture-card"*/}
  622. {/* fileList={*/}
  623. {/* data.agreementUrl*/}
  624. {/* ? splitUrl(*/}
  625. {/* data.agreementUrl,*/}
  626. {/* ",",*/}
  627. {/* globalConfig.avatarHost + "/upload"*/}
  628. {/* )*/}
  629. {/* : []*/}
  630. {/* }*/}
  631. {/* onPreview={(file) => {*/}
  632. {/* this.setState({*/}
  633. {/* previewImage: file.url || file.thumbUrl,*/}
  634. {/* previewVisibles: true,*/}
  635. {/* });*/}
  636. {/* }}*/}
  637. {/*/>*/}
  638. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  639. <ImgList
  640. domId={this.props.domId ? this.props.domId + '1' : 'orderDetail2'}
  641. fileList={
  642. data.agreementUrl ? splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload") : []
  643. } />
  644. </div>
  645. <Modal
  646. maskClosable={false}
  647. footer={null}
  648. width={"50%"}
  649. visible={this.state.previewVisibles}
  650. onCancel={() => {
  651. this.state.rotateDeg = 0;
  652. this.setState({
  653. previewVisibles: false,
  654. rotateDeg: this.state.rotateDeg,
  655. });
  656. }}
  657. >
  658. <img
  659. alt=""
  660. style={{
  661. width: "100%",
  662. transform: `rotate(${this.state.rotateDeg}deg)`,
  663. }}
  664. src={this.state.previewImage || ""}
  665. />
  666. <Button
  667. onClick={this.rotate}
  668. style={{
  669. position: "relative",
  670. left: "50%",
  671. transform: "translateX(-50%)",
  672. }}
  673. >
  674. 旋转
  675. </Button>
  676. <Button
  677. onClick={this.upImgs}
  678. style={{
  679. position: "absolute",
  680. left: -81,
  681. top: "50%",
  682. transform: "translateY(-50%)",
  683. }}
  684. >
  685. 上一张
  686. </Button>
  687. <Button
  688. onClick={this.downImgs}
  689. style={{
  690. position: "absolute",
  691. right: -81,
  692. top: "50%",
  693. transform: "translateY(-50%)",
  694. }}
  695. >
  696. 下一张
  697. </Button>
  698. </Modal>
  699. </FormItem>
  700. </div>
  701. <ContentUrl
  702. processStatus={1}
  703. domId={"orderContent"}
  704. contentUrl={data.serviceContent ? splitUrl(data.serviceContent, ",", globalConfig.avatarHost + "/upload") : []}
  705. imgId={"orderImg1x"}
  706. // getContentUrl = {this.getContentUrl}
  707. />
  708. <div className="clearfix">
  709. <FormItem
  710. className="half-item"
  711. {...formItemLayout}
  712. label="订单负责人"
  713. >
  714. <span>{data.salesmanName}</span>
  715. </FormItem>
  716. <FormItem
  717. className="half-item"
  718. {...formItemLayout}
  719. label="订单负责人电话"
  720. >
  721. <span>{data.salesmanMobile}</span>
  722. </FormItem>
  723. </div>
  724. <div className="clearfix">
  725. <FormItem
  726. className="half-item"
  727. {...formItemLayout}
  728. label="当前财务负责人"
  729. >
  730. <span>{data.nowFinance}</span>
  731. </FormItem>
  732. <FormItem
  733. className="half-item"
  734. {...formItemLayout}
  735. label="当前财务负责人电话"
  736. >
  737. <span>{data.nowFinanceMobile}</span>
  738. </FormItem>
  739. </div>
  740. <div className="clearfix">
  741. <FormItem
  742. className="half-item"
  743. {...formItemLayout}
  744. style={{ opacity: ".5" }}
  745. label="原订单负责人"
  746. >
  747. <span>{data.oldSalesmanName}</span>
  748. </FormItem>
  749. <FormItem
  750. className="half-item"
  751. {...formItemLayout}
  752. style={{ opacity: ".5" }}
  753. label="原订单负责人电话"
  754. >
  755. <span>{data.oldSalesmanMobile}</span>
  756. </FormItem>
  757. </div>
  758. <div className="clearfix">
  759. <FormItem
  760. className="half-item"
  761. style={{ opacity: ".5" }}
  762. {...formItemLayout}
  763. label="实际财务操作人"
  764. >
  765. <span>{data.financeName}</span>
  766. </FormItem>
  767. <FormItem
  768. className="half-item"
  769. {...formItemLayout}
  770. style={{ opacity: ".5" }}
  771. label="实际财务操作人电话"
  772. >
  773. <span>{data.financeMobile}</span>
  774. </FormItem>
  775. </div>
  776. {domId == 'yuan' ? "" : <OrderCoor orderNo={this.props.orderNo} />}
  777. <div>
  778. <span style={{ marginLeft: "50px", fontSize: "20px" }}>项目业务</span>
  779. </div>
  780. <div className="patent-table">
  781. <Table
  782. columns={this.state.columnsX}
  783. pagination={false}
  784. dataSource={this.props.dataSourceX}
  785. onRowClick={this.tableRowClickX}
  786. style={{
  787. cursor: 'pointer',
  788. }}
  789. bordered
  790. size="small"
  791. />
  792. </div>
  793. <div>
  794. <span style={{ marginLeft: "50px", fontSize: "20px" }}>催款节点</span>
  795. <span
  796. style={{
  797. display: propsList.length ? "none" : "inline-block",
  798. marginLeft: 10,
  799. color: "red",
  800. }}
  801. >
  802. 金额总计(万元): {this.props.totalCui}
  803. </span>
  804. </div>
  805. <div className="clearfix">
  806. <Form layout="horizontal" id="demand-form">
  807. <Table
  808. pagination={false}
  809. bordered
  810. size="small"
  811. // columns={this.state.ContactsLists}
  812. columns={
  813. propsList.length
  814. ? this.state.ContactsLists
  815. : this.state.newContactsLists
  816. }
  817. dataSource={
  818. propsList.length
  819. ? this.props.contactList
  820. : this.props.contactListNew
  821. }
  822. />
  823. <Col span={24} offset={9} style={{ marginTop: "15px" }}></Col>
  824. </Form>
  825. </div>
  826. {this.state.visible && <ProjectDetailsReadOnly
  827. infor={this.state.dataInfor}
  828. visible={this.state.visible}
  829. onCancel={this.nextCancel}
  830. />}
  831. </div>
  832. );
  833. }
  834. }
  835. export default OrderDetail;