orderDetail.js 24 KB

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