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,//专利类型 yearSum,//会员总服务年限 serviceLife,//会员服务年限 serviceYear,//本次派单 cSort,//6会员项目 } = this.props.infor; const { isIso } = this.state; return (
{commodityName} {commodityQuantity} {patentTypeName} {officialCost === 0 ? "无官费" : "有官费"} {costReduction === 0 ? "无费减" : "有费减"} {commodityPrice === -1 ? '***' : 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}*/} { cSort == 6 && { yearSum == null ? "" : [ { value: 0, key: "" }, { value: 1, key: "一年" }, { value: 2, key: "二年" }, { value: 3, key: "三年" }, { value: 4, key: "四年" }, { value: 5, key: "五年" }, ][yearSum]["key"] } } { cSort == 6 && {!!serviceLife && JSON.parse(serviceLife).toString()} } { cSort == 6 && {serviceYear} }
{taskComment}
); } } export default ProjectDetailsReadOnly;