orderDetail.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870
  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, record) => {
  26. return <span>{text + "-" + record.tid}</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. render: (text, record) => {
  137. return text + "-" + record.id
  138. }
  139. },
  140. {
  141. title: "项目类别",
  142. dataIndex: "cname",
  143. key: "cname"
  144. },
  145. {
  146. title: "项目数量",
  147. dataIndex: "commodityQuantity",
  148. key: "commodityQuantity",
  149. render: (text, record) => {
  150. if (record.splitStatus == 1) {
  151. return (
  152. <span>
  153. {text}{" "}
  154. <Tag
  155. color="#108ee9"
  156. onClick={e => {
  157. e.stopPropagation();
  158. this.showRes(record);
  159. }}
  160. >
  161. 已拆
  162. </Tag>
  163. </span>
  164. );
  165. } else {
  166. return text;
  167. }
  168. }
  169. },
  170. {
  171. title: "金额(万元)",
  172. dataIndex: "commodityPrice",
  173. key: "commodityPrice",
  174. render: text => {
  175. return this.props.processState === 2 ? "***" : text;
  176. }
  177. },
  178. {
  179. title: "负责人",
  180. dataIndex: "contacts",
  181. key: "contacts"
  182. },
  183. {
  184. title: "负责人电话",
  185. dataIndex: "contactsMobile",
  186. key: "contactsMobile"
  187. },
  188. {
  189. title: "项目状态",
  190. dataIndex: "projectStatus",
  191. key: "projectStatus",
  192. render: text => {
  193. return getProjectStatus(text);
  194. }
  195. },
  196. {
  197. title: "主要项目",
  198. dataIndex: "main",
  199. key: "main",
  200. render: text => {
  201. return text ? "是" : "否";
  202. }
  203. },
  204. {
  205. title: "项目说明",
  206. dataIndex: "taskComment",
  207. key: "taskComment",
  208. render: text => {
  209. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  210. }
  211. }
  212. ],
  213. rotateDeg: 0
  214. };
  215. this.tableRowClickX = this.tableRowClickX.bind(this);
  216. this.nextCancel = this.nextCancel.bind(this);
  217. this.rotate = this.rotate.bind(this);
  218. this.downImg = this.downImg.bind(this);
  219. this.upImg = this.upImg.bind(this);
  220. this.downImgs = this.downImgs.bind(this);
  221. this.upImgs = this.upImgs.bind(this);
  222. this.showRes = this.showRes.bind(this);
  223. this.resCancel = this.resCancel.bind(this);
  224. }
  225. rotate() {
  226. let rotateDeg = this.state.rotateDeg + 90;
  227. this.setState({
  228. rotateDeg
  229. });
  230. }
  231. //项目详情关闭
  232. nextCancel() {
  233. this.setState({
  234. visible: false
  235. });
  236. }
  237. //点击打卡项目详情
  238. tableRowClickX(record) {
  239. this.setState({
  240. jid: record.id, //项目ID
  241. kid: record.commodityId, //商品ID
  242. commodityName: record.commodityName, //金额
  243. commodityPrice: record.commodityPrice, //金额
  244. commodityQuantity: record.commodityQuantity, //数量
  245. taskComment: record.taskComment, //备注
  246. main: record.main.toString(), //是否为主要
  247. visible: true,
  248. addState: 0
  249. });
  250. }
  251. downImg() {
  252. console.log(this.props.pictureUrl);
  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. <Modal
  546. maskClosable={false}
  547. footer={null}
  548. width={"50%"}
  549. visible={this.state.previewVisible}
  550. onCancel={() => {
  551. this.state.rotateDeg = 0;
  552. this.setState({
  553. previewVisible: false,
  554. rotateDeg: this.state.rotateDeg,
  555. });
  556. }}
  557. >
  558. <img
  559. alt=""
  560. style={{
  561. width: "100%",
  562. transform: `rotate(${this.state.rotateDeg}deg)`,
  563. }}
  564. src={this.state.previewImage || ""}
  565. />
  566. <Button
  567. onClick={this.rotate}
  568. style={{
  569. position: "relative",
  570. left: "50%",
  571. transform: "translateX(-50%)",
  572. }}
  573. >
  574. 旋转
  575. </Button>
  576. <Button
  577. onClick={this.upImg}
  578. style={{
  579. position: "absolute",
  580. left: -81,
  581. top: "50%",
  582. transform: "translateY(-50%)",
  583. }}
  584. >
  585. 上一张
  586. </Button>
  587. <Button
  588. onClick={this.downImg}
  589. style={{
  590. position: "absolute",
  591. right: -81,
  592. top: "50%",
  593. transform: "translateY(-50%)",
  594. }}
  595. >
  596. 下一张
  597. </Button>
  598. </Modal>
  599. <Button
  600. style={{
  601. float: "right",
  602. marginRight: "140px",
  603. marginTop: "20px",
  604. }}
  605. onClick={() => {
  606. this.props.getOrderLog(data.orderNo);
  607. }}
  608. >
  609. 查看订单日志
  610. </Button>
  611. </FormItem>
  612. <FormItem
  613. labelCol={{ span: 4 }}
  614. wrapperCol={{ span: 18 }}
  615. label="补充协议"
  616. >
  617. <Upload
  618. className="demandDetailShow-upload"
  619. listType="picture-card"
  620. fileList={
  621. data.agreementUrl
  622. ? splitUrl(
  623. data.agreementUrl,
  624. ",",
  625. globalConfig.avatarHost + "/upload"
  626. )
  627. : []
  628. }
  629. onPreview={(file) => {
  630. this.setState({
  631. previewImage: file.url || file.thumbUrl,
  632. previewVisibles: true,
  633. });
  634. }}
  635. />
  636. <Modal
  637. maskClosable={false}
  638. footer={null}
  639. width={"50%"}
  640. visible={this.state.previewVisibles}
  641. onCancel={() => {
  642. this.state.rotateDeg = 0;
  643. this.setState({
  644. previewVisibles: false,
  645. rotateDeg: this.state.rotateDeg,
  646. });
  647. }}
  648. >
  649. <img
  650. alt=""
  651. style={{
  652. width: "100%",
  653. transform: `rotate(${this.state.rotateDeg}deg)`,
  654. }}
  655. src={this.state.previewImage || ""}
  656. />
  657. <Button
  658. onClick={this.rotate}
  659. style={{
  660. position: "relative",
  661. left: "50%",
  662. transform: "translateX(-50%)",
  663. }}
  664. >
  665. 旋转
  666. </Button>
  667. <Button
  668. onClick={this.upImgs}
  669. style={{
  670. position: "absolute",
  671. left: -81,
  672. top: "50%",
  673. transform: "translateY(-50%)",
  674. }}
  675. >
  676. 上一张
  677. </Button>
  678. <Button
  679. onClick={this.downImgs}
  680. style={{
  681. position: "absolute",
  682. right: -81,
  683. top: "50%",
  684. transform: "translateY(-50%)",
  685. }}
  686. >
  687. 下一张
  688. </Button>
  689. </Modal>
  690. </FormItem>
  691. </div>
  692. <div className="clearfix">
  693. <FormItem
  694. className="half-item"
  695. {...formItemLayout}
  696. label="订单负责人"
  697. >
  698. <span>{data.salesmanName}</span>
  699. </FormItem>
  700. <FormItem
  701. className="half-item"
  702. {...formItemLayout}
  703. label="订单负责人电话"
  704. >
  705. <span>{data.salesmanMobile}</span>
  706. </FormItem>
  707. </div>
  708. <div className="clearfix">
  709. <FormItem
  710. className="half-item"
  711. {...formItemLayout}
  712. label="当前财务负责人"
  713. >
  714. <span>{data.nowFinance}</span>
  715. </FormItem>
  716. <FormItem
  717. className="half-item"
  718. {...formItemLayout}
  719. label="当前财务负责人电话"
  720. >
  721. <span>{data.nowFinanceMobile}</span>
  722. </FormItem>
  723. </div>
  724. <div className="clearfix">
  725. <FormItem
  726. className="half-item"
  727. {...formItemLayout}
  728. style={{ opacity: ".5" }}
  729. label="原订单负责人"
  730. >
  731. <span>{data.oldSalesmanName}</span>
  732. </FormItem>
  733. <FormItem
  734. className="half-item"
  735. {...formItemLayout}
  736. style={{ opacity: ".5" }}
  737. label="原订单负责人电话"
  738. >
  739. <span>{data.oldSalesmanMobile}</span>
  740. </FormItem>
  741. </div>
  742. <div className="clearfix">
  743. <FormItem
  744. className="half-item"
  745. style={{ opacity: ".5" }}
  746. {...formItemLayout}
  747. label="实际财务操作人"
  748. >
  749. <span>{data.financeName}</span>
  750. </FormItem>
  751. <FormItem
  752. className="half-item"
  753. {...formItemLayout}
  754. style={{ opacity: ".5" }}
  755. label="实际财务操作人电话"
  756. >
  757. <span>{data.financeMobile}</span>
  758. </FormItem>
  759. </div>
  760. <div>
  761. <span style={{ marginLeft: "50px", fontSize: "20px" }}>项目业务</span>
  762. </div>
  763. <div className="patent-table">
  764. <Table
  765. columns={this.state.columnsX}
  766. pagination={false}
  767. dataSource={this.props.dataSourceX}
  768. onRowClick={this.tableRowClickX}
  769. bordered
  770. size="small"
  771. />
  772. </div>
  773. <div>
  774. <span style={{ marginLeft: "50px", fontSize: "20px" }}>催款节点</span>
  775. <span
  776. style={{
  777. display: propsList.length ? "none" : "inline-block",
  778. marginLeft: 10,
  779. color: "red",
  780. }}
  781. >
  782. 金额总计(万元): {this.props.totalCui}
  783. </span>
  784. </div>
  785. <div className="clearfix">
  786. <Form layout="horizontal" id="demand-form">
  787. <Table
  788. pagination={false}
  789. bordered
  790. size="small"
  791. // columns={this.state.ContactsLists}
  792. columns={
  793. propsList.length
  794. ? this.state.ContactsLists
  795. : this.state.newContactsLists
  796. }
  797. dataSource={
  798. propsList.length
  799. ? this.props.contactList
  800. : this.props.contactListNew
  801. }
  802. />
  803. <Col span={24} offset={9} style={{ marginTop: "15px" }}></Col>
  804. </Form>
  805. </div>
  806. <Modal
  807. maskClosable={false}
  808. visible={this.state.visible}
  809. onOk={this.nextCancel}
  810. onCancel={this.nextCancel}
  811. width="800px"
  812. title={"项目任务详情"}
  813. footer=""
  814. className="admin-desc-content"
  815. >
  816. <Form layout="horizontal" id="demand-form">
  817. <div className="clearfix">
  818. <FormItem
  819. className="half-item"
  820. {...formItemLayout}
  821. label="项目名称"
  822. >
  823. <span>{this.state.commodityName}</span>
  824. </FormItem>
  825. <FormItem
  826. className="half-item"
  827. {...formItemLayout}
  828. label="项目数量"
  829. >
  830. <span>{this.state.commodityQuantity}</span>
  831. </FormItem>
  832. <FormItem
  833. className="half-item"
  834. {...formItemLayout}
  835. label="金额(万元)"
  836. >
  837. <span>{this.state.commodityPrice}</span>
  838. </FormItem>
  839. <FormItem
  840. className="half-item"
  841. {...formItemLayout}
  842. label="主要项目"
  843. >
  844. <span>{getboutique(this.state.main)}</span>
  845. </FormItem>
  846. <div className="clearfix">
  847. <FormItem
  848. labelCol={{ span: 4 }}
  849. wrapperCol={{ span: 16 }}
  850. label="服务说明"
  851. >
  852. <span>{this.state.taskComment}</span>
  853. </FormItem>
  854. </div>
  855. </div>
  856. </Form>
  857. </Modal>
  858. </div>
  859. );
  860. }
  861. }
  862. export default OrderDetail;