refactor(project): 优化折扣率显示格式
- 在项目订单添加、编辑和信息编辑页面中,将折扣率乘以 100 后保留两位小数- 使用 toFixed(2) 方法确保折扣率显示为两位小数,提高用户体验master
parent
e6bd2b80d1
commit
08a00767b1
|
@ -358,7 +358,7 @@
|
|||
ele.priceFormmat = ele.price ? formatAmountNumber(ele.price) : ""
|
||||
ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? formatAmountNumber(ele.catalogueAllPrice) : ""
|
||||
ele.allPriceFormmat = ele.allPrice ? formatAmountNumber(ele.allPrice) : ""
|
||||
ele.discountFormat = ele.discount ? ele.discount*100 : ""
|
||||
ele.discountFormat = ele.discount ? (ele.discount*100).toFixed(2) : ""
|
||||
ele.guidanceDiscountFormat = ele.guidanceDiscount ? ele.guidanceDiscount*100 : ""
|
||||
addProduct(ele)
|
||||
})
|
||||
|
@ -368,7 +368,7 @@
|
|||
ele.priceFormmat = ele.price ? formatAmountNumber(ele.price) : ""
|
||||
ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? formatAmountNumber(ele.catalogueAllPrice) : ""
|
||||
ele.allPriceFormmat = ele.allPrice ? formatAmountNumber(ele.allPrice) : ""
|
||||
ele.discountFormat = ele.discount ? ele.discount*100 : ""
|
||||
ele.discountFormat = ele.discount ? (ele.discount*100).toFixed(2) : ""
|
||||
ele.guidanceDiscountFormat = ele.guidanceDiscount ? ele.guidanceDiscount*100 : ""
|
||||
addProduct2(ele)
|
||||
})
|
||||
|
@ -378,7 +378,7 @@
|
|||
ele.priceFormmat = ele.price ? formatAmountNumber(ele.price) : ""
|
||||
ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? formatAmountNumber(ele.catalogueAllPrice) : ""
|
||||
ele.allPriceFormmat = ele.allPrice ? formatAmountNumber(ele.allPrice) : ""
|
||||
ele.discountFormat = ele.discount ? ele.discount*100 : ""
|
||||
ele.discountFormat = ele.discount ? (ele.discount*100).toFixed(2) : ""
|
||||
ele.guidanceDiscountFormat = ele.guidanceDiscount ? ele.guidanceDiscount*100 : ""
|
||||
addProduct3(ele)
|
||||
})
|
||||
|
|
|
@ -767,7 +767,7 @@ ${
|
|||
ele.priceFormmat = ele.price ? formatAmountNumber(ele.price) : ""
|
||||
ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? formatAmountNumber(ele.catalogueAllPrice) : ""
|
||||
ele.allPriceFormmat = ele.allPrice ? formatAmountNumber(ele.allPrice) : ""
|
||||
ele.discountFormat = ele.discount ? ele.discount*100 : ""
|
||||
ele.discountFormat = ele.discount ? (ele.discount*100).toFixed(2) : ""
|
||||
ele.guidanceDiscountFormat = ele.guidanceDiscount ? ele.guidanceDiscount*100 : ""
|
||||
addProduct(ele)
|
||||
}) : ''
|
||||
|
@ -776,7 +776,7 @@ ${
|
|||
ele.priceFormmat = ele.price ? formatAmountNumber(ele.price) : ""
|
||||
ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? formatAmountNumber(ele.catalogueAllPrice) : ""
|
||||
ele.allPriceFormmat = ele.allPrice ? formatAmountNumber(ele.allPrice) : ""
|
||||
ele.discountFormat = ele.discount ? ele.discount*100 : ""
|
||||
ele.discountFormat = ele.discount ? (ele.discount*100).toFixed(2) : ""
|
||||
ele.guidanceDiscountFormat = ele.guidanceDiscount ? ele.guidanceDiscount*100 : ""
|
||||
addProduct2(ele)
|
||||
}) : ''
|
||||
|
@ -785,7 +785,7 @@ ${
|
|||
ele.priceFormmat = ele.price ? formatAmountNumber(ele.price) : ""
|
||||
ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? formatAmountNumber(ele.catalogueAllPrice) : ""
|
||||
ele.allPriceFormmat = ele.allPrice ? formatAmountNumber(ele.allPrice) : ""
|
||||
ele.discountFormat = ele.discount ? ele.discount*100 : ""
|
||||
ele.discountFormat = ele.discount ? (ele.discount*100).toFixed(2) : ""
|
||||
ele.guidanceDiscountFormat = ele.guidanceDiscount ? ele.guidanceDiscount*100 : ""
|
||||
addProduct3(ele)
|
||||
}) : ''
|
||||
|
@ -801,7 +801,7 @@ ${
|
|||
ele.priceFormmat = ele.price ? formatAmountNumber(ele.price) : ""
|
||||
ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? formatAmountNumber(ele.catalogueAllPrice) : ""
|
||||
ele.allPriceFormmat = ele.allPrice ? formatAmountNumber(ele.allPrice) : ""
|
||||
ele.discountFormat = ele.discount ? ele.discount*100 : ""
|
||||
ele.discountFormat = ele.discount ? (ele.discount*100).toFixed(2) : ""
|
||||
ele.guidanceDiscountFormat = ele.guidanceDiscount ? ele.guidanceDiscount*100 : ""
|
||||
addProduct(ele)
|
||||
}) : ''
|
||||
|
@ -810,7 +810,7 @@ ${
|
|||
ele.priceFormmat = ele.price ? formatAmountNumber(ele.price) : ""
|
||||
ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? formatAmountNumber(ele.catalogueAllPrice) : ""
|
||||
ele.allPriceFormmat = ele.allPrice ? formatAmountNumber(ele.allPrice) : ""
|
||||
ele.discountFormat = ele.discount ? ele.discount*100 : ""
|
||||
ele.discountFormat = ele.discount ? (ele.discount*100).toFixed(2) : ""
|
||||
ele.guidanceDiscountFormat = ele.guidanceDiscount ? ele.guidanceDiscount*100 : ""
|
||||
addProduct2(ele)
|
||||
}) : ''
|
||||
|
@ -819,7 +819,7 @@ ${
|
|||
ele.priceFormmat = ele.price ? formatAmountNumber(ele.price) : ""
|
||||
ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? formatAmountNumber(ele.catalogueAllPrice) : ""
|
||||
ele.allPriceFormmat = ele.allPrice ? formatAmountNumber(ele.allPrice) : ""
|
||||
ele.discountFormat = ele.discount ? ele.discount*100 : ""
|
||||
ele.discountFormat = ele.discount ? (ele.discount*100).toFixed(2) : ""
|
||||
ele.guidanceDiscountFormat = ele.guidanceDiscount ? ele.guidanceDiscount*100 : ""
|
||||
addProduct3(ele)
|
||||
}) : ''
|
||||
|
|
|
@ -793,7 +793,7 @@ ${
|
|||
ele.priceFormmat = ele.price ? formatAmountNumber(ele.price) : ""
|
||||
ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? formatAmountNumber(ele.catalogueAllPrice) : ""
|
||||
ele.allPriceFormmat = ele.allPrice ? formatAmountNumber(ele.allPrice) : ""
|
||||
ele.discountFormat = ele.discount ? ele.discount*100 : ""
|
||||
ele.discountFormat = ele.discount ? (ele.discount*100).toFixed(2) : ""
|
||||
ele.guidanceDiscountFormat = ele.guidanceDiscount ? ele.guidanceDiscount*100 : ""
|
||||
addProduct(ele)
|
||||
}) : '';
|
||||
|
@ -802,7 +802,7 @@ ${
|
|||
ele.priceFormmat = ele.price ? formatAmountNumber(ele.price) : ""
|
||||
ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? formatAmountNumber(ele.catalogueAllPrice) : ""
|
||||
ele.allPriceFormmat = ele.allPrice ? formatAmountNumber(ele.allPrice) : ""
|
||||
ele.discountFormat = ele.discount ? ele.discount*100 : ""
|
||||
ele.discountFormat = ele.discount ? (ele.discount*100).toFixed(2) : ""
|
||||
ele.guidanceDiscountFormat = ele.guidanceDiscount ? ele.guidanceDiscount*100 : ""
|
||||
addProduct2(ele)
|
||||
}) : '';
|
||||
|
@ -811,7 +811,7 @@ ${
|
|||
ele.priceFormmat = ele.price ? formatAmountNumber(ele.price) : ""
|
||||
ele.catalogueAllPriceFormmat = ele.catalogueAllPrice ? formatAmountNumber(ele.catalogueAllPrice) : ""
|
||||
ele.allPriceFormmat = ele.allPrice ? formatAmountNumber(ele.allPrice) : ""
|
||||
ele.discountFormat = ele.discount ? ele.discount*100 : ""
|
||||
ele.discountFormat = ele.discount ? (ele.discount*100).toFixed(2) : ""
|
||||
ele.guidanceDiscountFormat = ele.guidanceDiscount ? ele.guidanceDiscount*100 : ""
|
||||
addProduct3(ele)
|
||||
}) : '';
|
||||
|
|
Loading…
Reference in New Issue