|
|
@@ -183,6 +183,7 @@ import { RefGoodsList } from '../../interface';
|
|
|
import { useUserType } from '../setup';
|
|
|
import { FormParam } from './interface';
|
|
|
import { handleForm, isFloat, useBuySellDirection, useChart, useNum, usePrice } from './setup';
|
|
|
+import { formatDecimal } from '@/utils/number'
|
|
|
|
|
|
export default defineComponent({
|
|
|
emits: ['cancel', 'update'],
|
|
|
@@ -269,7 +270,7 @@ export default defineComponent({
|
|
|
result = money / marginValue;
|
|
|
}
|
|
|
}
|
|
|
- return +result.toFixed(0);
|
|
|
+ return formatDecimal(result, 0, false);
|
|
|
};
|
|
|
// 估算价
|
|
|
function getPrice() {
|