jufubao-admin-library 1.1.218 → 1.1.220
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -570,11 +570,11 @@ export default {
|
|
|
570
570
|
let pow = Math.pow(10, toFixed);
|
|
571
571
|
let roundedPrice = 0;
|
|
572
572
|
if(roundingMethod === 'ceil') {
|
|
573
|
-
roundedPrice = Math.ceil(priceNew
|
|
573
|
+
roundedPrice = this.$xdHelper.divisionFloatNumber(Math.ceil(this.$xdHelper.multiplyFloatNumber(priceNew, pow)), pow);
|
|
574
574
|
} else if(roundingMethod === 'floor') {
|
|
575
|
-
roundedPrice = Math.floor(priceNew
|
|
575
|
+
roundedPrice = this.$xdHelper.divisionFloatNumber(Math.floor(this.$xdHelper.multiplyFloatNumber(priceNew, pow)), pow);
|
|
576
576
|
} else {
|
|
577
|
-
roundedPrice = Math.round(priceNew
|
|
577
|
+
roundedPrice = this.$xdHelper.divisionFloatNumber(Math.round(this.$xdHelper.multiplyFloatNumber(priceNew, pow)), pow);
|
|
578
578
|
}
|
|
579
579
|
return roundedPrice.toFixed(this.adjustListValue.decimal)
|
|
580
580
|
};
|
|
@@ -636,11 +636,11 @@ export default {
|
|
|
636
636
|
let pow = Math.pow(10, toFixed);
|
|
637
637
|
let roundedPrice = 0;
|
|
638
638
|
if(roundingMethod === 'ceil') {
|
|
639
|
-
roundedPrice = Math.ceil(priceNew
|
|
639
|
+
roundedPrice = this.$xdHelper.divisionFloatNumber(Math.ceil(this.$xdHelper.multiplyFloatNumber(priceNew, pow)), pow);
|
|
640
640
|
} else if(roundingMethod === 'floor') {
|
|
641
|
-
roundedPrice = Math.floor(priceNew
|
|
641
|
+
roundedPrice = this.$xdHelper.divisionFloatNumber(Math.floor(this.$xdHelper.multiplyFloatNumber(priceNew, pow)), pow);
|
|
642
642
|
} else {
|
|
643
|
-
roundedPrice = Math.round(priceNew
|
|
643
|
+
roundedPrice = this.$xdHelper.divisionFloatNumber(Math.round(this.$xdHelper.multiplyFloatNumber(priceNew, pow)), pow);
|
|
644
644
|
}
|
|
645
645
|
return roundedPrice.toFixed(this.adjustListValue.vip_decimal)
|
|
646
646
|
};
|
|
@@ -735,11 +735,11 @@ export default {
|
|
|
735
735
|
let pow = Math.pow(10, toFixed);
|
|
736
736
|
let roundedPrice = 0;
|
|
737
737
|
if(roundingMethod === 'ceil') {
|
|
738
|
-
roundedPrice = Math.ceil(priceNew
|
|
738
|
+
roundedPrice = this.$xdHelper.divisionFloatNumber(Math.ceil(this.$xdHelper.multiplyFloatNumber(priceNew, pow)), pow);
|
|
739
739
|
} else if(roundingMethod === 'floor') {
|
|
740
|
-
roundedPrice = Math.floor(priceNew
|
|
740
|
+
roundedPrice = this.$xdHelper.divisionFloatNumber(Math.floor(this.$xdHelper.multiplyFloatNumber(priceNew, pow)), pow);
|
|
741
741
|
} else {
|
|
742
|
-
roundedPrice = Math.round(priceNew
|
|
742
|
+
roundedPrice = this.$xdHelper.divisionFloatNumber(Math.round(this.$xdHelper.multiplyFloatNumber(priceNew, pow)), pow);
|
|
743
743
|
}
|
|
744
744
|
return roundedPrice.toFixed(this.skuAdjustValue.decimal)
|
|
745
745
|
};
|
|
@@ -847,11 +847,11 @@ export default {
|
|
|
847
847
|
let pow = Math.pow(10, decimal);
|
|
848
848
|
let roundedPrice = 0;
|
|
849
849
|
if(roundingMethod === 'ceil') {
|
|
850
|
-
roundedPrice = Math.ceil(price
|
|
850
|
+
roundedPrice = this.$xdHelper.divisionFloatNumber(Math.ceil(this.$xdHelper.multiplyFloatNumber(price, pow)), pow);
|
|
851
851
|
} else if(roundingMethod === 'floor') {
|
|
852
|
-
roundedPrice = Math.floor(price
|
|
852
|
+
roundedPrice = this.$xdHelper.divisionFloatNumber(Math.floor(this.$xdHelper.multiplyFloatNumber(price, pow)), pow);
|
|
853
853
|
} else {
|
|
854
|
-
roundedPrice = Math.round(price
|
|
854
|
+
roundedPrice = this.$xdHelper.divisionFloatNumber(Math.round(this.$xdHelper.multiplyFloatNumber(price, pow)), pow);
|
|
855
855
|
}
|
|
856
856
|
return Number(roundedPrice.toFixed(decimal));
|
|
857
857
|
};
|
|
@@ -377,7 +377,7 @@ export default {
|
|
|
377
377
|
{ required: true, message: "请选择是否校验答案", trigger: "blur" },
|
|
378
378
|
]
|
|
379
379
|
},
|
|
380
|
-
this.baseType === 'answer' &&
|
|
380
|
+
this.baseType === 'answer' && {
|
|
381
381
|
label: "正确选项:",
|
|
382
382
|
ele: "xd-select-list",
|
|
383
383
|
valueKey: "answer",
|
|
@@ -389,7 +389,7 @@ export default {
|
|
|
389
389
|
{ required: true, message: "请选择正确选项", trigger: "blur" },
|
|
390
390
|
]
|
|
391
391
|
},
|
|
392
|
-
this.baseType === 'answer' &&
|
|
392
|
+
this.baseType === 'answer' && {
|
|
393
393
|
label: "答案解析:",
|
|
394
394
|
ele: "el-input",
|
|
395
395
|
valueKey: "answer_analysis",
|