diff --git a/ruoyi-admin/src/main/resources/templates/project/info/edit.html b/ruoyi-admin/src/main/resources/templates/project/info/edit.html index 14b725a4..383e13f7 100644 --- a/ruoyi-admin/src/main/resources/templates/project/info/edit.html +++ b/ruoyi-admin/src/main/resources/templates/project/info/edit.html @@ -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) }) diff --git a/ruoyi-admin/src/main/resources/templates/project/order/add.html b/ruoyi-admin/src/main/resources/templates/project/order/add.html index e3ad6e13..d780d718 100644 --- a/ruoyi-admin/src/main/resources/templates/project/order/add.html +++ b/ruoyi-admin/src/main/resources/templates/project/order/add.html @@ -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) }) : '' diff --git a/ruoyi-admin/src/main/resources/templates/project/order/edit.html b/ruoyi-admin/src/main/resources/templates/project/order/edit.html index 6936cdee..089725d4 100644 --- a/ruoyi-admin/src/main/resources/templates/project/order/edit.html +++ b/ruoyi-admin/src/main/resources/templates/project/order/edit.html @@ -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) }) : '';