Jelajahi Sumber

瑞恒注气量判断

Co-authored-by: Copilot <copilot@github.com>
Zimo 5 hari lalu
induk
melakukan
2c8d806ddf
1 mengubah file dengan 7 tambahan dan 1 penghapusan
  1. 7 1
      pages/recordFilling/detail.vue

+ 7 - 1
pages/recordFilling/detail.vue

@@ -442,6 +442,7 @@ const removeReportDetailRow = (index) => {
 
 const taskId = ref(undefined);
 const taskOptions = ref([]);
+const noGasTasks = ref([]);
 
 const inputCurrentDepth = useDebounceFn(function inputCurrentDepth(list) {
   const details = reportDetails.value;
@@ -630,6 +631,7 @@ onLoad(async (option) => {
 
     const daily = detail ?? {
       wellNamePair: {},
+      noGasTasks: [],
     };
 
     taskOptions.value = Object.keys(daily.wellNamePair ?? {}).map((key) => ({
@@ -637,6 +639,8 @@ onLoad(async (option) => {
       value: Number(key),
     }));
 
+    noGasTasks.value = (daily.noGasTasks ?? []).map(Number);
+
     taskId.value = taskOptions.value[0]?.value || undefined;
 
     const data = await getDeptName(detail.deptId);
@@ -1453,7 +1457,9 @@ const onSubmit = async () => {
       // 增加判断条件:如果当日运转时间H等于24,则非生产原因和非生产时间H为非必填,否则为必填
       if (
         nonSumItem.description === "dailyGasInjection" &&
-        deptName.value === "rh"
+        deptName.value === "rh" &&
+        taskId.value &&
+        !noGasTasks.value.includes(taskId.value)
       ) {
         if (dailyInjectGasTime.fillContent > 0) {
           if (nonSumItem.fillContent <= 0) {