ZN
2026-03-20 f2ef59af3a877d1931352b6852302badda2492a0
fix(生产管理): 修正报工表单中计划数量的计算逻辑

将报工表单的 planQuantity 从直接使用工单的计划数量,改为使用剩余未完成数量(planQuantity - completeQuantity)。这确保了报工数量不会超过剩余待完成的数量。
已修改1个文件
2 ■■■ 文件已修改
src/views/productionManagement/workOrder/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/workOrder/index.vue
@@ -711,7 +711,7 @@
  const showReportDialog = row => {
    currentReportRowData.value = row;
    reportForm.planQuantity = row.planQuantity;
    reportForm.planQuantity = row.planQuantity - row.completeQuantity;
    reportForm.quantity =
      row.quantity !== undefined && row.quantity !== null ? row.quantity : null;
    reportForm.productProcessRouteItemId = row.productProcessRouteItemId;