|
@@ -174,7 +174,9 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
thisData = {};
|
|
|
};
|
|
|
this.setState({
|
|
|
+ orderType:thisData.orderType,
|
|
|
id:thisData.id,
|
|
|
+ contractNo:thisData.contractNo,
|
|
|
orderList:thisData,
|
|
|
orderAmount:thisData.orderAmount,
|
|
|
firstPayment:thisData.firstPayment,
|
|
@@ -270,6 +272,36 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
});
|
|
|
}.bind(this));
|
|
|
},
|
|
|
+ //保存合同编号
|
|
|
+ subContract(e) {
|
|
|
+ e.preventDefault();
|
|
|
+ this.setState({
|
|
|
+ loading: true
|
|
|
+ });
|
|
|
+ let api='/api/admin/order/updateServiceOrder';
|
|
|
+ $.ajax({
|
|
|
+ method: "POST",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + api,
|
|
|
+ data:{
|
|
|
+ orderNo:this.state.orderNo,
|
|
|
+ contractNo:this.state.contractNo,
|
|
|
+ signTotalAmount:this.state.signTotalAmount,
|
|
|
+ signFirstPayment:this.state.signFirstPayment,
|
|
|
+ }
|
|
|
+ }).done(function(data) {
|
|
|
+ this.setState({
|
|
|
+ loading: false
|
|
|
+ });
|
|
|
+ if(!data.error.length) {
|
|
|
+ message.success('保存成功!');
|
|
|
+ this.handleOk()
|
|
|
+ } else {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ }
|
|
|
+ }.bind(this));
|
|
|
+ },
|
|
|
lookCancel(){
|
|
|
this.setState({
|
|
|
lookVisible:false
|
|
@@ -376,8 +408,8 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="合同编号" >
|
|
|
- <span>{orderDetaiel.contractNo}</span>
|
|
|
+ label="合同编号" >
|
|
|
+ <Input placeholder="实签订单金额" value={this.state.contractNo} onChange={(e)=>{this.setState({contractNo:e.target.value})}} style={{width:'240px'}} />
|
|
|
</FormItem>
|
|
|
<div className='clearfix'>
|
|
|
<FormItem
|
|
@@ -451,6 +483,10 @@ const MySettlementDetaile = Form.create()(React.createClass({
|
|
|
/>
|
|
|
</Spin>
|
|
|
</div>
|
|
|
+ <div style={{marginTop:'10px'}}>
|
|
|
+ <Button type="primary" onClick={this.subContract} style={{float:'left',marginLeft:'200px'}}>保存</Button>
|
|
|
+ <Button className="cancel" type="ghost" onClick={this.handleCancel} style={{float:'right',marginRight:'200px'}}>返回</Button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</Spin>
|
|
|
</Form >
|