|
@@ -134,11 +134,11 @@
|
|
|
this.sumadd();
|
|
|
},
|
|
|
sumzkj(v) {
|
|
|
- v.row.discountRate=v.row.discountRate.replace(/[^\d.]/g,'');
|
|
|
+ v.row.discountRate=(v.row.discountRate.toString()).replace(/[^\d.]/g,'');
|
|
|
let info = this.infodata[v.$index];
|
|
|
this.infodata[v.$index].discountPrice = info.pubPrice * info.discountRate / 100;
|
|
|
this.infodata[v.$index].discountPrice = Math.floor(this.infodata[v.$index].discountPrice * 100) / 100;
|
|
|
- this.sumadd();
|
|
|
+ this.sumadd();
|
|
|
},
|
|
|
sumadd(){
|
|
|
this.advPriceSum = 0;
|
|
@@ -153,7 +153,7 @@
|
|
|
type: 'error'
|
|
|
});
|
|
|
return
|
|
|
- }
|
|
|
+ }
|
|
|
this.contractAdvCost = (this.advDiscountSum - this.otherDiscount) / (this.taxRate.split("%")[0]*1 + 100) * 100;
|
|
|
this.contractAdvTax = this.contractAdvCost*(this.taxRate.split("%")[0]*1)/100;
|
|
|
this.contractAdvCost = Math.round(this.contractAdvCost * 100) / 100;
|