张诺
12 小时以前 e705ef7b15c04307d6f37b388564dedfaeef4a55
src/views/productionManagement/productionReporting/components/formDia.vue
@@ -94,6 +94,7 @@
<script setup>
import {ref} from "vue";
// 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()
@@ -143,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(3);
   } else {
      form.value.totalPrice = '0.00';
   }