|
@@ -187,6 +187,9 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
url: globalConfig.context + "/api/user/achievement/offShelf",
|
|
|
data: { "id": this.props.data.id }
|
|
|
}).done(function (data) {
|
|
|
+ this.setState({
|
|
|
+ loading: false
|
|
|
+ });
|
|
|
if (!data.error.length) {
|
|
|
message.success('撤销成功!');
|
|
|
this.setState({
|
|
@@ -738,15 +741,15 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
businessPlanUrl: this.state.businessPlanUrl,
|
|
|
auditStatus: this.state.auditStatus,
|
|
|
|
|
|
- ownerType:window.userData.type // 所有人类型
|
|
|
+ ownerType: window.userData.type // 所有人类型
|
|
|
}
|
|
|
}).done(function (data) {
|
|
|
this.state.auditStatus = 0;
|
|
|
+ this.setState({
|
|
|
+ loading: false
|
|
|
+ });
|
|
|
if (!data.error.length) {
|
|
|
message.success('保存成功!');
|
|
|
- this.setState({
|
|
|
- visible: false
|
|
|
- });
|
|
|
this.props.handleOk();
|
|
|
} else {
|
|
|
message.warning(data.error[0].message);
|
|
@@ -788,411 +791,413 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
};
|
|
|
return (
|
|
|
<Form horizontal onSubmit={this.handleSubmit} id="demand-form">
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="编号" >
|
|
|
- <span>{theData.serialNumber}</span>
|
|
|
+ <Spin spinning={this.state.loading}>
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="编号" >
|
|
|
+ <span>{theData.serialNumber}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="名称" >
|
|
|
+ {getFieldDecorator('name', {
|
|
|
+ rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
+ initialValue: theData.name
|
|
|
+ })(
|
|
|
+ <Input />
|
|
|
+ )}
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="数据类别" >
|
|
|
+ {getFieldDecorator('dataCategory', {
|
|
|
+ rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
+ initialValue: theData.dataCategory
|
|
|
+ })(
|
|
|
+ <Select placeholder="选择数据类型" style={{ width: 160 }} >
|
|
|
+ <Select.Option value="0" >成果</Select.Option>
|
|
|
+ <Select.Option value="1" >技术</Select.Option>
|
|
|
+ <Select.Option value="2" >项目</Select.Option>
|
|
|
+ </Select>
|
|
|
+ )}
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="类型" >
|
|
|
+ {getFieldDecorator('category', {
|
|
|
+ rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
+ initialValue: theData.category
|
|
|
+ })(
|
|
|
+ <Select style={{ width: 160 }} placeholder="请选择成果类型">
|
|
|
+ {this.props.achievementCategoryOption}
|
|
|
+ </Select>
|
|
|
+ )}
|
|
|
+ </FormItem>
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="是否发布" >
|
|
|
+ {(() => {
|
|
|
+ switch (theData.releaseStatus) {
|
|
|
+ case "0":
|
|
|
+ return <span>未发布</span>;
|
|
|
+ case "1":
|
|
|
+ return <span>已发布</span>;
|
|
|
+ }
|
|
|
+ })()}
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="发布时间" >
|
|
|
+ <span>{theData.releaseDateFormattedDate}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="审核状态" >
|
|
|
+ {(() => {
|
|
|
+ switch (theData.auditStatus) {
|
|
|
+ case "0":
|
|
|
+ return <span>未提交审核(草稿)</span>;
|
|
|
+ case "1":
|
|
|
+ return <span>提交审核</span>;
|
|
|
+ case "2":
|
|
|
+ return <span>审核中</span>;
|
|
|
+ case "3":
|
|
|
+ return <span>审核通过</span>;
|
|
|
+ case "4":
|
|
|
+ return <span>审核未通过</span>;
|
|
|
+ }
|
|
|
+ })()}
|
|
|
+ </FormItem>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 18 }}
|
|
|
+ label="关键词" >
|
|
|
+ <KeyWordTagGroup
|
|
|
+ keyWordArr={this.state.tags}
|
|
|
+ tagsArr={this.getTagsArr}
|
|
|
+ visible={this.props.visible} />
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="名称" >
|
|
|
- {getFieldDecorator('name', {
|
|
|
- rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
- initialValue: theData.name
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 18 }}
|
|
|
+ label="摘要" >
|
|
|
+ {getFieldDecorator('summary', {
|
|
|
+ initialValue: theData.summary
|
|
|
})(
|
|
|
- <Input />
|
|
|
+ <Input type="textarea" rows={4} />
|
|
|
)}
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="数据类别" >
|
|
|
- {getFieldDecorator('dataCategory', {
|
|
|
- rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
- initialValue: theData.dataCategory
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 18 }}
|
|
|
+ label="成果简介" >
|
|
|
+ {getFieldDecorator('introduction', {
|
|
|
+ initialValue: theData.introduction
|
|
|
})(
|
|
|
- <Select placeholder="选择数据类型" style={{ width: 160 }} >
|
|
|
- <Select.Option value="0" >成果</Select.Option>
|
|
|
- <Select.Option value="1" >技术</Select.Option>
|
|
|
- <Select.Option value="2" >项目</Select.Option>
|
|
|
- </Select>
|
|
|
+ <Input type="textarea" rows={4} placeholder="项目成果简介;项目核心创新点;项目详细用途;预期效益说明;主要技术(性能)指标;市场前景;应用范围;发展历程。" />
|
|
|
)}
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="类型" >
|
|
|
- {getFieldDecorator('category', {
|
|
|
- rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
- initialValue: theData.category
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 18 }}
|
|
|
+ label="技术图片" >
|
|
|
+ <PicturesWall
|
|
|
+ pictureSign="achievement_technical_picture"
|
|
|
+ fileList={this.getTechnicalPictureUrl}
|
|
|
+ pictureUrl={this.state.technicalPictureUrl} />
|
|
|
+ <p>图片建议:专利证书或专利申请书图片、技术图纸、样品图片、技术相关网络图片;成熟度处于非研发阶段的项目,必须上传样品图片,如未上传,成熟度将视为处在研发阶段。</p>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 18 }}
|
|
|
+ label="应用领域" >
|
|
|
+ {getFieldDecorator('field', {
|
|
|
+ rules: [{ type: 'array', required: true, message: '此项为必填项!' }],
|
|
|
+ initialValue: [theData.fieldA, theData.fieldB]
|
|
|
})(
|
|
|
- <Select style={{ width: 160 }} placeholder="请选择成果类型">
|
|
|
- {this.props.achievementCategoryOption}
|
|
|
- </Select>
|
|
|
+ <Cascader style={{ width: 300 }} options={IndustryObject} placeholder="应用领域" />
|
|
|
)}
|
|
|
</FormItem>
|
|
|
<div className="clearfix">
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="是否发布" >
|
|
|
- {(() => {
|
|
|
- switch (theData.releaseStatus) {
|
|
|
- case "0":
|
|
|
- return <span>未发布</span>;
|
|
|
- case "1":
|
|
|
- return <span>已发布</span>;
|
|
|
+ label="成熟度" >
|
|
|
+ {getFieldDecorator('maturity', {
|
|
|
+ initialValue: theData.maturity
|
|
|
+ })(
|
|
|
+ <Select placeholder="选择成熟度" style={{ width: 160 }} >
|
|
|
+ <Select.Option value="0" >正在研发</Select.Option>
|
|
|
+ <Select.Option value="1" >已有样品</Select.Option>
|
|
|
+ <Select.Option value="2" >通过小试</Select.Option>
|
|
|
+ <Select.Option value="3" >通过中试</Select.Option>
|
|
|
+ <Select.Option value="4" >可以量产</Select.Option>
|
|
|
+ </Select>
|
|
|
+ )}
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="创新度" >
|
|
|
+ {getFieldDecorator('innovation', {
|
|
|
+ initialValue: theData.innovation
|
|
|
+ })(
|
|
|
+ <Select placeholder="选择创新度" style={{ width: 160 }} >
|
|
|
+ <Select.Option value="0" >行业先进</Select.Option>
|
|
|
+ <Select.Option value="1" >行业领先</Select.Option>
|
|
|
+ <Select.Option value="2" >国内先进</Select.Option>
|
|
|
+ <Select.Option value="3" >国内领先</Select.Option>
|
|
|
+ <Select.Option value="4" >国际先进</Select.Option>
|
|
|
+ <Select.Option value="5" >国际领先</Select.Option>
|
|
|
+ </Select>
|
|
|
+ )}
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 18 }}
|
|
|
+ label="成熟度证明材料(图片)" >
|
|
|
+ <PicturesWall
|
|
|
+ pictureSign="achievement_maturity_picture"
|
|
|
+ fileList={this.getMaturityPictureUrl}
|
|
|
+ pictureUrl={this.state.maturityPictureUrl} />
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 6 }}
|
|
|
+ label="成熟度证明材料(文本)" >
|
|
|
+ <Upload
|
|
|
+ name="ratepay"
|
|
|
+ action={globalConfig.context + "/api/user/achievement/uploadTextFile"}
|
|
|
+ data={{ 'sign': 'achievement_maturity_text_file' }}
|
|
|
+ beforeUpload={beforeUploadFile}
|
|
|
+ fileList={this.state.textFileList}
|
|
|
+ onChange={(info) => {
|
|
|
+ if (info.file.status !== 'uploading') {
|
|
|
+ console.log(info.file, info.fileList);
|
|
|
}
|
|
|
- })()}
|
|
|
+ if (info.file.status === 'done') {
|
|
|
+ if (!info.file.response.error.length) {
|
|
|
+ message.success(`${info.file.name} 文件上传成功!`);
|
|
|
+ } else {
|
|
|
+ message.warning(info.file.response.error[0].message);
|
|
|
+ return;
|
|
|
+ };
|
|
|
+ this.state.maturityTextFileUrl = info.file.response.data;
|
|
|
+ } else if (info.file.status === 'error') {
|
|
|
+ message.error(`${info.file.name} 文件上传失败。`);
|
|
|
+ };
|
|
|
+ this.setState({ textFileList: info.fileList.slice(-1) });
|
|
|
+ }} >
|
|
|
+ <Button><Icon type="upload" /> 上传需求文本文件 </Button>
|
|
|
+ </Upload>
|
|
|
+ <p style={{ marginTop: '10px' }}>{theData.maturityTextFileUrl ?
|
|
|
+ <span className="download-file">
|
|
|
+ <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_maturity_text_file') }}>成熟度证明材料(文本文件)</a>
|
|
|
+ </span>
|
|
|
+ : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 18 }}
|
|
|
+ label="成熟度证明材料(视频地址)" >
|
|
|
+ {getFieldDecorator('maturityVideoUrl', {
|
|
|
+ initialValue: theData.maturityVideoUrl
|
|
|
+ })(
|
|
|
+ <Input />
|
|
|
+ )}
|
|
|
+ </FormItem>
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="合作方式" >
|
|
|
+ {getFieldDecorator('cooperationMode', {
|
|
|
+ rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
+ initialValue: theData.cooperationMode
|
|
|
+ })(
|
|
|
+ <Radio.Group>
|
|
|
+ <Radio value="0">技术转让</Radio>
|
|
|
+ <Radio value="1">授权生产</Radio>
|
|
|
+ </Radio.Group>
|
|
|
+ )}
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="发布时间" >
|
|
|
- <span>{theData.releaseDateFormattedDate}</span>
|
|
|
+ label="转让方式" >
|
|
|
+ {getFieldDecorator('transferMode', {
|
|
|
+ initialValue: theData.transferMode
|
|
|
+ })(
|
|
|
+ <Select placeholder="选择转让方式" style={{ width: 160 }} >
|
|
|
+ <Select.Option value="0" >完全转让</Select.Option>
|
|
|
+ <Select.Option value="1" >许可转让</Select.Option>
|
|
|
+ <Select.Option value="2" >技术入股</Select.Option>
|
|
|
+ </Select>
|
|
|
+ )}
|
|
|
</FormItem>
|
|
|
+ </div>
|
|
|
+ <div className="clearfix">
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="审核状态" >
|
|
|
- {(() => {
|
|
|
- switch (theData.auditStatus) {
|
|
|
- case "0":
|
|
|
- return <span>未提交审核(草稿)</span>;
|
|
|
- case "1":
|
|
|
- return <span>提交审核</span>;
|
|
|
- case "2":
|
|
|
- return <span>审核中</span>;
|
|
|
- case "3":
|
|
|
- return <span>审核通过</span>;
|
|
|
- case "4":
|
|
|
- return <span>审核未通过</span>;
|
|
|
- }
|
|
|
- })()}
|
|
|
+ label="议价方式" >
|
|
|
+ {getFieldDecorator('bargainingMode', {
|
|
|
+ initialValue: theData.bargainingMode
|
|
|
+ })(
|
|
|
+ <Radio.Group>
|
|
|
+ <Radio value="0">面议</Radio>
|
|
|
+ <Radio value="1">定价</Radio>
|
|
|
+ </Radio.Group>
|
|
|
+ )}
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="转让价格" >
|
|
|
+ {getFieldDecorator('transferPrice', {
|
|
|
+ initialValue: theData.transferPrice
|
|
|
+ })(
|
|
|
+ <InputNumber />
|
|
|
+ )}
|
|
|
+ <span style={{ marginLeft: '20px' }}>万元</span>
|
|
|
</FormItem>
|
|
|
-
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 18 }}
|
|
|
- label="关键词" >
|
|
|
- <KeyWordTagGroup
|
|
|
- keyWordArr={this.state.tags}
|
|
|
- tagsArr={this.getTagsArr}
|
|
|
- visible={this.props.visible} />
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 18 }}
|
|
|
- label="摘要" >
|
|
|
- {getFieldDecorator('summary', {
|
|
|
- initialValue: theData.summary
|
|
|
- })(
|
|
|
- <Input type="textarea" rows={4} />
|
|
|
- )}
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 18 }}
|
|
|
- label="成果简介" >
|
|
|
- {getFieldDecorator('introduction', {
|
|
|
- initialValue: theData.introduction
|
|
|
- })(
|
|
|
- <Input type="textarea" rows={4} placeholder="项目成果简介;项目核心创新点;项目详细用途;预期效益说明;主要技术(性能)指标;市场前景;应用范围;发展历程。" />
|
|
|
- )}
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 18 }}
|
|
|
- label="技术图片" >
|
|
|
- <PicturesWall
|
|
|
- pictureSign="achievement_technical_picture"
|
|
|
- fileList={this.getTechnicalPictureUrl}
|
|
|
- pictureUrl={this.state.technicalPictureUrl} />
|
|
|
- <p>图片建议:专利证书或专利申请书图片、技术图纸、样品图片、技术相关网络图片;成熟度处于非研发阶段的项目,必须上传样品图片,如未上传,成熟度将视为处在研发阶段。</p>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 18 }}
|
|
|
- label="应用领域" >
|
|
|
- {getFieldDecorator('field', {
|
|
|
- rules: [{ type: 'array', required: true, message: '此项为必填项!' }],
|
|
|
- initialValue: [theData.fieldA, theData.fieldB]
|
|
|
- })(
|
|
|
- <Cascader style={{ width: 300 }} options={IndustryObject} placeholder="应用领域" />
|
|
|
- )}
|
|
|
- </FormItem>
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="成熟度" >
|
|
|
- {getFieldDecorator('maturity', {
|
|
|
- initialValue: theData.maturity
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 18 }}
|
|
|
+ label="技术场景" >
|
|
|
+ {getFieldDecorator('technicalScene', {
|
|
|
+ initialValue: theData.technicalScene
|
|
|
})(
|
|
|
- <Select placeholder="选择成熟度" style={{ width: 160 }} >
|
|
|
- <Select.Option value="0" >正在研发</Select.Option>
|
|
|
- <Select.Option value="1" >已有样品</Select.Option>
|
|
|
- <Select.Option value="2" >通过小试</Select.Option>
|
|
|
- <Select.Option value="3" >通过中试</Select.Option>
|
|
|
- <Select.Option value="4" >可以量产</Select.Option>
|
|
|
- </Select>
|
|
|
+ <Input type="textarea" rows={2} placeholder="说明解决了什么问题。" />
|
|
|
)}
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="创新度" >
|
|
|
- {getFieldDecorator('innovation', {
|
|
|
- initialValue: theData.innovation
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 18 }}
|
|
|
+ label="技术突破" >
|
|
|
+ {getFieldDecorator('breakthrough', {
|
|
|
+ initialValue: theData.breakthrough
|
|
|
})(
|
|
|
- <Select placeholder="选择创新度" style={{ width: 160 }} >
|
|
|
- <Select.Option value="0" >行业先进</Select.Option>
|
|
|
- <Select.Option value="1" >行业领先</Select.Option>
|
|
|
- <Select.Option value="2" >国内先进</Select.Option>
|
|
|
- <Select.Option value="3" >国内领先</Select.Option>
|
|
|
- <Select.Option value="4" >国际先进</Select.Option>
|
|
|
- <Select.Option value="5" >国际领先</Select.Option>
|
|
|
- </Select>
|
|
|
+ <Input type="textarea" rows={2} placeholder="说明该技术成果突破性的研究。" />
|
|
|
)}
|
|
|
</FormItem>
|
|
|
- </div>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 18 }}
|
|
|
- label="成熟度证明材料(图片)" >
|
|
|
- <PicturesWall
|
|
|
- pictureSign="achievement_maturity_picture"
|
|
|
- fileList={this.getMaturityPictureUrl}
|
|
|
- pictureUrl={this.state.maturityPictureUrl} />
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 6 }}
|
|
|
- label="成熟度证明材料(文本)" >
|
|
|
- <Upload
|
|
|
- name="ratepay"
|
|
|
- action={globalConfig.context + "/api/user/achievement/uploadTextFile"}
|
|
|
- data={{ 'sign': 'achievement_maturity_text_file' }}
|
|
|
- beforeUpload={beforeUploadFile}
|
|
|
- fileList={this.state.textFileList}
|
|
|
- onChange={(info) => {
|
|
|
- if (info.file.status !== 'uploading') {
|
|
|
- console.log(info.file, info.fileList);
|
|
|
- }
|
|
|
- if (info.file.status === 'done') {
|
|
|
- if (!info.file.response.error.length) {
|
|
|
- message.success(`${info.file.name} 文件上传成功!`);
|
|
|
- } else {
|
|
|
- message.warning(info.file.response.error[0].message);
|
|
|
- return;
|
|
|
- };
|
|
|
- this.state.maturityTextFileUrl = info.file.response.data;
|
|
|
- } else if (info.file.status === 'error') {
|
|
|
- message.error(`${info.file.name} 文件上传失败。`);
|
|
|
- };
|
|
|
- this.setState({ textFileList: info.fileList.slice(-1) });
|
|
|
- }} >
|
|
|
- <Button><Icon type="upload" /> 上传需求文本文件 </Button>
|
|
|
- </Upload>
|
|
|
- <p style={{ marginTop: '10px' }}>{theData.maturityTextFileUrl ?
|
|
|
- <span className="download-file">
|
|
|
- <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_maturity_text_file') }}>成熟度证明材料(文本文件)</a>
|
|
|
- </span>
|
|
|
- : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 18 }}
|
|
|
- label="成熟度证明材料(视频地址)" >
|
|
|
- {getFieldDecorator('maturityVideoUrl', {
|
|
|
- initialValue: theData.maturityVideoUrl
|
|
|
- })(
|
|
|
- <Input />
|
|
|
- )}
|
|
|
- </FormItem>
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="合作方式" >
|
|
|
- {getFieldDecorator('cooperationMode', {
|
|
|
- rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
- initialValue: theData.cooperationMode
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 18 }}
|
|
|
+ label="专利情况" >
|
|
|
+ {getFieldDecorator('patentCase', {
|
|
|
+ initialValue: theData.patentCase
|
|
|
})(
|
|
|
- <Radio.Group>
|
|
|
- <Radio value="0">技术转让</Radio>
|
|
|
- <Radio value="1">授权生产</Radio>
|
|
|
- </Radio.Group>
|
|
|
+ <Input type="textarea" rows={2} placeholder="一个“技术”可能由多个专利构成,需要说明技术-专利的关系。" />
|
|
|
)}
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="转让方式" >
|
|
|
- {getFieldDecorator('transferMode', {
|
|
|
- initialValue: theData.transferMode
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 18 }}
|
|
|
+ label="获奖情况" >
|
|
|
+ {getFieldDecorator('awards', {
|
|
|
+ initialValue: theData.awards
|
|
|
})(
|
|
|
- <Select placeholder="选择转让方式" style={{ width: 160 }} >
|
|
|
- <Select.Option value="0" >完全转让</Select.Option>
|
|
|
- <Select.Option value="1" >许可转让</Select.Option>
|
|
|
- <Select.Option value="2" >技术入股</Select.Option>
|
|
|
- </Select>
|
|
|
+ <Input type="textarea" rows={2} placeholder="一个“技术”可能存在社会奖励情况,需要说明社会奖励情况。" />
|
|
|
)}
|
|
|
</FormItem>
|
|
|
- </div>
|
|
|
- <div className="clearfix">
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="议价方式" >
|
|
|
- {getFieldDecorator('bargainingMode', {
|
|
|
- initialValue: theData.bargainingMode
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 18 }}
|
|
|
+ label="技术团队情况" >
|
|
|
+ {getFieldDecorator('teamDes', {
|
|
|
+ initialValue: theData.teamDes
|
|
|
})(
|
|
|
- <Radio.Group>
|
|
|
- <Radio value="0">面议</Radio>
|
|
|
- <Radio value="1">定价</Radio>
|
|
|
- </Radio.Group>
|
|
|
+ <Input type="textarea" rows={2} placeholder="一个“技术”、“项目”可能存在团队,需要说明团队情况。" />
|
|
|
)}
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="转让价格" >
|
|
|
- {getFieldDecorator('transferPrice', {
|
|
|
- initialValue: theData.transferPrice
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 18 }}
|
|
|
+ label="技术参数" >
|
|
|
+ {getFieldDecorator('parameter', {
|
|
|
+ initialValue: theData.parameter
|
|
|
})(
|
|
|
- <InputNumber />
|
|
|
+ <Input type="textarea" rows={2} placeholder="描述技术参数信息" />
|
|
|
)}
|
|
|
- <span style={{ marginLeft: '20px' }}>万元</span>
|
|
|
</FormItem>
|
|
|
- </div>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 18 }}
|
|
|
- label="技术场景" >
|
|
|
- {getFieldDecorator('technicalScene', {
|
|
|
- initialValue: theData.technicalScene
|
|
|
- })(
|
|
|
- <Input type="textarea" rows={2} placeholder="说明解决了什么问题。" />
|
|
|
- )}
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 18 }}
|
|
|
- label="技术突破" >
|
|
|
- {getFieldDecorator('breakthrough', {
|
|
|
- initialValue: theData.breakthrough
|
|
|
- })(
|
|
|
- <Input type="textarea" rows={2} placeholder="说明该技术成果突破性的研究。" />
|
|
|
- )}
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 18 }}
|
|
|
- label="专利情况" >
|
|
|
- {getFieldDecorator('patentCase', {
|
|
|
- initialValue: theData.patentCase
|
|
|
- })(
|
|
|
- <Input type="textarea" rows={2} placeholder="一个“技术”可能由多个专利构成,需要说明技术-专利的关系。" />
|
|
|
- )}
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 18 }}
|
|
|
- label="获奖情况" >
|
|
|
- {getFieldDecorator('awards', {
|
|
|
- initialValue: theData.awards
|
|
|
- })(
|
|
|
- <Input type="textarea" rows={2} placeholder="一个“技术”可能存在社会奖励情况,需要说明社会奖励情况。" />
|
|
|
- )}
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 18 }}
|
|
|
- label="技术团队情况" >
|
|
|
- {getFieldDecorator('teamDes', {
|
|
|
- initialValue: theData.teamDes
|
|
|
- })(
|
|
|
- <Input type="textarea" rows={2} placeholder="一个“技术”、“项目”可能存在团队,需要说明团队情况。" />
|
|
|
- )}
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 18 }}
|
|
|
- label="技术参数" >
|
|
|
- {getFieldDecorator('parameter', {
|
|
|
- initialValue: theData.parameter
|
|
|
- })(
|
|
|
- <Input type="textarea" rows={2} placeholder="描述技术参数信息" />
|
|
|
- )}
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 6 }}
|
|
|
- label="技术方案" >
|
|
|
- <Upload
|
|
|
- name="ratepay"
|
|
|
- action={globalConfig.context + "/api/user/achievement/uploadTextFile"}
|
|
|
- data={{ 'sign': 'achievement_tech_plan' }}
|
|
|
- beforeUpload={beforeUploadFile}
|
|
|
- fileList={this.state.techPlanFileList}
|
|
|
- onChange={(info) => {
|
|
|
- if (info.file.status !== 'uploading') {
|
|
|
- console.log(info.file, info.fileList);
|
|
|
- }
|
|
|
- if (info.file.status === 'done') {
|
|
|
- if (!info.file.response.error.length) {
|
|
|
- message.success(`${info.file.name} 文件上传成功!`);
|
|
|
- } else {
|
|
|
- message.warning(info.file.response.error[0].message);
|
|
|
- return;
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 6 }}
|
|
|
+ label="技术方案" >
|
|
|
+ <Upload
|
|
|
+ name="ratepay"
|
|
|
+ action={globalConfig.context + "/api/user/achievement/uploadTextFile"}
|
|
|
+ data={{ 'sign': 'achievement_tech_plan' }}
|
|
|
+ beforeUpload={beforeUploadFile}
|
|
|
+ fileList={this.state.techPlanFileList}
|
|
|
+ onChange={(info) => {
|
|
|
+ if (info.file.status !== 'uploading') {
|
|
|
+ console.log(info.file, info.fileList);
|
|
|
+ }
|
|
|
+ if (info.file.status === 'done') {
|
|
|
+ if (!info.file.response.error.length) {
|
|
|
+ message.success(`${info.file.name} 文件上传成功!`);
|
|
|
+ } else {
|
|
|
+ message.warning(info.file.response.error[0].message);
|
|
|
+ return;
|
|
|
+ };
|
|
|
+ this.state.techPlanUrl = info.file.response.data;
|
|
|
+ } else if (info.file.status === 'error') {
|
|
|
+ message.error(`${info.file.name} 文件上传失败。`);
|
|
|
};
|
|
|
- this.state.techPlanUrl = info.file.response.data;
|
|
|
- } else if (info.file.status === 'error') {
|
|
|
- message.error(`${info.file.name} 文件上传失败。`);
|
|
|
- };
|
|
|
- this.setState({ techPlanFileList: info.fileList.slice(-1) });
|
|
|
- }} >
|
|
|
- <Button><Icon type="upload" /> 上传技术方案文件 </Button>
|
|
|
- </Upload>
|
|
|
- <p style={{ marginTop: '10px' }}>{theData.techPlanUrl ?
|
|
|
- <span className="download-file">
|
|
|
- <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_tech_plan') }}>技术方案</a>
|
|
|
- </span>
|
|
|
- : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 6 }}
|
|
|
- label="商业计划书" >
|
|
|
- <Upload
|
|
|
- name="ratepay"
|
|
|
- action={globalConfig.context + "/api/user/achievement/uploadTextFile"}
|
|
|
- data={{ 'sign': 'achievement_business_plan' }}
|
|
|
- beforeUpload={beforeUploadFile}
|
|
|
- fileList={this.state.businessPlanFileList}
|
|
|
- onChange={(info) => {
|
|
|
- if (info.file.status !== 'uploading') {
|
|
|
- console.log(info.file, info.fileList);
|
|
|
- }
|
|
|
- if (info.file.status === 'done') {
|
|
|
- if (!info.file.response.error.length) {
|
|
|
- message.success(`${info.file.name} 文件上传成功!`);
|
|
|
- } else {
|
|
|
- message.warning(info.file.response.error[0].message);
|
|
|
- return;
|
|
|
+ this.setState({ techPlanFileList: info.fileList.slice(-1) });
|
|
|
+ }} >
|
|
|
+ <Button><Icon type="upload" /> 上传技术方案文件 </Button>
|
|
|
+ </Upload>
|
|
|
+ <p style={{ marginTop: '10px' }}>{theData.techPlanUrl ?
|
|
|
+ <span className="download-file">
|
|
|
+ <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_tech_plan') }}>技术方案</a>
|
|
|
+ </span>
|
|
|
+ : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 6 }}
|
|
|
+ label="商业计划书" >
|
|
|
+ <Upload
|
|
|
+ name="ratepay"
|
|
|
+ action={globalConfig.context + "/api/user/achievement/uploadTextFile"}
|
|
|
+ data={{ 'sign': 'achievement_business_plan' }}
|
|
|
+ beforeUpload={beforeUploadFile}
|
|
|
+ fileList={this.state.businessPlanFileList}
|
|
|
+ onChange={(info) => {
|
|
|
+ if (info.file.status !== 'uploading') {
|
|
|
+ console.log(info.file, info.fileList);
|
|
|
+ }
|
|
|
+ if (info.file.status === 'done') {
|
|
|
+ if (!info.file.response.error.length) {
|
|
|
+ message.success(`${info.file.name} 文件上传成功!`);
|
|
|
+ } else {
|
|
|
+ message.warning(info.file.response.error[0].message);
|
|
|
+ return;
|
|
|
+ };
|
|
|
+ this.state.businessPlanUrl = info.file.response.data;
|
|
|
+ } else if (info.file.status === 'error') {
|
|
|
+ message.error(`${info.file.name} 文件上传失败。`);
|
|
|
};
|
|
|
- this.state.businessPlanUrl = info.file.response.data;
|
|
|
- } else if (info.file.status === 'error') {
|
|
|
- message.error(`${info.file.name} 文件上传失败。`);
|
|
|
- };
|
|
|
- this.setState({ businessPlanFileList: info.fileList.slice(-1) });
|
|
|
- }} >
|
|
|
- <Button><Icon type="upload" /> 上传商业计划书文件 </Button>
|
|
|
- </Upload>
|
|
|
- <p style={{ marginTop: '10px' }}>{theData.businessPlanUrl ?
|
|
|
- <span className="download-file">
|
|
|
- <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_business_plan') }}>商业计划书</a>
|
|
|
- </span>
|
|
|
- : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
|
|
|
- </FormItem>
|
|
|
- <FormItem wrapperCol={{ span: 12, offset: 4 }}>
|
|
|
- <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
|
|
|
- <Button className="set-submit" type="ghost" onClick={(e) => { this.state.auditStatus = 1; }} htmlType="submit">发布</Button>
|
|
|
- <Button className="set-submit" type="ghost" onClick={this.props.closeDesc}>取消</Button>
|
|
|
- </FormItem>
|
|
|
+ this.setState({ businessPlanFileList: info.fileList.slice(-1) });
|
|
|
+ }} >
|
|
|
+ <Button><Icon type="upload" /> 上传商业计划书文件 </Button>
|
|
|
+ </Upload>
|
|
|
+ <p style={{ marginTop: '10px' }}>{theData.businessPlanUrl ?
|
|
|
+ <span className="download-file">
|
|
|
+ <a onClick={() => { window.open(globalConfig.context + '/api/user/achievement/download?id=' + this.props.data.id + '&sign=achievement_business_plan') }}>商业计划书</a>
|
|
|
+ </span>
|
|
|
+ : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem wrapperCol={{ span: 12, offset: 4 }}>
|
|
|
+ <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
|
|
|
+ <Button className="set-submit" type="ghost" onClick={(e) => { this.state.auditStatus = 1; }} htmlType="submit">发布</Button>
|
|
|
+ <Button className="set-submit" type="ghost" onClick={this.props.closeDesc}>取消</Button>
|
|
|
+ </FormItem>
|
|
|
+ </Spin>
|
|
|
</Form >
|
|
|
)
|
|
|
}
|