orderDetail.js 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951
  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 NewEditProject from "../../../../common/projectOperation/newEditProject";
  21. import OrderCoor from "./orderCoor"
  22. import ContentUrl from "../contentUrl";
  23. import FlowChart from '../../../../common/flowchart'; // 流程图
  24. import Gxczx from '../../../../common/orderDetail/gxczx' // 高新纯咨询合同说明详情
  25. import Property from '../../../../common/orderDetail/property' // 知识产权情况
  26. const FormItem = Form.Item;
  27. class OrderDetail extends Component {
  28. constructor(props) {
  29. super(props);
  30. this.state = {
  31. dataInfor: {},
  32. contentUrl: [],
  33. newContactsLists: [
  34. {
  35. title: "项目名称",
  36. dataIndex: "commodityName",
  37. key: "commodityName",
  38. render: (text, record) => {
  39. return <span>{text + "-" + record.tid}</span>;
  40. }
  41. },
  42. {
  43. title: "项目分类",
  44. dataIndex: "projectType",
  45. key: "projectType",
  46. render: text => {
  47. let arr = this.props.dataSourceX || [];
  48. let str = "";
  49. for (let i = 0; i < arr.length; i++) {
  50. if (this.props.dataSourceX[i].sort == text) {
  51. str = this.props.dataSourceX[i].cname;
  52. return <span>{str}</span>;
  53. }
  54. }
  55. if (!str) {
  56. return <span>未知</span>;
  57. }
  58. }
  59. },
  60. {
  61. title: "催款科目",
  62. dataIndex: "dunTypeName",
  63. key: "dunTypeName",
  64. render: (text, record) => {
  65. if (record.customizeName) {
  66. return text + record.customizeName;
  67. }
  68. return <span>{text}</span>;
  69. }
  70. },
  71. {
  72. title: "时间",
  73. dataIndex: "waitDay",
  74. key: "waitDay",
  75. render: (text, record) => {
  76. if (record.dunTypeName) {
  77. if (record.customizeTimes) {
  78. return record.customizeTimes;
  79. }
  80. return <span>{text}</span>;
  81. }
  82. }
  83. },
  84. {
  85. title: "金额(万元)",
  86. dataIndex: "money",
  87. key: "money",
  88. render: (text, record) => {
  89. if (record.dunTypeName) {
  90. if (record.appropriationRatio) {
  91. let percent = Number(record.appropriationRatio * 100).toFixed(2);
  92. percent += "%";
  93. return <span>{percent}(拨款比例)</span>;
  94. } else {
  95. return <span>{text}</span>;
  96. }
  97. }
  98. }
  99. },
  100. {
  101. title: "服务年限",
  102. dataIndex: "startDate",
  103. key: "startDate",
  104. render: (text, record) => {
  105. if (record.dunTypeName) {
  106. return <span>{text}</span>;
  107. }
  108. }
  109. },
  110. {
  111. title: "催款状态",
  112. dataIndex: "status",
  113. key: "status",
  114. render: text => {
  115. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  116. }
  117. }
  118. ],
  119. ContactsLists: [
  120. {
  121. title: "催款科目",
  122. dataIndex: "dunSubject",
  123. key: "dunSubject",
  124. render: text => {
  125. return getjiedian(text);
  126. }
  127. },
  128. {
  129. title: "金额(万元)",
  130. dataIndex: "money",
  131. key: "money"
  132. },
  133. {
  134. title: "催款状态",
  135. dataIndex: "dunStatus",
  136. key: "dunStatus",
  137. render: text => {
  138. return getCuikuan(text);
  139. }
  140. }
  141. ],
  142. resVisible: false,
  143. columnsX: [
  144. {
  145. title: "业务项目名称",
  146. dataIndex: "commodityName",
  147. key: "commodityName",
  148. render: (text, record) => {
  149. return <span>
  150. {text}<span style={{ color: "red" }}>{record.patentTypeName}</span>{"-" + record.id}
  151. <div>
  152. {record.cSort == 6 && record.projectType == 1 && <span>(含{record.htMember == 1 ? '高新会员&' : ''}{record.additionalDeduction == 1 ? '加计扣除&' : ''}{record.rdAwardsubsidy == 1 ? '研发奖补' : ''})</span>}
  153. {record.cSort == 6 && ([0, 3].indexOf(record.projectType) > -1) && <span>(仅提供单边会员服务)</span>}
  154. {record.cSort == 6 && record.projectType == 2 && <span>(仅填报表,仅咨询,不出备查资料)</span>}
  155. {record.cSort == 3 && <span>{record.technologyProjectType==0?'(简易项目)':record.technologyProjectType==1?'(市区级)':record.technologyProjectType==2?'(省级)':record.technologyProjectType==3?'(国家级)':''}</span>}
  156. {record.cSort == 8 ? (record.type != 2 && record.patentType == 1) ? <span>(变更)</span> : <span>{record.ordinaryRisk == 0 ? '(普通申请)' : record.ordinaryRisk == 1 ? '(风险代理)' : ''}</span> : ""}
  157. {record.type == 2 && <span>({record.days == 0 ? '普通' : record.days == 1 ? '加急' : ''}{record.scheme == 0 ? '&无方案' : record.scheme == 1 ? '&有方案' : ''})</span>}
  158. </div>
  159. </span>
  160. }
  161. },
  162. {
  163. title: "项目类别",
  164. dataIndex: "cname",
  165. key: "cname"
  166. },
  167. {
  168. title: "项目数量",
  169. dataIndex: "commodityQuantity",
  170. key: "commodityQuantity",
  171. render: (text, record) => {
  172. if (record.splitStatus == 1) {
  173. return (
  174. <span>
  175. {text}{" "}
  176. {/* <Tag
  177. color="#108ee9"
  178. onClick={e => {
  179. e.stopPropagation();
  180. this.showRes(record);
  181. }}
  182. >
  183. 已拆
  184. </Tag> */}
  185. </span>
  186. );
  187. } else {
  188. return text;
  189. }
  190. }
  191. },
  192. {
  193. title: "金额(万元)",
  194. dataIndex: "commodityPrice",
  195. key: "commodityPrice",
  196. render: text => {
  197. // return this.props.processState === 2 ? "***" : text;
  198. return text == null ? "***" : text;
  199. }
  200. },
  201. {
  202. title: "负责人",
  203. dataIndex: "contacts",
  204. key: "contacts"
  205. },
  206. {
  207. title: "负责人电话",
  208. dataIndex: "contactsMobile",
  209. key: "contactsMobile"
  210. },
  211. {
  212. title: "项目状态",
  213. dataIndex: "projectStatus",
  214. key: "projectStatus",
  215. render: text => {
  216. return getProjectName(text);
  217. }
  218. },
  219. {
  220. title: "主要项目",
  221. dataIndex: "main",
  222. key: "main",
  223. width: 50,
  224. render: text => {
  225. return text ? "是" : "否";
  226. }
  227. },
  228. {
  229. title: "总年限",
  230. dataIndex: "yearSum",
  231. key: "yearSum",
  232. render: (text, record) => {
  233. return (
  234. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  235. );
  236. }
  237. },
  238. {
  239. title: "年限",
  240. dataIndex: "serviceLife",
  241. key: "serviceLife",
  242. render: (text, record) => {
  243. return (
  244. <div>{!!text && JSON.parse(text).toString()}</div>
  245. );
  246. }
  247. },
  248. {
  249. title: "本次派单",
  250. dataIndex: "serviceYear",
  251. key: "serviceYear",
  252. render: (text, record) => {
  253. return (
  254. <div>{!text ? "" : text}</div>
  255. );
  256. }
  257. },
  258. {
  259. title: "项目说明",
  260. dataIndex: "taskComment",
  261. key: "taskComment",
  262. render: (text, record) => {
  263. let textStr = text;
  264. return (
  265. <Tooltip title={textStr}>
  266. <div
  267. style={{
  268. width: 100,
  269. overflow: "hidden",
  270. whiteSpace: "nowrap",
  271. textOverflow: "ellipsis",
  272. }}
  273. >{textStr}</div>
  274. </Tooltip>
  275. )
  276. }
  277. }
  278. ],
  279. rotateDeg: 0
  280. };
  281. this.tableRowClickX = this.tableRowClickX.bind(this);
  282. this.nextCancel = this.nextCancel.bind(this);
  283. this.rotate = this.rotate.bind(this);
  284. this.downImg = this.downImg.bind(this);
  285. this.upImg = this.upImg.bind(this);
  286. this.downImgs = this.downImgs.bind(this);
  287. this.upImgs = this.upImgs.bind(this);
  288. this.showRes = this.showRes.bind(this);
  289. this.resCancel = this.resCancel.bind(this);
  290. }
  291. rotate() {
  292. let rotateDeg = this.state.rotateDeg + 90;
  293. this.setState({
  294. rotateDeg
  295. });
  296. }
  297. //项目详情关闭
  298. nextCancel() {
  299. this.setState({
  300. visible: false
  301. });
  302. }
  303. //点击打卡项目详情
  304. tableRowClickX(record) {
  305. this.setState({
  306. dataInfor: record,
  307. jid: record.id, //项目ID
  308. kid: record.commodityId, //商品ID
  309. commodityName: record.commodityName, //金额
  310. commodityPrice: record.commodityPrice, //金额
  311. commodityQuantity: record.commodityQuantity, //数量
  312. taskComment: record.taskComment, //备注
  313. main: record.main.toString(), //是否为主要
  314. visible: true,
  315. addState: 0
  316. });
  317. }
  318. downImg() {
  319. const data = this.props.orderData;
  320. let num = 0;
  321. for (
  322. let i = 0;
  323. i <
  324. splitUrl(
  325. data.contractPictureUrl,
  326. ",",
  327. globalConfig.avatarHost + "/upload"
  328. ).length;
  329. i++
  330. ) {
  331. if (
  332. splitUrl(
  333. data.contractPictureUrl,
  334. ",",
  335. globalConfig.avatarHost + "/upload"
  336. )[i].url == this.state.previewImage
  337. ) {
  338. num = i;
  339. }
  340. }
  341. if (
  342. num ==
  343. splitUrl(
  344. data.contractPictureUrl,
  345. ",",
  346. globalConfig.avatarHost + "/upload"
  347. ).length -
  348. 1
  349. ) {
  350. return message.warning("已经是最后一张了哦");
  351. }
  352. this.state.previewImage = splitUrl(
  353. data.contractPictureUrl,
  354. ",",
  355. globalConfig.avatarHost + "/upload"
  356. )[num + 1].url;
  357. this.setState({
  358. previewImage: this.state.previewImage,
  359. rotateDeg: 0
  360. });
  361. }
  362. upImg() {
  363. const data = this.props.orderData;
  364. let num = 0;
  365. for (
  366. let i = 0;
  367. i <
  368. splitUrl(
  369. data.contractPictureUrl,
  370. ",",
  371. globalConfig.avatarHost + "/upload"
  372. ).length;
  373. i++
  374. ) {
  375. if (
  376. splitUrl(
  377. data.contractPictureUrl,
  378. ",",
  379. globalConfig.avatarHost + "/upload"
  380. )[i].url == this.state.previewImage
  381. ) {
  382. num = i;
  383. }
  384. }
  385. if (num == 0) {
  386. return message.warning("已经是第一张了哦");
  387. }
  388. this.state.previewImage = splitUrl(
  389. data.contractPictureUrl,
  390. ",",
  391. globalConfig.avatarHost + "/upload"
  392. )[num - 1].url;
  393. this.setState({
  394. previewImage: this.state.previewImage,
  395. rotateDeg: 0
  396. });
  397. }
  398. downImgs() {
  399. const data = this.props.orderData;
  400. let num = 0;
  401. for (
  402. let i = 0;
  403. i <
  404. splitUrl(
  405. data.rep,
  406. ",",
  407. globalConfig.avatarHost + "/upload"
  408. ).length;
  409. i++
  410. ) {
  411. if (
  412. splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload")[i]
  413. .url == this.state.previewImage
  414. ) {
  415. num = i;
  416. }
  417. }
  418. if (
  419. num ==
  420. splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload")
  421. .length -
  422. 1
  423. ) {
  424. return message.warning("已经是最后一张了哦");
  425. }
  426. this.state.previewImage = splitUrl(
  427. data.agreementUrl,
  428. ",",
  429. globalConfig.avatarHost + "/upload"
  430. )[num + 1].url;
  431. this.setState({
  432. previewImage: this.state.previewImage,
  433. rotateDeg: 0
  434. });
  435. }
  436. upImgs() {
  437. const data = this.props.orderData;
  438. let num = 0;
  439. for (
  440. let i = 0;
  441. i <
  442. splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload")
  443. .length;
  444. i++
  445. ) {
  446. if (
  447. splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload")[i]
  448. .url == this.state.previewImage
  449. ) {
  450. num = i;
  451. }
  452. }
  453. if (num == 0) {
  454. return message.warning("已经是第一张了哦");
  455. }
  456. this.state.previewImage = splitUrl(
  457. data.agreementUrl,
  458. ",",
  459. globalConfig.avatarHost + "/upload"
  460. )[num - 1].url;
  461. this.setState({
  462. previewImage: this.state.previewImage,
  463. rotateDeg: 0
  464. });
  465. }
  466. // 拆分详细
  467. showRes(record) {
  468. this.setState({
  469. resVisible: true,
  470. resRecord: record
  471. })
  472. }
  473. resCancel() {
  474. this.setState({
  475. resVisible: false
  476. })
  477. }
  478. // 可展开颜色不同
  479. addRowColor(record) {
  480. if (!!record.splitList && record.splitList.length > 0) {
  481. return 'light'
  482. } else {
  483. return 'dark'
  484. }
  485. }
  486. render() {
  487. let domId = this.props.domId;
  488. domId = domId ? domId.substr(0, 4) : ''
  489. const formItemLayout = {
  490. labelCol: { span: 10 },
  491. wrapperCol: { span: 14 }
  492. };
  493. const data = this.props.orderData || {};
  494. const propsList = this.props.contactList || [];
  495. const expandedRowRenderVip = (e) => {
  496. const data = e.splitList;
  497. let columns = [];
  498. if (data instanceof Array && data.length) {
  499. if (e.cSort == 6) {
  500. columns = [
  501. {
  502. title: "负责人",
  503. dataIndex: "receiverName",
  504. key: "receiverName",
  505. width: 140,
  506. },
  507. {
  508. title: "负责人电话",
  509. dataIndex: "receiverMobile",
  510. key: "receiverMobile",
  511. align: "center",
  512. width: 120,
  513. },
  514. {
  515. title: "会员负责人",
  516. dataIndex: "projectMemberName",
  517. key: "projectMemberName",
  518. width: 140,
  519. align: "center",
  520. },
  521. {
  522. title: "项目状态",
  523. dataIndex: "projectStatus",
  524. key: "projectStatus",
  525. align: "center",
  526. width: 100,
  527. render: (text) => {
  528. return getProjectName(text);
  529. },
  530. },
  531. {
  532. title: "本次派单",
  533. dataIndex: "serviceYear",
  534. key: "serviceYear",
  535. width: 80,
  536. align: "center"
  537. },
  538. {
  539. title: "项目说明",
  540. dataIndex: "taskComment",
  541. key: "taskComment",
  542. render: (text, record) => {
  543. let textStr = text;
  544. let textArr = [];
  545. if (record.htMember === 1) {
  546. textArr.push("高新会员");
  547. }
  548. if (record.additionalDeduction === 1) {
  549. textArr.push("加计扣除");
  550. }
  551. if (record.rdAwardsubsidy === 1) {
  552. textArr.push("研发奖补");
  553. }
  554. if (textArr.length) {
  555. textStr = `${textArr.join("&")} ${!!text ? `(${text})` : ''}`
  556. }
  557. return (
  558. <Tooltip title={textStr}>
  559. <div
  560. >{textStr}</div>
  561. </Tooltip>
  562. )
  563. },
  564. },
  565. ];
  566. } else {
  567. columns = [
  568. {
  569. title: "子项目名称",
  570. dataIndex: "taskName",
  571. key: "taskName"
  572. },
  573. {
  574. title: "子项目数量",
  575. dataIndex: "commodityQuantity",
  576. key: "commodityQuantity"
  577. },
  578. {
  579. title: "拆分操作人",
  580. dataIndex: "splitAname",
  581. key: "splitAname"
  582. },
  583. {
  584. title: "项目负责人",
  585. dataIndex: "receiverName",
  586. key: "receiverName"
  587. },
  588. {
  589. title: "拆分时间",
  590. dataIndex: "splitTimes",
  591. key: "splitTimes"
  592. }
  593. ]
  594. }
  595. return (
  596. <Table
  597. columns={columns}
  598. dataSource={data}
  599. pagination={false}
  600. />
  601. );
  602. } else {
  603. columns = [];
  604. return (
  605. <p
  606. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  607. >
  608. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  609. </p>
  610. );
  611. }
  612. };
  613. return (
  614. <div className="clearfix">
  615. {this.state.resVisible ? (
  616. <ResolutionDetail
  617. cancel={this.resCancel}
  618. detail={this.state.resRecord}
  619. visible={this.state.resVisible}
  620. id={this.state.resRecord.orderNo}
  621. />
  622. ) : (
  623. ""
  624. )}
  625. <FormItem className="half-item" {...formItemLayout} label="订单编号">
  626. <span>{data.orderNo}</span>
  627. </FormItem>
  628. <FormItem className="half-item" {...formItemLayout} label="合同编号">
  629. <span>{data.contractNo}</span>
  630. </FormItem>
  631. <FormItem className="half-item" {...formItemLayout} label="客户名称">
  632. <span>{data.userName}</span>
  633. <EnterpriseNameChange
  634. type='journal'
  635. style={{ marginLeft: 10 }}
  636. enterpriseId={this.props.orderUid} />
  637. </FormItem>
  638. <FormItem
  639. className="half-item"
  640. {...formItemLayout}
  641. label="销售类型"
  642. >
  643. <span>
  644. {(["私有客户-", "签单客户-"][data.userType] || " ") +
  645. (salesList[data.salesType] || "")}
  646. {
  647. data.other != null && data.other != "" &&
  648. <Tooltip title={data.other}>
  649. <span>
  650. {"(" + data.other.toString().slice(0, 10) + (data.other.toString().length > 9 ? "...)" : ")")}
  651. </span>
  652. </Tooltip>
  653. }
  654. </span>
  655. {/* <span>{(["私有客户-", "签单客户-"][data.userType] || " ") +
  656. (salesList[data.salesType] || "")}</span> */}
  657. </FormItem>
  658. <FormItem
  659. className="half-item"
  660. {...formItemLayout}
  661. label="合同签订时间"
  662. >
  663. <span>{data.signDate}</span>
  664. </FormItem>
  665. <FormItem className="half-item" {...formItemLayout} label="流程状态">
  666. <span>{getProcessStatus(data.processStatus, data.examineName, data.approval)}</span>
  667. <FlowChart
  668. orderNo={data.orderNo || this.props.orderNo}
  669. />
  670. </FormItem>
  671. <FormItem className="half-item" {...formItemLayout} label="结算状态">
  672. <span>{getLiquidationStatus(data.liquidationStatus)}</span>
  673. </FormItem>
  674. <FormItem className="half-item" {...formItemLayout} label="企业联系人">
  675. {/* <span>{data.contacts}</span> */}
  676. <span>{this.props.isCaiWu ? "***" : data.contacts}</span>
  677. </FormItem>
  678. <FormItem className="half-item" {...formItemLayout} label="联系人电话">
  679. {/* <span>{data.contactMobile}</span> */}
  680. <span>{this.props.isCaiWu ? "***" : data.contactMobile}</span>
  681. </FormItem>
  682. <FormItem className="half-item" {...formItemLayout} label="企业法人">
  683. <span>{this.props.isCaiWu ? "***" : data.legalPerson}</span>
  684. </FormItem>
  685. <FormItem className="half-item" {...formItemLayout} label="法人电话">
  686. {/* <span>{data.legalPersonTel}</span> */}
  687. <span>{this.props.isCaiWu ? "***" : data.legalPersonTel}</span>
  688. </FormItem>
  689. <FormItem
  690. className="half-item"
  691. {...formItemLayout}
  692. label="签单金额(万元)"
  693. >
  694. <span>
  695. {this.props.processState === 3 ? "***" : data.totalAmount}
  696. </span>
  697. </FormItem>
  698. <FormItem
  699. className="half-item"
  700. {...formItemLayout}
  701. label="首付金额(万元)"
  702. >
  703. <span>
  704. {this.props.processState === 3 ? "***" : data.firstAmount}
  705. </span>
  706. </FormItem>
  707. <FormItem className="half-item" {...formItemLayout} label="特批立项">
  708. <span>{getApprovedState(data.approval)}</span>
  709. </FormItem>
  710. <FormItem
  711. className="half-item"
  712. {...formItemLayout}
  713. label="已收款项(万元)"
  714. >
  715. <span>
  716. {this.props.processState === 3 ? "***" : data.settlementAmount}
  717. </span>
  718. </FormItem>
  719. <FormItem className="half-item" {...formItemLayout} label="订单部门">
  720. <span>{data.depName}</span>
  721. </FormItem>
  722. <FormItem className="half-item" {...formItemLayout} label="是否外包">
  723. {data.outsource == 0 ? "否" : "是"}
  724. </FormItem>
  725. <div className="clearfix">
  726. <FormItem
  727. labelCol={{ span: 5 }}
  728. wrapperCol={{ span: 19 }}
  729. label="订单留言"
  730. >
  731. <p style={{ width: 500, wordWrap: "break-word" }}>
  732. {data.orderRemarks}
  733. </p>
  734. </FormItem>
  735. </div>
  736. <div className="clearfix">
  737. <FormItem
  738. labelCol={{ span: 5 }}
  739. wrapperCol={{ span: 19 }}
  740. label="合同扫描件"
  741. >
  742. {this.props.orderData && data.contractPictureUrl ?
  743. <ImgList
  744. domId={this.props.domId ? this.props.domId : 'orderDetail1'}
  745. fileList={
  746. data.contractPictureUrl ? splitUrl(data.contractPictureUrl, ",", globalConfig.avatarHost + "/upload") : []
  747. }
  748. /> :
  749. <div />
  750. }
  751. <Button
  752. style={{
  753. float: "right",
  754. marginRight: "140px",
  755. marginTop: "20px",
  756. }}
  757. onClick={() => {
  758. this.props.getOrderLog(data.orderNo);
  759. }}
  760. >
  761. 查看订单日志
  762. </Button>
  763. </FormItem>
  764. {/* 高新纯咨询合同说明详情 */}
  765. <Gxczx
  766. knowledgeServices={data.knowledgeServices}
  767. auditServices={data.auditServices}
  768. addDeductionServices={data.addDeductionServices}
  769. knowledgeOther={data.knowledgeOther}
  770. auditOther={data.auditOther}
  771. addDeductionOther={data.addDeductionOther}
  772. />
  773. <FormItem
  774. labelCol={{ span: 5 }}
  775. wrapperCol={{ span: 19 }}
  776. label="补充协议"
  777. >
  778. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  779. <ImgList
  780. domId={this.props.domId ? this.props.domId + '1' : 'orderDetail2'}
  781. fileList={
  782. data.agreementUrl ? splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload") : []
  783. } />
  784. </div>
  785. </FormItem>
  786. </div>
  787. <ContentUrl
  788. processStatus={2}
  789. domId={"orderContent"}
  790. contentUrl={data.serviceContent ? splitUrl(data.serviceContent, ",", globalConfig.avatarHost + "/upload") : []}
  791. imgId={"orderImg1x"}
  792. // getContentUrl = {this.getContentUrl}
  793. />
  794. <Property
  795. patentStatus={data.patentStatus}
  796. />
  797. <div className="clearfix">
  798. <FormItem
  799. className="half-item"
  800. {...formItemLayout}
  801. label="订单负责人"
  802. >
  803. <span>{data.salesmanName}</span>
  804. </FormItem>
  805. <FormItem
  806. className="half-item"
  807. {...formItemLayout}
  808. label="订单负责人电话"
  809. >
  810. <span>{data.salesmanMobile}</span>
  811. </FormItem>
  812. </div>
  813. <div className="clearfix">
  814. <FormItem
  815. className="half-item"
  816. {...formItemLayout}
  817. label="当前财务负责人"
  818. >
  819. <span>{data.nowFinance}</span>
  820. </FormItem>
  821. <FormItem
  822. className="half-item"
  823. {...formItemLayout}
  824. label="当前财务负责人电话"
  825. >
  826. <span>{data.nowFinanceMobile}</span>
  827. </FormItem>
  828. </div>
  829. <div className="clearfix">
  830. <FormItem
  831. className="half-item"
  832. {...formItemLayout}
  833. style={{ opacity: ".5" }}
  834. label="原订单负责人"
  835. >
  836. <span>{data.oldSalesmanName}</span>
  837. </FormItem>
  838. <FormItem
  839. className="half-item"
  840. {...formItemLayout}
  841. style={{ opacity: ".5" }}
  842. label="原订单负责人电话"
  843. >
  844. <span>{data.oldSalesmanMobile}</span>
  845. </FormItem>
  846. </div>
  847. <div className="clearfix">
  848. <FormItem
  849. className="half-item"
  850. style={{ opacity: ".5" }}
  851. {...formItemLayout}
  852. label="实际财务操作人"
  853. >
  854. <span>{data.financeName}</span>
  855. </FormItem>
  856. <FormItem
  857. className="half-item"
  858. {...formItemLayout}
  859. style={{ opacity: ".5" }}
  860. label="实际财务操作人电话"
  861. >
  862. <span>{data.financeMobile}</span>
  863. </FormItem>
  864. </div>
  865. {domId == 'yuan' ? "" : <OrderCoor orderNo={this.props.orderNo} />}
  866. <div>
  867. <span style={{ marginLeft: "50px", fontSize: "20px" }}>项目业务</span>
  868. </div>
  869. <div className="patent-table">
  870. <Table
  871. columns={this.state.columnsX}
  872. pagination={false}
  873. dataSource={this.props.dataSourceX}
  874. onRowClick={this.tableRowClickX}
  875. expandedRowRender={expandedRowRenderVip}
  876. rowClassName={this.addRowColor}
  877. style={{
  878. cursor: 'pointer',
  879. }}
  880. bordered
  881. size="small"
  882. />
  883. </div>
  884. <div>
  885. <span style={{ marginLeft: "50px", fontSize: "20px" }}>催款节点</span>
  886. <span
  887. style={{
  888. display: propsList.length ? "none" : "inline-block",
  889. marginLeft: 10,
  890. color: "red",
  891. }}
  892. >
  893. 金额总计(万元): {this.props.totalCui}
  894. </span>
  895. </div>
  896. <div className="clearfix">
  897. <Form layout="horizontal" id="demand-form">
  898. <Table
  899. pagination={false}
  900. bordered
  901. size="small"
  902. // columns={this.state.ContactsLists}
  903. columns={
  904. propsList.length
  905. ? this.state.ContactsLists
  906. : this.state.newContactsLists
  907. }
  908. dataSource={
  909. propsList.length
  910. ? this.props.contactList
  911. : this.props.contactListNew
  912. }
  913. />
  914. <Col span={24} offset={9} style={{ marginTop: "15px" }}></Col>
  915. </Form>
  916. </div>
  917. {this.state.visible &&
  918. <NewEditProject
  919. readOnly={
  920. this.state.dataInfor &&
  921. Object.keys(this.state.dataInfor).length > 0 &&
  922. this.state.processStatus !== 0
  923. }
  924. visible={this.state.visible}
  925. dataInfor={this.state.dataInfor}
  926. onCancel={this.nextCancel}
  927. />
  928. // <ProjectDetailsReadOnly
  929. // infor={this.state.dataInfor}
  930. // visible={this.state.visible}
  931. // onCancel={this.nextCancel}
  932. // />
  933. }
  934. </div>
  935. );
  936. }
  937. }
  938. export default OrderDetail;