orderDetail.js 25 KB

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