diff --git a/gear-ui3/src/components/RawSelector/index.vue b/gear-ui3/src/components/RawSelector/index.vue index 379f063..614ee6a 100644 --- a/gear-ui3/src/components/RawSelector/index.vue +++ b/gear-ui3/src/components/RawSelector/index.vue @@ -18,8 +18,12 @@ - - + + + + @@ -39,6 +43,7 @@ import { ref, computed, watch, onMounted } from 'vue'; import { listMaterial, getMaterial } from '@/api/mat/material'; import { ElMessage } from 'element-plus'; +import { formatDecimal } from '@/utils/gear' // 双向绑定物料ID const materialId = defineModel({ diff --git a/gear-ui3/src/components/Renderer/Raw.vue b/gear-ui3/src/components/Renderer/Raw.vue index fb7484d..5492374 100644 --- a/gear-ui3/src/components/Renderer/Raw.vue +++ b/gear-ui3/src/components/Renderer/Raw.vue @@ -8,7 +8,7 @@ {{ formattedData.spec }} {{ formattedData.model }} {{ formattedData.factory }} - {{ formattedData.currentStock }} + {{ formatDecimal(formattedData.currentStock) }} {{ formattedData.unit }} {{ formattedData.remark }} @@ -17,6 +17,7 @@