|
@@ -138,11 +138,11 @@ const NewService = Form.create()(React.createClass({
|
|
|
dataIndex: 'commodityQuantity',
|
|
|
key: 'commodityQuantity'
|
|
|
}, {
|
|
|
- title: '服务市价',
|
|
|
+ title: '服务市价(万元)',
|
|
|
dataIndex: 'commodityPrice',
|
|
|
key: 'commodityPrice'
|
|
|
}, {
|
|
|
- title: '实签价格',
|
|
|
+ title: '实签价格(万元)',
|
|
|
dataIndex: 'discountPrice',
|
|
|
key: 'discountPrice'
|
|
|
}, {
|
|
@@ -179,7 +179,7 @@ const NewService = Form.create()(React.createClass({
|
|
|
dataIndex: 'createTime',
|
|
|
key: 'createTime'
|
|
|
}, {
|
|
|
- title: '流水金额',
|
|
|
+ title: '流水金额(万元)',
|
|
|
dataIndex: 'transactionAmount',
|
|
|
key: 'transactionAmount'
|
|
|
},{
|
|
@@ -251,7 +251,7 @@ const NewService = Form.create()(React.createClass({
|
|
|
message.warning('请选择订单类型');
|
|
|
return false;
|
|
|
}
|
|
|
- if(this.state.autoId==undefined||!this.state.autoId){
|
|
|
+ if(!this.state.autoId){
|
|
|
message.warning('客户名称不匹配');
|
|
|
return false;
|
|
|
};
|
|
@@ -508,24 +508,19 @@ const NewService = Form.create()(React.createClass({
|
|
|
})
|
|
|
},
|
|
|
//客户
|
|
|
- selectAutoCUT(value,options){
|
|
|
- this.setState({
|
|
|
- customerName:value,
|
|
|
- })
|
|
|
- },
|
|
|
- blurCutor(value){
|
|
|
+ selectAutoCUT(value){
|
|
|
let autoIds;
|
|
|
let fwList=this.state.customerArr;
|
|
|
fwList.map(function(item){
|
|
|
if(value==item.name){
|
|
|
autoIds=item.id
|
|
|
- }else{
|
|
|
- autoIds=''
|
|
|
}
|
|
|
})
|
|
|
this.setState({
|
|
|
+ customerName:value,
|
|
|
autoId:autoIds
|
|
|
})
|
|
|
+
|
|
|
},
|
|
|
//服务值改变时请求客户名称
|
|
|
httpChange(e){
|
|
@@ -539,11 +534,11 @@ const NewService = Form.create()(React.createClass({
|
|
|
},
|
|
|
//客户名称自动补全
|
|
|
customerChange(e){
|
|
|
+ this.state.autoId='';
|
|
|
if(e.length>=1){
|
|
|
this.supervisor(e,true);
|
|
|
}
|
|
|
this.setState({
|
|
|
- autoId:'',
|
|
|
customerName:e
|
|
|
})
|
|
|
},
|
|
@@ -702,7 +697,7 @@ const NewService = Form.create()(React.createClass({
|
|
|
})
|
|
|
this.state.lookSource=[];
|
|
|
$.ajax({
|
|
|
- method: "post",
|
|
|
+ method: "get",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
url: globalConfig.context +'/api/admin/order/getBillByOrderNo',
|
|
@@ -716,8 +711,8 @@ const NewService = Form.create()(React.createClass({
|
|
|
message.warning(data.error[0].message);
|
|
|
};
|
|
|
} else {
|
|
|
- for (let i = 0; i < data.data.list.length; i++) {
|
|
|
- let thisdata = data.data.list[i];
|
|
|
+ for (let i = 0; i < data.data.length; i++) {
|
|
|
+ let thisdata = data.data[i];
|
|
|
theArr.push({
|
|
|
key: i,
|
|
|
billNo: thisdata.billNo,
|
|
@@ -885,7 +880,6 @@ const NewService = Form.create()(React.createClass({
|
|
|
value={this.state.customerName}
|
|
|
onChange={this.customerChange}
|
|
|
filterOption={true}
|
|
|
- onBlur={this.blurCutor}
|
|
|
onSelect={this.selectAutoCUT}
|
|
|
>
|
|
|
<Input/>
|
|
@@ -927,7 +921,7 @@ const NewService = Form.create()(React.createClass({
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="已收款项" >
|
|
|
- <span>{orderDetaiel.actuallyTotalAmount}</span>
|
|
|
+ <span>{orderDetaiel.actuallyTotalAmount+'万元'}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
@@ -937,24 +931,24 @@ const NewService = Form.create()(React.createClass({
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="市价订单金额" >
|
|
|
- <span>{orderDetaiel.orderAmount}</span>
|
|
|
+ <span>{orderDetaiel.orderAmount+'万元'}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="市价首款金额" >
|
|
|
- <span>{orderDetaiel.firstPayment}</span>
|
|
|
+ <span>{orderDetaiel.firstPayment+'万元'}</span>
|
|
|
</FormItem>
|
|
|
{orderDetaiel.deleteSign==0&&orderDetaiel.orderStatus==2?
|
|
|
<div className='clearfix'>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="实签订单金额" >
|
|
|
+ label="实签订单金额(万元)" >
|
|
|
<Input placeholder="实签订单金额" ref='signTotalAmount' value={this.state.signTotalAmount} onChange={(e)=>{this.setState({signTotalAmount:e.target.value})}} style={{width:'240px'}} />
|
|
|
<span className="mandatory">*</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="实签首款金额" >
|
|
|
+ label="实签首款金额(万元)" >
|
|
|
<Input placeholder="请输入实签首款金额" ref='signFirstPayment' value={this.state.signFirstPayment} onChange={(e)=>{this.setState({signFirstPayment:e.target.value})}} style={{width:'240px'}} />
|
|
|
<span className="mandatory">*</span>
|
|
|
</FormItem>
|
|
@@ -989,12 +983,12 @@ const NewService = Form.create()(React.createClass({
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="实签订单金额" >
|
|
|
- <span>{orderDetaiel.signTotalAmount}</span>
|
|
|
+ <span>{orderDetaiel.signTotalAmount+'万元'}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="实签首款金额" >
|
|
|
- <span>{orderDetaiel.signFirstPayment}</span>
|
|
|
+ <span>{orderDetaiel.signFirstPayment+'万元'}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
@@ -1138,12 +1132,12 @@ const NewService = Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="市场价格" >
|
|
|
+ label="市场价格(万元)" >
|
|
|
<span>{this.state.commodityPrice}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="实签价格" >
|
|
|
+ label="实签价格(万元)" >
|
|
|
<Input placeholder="请输入实签价格" value={this.state.discountPrice} style={{width:'200px'}}
|
|
|
onChange={(e)=>{this.setState({discountPrice:e.target.value})}} ref="discountPrice"/>
|
|
|
<span className="mandatory">*</span>
|
|
@@ -1157,12 +1151,12 @@ const NewService = Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="市场首付金额" >
|
|
|
+ label="市场首付金额(万元)" >
|
|
|
<span>{this.state.commodityFirstPayment}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="签单首付金额" >
|
|
|
+ label="签单首付金额(万元)" >
|
|
|
<Input placeholder="请输入签单首付金额" value={this.state.discountFirstPayment} style={{width:'200px'}}
|
|
|
onChange={(e)=>{this.setState({discountFirstPayment:e.target.value})}} ref='discountFirstPayment'/>
|
|
|
<span className="mandatory">*</span>
|
|
@@ -1190,12 +1184,12 @@ const NewService = Form.create()(React.createClass({
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="市场价格" >
|
|
|
- <span>{editFws.commodityPrice}</span>
|
|
|
+ <span>{editFws.commodityPrice+'万元'}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="实签价格" >
|
|
|
- <span>{editFws.discountPrice}</span>
|
|
|
+ <span>{editFws.discountPrice+'万元'}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
@@ -1205,12 +1199,12 @@ const NewService = Form.create()(React.createClass({
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="市场首付金额" >
|
|
|
- <span>{editFws.commodityFirstPayment}</span>
|
|
|
+ <span>{editFws.commodityFirstPayment+'万元'}</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="签单首付金额" >
|
|
|
- <span>{editFws.discountFirstPayment}</span>
|
|
|
+ <span>{editFws.discountFirstPayment+'万元'}</span>
|
|
|
</FormItem>
|
|
|
<div className='clearfix'>
|
|
|
<FormItem
|
|
@@ -1245,14 +1239,14 @@ const NewService = Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="实签款项" >
|
|
|
+ label="实签款项(万元)" >
|
|
|
<Input placeholder="请输入实签款项" value={this.state.signTotalAmount} style={{width:'200px'}}
|
|
|
onChange={(e)=>{this.setState({signTotalAmount:e.target.value})}} />
|
|
|
<span className="mandatory">*</span>
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="实签首款" >
|
|
|
+ label="实签首款(万元)" >
|
|
|
<Input placeholder="请输入实签首款" value={this.state.signFirstPayment} style={{width:'200px'}}
|
|
|
onChange={(e)=>{this.setState({signFirstPayment:e.target.value})}} />
|
|
|
<span className="mandatory">*</span>
|