|
@@ -1136,13 +1136,31 @@ export default {
|
|
|
console.log(this.payTypeData,'处理后数据')
|
|
|
},
|
|
|
discountrateChange(){
|
|
|
- this.form.discountrate = Math.round(this.form.discountrate * 100)/100
|
|
|
+ let discountrate = parseFloat(this.form.discountrate)
|
|
|
+ if (isNaN(discountrate)){
|
|
|
+ this.form.discountrate = ''
|
|
|
+ }else {
|
|
|
+ this.form.discountrate = Math.round(this.form.discountrate * 100)/100
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
orderratioChange(){
|
|
|
- this.form.orderratio = Math.round(this.form.orderratio * 100)/100
|
|
|
+ let orderratio = parseFloat(this.form.orderratio)
|
|
|
+ if (isNaN(orderratio)){
|
|
|
+ this.form.orderratio = ''
|
|
|
+ }else {
|
|
|
+ this.form.orderratio = Math.round(this.form.orderratio * 100)/100
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
productdiscountChange(){
|
|
|
- this.form.productdiscount = Math.round(this.form.productdiscount * 100)/100
|
|
|
+ let productdiscount = parseFloat(this.form.productdiscount)
|
|
|
+ if (isNaN(productdiscount)){
|
|
|
+ this.form.productdiscount = ''
|
|
|
+ }else {
|
|
|
+ this.form.productdiscount = Math.round(this.form.productdiscount * 100)/100
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
/*获取客户负责人*/
|
|
|
async queryCustomerLeader(id){
|