金额格式设置

This commit is contained in:
2025-09-09 17:03:01 +08:00
parent 460472b29a
commit d92a540786
32 changed files with 633 additions and 318 deletions

View File

@ -81,8 +81,8 @@
changePrice(scope.row);
}
"
:precision="2"
:step="0.1"
:precision="4"
:min="0"
:controls="false"
v-if="scope.row.quantity && scope.row.quantity != 0"
:disabled="versionsData.status != 'draft'"
@ -91,7 +91,7 @@
</el-table-column>
<el-table-column prop="price" label="总价" align="center">
<template #default="scope">
{{ scope.row.price != 0 ? Number(scope.row.price).toFixed(2) : null }}
{{ proxy.formatPrice(scope.row.price) }}
</template>
</el-table-column>
<el-table-column prop="taxRate" label="税率" width="100" align="center">
@ -154,7 +154,7 @@ interface VersionItem {
}
// 实例与状态初始化
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { proxy } = getCurrentInstance() as any;
const userStore = useUserStoreHook();
const currentProject = computed(() => userStore.selectedProject);