orderDetail.js 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942
  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. },
  506. {
  507. title: "负责人电话",
  508. dataIndex: "receiverMobile",
  509. key: "receiverMobile",
  510. },
  511. {
  512. title: "会员负责人",
  513. dataIndex: "projectMemberName",
  514. key: "projectMemberName",
  515. },
  516. {
  517. title: "项目状态",
  518. dataIndex: "projectStatus",
  519. key: "projectStatus",
  520. render: (text) => {
  521. return getProjectName(text);
  522. },
  523. },
  524. {
  525. title: "本次派单",
  526. dataIndex: "serviceYear",
  527. key: "serviceYear",
  528. },
  529. {
  530. title: "项目说明",
  531. dataIndex: "taskComment",
  532. key: "taskComment",
  533. render: (text, record) => {
  534. let textStr = text;
  535. let textArr = [];
  536. if (record.htMember === 1) {
  537. textArr.push("高新会员");
  538. }
  539. if (record.additionalDeduction === 1) {
  540. textArr.push("加计扣除");
  541. }
  542. if (record.rdAwardsubsidy === 1) {
  543. textArr.push("研发补助");
  544. }
  545. if (textArr.length) {
  546. textStr = `${textArr.join("&")} ${!!text ? `(${text})` : ''}`
  547. }
  548. return (
  549. <Tooltip title={textStr}>
  550. <div
  551. >{textStr}</div>
  552. </Tooltip>
  553. )
  554. },
  555. },
  556. ];
  557. } else {
  558. columns = [
  559. {
  560. title: "子项目名称",
  561. dataIndex: "taskName",
  562. key: "taskName"
  563. },
  564. {
  565. title: "子项目数量",
  566. dataIndex: "commodityQuantity",
  567. key: "commodityQuantity"
  568. },
  569. {
  570. title: "拆分操作人",
  571. dataIndex: "splitAname",
  572. key: "splitAname"
  573. },
  574. {
  575. title: "项目负责人",
  576. dataIndex: "receiverName",
  577. key: "receiverName"
  578. },
  579. {
  580. title: "拆分时间",
  581. dataIndex: "splitTimes",
  582. key: "splitTimes"
  583. }
  584. ]
  585. }
  586. return (
  587. <Table
  588. columns={columns}
  589. dataSource={data}
  590. pagination={false}
  591. />
  592. );
  593. } else {
  594. columns = [];
  595. return (
  596. <p
  597. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  598. >
  599. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  600. </p>
  601. );
  602. }
  603. };
  604. return (
  605. <div className="clearfix">
  606. {this.state.resVisible ? (
  607. <ResolutionDetail
  608. cancel={this.resCancel}
  609. detail={this.state.resRecord}
  610. visible={this.state.resVisible}
  611. id={this.state.resRecord.orderNo}
  612. />
  613. ) : (
  614. ""
  615. )}
  616. <FormItem className="half-item" {...formItemLayout} label="订单编号">
  617. <span>{data.orderNo}</span>
  618. </FormItem>
  619. <FormItem className="half-item" {...formItemLayout} label="合同编号">
  620. <span>{data.contractNo}</span>
  621. </FormItem>
  622. <FormItem className="half-item" {...formItemLayout} label="客户名称">
  623. <span>{data.userName}</span>
  624. <EnterpriseNameChange
  625. type='journal'
  626. style={{ marginLeft: 10 }}
  627. enterpriseId={this.props.orderUid} />
  628. </FormItem>
  629. <FormItem
  630. className="half-item"
  631. {...formItemLayout}
  632. label="销售类型"
  633. >
  634. <span>
  635. {(["私有客户-", "签单客户-"][data.userType] || " ") +
  636. (salesList[data.salesType] || "")}
  637. {
  638. data.other != null && data.other != "" &&
  639. <Tooltip title={data.other}>
  640. <span>
  641. {"(" + data.other.toString().slice(0, 10) + (data.other.toString().length > 9 ? "...)" : ")")}
  642. </span>
  643. </Tooltip>
  644. }
  645. </span>
  646. {/* <span>{(["私有客户-", "签单客户-"][data.userType] || " ") +
  647. (salesList[data.salesType] || "")}</span> */}
  648. </FormItem>
  649. <FormItem
  650. className="half-item"
  651. {...formItemLayout}
  652. label="合同签订时间"
  653. >
  654. <span>{data.signDate}</span>
  655. </FormItem>
  656. <FormItem className="half-item" {...formItemLayout} label="流程状态">
  657. <span>{getProcessStatus(data.processStatus, data.examineName, data.approval)}</span>
  658. <FlowChart
  659. orderNo={data.orderNo || this.props.orderNo}
  660. />
  661. </FormItem>
  662. <FormItem className="half-item" {...formItemLayout} label="结算状态">
  663. <span>{getLiquidationStatus(data.liquidationStatus)}</span>
  664. </FormItem>
  665. <FormItem className="half-item" {...formItemLayout} label="企业联系人">
  666. {/* <span>{data.contacts}</span> */}
  667. <span>{this.props.isCaiWu ? "***" : data.contacts}</span>
  668. </FormItem>
  669. <FormItem className="half-item" {...formItemLayout} label="联系人电话">
  670. {/* <span>{data.contactMobile}</span> */}
  671. <span>{this.props.isCaiWu ? "***" : data.contactMobile}</span>
  672. </FormItem>
  673. <FormItem className="half-item" {...formItemLayout} label="企业法人">
  674. <span>{this.props.isCaiWu ? "***" : data.legalPerson}</span>
  675. </FormItem>
  676. <FormItem className="half-item" {...formItemLayout} label="法人电话">
  677. {/* <span>{data.legalPersonTel}</span> */}
  678. <span>{this.props.isCaiWu ? "***" : data.legalPersonTel}</span>
  679. </FormItem>
  680. <FormItem
  681. className="half-item"
  682. {...formItemLayout}
  683. label="签单金额(万元)"
  684. >
  685. <span>
  686. {this.props.processState === 3 ? "***" : data.totalAmount}
  687. </span>
  688. </FormItem>
  689. <FormItem
  690. className="half-item"
  691. {...formItemLayout}
  692. label="首付金额(万元)"
  693. >
  694. <span>
  695. {this.props.processState === 3 ? "***" : data.firstAmount}
  696. </span>
  697. </FormItem>
  698. <FormItem className="half-item" {...formItemLayout} label="特批立项">
  699. <span>{getApprovedState(data.approval)}</span>
  700. </FormItem>
  701. <FormItem
  702. className="half-item"
  703. {...formItemLayout}
  704. label="已收款项(万元)"
  705. >
  706. <span>
  707. {this.props.processState === 3 ? "***" : data.settlementAmount}
  708. </span>
  709. </FormItem>
  710. <FormItem className="half-item" {...formItemLayout} label="订单部门">
  711. <span>{data.depName}</span>
  712. </FormItem>
  713. <FormItem className="half-item" {...formItemLayout} label="是否外包">
  714. {data.outsource == 0 ? "否" : "是"}
  715. </FormItem>
  716. <div className="clearfix">
  717. <FormItem
  718. labelCol={{ span: 5 }}
  719. wrapperCol={{ span: 19 }}
  720. label="订单留言"
  721. >
  722. <p style={{ width: 500, wordWrap: "break-word" }}>
  723. {data.orderRemarks}
  724. </p>
  725. </FormItem>
  726. </div>
  727. <div className="clearfix">
  728. <FormItem
  729. labelCol={{ span: 5 }}
  730. wrapperCol={{ span: 19 }}
  731. label="合同扫描件"
  732. >
  733. {this.props.orderData && data.contractPictureUrl ?
  734. <ImgList
  735. domId={this.props.domId ? this.props.domId : 'orderDetail1'}
  736. fileList={
  737. data.contractPictureUrl ? splitUrl(data.contractPictureUrl, ",", globalConfig.avatarHost + "/upload") : []
  738. }
  739. /> :
  740. <div />
  741. }
  742. <Button
  743. style={{
  744. float: "right",
  745. marginRight: "140px",
  746. marginTop: "20px",
  747. }}
  748. onClick={() => {
  749. this.props.getOrderLog(data.orderNo);
  750. }}
  751. >
  752. 查看订单日志
  753. </Button>
  754. </FormItem>
  755. {/* 高新纯咨询合同说明详情 */}
  756. <Gxczx
  757. knowledgeServices={data.knowledgeServices}
  758. auditServices={data.auditServices}
  759. addDeductionServices={data.addDeductionServices}
  760. knowledgeOther={data.knowledgeOther}
  761. auditOther={data.auditOther}
  762. addDeductionOther={data.addDeductionOther}
  763. />
  764. <FormItem
  765. labelCol={{ span: 5 }}
  766. wrapperCol={{ span: 19 }}
  767. label="补充协议"
  768. >
  769. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  770. <ImgList
  771. domId={this.props.domId ? this.props.domId + '1' : 'orderDetail2'}
  772. fileList={
  773. data.agreementUrl ? splitUrl(data.agreementUrl, ",", globalConfig.avatarHost + "/upload") : []
  774. } />
  775. </div>
  776. </FormItem>
  777. </div>
  778. <ContentUrl
  779. processStatus={2}
  780. domId={"orderContent"}
  781. contentUrl={data.serviceContent ? splitUrl(data.serviceContent, ",", globalConfig.avatarHost + "/upload") : []}
  782. imgId={"orderImg1x"}
  783. // getContentUrl = {this.getContentUrl}
  784. />
  785. <Property
  786. patentStatus={data.patentStatus}
  787. />
  788. <div className="clearfix">
  789. <FormItem
  790. className="half-item"
  791. {...formItemLayout}
  792. label="订单负责人"
  793. >
  794. <span>{data.salesmanName}</span>
  795. </FormItem>
  796. <FormItem
  797. className="half-item"
  798. {...formItemLayout}
  799. label="订单负责人电话"
  800. >
  801. <span>{data.salesmanMobile}</span>
  802. </FormItem>
  803. </div>
  804. <div className="clearfix">
  805. <FormItem
  806. className="half-item"
  807. {...formItemLayout}
  808. label="当前财务负责人"
  809. >
  810. <span>{data.nowFinance}</span>
  811. </FormItem>
  812. <FormItem
  813. className="half-item"
  814. {...formItemLayout}
  815. label="当前财务负责人电话"
  816. >
  817. <span>{data.nowFinanceMobile}</span>
  818. </FormItem>
  819. </div>
  820. <div className="clearfix">
  821. <FormItem
  822. className="half-item"
  823. {...formItemLayout}
  824. style={{ opacity: ".5" }}
  825. label="原订单负责人"
  826. >
  827. <span>{data.oldSalesmanName}</span>
  828. </FormItem>
  829. <FormItem
  830. className="half-item"
  831. {...formItemLayout}
  832. style={{ opacity: ".5" }}
  833. label="原订单负责人电话"
  834. >
  835. <span>{data.oldSalesmanMobile}</span>
  836. </FormItem>
  837. </div>
  838. <div className="clearfix">
  839. <FormItem
  840. className="half-item"
  841. style={{ opacity: ".5" }}
  842. {...formItemLayout}
  843. label="实际财务操作人"
  844. >
  845. <span>{data.financeName}</span>
  846. </FormItem>
  847. <FormItem
  848. className="half-item"
  849. {...formItemLayout}
  850. style={{ opacity: ".5" }}
  851. label="实际财务操作人电话"
  852. >
  853. <span>{data.financeMobile}</span>
  854. </FormItem>
  855. </div>
  856. {domId == 'yuan' ? "" : <OrderCoor orderNo={this.props.orderNo} />}
  857. <div>
  858. <span style={{ marginLeft: "50px", fontSize: "20px" }}>项目业务</span>
  859. </div>
  860. <div className="patent-table">
  861. <Table
  862. columns={this.state.columnsX}
  863. pagination={false}
  864. dataSource={this.props.dataSourceX}
  865. onRowClick={this.tableRowClickX}
  866. expandedRowRender={expandedRowRenderVip}
  867. rowClassName={this.addRowColor}
  868. style={{
  869. cursor: 'pointer',
  870. }}
  871. bordered
  872. size="small"
  873. />
  874. </div>
  875. <div>
  876. <span style={{ marginLeft: "50px", fontSize: "20px" }}>催款节点</span>
  877. <span
  878. style={{
  879. display: propsList.length ? "none" : "inline-block",
  880. marginLeft: 10,
  881. color: "red",
  882. }}
  883. >
  884. 金额总计(万元): {this.props.totalCui}
  885. </span>
  886. </div>
  887. <div className="clearfix">
  888. <Form layout="horizontal" id="demand-form">
  889. <Table
  890. pagination={false}
  891. bordered
  892. size="small"
  893. // columns={this.state.ContactsLists}
  894. columns={
  895. propsList.length
  896. ? this.state.ContactsLists
  897. : this.state.newContactsLists
  898. }
  899. dataSource={
  900. propsList.length
  901. ? this.props.contactList
  902. : this.props.contactListNew
  903. }
  904. />
  905. <Col span={24} offset={9} style={{ marginTop: "15px" }}></Col>
  906. </Form>
  907. </div>
  908. {this.state.visible &&
  909. <NewEditProject
  910. readOnly={
  911. this.state.dataInfor &&
  912. Object.keys(this.state.dataInfor).length > 0 &&
  913. this.state.processStatus !== 0
  914. }
  915. visible={this.state.visible}
  916. dataInfor={this.state.dataInfor}
  917. onCancel={this.nextCancel}
  918. />
  919. // <ProjectDetailsReadOnly
  920. // infor={this.state.dataInfor}
  921. // visible={this.state.visible}
  922. // onCancel={this.nextCancel}
  923. // />
  924. }
  925. </div>
  926. );
  927. }
  928. }
  929. export default OrderDetail;