|
@@ -814,7 +814,7 @@ const outsourcingPro = Form.create()(
|
|
|
);
|
|
|
},
|
|
|
thirdTable(id){
|
|
|
- $.ajax({
|
|
|
+ let ajaxObj = $.ajax({
|
|
|
method: 'get',
|
|
|
dataType: 'json',
|
|
|
crossDomain: false,
|
|
@@ -859,7 +859,10 @@ const outsourcingPro = Form.create()(
|
|
|
loading: false,
|
|
|
})
|
|
|
}.bind(this)
|
|
|
- )
|
|
|
+ );
|
|
|
+ this.setState({
|
|
|
+ selectCompanyAjaxObj: ajaxObj
|
|
|
+ })
|
|
|
},
|
|
|
// 获取csort下的数据
|
|
|
getCsortData(cSort) {
|
|
@@ -872,7 +875,7 @@ const outsourcingPro = Form.create()(
|
|
|
})
|
|
|
},
|
|
|
payNodeTable(id) {
|
|
|
- $.ajax({
|
|
|
+ let ajaxObj = $.ajax({
|
|
|
method: 'get',
|
|
|
dataType: 'json',
|
|
|
crossDomain: false,
|
|
@@ -927,13 +930,17 @@ const outsourcingPro = Form.create()(
|
|
|
})
|
|
|
}.bind(this)
|
|
|
)
|
|
|
+ this.setState({
|
|
|
+ payNodeListAjaxObj: ajaxObj
|
|
|
+ })
|
|
|
},
|
|
|
waiDetail() {
|
|
|
- let url = window.location.href.substring(7)
|
|
|
+ let url = window.location.href.substring(7);
|
|
|
+ let ajaxObj = null;
|
|
|
this.setState({
|
|
|
loading: true,
|
|
|
})
|
|
|
- $.ajax({
|
|
|
+ ajaxObj = $.ajax({
|
|
|
method: 'get',
|
|
|
dataType: 'json',
|
|
|
crossDomain: false,
|
|
@@ -970,30 +977,34 @@ const outsourcingPro = Form.create()(
|
|
|
})
|
|
|
}else{
|
|
|
this.setState({
|
|
|
- startType: data.data.startType, //类型
|
|
|
- patentType: data.data.patentType, //专利类型
|
|
|
- patentNameType: data.data.patentNameType, //专利名称类型
|
|
|
- patentName: data.data.patentName, //专利名称
|
|
|
- outsourceRemarks: data.data.outsourceRemarks,
|
|
|
- remarks: data.data.remarks,
|
|
|
- companyName: data.data.companyName,
|
|
|
- amount: data.data.amount,
|
|
|
- mid: data.data.id,
|
|
|
- unitPrice: data.data.unitPrice,
|
|
|
- refundStatus: data.data.refundStatus,
|
|
|
- unitNumber: data.data.unitNumber,
|
|
|
- pictureUrl: data.data.pictureUrl
|
|
|
- ? splitUrl(
|
|
|
- data.data.pictureUrl,
|
|
|
- ',',
|
|
|
- globalConfig.avatarHost + '/upload',
|
|
|
- url
|
|
|
- )
|
|
|
- : [], //图片地址
|
|
|
- createTimes: data.data.createTimes,
|
|
|
- auditTimes: data.data.auditTimes,
|
|
|
+ oldInfor: {}
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+ this.setState({
|
|
|
+ startType: data.data.startType, //类型
|
|
|
+ patentType: data.data.patentType, //专利类型
|
|
|
+ patentNameType: data.data.patentNameType, //专利名称类型
|
|
|
+ patentName: data.data.patentName, //专利名称
|
|
|
+ outsourceRemarks: data.data.outsourceRemarks,
|
|
|
+ remarks: data.data.remarks,
|
|
|
+ companyName: data.data.companyName,
|
|
|
+ amount: data.data.amount,
|
|
|
+ mid: data.data.id,
|
|
|
+ unitPrice: data.data.unitPrice,
|
|
|
+ refundStatus: data.data.refundStatus,
|
|
|
+ unitNumber: data.data.unitNumber,
|
|
|
+ pictureUrl: data.data.pictureUrl
|
|
|
+ ? splitUrl(
|
|
|
+ data.data.pictureUrl,
|
|
|
+ ',',
|
|
|
+ globalConfig.avatarHost + '/upload',
|
|
|
+ url
|
|
|
+ )
|
|
|
+ : [], //图片地址
|
|
|
+ createTimes: data.data.createTimes,
|
|
|
+ auditTimes: data.data.auditTimes,
|
|
|
+ })
|
|
|
} else if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message)
|
|
|
} else if (!data.data) {
|
|
@@ -1002,7 +1013,10 @@ const outsourcingPro = Form.create()(
|
|
|
})
|
|
|
}
|
|
|
}.bind(this)
|
|
|
- )
|
|
|
+ );
|
|
|
+ this.setState({
|
|
|
+ orderDtailsAjaxObj: ajaxObj
|
|
|
+ })
|
|
|
},
|
|
|
tableRowClick(record) {
|
|
|
this.setState(
|
|
@@ -1015,10 +1029,9 @@ const outsourcingPro = Form.create()(
|
|
|
splitId: record.splitId, //拆分序号
|
|
|
splitStatus: record.splitStatus, //0未拆分 1已拆分
|
|
|
splitSuper: record.splitSuper, //拆分前项目编号
|
|
|
-
|
|
|
- },
|
|
|
- () => {
|
|
|
- console.log(record);
|
|
|
+ orderNo: record.orderNo,
|
|
|
+ }, () => {
|
|
|
+ this.waiDetail();
|
|
|
}
|
|
|
);
|
|
|
this.xiangqing(record.orderNo);
|
|
@@ -1031,74 +1044,6 @@ const outsourcingPro = Form.create()(
|
|
|
this.payNodeTable(record.tid);
|
|
|
// 获取Csort
|
|
|
this.getCsortData(localStorage.getItem('cSort'))
|
|
|
- let url = window.location.href.substring(7);
|
|
|
-
|
|
|
- $.ajax({
|
|
|
- method: "get",
|
|
|
- dataType: "json",
|
|
|
- crossDomain: false,
|
|
|
- url:
|
|
|
- globalConfig.context + "/api/admin/outsourceOrg/orderOutsourceDtails",
|
|
|
- data: {
|
|
|
- orderNo: record.orderNo,
|
|
|
- tid: record.tid,
|
|
|
- },
|
|
|
- success: function (data) {
|
|
|
- if (data.error.length || data.data.list == "") {
|
|
|
- if (data.error && data.error.length) {
|
|
|
- message.warning(data.error[0].message);
|
|
|
- }
|
|
|
- } else {
|
|
|
- let thisdata = data.data;
|
|
|
- if(data.data.unitNumber){
|
|
|
- this.setState({
|
|
|
- oldInfor: {
|
|
|
- companyName:thisdata.companyName,
|
|
|
- unitPrice:thisdata.unitPrice,
|
|
|
- unitNumber:thisdata.unitNumber,
|
|
|
- amount:thisdata.amount,
|
|
|
- outsourceRemarks:thisdata.outsourceRemarks,
|
|
|
- pictureUrl: data.data.pictureUrl
|
|
|
- ? splitUrl(
|
|
|
- data.data.pictureUrl,
|
|
|
- ',',
|
|
|
- globalConfig.avatarHost + '/upload',
|
|
|
- url
|
|
|
- )
|
|
|
- : [], //图片地址
|
|
|
- }
|
|
|
- })
|
|
|
- }else{
|
|
|
- this.setState({
|
|
|
- id: thisdata.id,
|
|
|
- orderNo: thisdata.orderNo,
|
|
|
- createTimes: thisdata.createTimes,
|
|
|
- auditTimes: thisdata.auditTimes,
|
|
|
- remarks: thisdata.remarks,
|
|
|
- pictureUrl: thisdata.pictureUrl
|
|
|
- ? splitUrl(
|
|
|
- thisdata.pictureUrl,
|
|
|
- ",",
|
|
|
- globalConfig.avatarHost + "/upload"
|
|
|
- )
|
|
|
- : [], //图片地址
|
|
|
- amount: thisdata.amount,
|
|
|
- refundStatus: thisdata.refundStatus,
|
|
|
- companyName: thisdata.companyName,
|
|
|
- outsourceRemarks: thisdata.outsourceRemarks,
|
|
|
- unitNumber: thisdata.unitNumber,
|
|
|
- unitPrice: thisdata.unitPrice,
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- }.bind(this),
|
|
|
- }).always(
|
|
|
- function () {
|
|
|
- this.setState({
|
|
|
- loading: false,
|
|
|
- });
|
|
|
- }.bind(this)
|
|
|
- );
|
|
|
},
|
|
|
//页面加载函数
|
|
|
componentWillMount() {
|
|
@@ -1476,7 +1421,22 @@ const outsourcingPro = Form.create()(
|
|
|
{this.state.visible ? <Modal
|
|
|
maskClosable={false}
|
|
|
visible={this.state.visible}
|
|
|
- onCancel={this.cancel}
|
|
|
+ onCancel={()=>{
|
|
|
+ this.state.orderDtailsAjaxObj && this.state.orderDtailsAjaxObj.abort();
|
|
|
+ this.state.payNodeListAjaxObj && this.state.payNodeListAjaxObj.abort();
|
|
|
+ this.state.selectCompanyAjaxObj && this.state.selectCompanyAjaxObj.abort();
|
|
|
+ this.setState({
|
|
|
+ visible: false,
|
|
|
+ remarks: undefined,
|
|
|
+ activeKey: "1",
|
|
|
+ oldInfor: {},
|
|
|
+
|
|
|
+ thirdInfoList: [],
|
|
|
+ payNodeList: [],
|
|
|
+ orderNo: '',
|
|
|
+ tid: '',
|
|
|
+ });
|
|
|
+ }}
|
|
|
width="900px"
|
|
|
title={""}
|
|
|
footer=""
|
|
@@ -2066,7 +2026,7 @@ const outsourcingPro = Form.create()(
|
|
|
</TabPane>
|
|
|
</Tabs>
|
|
|
</Modal> : <div/>}
|
|
|
- <Modal
|
|
|
+ {this.state.rizhivisible ? <Modal
|
|
|
visible={this.state.rizhivisible}
|
|
|
className="admin-desc-content"
|
|
|
width="800px"
|
|
@@ -2086,7 +2046,7 @@ const outsourcingPro = Form.create()(
|
|
|
/>
|
|
|
</Spin>
|
|
|
</div>
|
|
|
- </Modal>
|
|
|
+ </Modal> : <div/>}
|
|
|
</div>
|
|
|
</div>
|
|
|
);
|