|
@@ -79,72 +79,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 {
|
|
|
+ let detailData = data3[0].data;
|
|
|
+ this.setState({
|
|
|
+ id: detailData.id,
|
|
|
+ province: detailData.province,
|
|
|
+ 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,
|
|
|
+ copyrightInfo: detailData.copyrightInfo,
|
|
|
+ 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,
|
|
|
- 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,
|
|
|
- copyrightInfo: detailData.copyrightInfo,
|
|
|
- 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
|
|
@@ -206,16 +206,16 @@ const CopyrightDescForm = Form.create()(React.createClass({
|
|
|
return (
|
|
|
<Form onSubmit={this.handleSubmit} id="CopyrightDesc-form">
|
|
|
<Row className="express-desc-row">
|
|
|
- <Col span={3}>公司名称</Col>
|
|
|
- <Col span={6}>{theData.unitName}</Col>
|
|
|
+ <Col span={4}>公司名称</Col>
|
|
|
+ <Col span={8}>{theData.unitName}</Col>
|
|
|
<Col span={4}>组织机构代码</Col>
|
|
|
- <Col span={6}>{theData.unitNumber}</Col>
|
|
|
+ <Col span={8}>{theData.unitNumber}</Col>
|
|
|
</Row>
|
|
|
<Row className="express-desc-row">
|
|
|
- <Col span={3}>公司地址</Col>
|
|
|
- <Col span={6}>{theData.province}/{theData.city}/{theData.area}</Col>
|
|
|
+ <Col span={4}>公司地址</Col>
|
|
|
+ <Col span={8}>{theData.province}/{theData.city}/{theData.area}</Col>
|
|
|
<Col span={4}>联系人</Col>
|
|
|
- <Col span={6}>
|
|
|
+ <Col span={8}>
|
|
|
{getFieldDecorator('contact', {
|
|
|
rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
initialValue: theData.contact
|
|
@@ -229,10 +229,10 @@ const CopyrightDescForm = Form.create()(React.createClass({
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<Row className="express-desc-row">
|
|
|
- <Col span={3}>编号</Col>
|
|
|
- <Col span={6}>{theData.serialNumber}</Col>
|
|
|
+ <Col span={4}>编号</Col>
|
|
|
+ <Col span={8}>{theData.serialNumber}</Col>
|
|
|
<Col span={4}>软著名称</Col>
|
|
|
- <Col span={6}>
|
|
|
+ <Col span={8}>
|
|
|
{getFieldDecorator('copyrightName', {
|
|
|
initialValue: theData.copyrightName
|
|
|
})(
|
|
@@ -241,11 +241,11 @@ const CopyrightDescForm = Form.create()(React.createClass({
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<Row className="express-desc-row">
|
|
|
- <Col span={3}>软著编号</Col>
|
|
|
- <Col span={6}>{theData.copyrightNumber}</Col>
|
|
|
+ <Col span={4}>软著编号</Col>
|
|
|
+ <Col span={8}>{theData.copyrightNumber}</Col>
|
|
|
</Row>
|
|
|
<Row className="express-desc-row">
|
|
|
- <Col span={3}>软著简介</Col>
|
|
|
+ <Col span={4}>软著简介</Col>
|
|
|
<Col span={16}>
|
|
|
{getFieldDecorator('copyrightInfo', {
|
|
|
initialValue: theData.copyrightInfo
|
|
@@ -257,12 +257,12 @@ const CopyrightDescForm = Form.create()(React.createClass({
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<Row className="express-desc-row">
|
|
|
- <Col span={3}>派单详情</Col>
|
|
|
+ <Col span={4}>派单详情</Col>
|
|
|
<Col span={16}>{theData.workIssue}</Col>
|
|
|
</Row>
|
|
|
<Row className="express-desc-row">
|
|
|
- <Col span={3}>加急天数</Col>
|
|
|
- <Col span={6}>
|
|
|
+ <Col span={4}>加急天数</Col>
|
|
|
+ <Col span={8}>
|
|
|
{(() => {
|
|
|
switch (theData.inUrgent) {
|
|
|
case 0:
|
|
@@ -288,11 +288,11 @@ const CopyrightDescForm = Form.create()(React.createClass({
|
|
|
</Col>
|
|
|
</Row>
|
|
|
{theData.authorizedDateFormattedDate ? <Row className="express-desc-row">
|
|
|
- <Col span={3}>下证时间</Col>
|
|
|
- <Col span={6}>{theData.authorizedDateFormattedDate}</Col>
|
|
|
+ <Col span={4}>下证时间</Col>
|
|
|
+ <Col span={8}>{theData.authorizedDateFormattedDate}</Col>
|
|
|
</Row> :
|
|
|
<Row className="express-desc-row">
|
|
|
- <Col span={3}>下证时间(预计)</Col>
|
|
|
+ <Col span={4}>下证时间(预计)</Col>
|
|
|
<Col span={6}>
|
|
|
{(() => {
|
|
|
if (theData.expectTime && theData.expectTime[0]) {
|