|
|
@@ -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) + '%'
|
|
|
}
|
|
|
|
|
|
// 可用资金
|