orderDetail.js 25 KB

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