orderDetail.js 24 KB

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