index.js 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. import React,{Component} from 'react';
  2. import {Form} from 'antd';
  3. import { getRefundStatus } from '@/tools';
  4. import ImgList from "../../../common/imgList";
  5. const formItemLayout = {
  6. labelCol: { span: 8 },
  7. wrapperCol: { span: 14 },
  8. }
  9. class OldInforProject extends Component{
  10. constructor(props) {
  11. super(props);
  12. this.state={
  13. }
  14. }
  15. render() {
  16. const {oldInfor} = this.props;
  17. return (
  18. <div>
  19. <div className="clearfix">
  20. <Form.Item
  21. className="half-item"
  22. {...formItemLayout}
  23. label="外包公司"
  24. >
  25. <span>{oldInfor.companyName}</span>
  26. </Form.Item>
  27. </div>
  28. <div className="clearfix">
  29. <Form.Item
  30. className="half-item"
  31. {...formItemLayout}
  32. label="单价(万元)"
  33. >
  34. <span>{oldInfor.unitPrice}</span>
  35. </Form.Item>
  36. </div>
  37. <div className="clearfix">
  38. <Form.Item
  39. className="half-item"
  40. {...formItemLayout}
  41. label="数量(个)"
  42. >
  43. <span>{oldInfor.unitNumber}</span>
  44. </Form.Item>
  45. </div>
  46. <div className="clearfix">
  47. <Form.Item
  48. className="half-item"
  49. {...formItemLayout}
  50. label="总金额(万元)"
  51. >
  52. <span>{oldInfor.amount}</span>
  53. </Form.Item>
  54. </div>
  55. <div className="clearfix">
  56. <Form.Item
  57. className="half-item"
  58. {...formItemLayout}
  59. label="备注"
  60. >
  61. <span>{oldInfor.outsourceRemarks}</span>
  62. </Form.Item>
  63. </div>
  64. <div className="clearfix">
  65. <Form.Item
  66. labelCol={{ span: 4 }}
  67. wrapperCol={{ span: 18 }}
  68. label="合同/协议扫描件"
  69. >
  70. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  71. <ImgList fileList={oldInfor.pictureUrl}/>
  72. </div>
  73. </Form.Item>
  74. </div>
  75. <div className="clearfix" style={{
  76. borderTop:'1px #000000 solid'
  77. }}>
  78. <Form.Item
  79. className="half-item"
  80. {...formItemLayout}
  81. label="审核结果"
  82. >
  83. <span>{getRefundStatus(oldInfor.refundStatus)}</span>
  84. </Form.Item>
  85. </div>
  86. </div>
  87. )
  88. }
  89. }
  90. export default OldInforProject;