import React,{Component} from 'react'; import {Form, Input, Modal, Select, Spin} from "antd"; import { getboutique, } from "@/tools"; const formItemLayout = { labelCol: { span: 8 }, wrapperCol: { span: 14 } }; const FormItem = Form.Item; class ProjectDetailsReadOnly extends Component{ constructor(props) { super(props); this.state={ loading: false, isIso: this.props.infor.commodityName.indexOf("贯标") !== -1, } } render() { const { commodityName, commodityQuantity, officialCost, costReduction, commodityPrice, main, taskComment, ifCertificationFee,//是否包含认证费 certificationFee,//认证费 certificationCorporate,//认证费公司 declarationBatch,//批次 type,//项目类型 0 正常 1专利 2软著 3审计 4双软 5高新 6商标, patentTypeName,//专利类型 } = this.props.infor; const { isIso } = this.state; return (
{commodityName} {commodityQuantity} {patentTypeName} {officialCost === 0 ? "无官费" : "有官费"} {costReduction === 0 ? "无费减" : "有费减"} {commodityPrice} {getboutique(String(main))} {type === 5 && { declarationBatch === 1 ? '第一批' : declarationBatch === 2 ? '第二批' : declarationBatch === 3 ? '第三批' : declarationBatch === 4 ? '第四批' : '未知' } } {isIso && { ifCertificationFee === 1 ? '包含' : ifCertificationFee === 0 ? '不包含' :'未知' } } {/*{isIso && ifCertificationFee === 1 ?*/} {/* {certificationFee || '暂无'}*/} {/* : null}*/} {/*{isIso && ifCertificationFee === 1 ? : null}*/} {/*{isIso && ifCertificationFee === 1 ? */} {/* {certificationCorporate || '暂无'}*/} {/*:null}*/}
{taskComment}
); } } export default ProjectDetailsReadOnly;