gaoluyang
2026-06-12 ac00bb7b8eae1bf6aabb7f1ae67c2e5aa5b8ae90
src/views/productionManagement/productionReporting/components/formDia.vue
@@ -27,7 +27,7 @@
                        placeholder="请输入"
                        :min="0"
                        :step="0.1"
                        :precision="2"
                        :precision="4"
                        clearable
                        style="width: 100%"
                        @change="changeNum"
@@ -94,7 +94,7 @@
<script setup>
import {ref} from "vue";
import {getStaffJoinInfo, staffJoinAdd, staffJoinUpdate} from "@/api/personnelManagement/onboarding.js";
// import {getStaffJoinInfo, staffJoinAdd, staffJoinUpdate} from "@/api/personnelManagement/onboarding.js";
import {userListNoPageByTenantId} from "@/api/system/user.js";
import {productionReport, productionReportUpdate} from "@/api/productionManagement/productionReporting.js";
const { proxy } = getCurrentInstance()
@@ -144,7 +144,7 @@
   const unitPrice = Number(form.value.unitPrice ?? 0);
   
   if (quantity > 0 && unitPrice > 0) {
      form.value.totalPrice = (quantity * unitPrice).toFixed(2);
      form.value.totalPrice = (quantity * unitPrice).toFixed(4);
   } else {
      form.value.totalPrice = '0.00';
   }