|
@@ -106,72 +106,72 @@ const CopyrightDescForm = Form.create()(React.createClass({
|
|
|
})).done((data1, data2, data3) => {
|
|
|
let _me = this;
|
|
|
//状态流转table
|
|
|
+ this.state.stateTable = [];
|
|
|
if (data1[0].error && data1[0].error.length) {
|
|
|
message.warning(data1[0].error[0].message);
|
|
|
- return;
|
|
|
- };
|
|
|
- this.state.stateTable = [];
|
|
|
- data1[0].data.map(function (item, i) {
|
|
|
- _me.state.stateTable.push({
|
|
|
- key: i,
|
|
|
- recordTimeFormattedDate: item.recordTimeFormattedDate,
|
|
|
- status: item.status,
|
|
|
- principal: item.principal,
|
|
|
- operator: item.operator,
|
|
|
- comment: item.comment
|
|
|
+ } else {
|
|
|
+ data1[0].data.map(function (item, i) {
|
|
|
+ _me.state.stateTable.push({
|
|
|
+ key: i,
|
|
|
+ recordTimeFormattedDate: item.recordTimeFormattedDate,
|
|
|
+ status: item.status,
|
|
|
+ principal: item.principal,
|
|
|
+ operator: item.operator,
|
|
|
+ comment: item.comment
|
|
|
+ });
|
|
|
});
|
|
|
- });
|
|
|
+ };
|
|
|
//获取联系人
|
|
|
+ this.state.contactsOption = [];
|
|
|
if (data2[0].error && data2[0].error.length) {
|
|
|
message.warning(data2[0].error[0].message);
|
|
|
- return;
|
|
|
- };
|
|
|
- this.state.contactsOption = [];
|
|
|
- for (let item in data2[0].data) {
|
|
|
- let theData = data2[0].data[item];
|
|
|
- _me.state.contactsOption.push(
|
|
|
- <Select.Option value={item} key={theData}>{theData}</Select.Option>
|
|
|
- );
|
|
|
+ } else {
|
|
|
+ for (let item in data2[0].data) {
|
|
|
+ let theData = data2[0].data[item];
|
|
|
+ _me.state.contactsOption.push(
|
|
|
+ <Select.Option value={item} key={theData}>{theData}</Select.Option>
|
|
|
+ );
|
|
|
+ };
|
|
|
};
|
|
|
//获取详细数据
|
|
|
if (!data3[0].data && data3[0].error && data3[0].error.length) {
|
|
|
message.warning(data3[0].error[0].message);
|
|
|
- return;
|
|
|
+ } else if (data3[0].data) {
|
|
|
+ let detailData = data3[0].data;
|
|
|
+ this.setState({
|
|
|
+ id: detailData.id,
|
|
|
+ province: detailData.province,
|
|
|
+ postalAddress: detailData.postalAddress,
|
|
|
+ unitName: detailData.unitName,
|
|
|
+ serialNumber: detailData.serialNumber,
|
|
|
+ createTime: detailData.createTime,
|
|
|
+ acceptTime: detailData.acceptTime,
|
|
|
+ principal: detailData.principal,
|
|
|
+ contact: detailData.contact,
|
|
|
+ copyrightName: detailData.copyrightName,
|
|
|
+ copyrightNumber: detailData.copyrightNumber,
|
|
|
+ status: detailData.status,
|
|
|
+ comment: detailData.comment,
|
|
|
+ workIssue: detailData.workIssue,
|
|
|
+ outsource: detailData.outsource,
|
|
|
+ inUrgent: detailData.inUrgent,
|
|
|
+ authorizedDate: detailData.authorizedDate,
|
|
|
+ fisrtContact: detailData.fisrtContact,
|
|
|
+ secondContact: detailData.secondContact,
|
|
|
+ thirdContact: detailData.thirdContact,
|
|
|
+ city: detailData.city,
|
|
|
+ area: detailData.area,
|
|
|
+ postcode: detailData.postcode,
|
|
|
+ certificateUrl: detailData.certificateUrl,
|
|
|
+ applicationUrl: detailData.applicationUrl,
|
|
|
+ certificateUrlDownloadFileName: detailData.certificateUrlDownloadFileName,
|
|
|
+ applicationUrlDownloadFileName: detailData.applicationUrlDownloadFileName,
|
|
|
+ authorizedDateFormattedDate: detailData.authorizedDateFormattedDate,
|
|
|
+ createTimeFormattedDate: detailData.createTimeFormattedDate,
|
|
|
+ acceptTimeFormattedDate: detailData.acceptTimeFormattedDate,
|
|
|
+ expectTime: [detailData.acceptTime, detailData.inUrgent]
|
|
|
+ });
|
|
|
};
|
|
|
- let detailData = data3[0].data;
|
|
|
- this.setState({
|
|
|
- id: detailData.id,
|
|
|
- province: detailData.province,
|
|
|
- postalAddress:detailData.postalAddress,
|
|
|
- unitName: detailData.unitName,
|
|
|
- serialNumber: detailData.serialNumber,
|
|
|
- createTime: detailData.createTime,
|
|
|
- acceptTime: detailData.acceptTime,
|
|
|
- principal: detailData.principal,
|
|
|
- contact: detailData.contact,
|
|
|
- copyrightName: detailData.copyrightName,
|
|
|
- copyrightNumber: detailData.copyrightNumber,
|
|
|
- status: detailData.status,
|
|
|
- comment: detailData.comment,
|
|
|
- workIssue: detailData.workIssue,
|
|
|
- outsource: detailData.outsource,
|
|
|
- inUrgent: detailData.inUrgent,
|
|
|
- authorizedDate: detailData.authorizedDate,
|
|
|
- fisrtContact: detailData.fisrtContact,
|
|
|
- secondContact: detailData.secondContact,
|
|
|
- thirdContact: detailData.thirdContact,
|
|
|
- city: detailData.city,
|
|
|
- area: detailData.area,
|
|
|
- postcode: detailData.postcode,
|
|
|
- certificateUrl: detailData.certificateUrl,
|
|
|
- applicationUrl: detailData.applicationUrl,
|
|
|
- certificateUrlDownloadFileName: detailData.certificateUrlDownloadFileName,
|
|
|
- applicationUrlDownloadFileName: detailData.applicationUrlDownloadFileName,
|
|
|
- authorizedDateFormattedDate: detailData.authorizedDateFormattedDate,
|
|
|
- createTimeFormattedDate: detailData.createTimeFormattedDate,
|
|
|
- acceptTimeFormattedDate: detailData.acceptTimeFormattedDate,
|
|
|
- expectTime: [detailData.acceptTime, detailData.inUrgent]
|
|
|
- });
|
|
|
}).always(function () {
|
|
|
this.setState({
|
|
|
loading: false
|