orderDetail.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895
  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).toFixed(2);
  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: "yearSum",
  215. key: "yearSum",
  216. render: (text, record) => {
  217. return (
  218. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  219. );
  220. }
  221. },
  222. {
  223. title: "年限",
  224. dataIndex: "serviceLife",
  225. key: "serviceLife",
  226. render: (text, record) => {
  227. return (
  228. !!text && JSON.parse(text).map(item =>
  229. <div>{item}</div>
  230. )
  231. );
  232. }
  233. },
  234. {
  235. title: "本次派单",
  236. dataIndex: "serviceYear",
  237. key: "serviceYear",
  238. render: (text, record) => {
  239. return (
  240. <div>{!text ? "" : text}</div>
  241. );
  242. }
  243. },
  244. {
  245. title: "项目说明",
  246. dataIndex: "taskComment",
  247. key: "taskComment",
  248. render: text => {
  249. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  250. }
  251. }
  252. ],
  253. rotateDeg: 0
  254. };
  255. this.tableRowClickX = this.tableRowClickX.bind(this);
  256. this.nextCancel = this.nextCancel.bind(this);
  257. this.rotate = this.rotate.bind(this);
  258. this.downImg = this.downImg.bind(this);
  259. this.upImg = this.upImg.bind(this);
  260. this.downImgs = this.downImgs.bind(this);
  261. this.upImgs = this.upImgs.bind(this);
  262. this.showRes = this.showRes.bind(this);
  263. this.resCancel = this.resCancel.bind(this);
  264. }
  265. rotate() {
  266. let rotateDeg = this.state.rotateDeg + 90;
  267. this.setState({
  268. rotateDeg
  269. });
  270. }
  271. //项目详情关闭
  272. nextCancel() {
  273. this.setState({
  274. visible: false
  275. });
  276. }
  277. //点击打卡项目详情
  278. tableRowClickX(record) {
  279. this.setState({
  280. dataInfor: record,
  281. jid: record.id, //项目ID
  282. kid: record.commodityId, //商品ID
  283. commodityName: record.commodityName, //金额
  284. commodityPrice: record.commodityPrice, //金额
  285. commodityQuantity: record.commodityQuantity, //数量
  286. taskComment: record.taskComment, //备注
  287. main: record.main.toString(), //是否为主要
  288. visible: true,
  289. addState: 0
  290. });
  291. }
  292. downImg() {
  293. const data = this.props.orderData;
  294. let num = 0;
  295. for (
  296. let i = 0;
  297. i <
  298. splitUrl(
  299. data.contractPictureUrl,
  300. ",",
  301. globalConfig.avatarHost + "/upload"
  302. ).length;
  303. i++
  304. ) {
  305. if (
  306. splitUrl(
  307. data.contractPictureUrl,
  308. ",",
  309. globalConfig.avatarHost + "/upload"
  310. )[i].url == this.state.previewImage
  311. ) {
  312. num = i;
  313. }
  314. }
  315. if (
  316. num ==
  317. splitUrl(
  318. data.contractPictureUrl,
  319. ",",
  320. globalConfig.avatarHost + "/upload"
  321. ).length -
  322. 1
  323. ) {
  324. return message.warning("已经是最后一张了哦");
  325. }
  326. this.state.previewImage = splitUrl(
  327. data.contractPictureUrl,
  328. ",",
  329. globalConfig.avatarHost + "/upload"
  330. )[num + 1].url;
  331. this.setState({
  332. previewImage: this.state.previewImage,
  333. rotateDeg: 0
  334. });
  335. }
  336. upImg() {
  337. const data = this.props.orderData;
  338. let num = 0;
  339. for (
  340. let i = 0;
  341. i <
  342. splitUrl(
  343. data.contractPictureUrl,
  344. ",",
  345. globalConfig.avatarHost + "/upload"
  346. ).length;
  347. i++
  348. ) {
  349. if (
  350. splitUrl(
  351. data.contractPictureUrl,
  352. ",",
  353. globalConfig.avatarHost + "/upload"
  354. )[i].url == this.state.previewImage
  355. ) {
  356. num = i;
  357. }
  358. }
  359. if (num == 0) {
  360. return message.warning("已经是第一张了哦");
  361. }
  362. this.state.previewImage = splitUrl(
  363. data.contractPictureUrl,
  364. ",",
  365. globalConfig.avatarHost + "/upload"
  366. )[num - 1].url;
  367. this.setState({
  368. previewImage: this.state.previewImage,
  369. rotateDeg: 0
  370. });
  371. }
  372. downImgs() {
  373. const data = this.props.orderData;
  374. let num = 0;
  375. for (
  376. let i = 0;
  377. i <
  378. splitUrl(
  379. data.rep,
  380. ",",
  381. globalConfig.avatarHost + "/upload"
  382. ).length;
  383. i++
  384. ) {
  385. if (
  386. splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload")[i]
  387. .url == this.state.previewImage
  388. ) {
  389. num = i;
  390. }
  391. }
  392. if (
  393. num ==
  394. splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload")
  395. .length -
  396. 1
  397. ) {
  398. return message.warning("已经是最后一张了哦");
  399. }
  400. this.state.previewImage = splitUrl(
  401. data.agreementUrl,
  402. ",",
  403. globalConfig.avatarHost + "/upload"
  404. )[num + 1].url;
  405. this.setState({
  406. previewImage: this.state.previewImage,
  407. rotateDeg: 0
  408. });
  409. }
  410. upImgs() {
  411. const data = this.props.orderData;
  412. let num = 0;
  413. for (
  414. let i = 0;
  415. i <
  416. splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload")
  417. .length;
  418. i++
  419. ) {
  420. if (
  421. splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload")[i]
  422. .url == this.state.previewImage
  423. ) {
  424. num = i;
  425. }
  426. }
  427. if (num == 0) {
  428. return message.warning("已经是第一张了哦");
  429. }
  430. this.state.previewImage = splitUrl(
  431. data.agreementUrl,
  432. ",",
  433. globalConfig.avatarHost + "/upload"
  434. )[num - 1].url;
  435. this.setState({
  436. previewImage: this.state.previewImage,
  437. rotateDeg: 0
  438. });
  439. }
  440. // 拆分详细
  441. showRes(record) {
  442. this.setState({
  443. resVisible: true,
  444. resRecord: record
  445. })
  446. }
  447. resCancel() {
  448. this.setState({
  449. resVisible: false
  450. })
  451. }
  452. render() {
  453. let domId = this.props.domId;
  454. domId = domId ? domId.substr(0, 4) : ''
  455. // console.log(typeof domId);
  456. const formItemLayout = {
  457. labelCol: { span: 8 },
  458. wrapperCol: { span: 14 }
  459. };
  460. const data = this.props.orderData;
  461. const propsList = this.props.contactList || [];
  462. return (
  463. <div className="clearfix">
  464. {this.state.resVisible ? (
  465. <ResolutionDetail
  466. cancel={this.resCancel}
  467. detail={this.state.resRecord}
  468. visible={this.state.resVisible}
  469. id={this.state.resRecord.orderNo}
  470. />
  471. ) : (
  472. ""
  473. )}
  474. <FormItem className="half-item" {...formItemLayout} label="订单编号">
  475. <span>{data.orderNo}</span>
  476. </FormItem>
  477. <FormItem className="half-item" {...formItemLayout} label="合同编号">
  478. <span>{data.contractNo}</span>
  479. </FormItem>
  480. <FormItem className="half-item" {...formItemLayout} label="客户名称">
  481. <span>{data.userName}</span>
  482. <EnterpriseNameChange
  483. type='journal'
  484. style={{ marginLeft: 10 }}
  485. enterpriseId={this.props.orderUid} />
  486. </FormItem>
  487. <FormItem
  488. className="half-item"
  489. {...formItemLayout}
  490. label="销售类型"
  491. >
  492. <span>
  493. {(["私有客户-", "签单客户-"][data.userType] || " ") +
  494. (salesList[data.salesType] || "")}
  495. {
  496. data.other != null && data.other != "" &&
  497. <Tooltip title={data.other}>
  498. <span>
  499. {"(" + data.other.toString().slice(0, 10) + (data.other.toString().length > 9 ? "...)" : ")")}
  500. </span>
  501. </Tooltip>
  502. }
  503. </span>
  504. {/* <span>{(["私有客户-", "签单客户-"][data.userType] || " ") +
  505. (salesList[data.salesType] || "")}</span> */}
  506. </FormItem>
  507. <FormItem
  508. className="half-item"
  509. {...formItemLayout}
  510. label="合同签订时间"
  511. >
  512. <span>{data.signDate}</span>
  513. </FormItem>
  514. <FormItem className="half-item" {...formItemLayout} label="流程状态">
  515. <span>{getProcessStatus(data.processStatus)}</span>
  516. </FormItem>
  517. <FormItem className="half-item" {...formItemLayout} label="结算状态">
  518. <span>{getLiquidationStatus(data.liquidationStatus)}</span>
  519. </FormItem>
  520. <FormItem className="half-item" {...formItemLayout} label="企业联系人">
  521. {/* <span>{data.contacts}</span> */}
  522. <span>{this.props.isCaiWu ? "***" : data.contacts}</span>
  523. </FormItem>
  524. <FormItem className="half-item" {...formItemLayout} label="联系人电话">
  525. {/* <span>{data.contactMobile}</span> */}
  526. <span>{this.props.isCaiWu ? "***" : data.contactMobile}</span>
  527. </FormItem>
  528. <FormItem className="half-item" {...formItemLayout} label="企业法人">
  529. <span>{this.props.isCaiWu ? "***" : data.legalPerson}</span>
  530. </FormItem>
  531. <FormItem className="half-item" {...formItemLayout} label="法人电话">
  532. {/* <span>{data.legalPersonTel}</span> */}
  533. <span>{this.props.isCaiWu ? "***" : data.legalPersonTel}</span>
  534. </FormItem>
  535. <FormItem
  536. className="half-item"
  537. {...formItemLayout}
  538. label="签单金额(万元)"
  539. >
  540. <span>
  541. {this.props.processState === 2 ? "***" : data.totalAmount}
  542. </span>
  543. </FormItem>
  544. <FormItem
  545. className="half-item"
  546. {...formItemLayout}
  547. label="首付金额(万元)"
  548. >
  549. <span>
  550. {this.props.processState === 2 ? "***" : data.firstAmount}
  551. </span>
  552. </FormItem>
  553. <FormItem className="half-item" {...formItemLayout} label="特批立项">
  554. <span>{getApprovedState(data.approval)}</span>
  555. </FormItem>
  556. <FormItem
  557. className="half-item"
  558. {...formItemLayout}
  559. label="已收款项(万元)"
  560. >
  561. <span>
  562. {this.props.processState === 2 ? "***" : data.settlementAmount}
  563. </span>
  564. </FormItem>
  565. <FormItem className="half-item" {...formItemLayout} label="订单部门">
  566. <span>{data.depName}</span>
  567. </FormItem>
  568. <FormItem className="half-item" {...formItemLayout} label="是否外包">
  569. {data.outsource == 0 ? "否" : "是"}
  570. </FormItem>
  571. <div className="clearfix">
  572. <FormItem
  573. labelCol={{ span: 4 }}
  574. wrapperCol={{ span: 16 }}
  575. label="订单留言"
  576. >
  577. <p style={{ width: 500, wordWrap: "break-word" }}>
  578. {data.orderRemarks}
  579. </p>
  580. </FormItem>
  581. </div>
  582. <div className="clearfix">
  583. <FormItem
  584. labelCol={{ span: 4 }}
  585. wrapperCol={{ span: 18 }}
  586. label="合同扫描件"
  587. >
  588. {this.props.orderData && data.contractPictureUrl ?
  589. <ImgList
  590. domId={this.props.domId ? this.props.domId : 'orderDetail1'}
  591. fileList={
  592. data.contractPictureUrl ? splitUrl(data.contractPictureUrl, ",", globalConfig.avatarHost + "/upload") : []
  593. }
  594. /> :
  595. <div />
  596. }
  597. <Modal
  598. maskClosable={false}
  599. footer={null}
  600. width={"50%"}
  601. visible={this.state.previewVisible}
  602. onCancel={() => {
  603. this.state.rotateDeg = 0;
  604. this.setState({
  605. previewVisible: false,
  606. rotateDeg: this.state.rotateDeg,
  607. });
  608. }}
  609. >
  610. <img
  611. alt=""
  612. style={{
  613. width: "100%",
  614. transform: `rotate(${this.state.rotateDeg}deg)`,
  615. }}
  616. src={this.state.previewImage || ""}
  617. />
  618. <Button
  619. onClick={this.rotate}
  620. style={{
  621. position: "relative",
  622. left: "50%",
  623. transform: "translateX(-50%)",
  624. }}
  625. >
  626. 旋转
  627. </Button>
  628. <Button
  629. onClick={this.upImg}
  630. style={{
  631. position: "absolute",
  632. left: -81,
  633. top: "50%",
  634. transform: "translateY(-50%)",
  635. }}
  636. >
  637. 上一张
  638. </Button>
  639. <Button
  640. onClick={this.downImg}
  641. style={{
  642. position: "absolute",
  643. right: -81,
  644. top: "50%",
  645. transform: "translateY(-50%)",
  646. }}
  647. >
  648. 下一张
  649. </Button>
  650. </Modal>
  651. <Button
  652. style={{
  653. float: "right",
  654. marginRight: "140px",
  655. marginTop: "20px",
  656. }}
  657. onClick={() => {
  658. this.props.getOrderLog(data.orderNo);
  659. }}
  660. >
  661. 查看订单日志
  662. </Button>
  663. </FormItem>
  664. <FormItem
  665. labelCol={{ span: 4 }}
  666. wrapperCol={{ span: 18 }}
  667. label="补充协议"
  668. >
  669. {/*<Upload*/}
  670. {/* className="demandDetailShow-upload"*/}
  671. {/* listType="picture-card"*/}
  672. {/* fileList={*/}
  673. {/* data.agreementUrl*/}
  674. {/* ? splitUrl(*/}
  675. {/* data.agreementUrl,*/}
  676. {/* ",",*/}
  677. {/* globalConfig.avatarHost + "/upload"*/}
  678. {/* )*/}
  679. {/* : []*/}
  680. {/* }*/}
  681. {/* onPreview={(file) => {*/}
  682. {/* this.setState({*/}
  683. {/* previewImage: file.url || file.thumbUrl,*/}
  684. {/* previewVisibles: true,*/}
  685. {/* });*/}
  686. {/* }}*/}
  687. {/*/>*/}
  688. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  689. <ImgList
  690. domId={this.props.domId ? this.props.domId + '1' : 'orderDetail2'}
  691. fileList={
  692. data.agreementUrl ? splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload") : []
  693. } />
  694. </div>
  695. <Modal
  696. maskClosable={false}
  697. footer={null}
  698. width={"50%"}
  699. visible={this.state.previewVisibles}
  700. onCancel={() => {
  701. this.state.rotateDeg = 0;
  702. this.setState({
  703. previewVisibles: false,
  704. rotateDeg: this.state.rotateDeg,
  705. });
  706. }}
  707. >
  708. <img
  709. alt=""
  710. style={{
  711. width: "100%",
  712. transform: `rotate(${this.state.rotateDeg}deg)`,
  713. }}
  714. src={this.state.previewImage || ""}
  715. />
  716. <Button
  717. onClick={this.rotate}
  718. style={{
  719. position: "relative",
  720. left: "50%",
  721. transform: "translateX(-50%)",
  722. }}
  723. >
  724. 旋转
  725. </Button>
  726. <Button
  727. onClick={this.upImgs}
  728. style={{
  729. position: "absolute",
  730. left: -81,
  731. top: "50%",
  732. transform: "translateY(-50%)",
  733. }}
  734. >
  735. 上一张
  736. </Button>
  737. <Button
  738. onClick={this.downImgs}
  739. style={{
  740. position: "absolute",
  741. right: -81,
  742. top: "50%",
  743. transform: "translateY(-50%)",
  744. }}
  745. >
  746. 下一张
  747. </Button>
  748. </Modal>
  749. </FormItem>
  750. </div>
  751. <ContentUrl
  752. processStatus={1}
  753. domId={"orderContent"}
  754. contentUrl={data.serviceContent ? splitUrl(data.serviceContent, ",", globalConfig.avatarHost + "/upload") : []}
  755. imgId={"orderImg1x"}
  756. // getContentUrl = {this.getContentUrl}
  757. />
  758. <div className="clearfix">
  759. <FormItem
  760. className="half-item"
  761. {...formItemLayout}
  762. label="订单负责人"
  763. >
  764. <span>{data.salesmanName}</span>
  765. </FormItem>
  766. <FormItem
  767. className="half-item"
  768. {...formItemLayout}
  769. label="订单负责人电话"
  770. >
  771. <span>{data.salesmanMobile}</span>
  772. </FormItem>
  773. </div>
  774. <div className="clearfix">
  775. <FormItem
  776. className="half-item"
  777. {...formItemLayout}
  778. label="当前财务负责人"
  779. >
  780. <span>{data.nowFinance}</span>
  781. </FormItem>
  782. <FormItem
  783. className="half-item"
  784. {...formItemLayout}
  785. label="当前财务负责人电话"
  786. >
  787. <span>{data.nowFinanceMobile}</span>
  788. </FormItem>
  789. </div>
  790. <div className="clearfix">
  791. <FormItem
  792. className="half-item"
  793. {...formItemLayout}
  794. style={{ opacity: ".5" }}
  795. label="原订单负责人"
  796. >
  797. <span>{data.oldSalesmanName}</span>
  798. </FormItem>
  799. <FormItem
  800. className="half-item"
  801. {...formItemLayout}
  802. style={{ opacity: ".5" }}
  803. label="原订单负责人电话"
  804. >
  805. <span>{data.oldSalesmanMobile}</span>
  806. </FormItem>
  807. </div>
  808. <div className="clearfix">
  809. <FormItem
  810. className="half-item"
  811. style={{ opacity: ".5" }}
  812. {...formItemLayout}
  813. label="实际财务操作人"
  814. >
  815. <span>{data.financeName}</span>
  816. </FormItem>
  817. <FormItem
  818. className="half-item"
  819. {...formItemLayout}
  820. style={{ opacity: ".5" }}
  821. label="实际财务操作人电话"
  822. >
  823. <span>{data.financeMobile}</span>
  824. </FormItem>
  825. </div>
  826. {domId == 'yuan' ? "" : <OrderCoor orderNo={this.props.orderNo} />}
  827. <div>
  828. <span style={{ marginLeft: "50px", fontSize: "20px" }}>项目业务</span>
  829. </div>
  830. <div className="patent-table">
  831. <Table
  832. columns={this.state.columnsX}
  833. pagination={false}
  834. dataSource={this.props.dataSourceX}
  835. onRowClick={this.tableRowClickX}
  836. style={{
  837. cursor: 'pointer',
  838. }}
  839. bordered
  840. size="small"
  841. />
  842. </div>
  843. <div>
  844. <span style={{ marginLeft: "50px", fontSize: "20px" }}>催款节点</span>
  845. <span
  846. style={{
  847. display: propsList.length ? "none" : "inline-block",
  848. marginLeft: 10,
  849. color: "red",
  850. }}
  851. >
  852. 金额总计(万元): {this.props.totalCui}
  853. </span>
  854. </div>
  855. <div className="clearfix">
  856. <Form layout="horizontal" id="demand-form">
  857. <Table
  858. pagination={false}
  859. bordered
  860. size="small"
  861. // columns={this.state.ContactsLists}
  862. columns={
  863. propsList.length
  864. ? this.state.ContactsLists
  865. : this.state.newContactsLists
  866. }
  867. dataSource={
  868. propsList.length
  869. ? this.props.contactList
  870. : this.props.contactListNew
  871. }
  872. />
  873. <Col span={24} offset={9} style={{ marginTop: "15px" }}></Col>
  874. </Form>
  875. </div>
  876. {this.state.visible &&
  877. <ProjectDetailsReadOnly
  878. infor={this.state.dataInfor}
  879. visible={this.state.visible}
  880. onCancel={this.nextCancel}
  881. />}
  882. </div>
  883. );
  884. }
  885. }
  886. export default OrderDetail;