index.jsx 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. import React,{Component} from 'react';
  2. import {Form, Input, Modal, Select, Spin} from "antd";
  3. import {
  4. getboutique,
  5. } from "@/tools";
  6. const formItemLayout = {
  7. labelCol: { span: 8 },
  8. wrapperCol: { span: 14 }
  9. };
  10. const FormItem = Form.Item;
  11. class ProjectDetailsReadOnly extends Component{
  12. constructor(props) {
  13. super(props);
  14. this.state={
  15. loading: false,
  16. isIso: this.props.infor.commodityName.indexOf("贯标") !== -1,
  17. }
  18. }
  19. render() {
  20. const {
  21. commodityName,
  22. commodityQuantity,
  23. officialCost,
  24. costReduction,
  25. commodityPrice,
  26. main,
  27. taskComment,
  28. ifCertificationFee,//是否包含认证费
  29. certificationFee,//认证费
  30. certificationCorporate,//认证费公司
  31. declarationBatch,//批次
  32. type,//项目类型 0 正常 1专利 2软著 3审计 4双软 5高新 6商标,
  33. patentTypeName,//专利类型
  34. } = this.props.infor;
  35. const { isIso } = this.state;
  36. return (
  37. <Modal
  38. maskClosable={false}
  39. visible={this.props.visible}
  40. onOk={this.props.onCancel}
  41. onCancel={this.props.onCancel}
  42. width="800px"
  43. title="项目任务详情"
  44. footer=""
  45. className="admin-desc-content"
  46. >
  47. <Form layout="horizontal" id="demand-form">
  48. <div className="clearfix">
  49. <FormItem
  50. className="half-item"
  51. {...formItemLayout}
  52. label="项目名称"
  53. >
  54. <span>{commodityName}</span>
  55. </FormItem>
  56. <FormItem
  57. className="half-item"
  58. {...formItemLayout}
  59. label="项目数量"
  60. >
  61. <span>{commodityQuantity}</span>
  62. </FormItem>
  63. <FormItem
  64. className="half-item"
  65. {...formItemLayout}
  66. label="专利类型"
  67. style={{ display: type === 1 ? 'block' : 'none' }}
  68. >
  69. <span>{patentTypeName}</span>
  70. </FormItem>
  71. <FormItem
  72. className="half-item"
  73. {...formItemLayout}
  74. label="官费"
  75. style={{ display: type === 1 ? 'block' : 'none' }}
  76. >
  77. <span>
  78. {officialCost === 0 ? "无官费" : "有官费"}
  79. </span>
  80. </FormItem>
  81. <FormItem
  82. className="half-item"
  83. {...formItemLayout}
  84. label="费减"
  85. style={{ display: type === 1 ? 'block' : 'none' }}
  86. >
  87. <span>
  88. {costReduction === 0 ? "无费减" : "有费减"}
  89. </span>
  90. </FormItem>
  91. <FormItem
  92. className="half-item"
  93. {...formItemLayout}
  94. label="金额(万元)"
  95. >
  96. <span>{commodityPrice}</span>
  97. </FormItem>
  98. <FormItem
  99. className="half-item"
  100. {...formItemLayout}
  101. label="主要项目"
  102. >
  103. <span>{getboutique(String(main))}</span>
  104. </FormItem>
  105. {type === 5 && <FormItem
  106. className="half-item"
  107. {...formItemLayout}
  108. label="企业申报批次"
  109. >
  110. <span>
  111. {
  112. declarationBatch === 1 ? '第一批' :
  113. declarationBatch === 2 ? '第二批' :
  114. declarationBatch === 3 ? '第三批' :
  115. declarationBatch === 4 ? '第四批' : '未知'
  116. }
  117. </span>
  118. </FormItem>}
  119. {isIso && <FormItem
  120. className="half-item"
  121. {...formItemLayout}
  122. label="认证费"
  123. >
  124. <span>
  125. {
  126. ifCertificationFee === 1 ? '包含' :
  127. ifCertificationFee === 0 ? '不包含' :'未知'
  128. }
  129. </span>
  130. </FormItem> }
  131. {/*{isIso && ifCertificationFee === 1 ?<FormItem*/}
  132. {/* className="half-item"*/}
  133. {/* {...formItemLayout}*/}
  134. {/* label="认证费(万元)"*/}
  135. {/*>*/}
  136. {/* <span>{certificationFee || '暂无'}</span>*/}
  137. {/*</FormItem> : null}*/}
  138. {/*{isIso && ifCertificationFee === 1 ? <FormItem*/}
  139. {/* className="half-item"*/}
  140. {/* {...formItemLayout}*/}
  141. {/* label=""*/}
  142. {/*/> : null}*/}
  143. {/*{isIso && ifCertificationFee === 1 ? <FormItem*/}
  144. {/* className="half-item"*/}
  145. {/* {...formItemLayout}*/}
  146. {/* label="付款公司名称"*/}
  147. {/*>*/}
  148. {/* <span>{certificationCorporate || '暂无'}</span>*/}
  149. {/*</FormItem>:null}*/}
  150. <div className="clearfix">
  151. <FormItem
  152. labelCol={{ span: 4 }}
  153. wrapperCol={{ span: 16 }}
  154. label="服务说明"
  155. >
  156. <span>{taskComment}</span>
  157. </FormItem>
  158. </div>
  159. </div>
  160. </Form>
  161. </Modal>
  162. );
  163. }
  164. }
  165. export default ProjectDetailsReadOnly;