|
@@ -1,5 +1,5 @@
|
|
|
-import React,{Component} from 'react';
|
|
|
-import {Form, Input, Modal, Select, Spin} from "antd";
|
|
|
+import React, { Component } from 'react';
|
|
|
+import { Form, Input, Modal, Select, Spin } from "antd";
|
|
|
import {
|
|
|
getboutique,
|
|
|
} from "@/tools";
|
|
@@ -11,10 +11,10 @@ const formItemLayout = {
|
|
|
|
|
|
const FormItem = Form.Item;
|
|
|
|
|
|
-class ProjectDetailsReadOnly extends Component{
|
|
|
+class ProjectDetailsReadOnly extends Component {
|
|
|
constructor(props) {
|
|
|
super(props);
|
|
|
- this.state={
|
|
|
+ this.state = {
|
|
|
loading: false,
|
|
|
isIso: this.props.infor.commodityName.indexOf("贯标") !== -1,
|
|
|
}
|
|
@@ -39,130 +39,130 @@ class ProjectDetailsReadOnly extends Component{
|
|
|
const { isIso } = this.state;
|
|
|
return (
|
|
|
<Modal
|
|
|
- maskClosable={false}
|
|
|
- visible={this.props.visible}
|
|
|
- onOk={this.props.onCancel}
|
|
|
- onCancel={this.props.onCancel}
|
|
|
- width="800px"
|
|
|
- title="项目任务详情"
|
|
|
- footer=""
|
|
|
- className="admin-desc-content"
|
|
|
- >
|
|
|
- <Form layout="horizontal" id="demand-form">
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="项目名称"
|
|
|
- >
|
|
|
- <span>{commodityName}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="项目数量"
|
|
|
- >
|
|
|
- <span>{commodityQuantity}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="专利类型"
|
|
|
- style={{ display: type === 1 ? 'block' : 'none' }}
|
|
|
- >
|
|
|
- <span>{patentTypeName}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="官费"
|
|
|
- style={{ display: type === 1 ? 'block' : 'none' }}
|
|
|
- >
|
|
|
- <span>
|
|
|
+ maskClosable={false}
|
|
|
+ visible={this.props.visible}
|
|
|
+ onOk={this.props.onCancel}
|
|
|
+ onCancel={this.props.onCancel}
|
|
|
+ width="800px"
|
|
|
+ title="项目任务详情"
|
|
|
+ footer=""
|
|
|
+ className="admin-desc-content"
|
|
|
+ >
|
|
|
+ <Form layout="horizontal" id="demand-form">
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="项目名称"
|
|
|
+ >
|
|
|
+ <span>{commodityName}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="项目数量"
|
|
|
+ >
|
|
|
+ <span>{commodityQuantity}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="专利类型"
|
|
|
+ style={{ display: type === 1 ? 'block' : 'none' }}
|
|
|
+ >
|
|
|
+ <span>{patentTypeName}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="官费"
|
|
|
+ style={{ display: type === 1 ? 'block' : 'none' }}
|
|
|
+ >
|
|
|
+ <span>
|
|
|
{officialCost === 0 ? "无官费" : "有官费"}
|
|
|
- </span>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="费减"
|
|
|
- style={{ display: type === 1 ? 'block' : 'none' }}
|
|
|
- >
|
|
|
- <span>
|
|
|
+ </span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="费减"
|
|
|
+ style={{ display: type === 1 ? 'block' : 'none' }}
|
|
|
+ >
|
|
|
+ <span>
|
|
|
{costReduction === 0 ? "无费减" : "有费减"}
|
|
|
- </span>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="金额(万元)"
|
|
|
- >
|
|
|
- <span>{commodityPrice}</span>
|
|
|
- </FormItem>
|
|
|
+ </span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="金额(万元)"
|
|
|
+ >
|
|
|
+ <span>{commodityPrice === -1 ? '***' : commodityPrice}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="主要项目"
|
|
|
+ >
|
|
|
+ <span>{getboutique(String(main))}</span>
|
|
|
+ </FormItem>
|
|
|
+ {type === 5 && <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="企业申报批次"
|
|
|
+ >
|
|
|
+ <span>
|
|
|
+ {
|
|
|
+ declarationBatch === 1 ? '第一批' :
|
|
|
+ declarationBatch === 2 ? '第二批' :
|
|
|
+ declarationBatch === 3 ? '第三批' :
|
|
|
+ declarationBatch === 4 ? '第四批' : '未知'
|
|
|
+ }
|
|
|
+ </span>
|
|
|
+ </FormItem>}
|
|
|
+ {isIso && <FormItem
|
|
|
+ className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="认证费"
|
|
|
+ >
|
|
|
+ <span>
|
|
|
+ {
|
|
|
+ ifCertificationFee === 1 ? '包含' :
|
|
|
+ ifCertificationFee === 0 ? '不包含' : '未知'
|
|
|
+ }
|
|
|
+ </span>
|
|
|
+ </FormItem>}
|
|
|
+ {/*{isIso && ifCertificationFee === 1 ?<FormItem*/}
|
|
|
+ {/* className="half-item"*/}
|
|
|
+ {/* {...formItemLayout}*/}
|
|
|
+ {/* label="认证费(万元)"*/}
|
|
|
+ {/*>*/}
|
|
|
+ {/* <span>{certificationFee || '暂无'}</span>*/}
|
|
|
+ {/*</FormItem> : null}*/}
|
|
|
+ {/*{isIso && ifCertificationFee === 1 ? <FormItem*/}
|
|
|
+ {/* className="half-item"*/}
|
|
|
+ {/* {...formItemLayout}*/}
|
|
|
+ {/* label=""*/}
|
|
|
+ {/*/> : null}*/}
|
|
|
+ {/*{isIso && ifCertificationFee === 1 ? <FormItem*/}
|
|
|
+ {/* className="half-item"*/}
|
|
|
+ {/* {...formItemLayout}*/}
|
|
|
+ {/* label="付款公司名称"*/}
|
|
|
+ {/*>*/}
|
|
|
+ {/* <span>{certificationCorporate || '暂无'}</span>*/}
|
|
|
+ {/*</FormItem>:null}*/}
|
|
|
+ <div className="clearfix">
|
|
|
<FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="主要项目"
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 16 }}
|
|
|
+ label="服务说明"
|
|
|
>
|
|
|
- <span>{getboutique(String(main))}</span>
|
|
|
+ <span>{taskComment}</span>
|
|
|
</FormItem>
|
|
|
- {type === 5 && <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="企业申报批次"
|
|
|
- >
|
|
|
- <span>
|
|
|
- {
|
|
|
- declarationBatch === 1 ? '第一批' :
|
|
|
- declarationBatch === 2 ? '第二批' :
|
|
|
- declarationBatch === 3 ? '第三批' :
|
|
|
- declarationBatch === 4 ? '第四批' : '未知'
|
|
|
- }
|
|
|
- </span>
|
|
|
- </FormItem>}
|
|
|
- {isIso && <FormItem
|
|
|
- className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="认证费"
|
|
|
- >
|
|
|
- <span>
|
|
|
- {
|
|
|
- ifCertificationFee === 1 ? '包含' :
|
|
|
- ifCertificationFee === 0 ? '不包含' :'未知'
|
|
|
- }
|
|
|
- </span>
|
|
|
- </FormItem> }
|
|
|
- {/*{isIso && ifCertificationFee === 1 ?<FormItem*/}
|
|
|
- {/* className="half-item"*/}
|
|
|
- {/* {...formItemLayout}*/}
|
|
|
- {/* label="认证费(万元)"*/}
|
|
|
- {/*>*/}
|
|
|
- {/* <span>{certificationFee || '暂无'}</span>*/}
|
|
|
- {/*</FormItem> : null}*/}
|
|
|
- {/*{isIso && ifCertificationFee === 1 ? <FormItem*/}
|
|
|
- {/* className="half-item"*/}
|
|
|
- {/* {...formItemLayout}*/}
|
|
|
- {/* label=""*/}
|
|
|
- {/*/> : null}*/}
|
|
|
- {/*{isIso && ifCertificationFee === 1 ? <FormItem*/}
|
|
|
- {/* className="half-item"*/}
|
|
|
- {/* {...formItemLayout}*/}
|
|
|
- {/* label="付款公司名称"*/}
|
|
|
- {/*>*/}
|
|
|
- {/* <span>{certificationCorporate || '暂无'}</span>*/}
|
|
|
- {/*</FormItem>:null}*/}
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 16 }}
|
|
|
- label="服务说明"
|
|
|
- >
|
|
|
- <span>{taskComment}</span>
|
|
|
- </FormItem>
|
|
|
- </div>
|
|
|
</div>
|
|
|
- </Form>
|
|
|
- </Modal>
|
|
|
+ </div>
|
|
|
+ </Form>
|
|
|
+ </Modal>
|
|
|
);
|
|
|
}
|
|
|
}
|