orderDetail.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892
  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. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  546. <ImgList fileList={
  547. data.contractPictureUrl
  548. ? splitUrl(
  549. data.contractPictureUrl,
  550. ",",
  551. globalConfig.avatarHost + "/upload"
  552. )
  553. : []
  554. } ItemWidth={'96px'}/>
  555. </div>
  556. <Modal
  557. maskClosable={false}
  558. footer={null}
  559. width={"50%"}
  560. visible={this.state.previewVisible}
  561. onCancel={() => {
  562. this.state.rotateDeg = 0;
  563. this.setState({
  564. previewVisible: false,
  565. rotateDeg: this.state.rotateDeg,
  566. });
  567. }}
  568. >
  569. <img
  570. alt=""
  571. style={{
  572. width: "100%",
  573. transform: `rotate(${this.state.rotateDeg}deg)`,
  574. }}
  575. src={this.state.previewImage || ""}
  576. />
  577. <Button
  578. onClick={this.rotate}
  579. style={{
  580. position: "relative",
  581. left: "50%",
  582. transform: "translateX(-50%)",
  583. }}
  584. >
  585. 旋转
  586. </Button>
  587. <Button
  588. onClick={this.upImg}
  589. style={{
  590. position: "absolute",
  591. left: -81,
  592. top: "50%",
  593. transform: "translateY(-50%)",
  594. }}
  595. >
  596. 上一张
  597. </Button>
  598. <Button
  599. onClick={this.downImg}
  600. style={{
  601. position: "absolute",
  602. right: -81,
  603. top: "50%",
  604. transform: "translateY(-50%)",
  605. }}
  606. >
  607. 下一张
  608. </Button>
  609. </Modal>
  610. <Button
  611. style={{
  612. float: "right",
  613. marginRight: "140px",
  614. marginTop: "20px",
  615. }}
  616. onClick={() => {
  617. this.props.getOrderLog(data.orderNo);
  618. }}
  619. >
  620. 查看订单日志
  621. </Button>
  622. </FormItem>
  623. <FormItem
  624. labelCol={{ span: 4 }}
  625. wrapperCol={{ span: 18 }}
  626. label="补充协议"
  627. >
  628. {/*<Upload*/}
  629. {/* className="demandDetailShow-upload"*/}
  630. {/* listType="picture-card"*/}
  631. {/* fileList={*/}
  632. {/* data.agreementUrl*/}
  633. {/* ? splitUrl(*/}
  634. {/* data.agreementUrl,*/}
  635. {/* ",",*/}
  636. {/* globalConfig.avatarHost + "/upload"*/}
  637. {/* )*/}
  638. {/* : []*/}
  639. {/* }*/}
  640. {/* onPreview={(file) => {*/}
  641. {/* this.setState({*/}
  642. {/* previewImage: file.url || file.thumbUrl,*/}
  643. {/* previewVisibles: true,*/}
  644. {/* });*/}
  645. {/* }}*/}
  646. {/*/>*/}
  647. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  648. <ImgList fileList={
  649. data.agreementUrl
  650. ? splitUrl(
  651. data.agreementUrl,
  652. ",",
  653. globalConfig.avatarHost + "/upload"
  654. )
  655. : []
  656. } ItemWidth={'96px'}/>
  657. </div>
  658. <Modal
  659. maskClosable={false}
  660. footer={null}
  661. width={"50%"}
  662. visible={this.state.previewVisibles}
  663. onCancel={() => {
  664. this.state.rotateDeg = 0;
  665. this.setState({
  666. previewVisibles: false,
  667. rotateDeg: this.state.rotateDeg,
  668. });
  669. }}
  670. >
  671. <img
  672. alt=""
  673. style={{
  674. width: "100%",
  675. transform: `rotate(${this.state.rotateDeg}deg)`,
  676. }}
  677. src={this.state.previewImage || ""}
  678. />
  679. <Button
  680. onClick={this.rotate}
  681. style={{
  682. position: "relative",
  683. left: "50%",
  684. transform: "translateX(-50%)",
  685. }}
  686. >
  687. 旋转
  688. </Button>
  689. <Button
  690. onClick={this.upImgs}
  691. style={{
  692. position: "absolute",
  693. left: -81,
  694. top: "50%",
  695. transform: "translateY(-50%)",
  696. }}
  697. >
  698. 上一张
  699. </Button>
  700. <Button
  701. onClick={this.downImgs}
  702. style={{
  703. position: "absolute",
  704. right: -81,
  705. top: "50%",
  706. transform: "translateY(-50%)",
  707. }}
  708. >
  709. 下一张
  710. </Button>
  711. </Modal>
  712. </FormItem>
  713. </div>
  714. <div className="clearfix">
  715. <FormItem
  716. className="half-item"
  717. {...formItemLayout}
  718. label="订单负责人"
  719. >
  720. <span>{data.salesmanName}</span>
  721. </FormItem>
  722. <FormItem
  723. className="half-item"
  724. {...formItemLayout}
  725. label="订单负责人电话"
  726. >
  727. <span>{data.salesmanMobile}</span>
  728. </FormItem>
  729. </div>
  730. <div className="clearfix">
  731. <FormItem
  732. className="half-item"
  733. {...formItemLayout}
  734. label="当前财务负责人"
  735. >
  736. <span>{data.nowFinance}</span>
  737. </FormItem>
  738. <FormItem
  739. className="half-item"
  740. {...formItemLayout}
  741. label="当前财务负责人电话"
  742. >
  743. <span>{data.nowFinanceMobile}</span>
  744. </FormItem>
  745. </div>
  746. <div className="clearfix">
  747. <FormItem
  748. className="half-item"
  749. {...formItemLayout}
  750. style={{ opacity: ".5" }}
  751. label="原订单负责人"
  752. >
  753. <span>{data.oldSalesmanName}</span>
  754. </FormItem>
  755. <FormItem
  756. className="half-item"
  757. {...formItemLayout}
  758. style={{ opacity: ".5" }}
  759. label="原订单负责人电话"
  760. >
  761. <span>{data.oldSalesmanMobile}</span>
  762. </FormItem>
  763. </div>
  764. <div className="clearfix">
  765. <FormItem
  766. className="half-item"
  767. style={{ opacity: ".5" }}
  768. {...formItemLayout}
  769. label="实际财务操作人"
  770. >
  771. <span>{data.financeName}</span>
  772. </FormItem>
  773. <FormItem
  774. className="half-item"
  775. {...formItemLayout}
  776. style={{ opacity: ".5" }}
  777. label="实际财务操作人电话"
  778. >
  779. <span>{data.financeMobile}</span>
  780. </FormItem>
  781. </div>
  782. <div>
  783. <span style={{ marginLeft: "50px", fontSize: "20px" }}>项目业务</span>
  784. </div>
  785. <div className="patent-table">
  786. <Table
  787. columns={this.state.columnsX}
  788. pagination={false}
  789. dataSource={this.props.dataSourceX}
  790. onRowClick={this.tableRowClickX}
  791. bordered
  792. size="small"
  793. />
  794. </div>
  795. <div>
  796. <span style={{ marginLeft: "50px", fontSize: "20px" }}>催款节点</span>
  797. <span
  798. style={{
  799. display: propsList.length ? "none" : "inline-block",
  800. marginLeft: 10,
  801. color: "red",
  802. }}
  803. >
  804. 金额总计(万元): {this.props.totalCui}
  805. </span>
  806. </div>
  807. <div className="clearfix">
  808. <Form layout="horizontal" id="demand-form">
  809. <Table
  810. pagination={false}
  811. bordered
  812. size="small"
  813. // columns={this.state.ContactsLists}
  814. columns={
  815. propsList.length
  816. ? this.state.ContactsLists
  817. : this.state.newContactsLists
  818. }
  819. dataSource={
  820. propsList.length
  821. ? this.props.contactList
  822. : this.props.contactListNew
  823. }
  824. />
  825. <Col span={24} offset={9} style={{ marginTop: "15px" }}></Col>
  826. </Form>
  827. </div>
  828. <Modal
  829. maskClosable={false}
  830. visible={this.state.visible}
  831. onOk={this.nextCancel}
  832. onCancel={this.nextCancel}
  833. width="800px"
  834. title={"项目任务详情"}
  835. footer=""
  836. className="admin-desc-content"
  837. >
  838. <Form layout="horizontal" id="demand-form">
  839. <div className="clearfix">
  840. <FormItem
  841. className="half-item"
  842. {...formItemLayout}
  843. label="项目名称"
  844. >
  845. <span>{this.state.commodityName}</span>
  846. </FormItem>
  847. <FormItem
  848. className="half-item"
  849. {...formItemLayout}
  850. label="项目数量"
  851. >
  852. <span>{this.state.commodityQuantity}</span>
  853. </FormItem>
  854. <FormItem
  855. className="half-item"
  856. {...formItemLayout}
  857. label="金额(万元)"
  858. >
  859. <span>{this.state.commodityPrice}</span>
  860. </FormItem>
  861. <FormItem
  862. className="half-item"
  863. {...formItemLayout}
  864. label="主要项目"
  865. >
  866. <span>{getboutique(this.state.main)}</span>
  867. </FormItem>
  868. <div className="clearfix">
  869. <FormItem
  870. labelCol={{ span: 4 }}
  871. wrapperCol={{ span: 16 }}
  872. label="服务说明"
  873. >
  874. <span>{this.state.taskComment}</span>
  875. </FormItem>
  876. </div>
  877. </div>
  878. </Form>
  879. </Modal>
  880. </div>
  881. );
  882. }
  883. }
  884. export default OrderDetail;