li.shaoyi 3 rokov pred
rodič
commit
c004fbed8a

+ 2 - 1
src/views/order/funding_information/components/funding_information_funding_summary/setup.ts

@@ -17,6 +17,7 @@ import { QueryQuoteGoodsListReq, QueryQuoteGoodsListRsp } from '@/services/go/Tj
 import { findGoodsCode, useDetail } from '@/views/order/swap_the_order/components/swap_commodity_contract_summary/setup';
 import { handleSubcriteQuote } from '@/common/setup/table/tableQuote';
 import { ref, Ref } from 'vue';
+import { formatDecimal } from '@/utils/number';
 
 export const tableColumns = () => {
     let result = [
@@ -284,7 +285,7 @@ export function useHazardRates() {
             result = (usedmargin - credit) / (riskValue - credit)
         }
         result = result ? result * 100 : 0
-        return result.toFixed(2) + '%'
+        return formatDecimal(result, 2, false) + '%'
     }
 
     // 可用资金