|
@@ -1,7 +1,7 @@
|
|
|
import React from 'react';
|
|
|
import { Icon, Form, Button, Input, Select, Spin, Table, DatePicker, message, Modal, Checkbox, Upload } from 'antd';
|
|
|
-import { cognizanceStateList } from '../../../dataDic.js';
|
|
|
-import { getCognizanceState, beforeUpload, beforeUploadFile, downloadFile } from '../../../tools.js';
|
|
|
+import { technologyStateList } from '../../../dataDic.js';
|
|
|
+import { getTechnologyState, beforeUpload, beforeUploadFile, techDownloadFile } from '../../../tools.js';
|
|
|
import ajax from 'jquery/src/ajax/xhr.js';
|
|
|
import $ from 'jquery/src/ajax';
|
|
|
|
|
@@ -25,7 +25,6 @@ const ApplyChangeFrom = Form.create()(React.createClass({
|
|
|
return;
|
|
|
};
|
|
|
this.state.data = data.data;
|
|
|
-
|
|
|
if (data.data.projectMode == 1) {
|
|
|
this.state.projectMode = data.data.projectMode;
|
|
|
this.setState({projectModeState:true});
|
|
@@ -83,13 +82,10 @@ const ApplyChangeFrom = Form.create()(React.createClass({
|
|
|
loading: true
|
|
|
});
|
|
|
$.ajax({
|
|
|
- method: "post",
|
|
|
+ method: "get",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
- url: globalConfig.context + "/api/user/getDepartment",
|
|
|
- data: {
|
|
|
- uid: this.props.data.uid,
|
|
|
- },
|
|
|
+ url: globalConfig.context + "/api/admintechproject/getDepartment?uid=" + this.props.data.uid,
|
|
|
success: function (data) {
|
|
|
this.state.departmentOption = [];
|
|
|
if (data.error.length || !data.data) {
|
|
@@ -111,13 +107,10 @@ const ApplyChangeFrom = Form.create()(React.createClass({
|
|
|
},
|
|
|
getContactsList() {
|
|
|
$.ajax({
|
|
|
- method: "post",
|
|
|
+ method: "get",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
- url: globalConfig.context + "/api/admin/getContacts",
|
|
|
- data: {
|
|
|
- uid: this.props.data.uid,
|
|
|
- },
|
|
|
+ url: globalConfig.context + "/api/admin/getContacts?uid=" + this.props.data.uid,
|
|
|
success: function (data) {
|
|
|
let theOption = [];
|
|
|
if (data.error.length || !data.data) {
|
|
@@ -150,7 +143,7 @@ const ApplyChangeFrom = Form.create()(React.createClass({
|
|
|
title: '专利状态',
|
|
|
dataIndex: 'state',
|
|
|
key: 'state',
|
|
|
- render: (text) => { return getCognizanceState(text) }
|
|
|
+ render: (text) => { return getTechnologyState(text) }
|
|
|
}, {
|
|
|
title: '处理时间',
|
|
|
dataIndex: 'recordTime',
|
|
@@ -169,7 +162,7 @@ const ApplyChangeFrom = Form.create()(React.createClass({
|
|
|
},
|
|
|
componentWillMount() {
|
|
|
let _me = this;
|
|
|
- cognizanceStateList.map(function (item) {
|
|
|
+ technologyStateList.map(function (item) {
|
|
|
_me.state.stateOption.push(
|
|
|
<Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
|
|
|
)
|
|
@@ -423,7 +416,7 @@ const ApplyChangeFrom = Form.create()(React.createClass({
|
|
|
>
|
|
|
<Button><Icon type="upload" /> 项目材料上传 </Button>
|
|
|
</Upload>
|
|
|
- <p style={{ marginTop: '10px' }}>{theData.approvalUrl ? <a onClick={downloadFile.bind(null, theData.approvalUrl, theData.approvalDownloadFileName)}>{theData.approvalDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
|
|
|
+ <p style={{ marginTop: '10px' }}>{theData.approvalUrl ? <a onClick={techDownloadFile.bind(null, "/api/admintechproject/download", this.state.data.id)}>{theData.approvalDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
|
|
|
</div>
|
|
|
<div className="form-title">状态流转记录: </div>
|
|
|
<Table pagination={false} dataSource={this.state.stateTable} columns={this.state.stateColumns} />
|