orderDetail.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  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
  421. className="clearfix"
  422. ref={(e) => {
  423. this.refs = e;
  424. }}
  425. >
  426. {this.state.resVisible ? (
  427. <ResolutionDetail
  428. cancel={this.resCancel}
  429. detail={this.state.resRecord}
  430. visible={this.state.resVisible}
  431. id={this.state.resRecord.orderNo}
  432. />
  433. ) : (
  434. ""
  435. )}
  436. <FormItem className="half-item" {...formItemLayout} label="订单编号">
  437. <span>{data.orderNo}</span>
  438. </FormItem>
  439. <FormItem className="half-item" {...formItemLayout} label="合同编号">
  440. <span>{data.contractNo}</span>
  441. </FormItem>
  442. <FormItem className="half-item" {...formItemLayout} label="客户名称">
  443. <span>{data.userName}</span>
  444. </FormItem>
  445. <FormItem
  446. className="half-item"
  447. {...formItemLayout}
  448. label="合同签订时间"
  449. >
  450. <span>{data.signDate}</span>
  451. </FormItem>
  452. <FormItem className="half-item" {...formItemLayout} label="流程状态">
  453. <span>{getProcessStatus(data.processStatus)}</span>
  454. </FormItem>
  455. <FormItem className="half-item" {...formItemLayout} label="结算状态">
  456. <span>{getLiquidationStatus(data.liquidationStatus)}</span>
  457. </FormItem>
  458. <FormItem className="half-item" {...formItemLayout} label="企业联系人">
  459. {/* <span>{data.contacts}</span> */}
  460. <span>{this.props.isCaiWu ? "***" : data.contacts}</span>
  461. </FormItem>
  462. <FormItem className="half-item" {...formItemLayout} label="联系人电话">
  463. {/* <span>{data.contactMobile}</span> */}
  464. <span>{this.props.isCaiWu ? "***" : data.contactMobile}</span>
  465. </FormItem>
  466. <FormItem className="half-item" {...formItemLayout} label="企业法人">
  467. <span>{this.props.isCaiWu ? "***" : data.legalPerson}</span>
  468. </FormItem>
  469. <FormItem className="half-item" {...formItemLayout} label="法人电话">
  470. {/* <span>{data.legalPersonTel}</span> */}
  471. <span>{this.props.isCaiWu ? "***" : data.legalPersonTel}</span>
  472. </FormItem>
  473. <FormItem
  474. className="half-item"
  475. {...formItemLayout}
  476. label="签单金额(万元)"
  477. >
  478. <span>
  479. {this.props.processState === 2 ? "***" : data.totalAmount}
  480. </span>
  481. </FormItem>
  482. <FormItem
  483. className="half-item"
  484. {...formItemLayout}
  485. label="首付金额(万元)"
  486. >
  487. <span>
  488. {this.props.processState === 2 ? "***" : data.firstAmount}
  489. </span>
  490. </FormItem>
  491. <FormItem className="half-item" {...formItemLayout} label="特批立项">
  492. <span>{getApprovedState(data.approval)}</span>
  493. </FormItem>
  494. <FormItem
  495. className="half-item"
  496. {...formItemLayout}
  497. label="已收款项(万元)"
  498. >
  499. <span>
  500. {this.props.processState === 2 ? "***" : data.settlementAmount}
  501. </span>
  502. </FormItem>
  503. <FormItem className="half-item" {...formItemLayout} label="订单部门">
  504. <span>{data.depName}</span>
  505. </FormItem>
  506. <FormItem className="half-item" {...formItemLayout} label="是否外包">
  507. {data.outsource == 0 ? "否" : "是"}
  508. </FormItem>
  509. <div className="clearfix">
  510. <FormItem
  511. labelCol={{ span: 4 }}
  512. wrapperCol={{ span: 16 }}
  513. label="订单留言"
  514. >
  515. <p style={{ width: 500, wordWrap: "break-word" }}>
  516. {data.orderRemarks}
  517. </p>
  518. </FormItem>
  519. </div>
  520. <div className="clearfix">
  521. <FormItem
  522. labelCol={{ span: 4 }}
  523. wrapperCol={{ span: 18 }}
  524. label="合同扫描件"
  525. >
  526. <Upload
  527. className="demandDetailShow-upload"
  528. listType="picture-card"
  529. fileList={
  530. data.contractPictureUrl
  531. ? splitUrl(
  532. data.contractPictureUrl,
  533. ",",
  534. globalConfig.avatarHost + "/upload"
  535. )
  536. : []
  537. }
  538. onPreview={(file) => {
  539. this.setState({
  540. previewImage: file.url || file.thumbUrl,
  541. previewVisible: true,
  542. });
  543. }}
  544. />
  545. {/*{(data.contractPictureUrl*/}
  546. {/* ? splitUrl(*/}
  547. {/* data.contractPictureUrl,*/}
  548. {/* ",",*/}
  549. {/* globalConfig.avatarHost + "/upload"*/}
  550. {/* )*/}
  551. {/* : []).length > 0 ? <div style={{paddingTop:'10px',paddingBottom:'10px'}}>*/}
  552. {/* <ImgList fileList={*/}
  553. {/* data.contractPictureUrl*/}
  554. {/* ? splitUrl(*/}
  555. {/* data.contractPictureUrl,*/}
  556. {/* ",",*/}
  557. {/* globalConfig.avatarHost + "/upload"*/}
  558. {/* )*/}
  559. {/* : []*/}
  560. {/* } ItemWidth={'96px'}/>*/}
  561. {/*</div> : <div/>}*/}
  562. <Modal
  563. maskClosable={false}
  564. footer={null}
  565. width={"50%"}
  566. visible={this.state.previewVisible}
  567. onCancel={() => {
  568. this.state.rotateDeg = 0;
  569. this.setState({
  570. previewVisible: false,
  571. rotateDeg: this.state.rotateDeg,
  572. });
  573. }}
  574. >
  575. <img
  576. alt=""
  577. style={{
  578. width: "100%",
  579. transform: `rotate(${this.state.rotateDeg}deg)`,
  580. }}
  581. src={this.state.previewImage || ""}
  582. />
  583. <Button
  584. onClick={this.rotate}
  585. style={{
  586. position: "relative",
  587. left: "50%",
  588. transform: "translateX(-50%)",
  589. }}
  590. >
  591. 旋转
  592. </Button>
  593. <Button
  594. onClick={this.upImg}
  595. style={{
  596. position: "absolute",
  597. left: -81,
  598. top: "50%",
  599. transform: "translateY(-50%)",
  600. }}
  601. >
  602. 上一张
  603. </Button>
  604. <Button
  605. onClick={this.downImg}
  606. style={{
  607. position: "absolute",
  608. right: -81,
  609. top: "50%",
  610. transform: "translateY(-50%)",
  611. }}
  612. >
  613. 下一张
  614. </Button>
  615. </Modal>
  616. <Button
  617. style={{
  618. float: "right",
  619. marginRight: "140px",
  620. marginTop: "20px",
  621. }}
  622. onClick={() => {
  623. this.props.getOrderLog(data.orderNo);
  624. }}
  625. >
  626. 查看订单日志
  627. </Button>
  628. </FormItem>
  629. <FormItem
  630. labelCol={{ span: 4 }}
  631. wrapperCol={{ span: 18 }}
  632. label="补充协议"
  633. >
  634. {/*<Upload*/}
  635. {/* className="demandDetailShow-upload"*/}
  636. {/* listType="picture-card"*/}
  637. {/* fileList={*/}
  638. {/* data.agreementUrl*/}
  639. {/* ? splitUrl(*/}
  640. {/* data.agreementUrl,*/}
  641. {/* ",",*/}
  642. {/* globalConfig.avatarHost + "/upload"*/}
  643. {/* )*/}
  644. {/* : []*/}
  645. {/* }*/}
  646. {/* onPreview={(file) => {*/}
  647. {/* this.setState({*/}
  648. {/* previewImage: file.url || file.thumbUrl,*/}
  649. {/* previewVisibles: true,*/}
  650. {/* });*/}
  651. {/* }}*/}
  652. {/*/>*/}
  653. <Modal
  654. maskClosable={false}
  655. footer={null}
  656. width={"50%"}
  657. visible={this.state.previewVisibles}
  658. onCancel={() => {
  659. this.state.rotateDeg = 0;
  660. this.setState({
  661. previewVisibles: false,
  662. rotateDeg: this.state.rotateDeg,
  663. });
  664. }}
  665. >
  666. <img
  667. alt=""
  668. style={{
  669. width: "100%",
  670. transform: `rotate(${this.state.rotateDeg}deg)`,
  671. }}
  672. src={this.state.previewImage || ""}
  673. />
  674. <Button
  675. onClick={this.rotate}
  676. style={{
  677. position: "relative",
  678. left: "50%",
  679. transform: "translateX(-50%)",
  680. }}
  681. >
  682. 旋转
  683. </Button>
  684. <Button
  685. onClick={this.upImgs}
  686. style={{
  687. position: "absolute",
  688. left: -81,
  689. top: "50%",
  690. transform: "translateY(-50%)",
  691. }}
  692. >
  693. 上一张
  694. </Button>
  695. <Button
  696. onClick={this.downImgs}
  697. style={{
  698. position: "absolute",
  699. right: -81,
  700. top: "50%",
  701. transform: "translateY(-50%)",
  702. }}
  703. >
  704. 下一张
  705. </Button>
  706. </Modal>
  707. </FormItem>
  708. </div>
  709. <div className="clearfix">
  710. <FormItem
  711. className="half-item"
  712. {...formItemLayout}
  713. label="订单负责人"
  714. >
  715. <span>{data.salesmanName}</span>
  716. </FormItem>
  717. <FormItem
  718. className="half-item"
  719. {...formItemLayout}
  720. label="订单负责人电话"
  721. >
  722. <span>{data.salesmanMobile}</span>
  723. </FormItem>
  724. </div>
  725. <div className="clearfix">
  726. <FormItem
  727. className="half-item"
  728. {...formItemLayout}
  729. label="当前财务负责人"
  730. >
  731. <span>{data.nowFinance}</span>
  732. </FormItem>
  733. <FormItem
  734. className="half-item"
  735. {...formItemLayout}
  736. label="当前财务负责人电话"
  737. >
  738. <span>{data.nowFinanceMobile}</span>
  739. </FormItem>
  740. </div>
  741. <div className="clearfix">
  742. <FormItem
  743. className="half-item"
  744. {...formItemLayout}
  745. style={{ opacity: ".5" }}
  746. label="原订单负责人"
  747. >
  748. <span>{data.oldSalesmanName}</span>
  749. </FormItem>
  750. <FormItem
  751. className="half-item"
  752. {...formItemLayout}
  753. style={{ opacity: ".5" }}
  754. label="原订单负责人电话"
  755. >
  756. <span>{data.oldSalesmanMobile}</span>
  757. </FormItem>
  758. </div>
  759. <div className="clearfix">
  760. <FormItem
  761. className="half-item"
  762. style={{ opacity: ".5" }}
  763. {...formItemLayout}
  764. label="实际财务操作人"
  765. >
  766. <span>{data.financeName}</span>
  767. </FormItem>
  768. <FormItem
  769. className="half-item"
  770. {...formItemLayout}
  771. style={{ opacity: ".5" }}
  772. label="实际财务操作人电话"
  773. >
  774. <span>{data.financeMobile}</span>
  775. </FormItem>
  776. </div>
  777. <div>
  778. <span style={{ marginLeft: "50px", fontSize: "20px" }}>项目业务</span>
  779. </div>
  780. <div className="patent-table">
  781. <Table
  782. columns={this.state.columnsX}
  783. pagination={false}
  784. dataSource={this.props.dataSourceX}
  785. onRowClick={this.tableRowClickX}
  786. bordered
  787. size="small"
  788. />
  789. </div>
  790. <div>
  791. <span style={{ marginLeft: "50px", fontSize: "20px" }}>催款节点</span>
  792. <span
  793. style={{
  794. display: propsList.length ? "none" : "inline-block",
  795. marginLeft: 10,
  796. color: "red",
  797. }}
  798. >
  799. 金额总计(万元): {this.props.totalCui}
  800. </span>
  801. </div>
  802. <div className="clearfix">
  803. <Form layout="horizontal" id="demand-form">
  804. <Table
  805. pagination={false}
  806. bordered
  807. size="small"
  808. // columns={this.state.ContactsLists}
  809. columns={
  810. propsList.length
  811. ? this.state.ContactsLists
  812. : this.state.newContactsLists
  813. }
  814. dataSource={
  815. propsList.length
  816. ? this.props.contactList
  817. : this.props.contactListNew
  818. }
  819. />
  820. <Col span={24} offset={9} style={{ marginTop: "15px" }}></Col>
  821. </Form>
  822. </div>
  823. <Modal
  824. maskClosable={false}
  825. visible={this.state.visible}
  826. onOk={this.nextCancel}
  827. onCancel={this.nextCancel}
  828. width="800px"
  829. title={"项目任务详情"}
  830. footer=""
  831. className="admin-desc-content"
  832. >
  833. <Form layout="horizontal" id="demand-form">
  834. <div className="clearfix">
  835. <FormItem
  836. className="half-item"
  837. {...formItemLayout}
  838. label="项目名称"
  839. >
  840. <span>{this.state.commodityName}</span>
  841. </FormItem>
  842. <FormItem
  843. className="half-item"
  844. {...formItemLayout}
  845. label="项目数量"
  846. >
  847. <span>{this.state.commodityQuantity}</span>
  848. </FormItem>
  849. <FormItem
  850. className="half-item"
  851. {...formItemLayout}
  852. label="金额(万元)"
  853. >
  854. <span>{this.state.commodityPrice}</span>
  855. </FormItem>
  856. <FormItem
  857. className="half-item"
  858. {...formItemLayout}
  859. label="主要项目"
  860. >
  861. <span>{getboutique(this.state.main)}</span>
  862. </FormItem>
  863. <div className="clearfix">
  864. <FormItem
  865. labelCol={{ span: 4 }}
  866. wrapperCol={{ span: 16 }}
  867. label="服务说明"
  868. >
  869. <span>{this.state.taskComment}</span>
  870. </FormItem>
  871. </div>
  872. </div>
  873. </Form>
  874. </Modal>
  875. </div>
  876. );
  877. }
  878. }
  879. export default OrderDetail;