orderDetail.js 25 KB

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