张诺
7 小时以前 278cfc7b1d36ce98ad62749ec816d60aa09173ea
src/views/productionManagement/workOrder/index.vue
@@ -1022,7 +1022,7 @@
          }
          openScheduleDialog(row);
        },
        disabled: row => !row.canSchedule
        disabled: row => !row.canSchedule || row.completeQuantity >= row.planQuantity
      }
      // {
      //   name:"审核",
@@ -1182,6 +1182,12 @@
  }
  const num = Number(value);
  if (isNaN(num)) {
    return;
  }
  // 如果超过待生产数量
  if (num > reportForm.planQuantity) {
    proxy.$modal.msgWarning("本次生产数量不能大于待生产数量");
    reportForm.quantity = reportForm.planQuantity;
    return;
  }
  // 如果小于1,清除
@@ -1378,13 +1384,15 @@
};
const showReportDialog = row => {
  currentReportRowData.value = row;
  reportForm.planQuantity = row.planQuantity - row.completeQuantity;
  reportForm.quantity = row.quantity !== undefined && row.quantity !== null ? row.quantity : null;
  reportForm.quantity = row.planQuantity !== undefined && row.planQuantity !== null ? row.planQuantity : null;
  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;