张诺
8 小时以前 80fea9ca648dcebc3b44fa068c927fa67dafb7fb
fix(workOrder): 修正工单报告数量计算逻辑

- 修复 reportForm.quantity 的计算方式,改为计划数量减去完成数量
- 移除冗余的 planQuantity 赋值操作
- 确保报告数量准确反映待完成的工作量
已修改1个文件
3 ■■■■ 文件已修改
src/views/productionManagement/workOrder/index.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/workOrder/index.vue
@@ -1435,12 +1435,11 @@
  currentReportRowData.value = row;
  reportForm.planQuantity = row.planQuantity - row.completeQuantity;
  reportForm.quantity = row.planQuantity !== undefined && row.planQuantity !== null ? row.planQuantity : null;
  reportForm.quantity = row.planQuantity - row.completeQuantity;
  reportForm.productProcessRouteItemId = row.productProcessRouteItemId;
  reportForm.workOrderId = row.id;
  reportForm.reportWork = row.reportWork;
  reportForm.productMainId = row.productMainId;
  reportForm.planQuantity = row.planQuantity;
  reportForm.startTime = "";
  reportForm.endTime = "";
  reportForm.replenishQty = 0;