orderDetail.js 26 KB

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