gaoluyang
2026-02-02 ef0ac141ec99346dcf69f90bec11edeb44d28dfa
src/views/productionManagement/productionReporting/components/formDia.vue
@@ -46,14 +46,14 @@
              />
            </template>
          </el-table-column>
          <el-table-column label="单价(元)" prop="unitPrice" width="120">
          <el-table-column label="单价(元)" prop="unitPrice" width="200">
            <template #default="scope">
              <el-input-number
                v-model="scope.row.unitPrice"
                placeholder="请输入"
                :min="0"
                :step="0.01"
                :precision="2"
                :step="0.001"
                :precision="3"
                clearable
                style="width: 100%"
                @change="() => calculateTotalPrice(scope.row)"
@@ -154,7 +154,7 @@
         pendingFinishNum: pendingFinish, // 保存原始的待报工数量
         finishedNum: autoFill,
         unitPrice: unitPrice,
         totalPrice: (autoFill * unitPrice).toFixed(2),
         totalPrice: (autoFill * unitPrice).toFixed(3),
         schedulingUserId: row?.schedulingUserId ?? '',
         schedulingDate: row?.schedulingDate ?? '',
      };
@@ -180,7 +180,7 @@
   const unitPrice = Number(row.unitPrice ?? 0);
   
   if (quantity > 0 && unitPrice > 0) {
      row.totalPrice = (quantity * unitPrice).toFixed(2);
      row.totalPrice = (quantity * unitPrice).toFixed(3);
   } else {
      row.totalPrice = '0.00';
   }