zhangwencui
2026-06-23 ed7a42835a7aec7582d8a64ba7e3a3314fdc514e
fix(salesQuotation): 调整价格显示与输入的小数精度为4位

统一修改销售报价模块中所有价格相关的小数保留位数为4位,包括报价列表、单价输入框以及报价详情页的价格展示。
已修改2个文件
4976 ■■■■ 文件已修改
src/views/salesManagement/salesLedger/index.vue 4968 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/salesQuotation/index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/salesLedger/index.vue
文件太大
src/views/salesManagement/salesQuotation/index.vue
@@ -65,7 +65,7 @@
        </el-table-column>
        <el-table-column prop="totalAmount" label="鎶ヤ环閲戦" width="120">
          <template #default="scope">
            楼{{ scope.row.totalAmount.toFixed(3) }}
            楼{{ scope.row.totalAmount.toFixed(4) }}
          </template>
        </el-table-column>
        <el-table-column label="鎿嶄綔" width="200" fixed="right" align="center">
@@ -215,7 +215,7 @@
            <el-table-column prop="unitPrice" label="鍗曚环">
              <template #default="scope">
                <el-form-item :prop="`products.${scope.$index}.unitPrice`" class="product-table-form-item">
                  <el-input-number v-model="scope.row.unitPrice" :min="0" :precision="3" style="width: 100%" />
                  <el-input-number v-model="scope.row.unitPrice" :min="0" :precision="4" style="width: 100%" />
                </el-form-item>
              </template>
            </el-table-column>
@@ -313,7 +313,7 @@
<!--          <el-tag :type="getStatusType(currentQuotation.status)">{{ currentQuotation.status }}</el-tag>-->
<!--        </el-descriptions-item>-->
        <el-descriptions-item label="鎶ヤ环鎬婚" :span="2">
          <span style="font-size: 18px; color: #e6a23c; font-weight: bold;">楼{{ currentQuotation.totalAmount?.toFixed(3) }}</span>
          <span style="font-size: 18px; color: #e6a23c; font-weight: bold;">楼{{ currentQuotation.totalAmount?.toFixed(4) }}</span>
        </el-descriptions-item>
      </el-descriptions>
      
@@ -325,7 +325,7 @@
          <el-table-column prop="unit" label="鍗曚綅" />
          <el-table-column prop="unitPrice" label="鍗曚环">
            <template #default="scope">
              楼{{ scope.row.unitPrice.toFixed(3) }}
              楼{{ scope.row.unitPrice.toFixed(4) }}
            </template>
          </el-table-column>
        </el-table>