|
@@ -330,6 +330,10 @@ const MyService=Form.create()(React.createClass({
|
|
|
},
|
|
|
|
|
|
invoiceData(record) {
|
|
|
+ if(this.state.flagA) return
|
|
|
+ this.setState({
|
|
|
+ flagA: true
|
|
|
+ })
|
|
|
let theorgCodeUrl = [];
|
|
|
if (this.state.orgCodeUrl.length) {
|
|
|
let picArr = [];
|
|
@@ -496,7 +500,7 @@ const MyService=Form.create()(React.createClass({
|
|
|
invoiceType:thisdata.invoiceType,
|
|
|
unitName:thisdata.unitName,
|
|
|
taxNumber:thisdata.taxNumber,
|
|
|
- amount:thisdata.amount,
|
|
|
+ amount:thisdata.amount + "",
|
|
|
banks:thisdata.banks,
|
|
|
content:thisdata.content,
|
|
|
unitAddress:thisdata.unitAddress,
|
|
@@ -508,7 +512,7 @@ const MyService=Form.create()(React.createClass({
|
|
|
addresseeProvince:thisdata.addresseeProvince,
|
|
|
addresseeCity:thisdata.addresseeCity,
|
|
|
addresseeArea:thisdata.addresseeArea,
|
|
|
- alreadyAmount:thisdata.alreadyAmount,
|
|
|
+ alreadyAmount:thisdata.alreadyAmount + "",
|
|
|
ProvinceCity: ProvinceCityArr[0]!=null?ProvinceCityArr:undefined,//省市区
|
|
|
recipientAddress:thisdata.recipientAddress,
|
|
|
orgCodeUrl: thisdata.voucherUrl ? splitUrl(thisdata.voucherUrl, ',', globalConfig.avatarHost + '/upload') : [],
|
|
@@ -526,16 +530,26 @@ const MyService=Form.create()(React.createClass({
|
|
|
if (this.state.flag) {
|
|
|
this.inRecordData()
|
|
|
}
|
|
|
+ this.setState({
|
|
|
+ flagA: false
|
|
|
+ })
|
|
|
}else if(this.state.status === 0){
|
|
|
message.success('保存成功!');
|
|
|
this.visitCancels()
|
|
|
+ this.setState({
|
|
|
+ flagA: false
|
|
|
+ })
|
|
|
}else if(this.state.status === 3){
|
|
|
this.setState({
|
|
|
- flag:true
|
|
|
+ flag:true,
|
|
|
+ flagA: false
|
|
|
})
|
|
|
}
|
|
|
} else {
|
|
|
message.warning(data.error[0].message);
|
|
|
+ this.setState({
|
|
|
+ flagA: false
|
|
|
+ })
|
|
|
}
|
|
|
}.bind(this));
|
|
|
},
|