orderDetail.js 25 KB

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