Ver Fonte

修改终止根

zhangafei há 1 semana atrás
pai
commit
d1b39f9c48
1 ficheiros alterados com 6 adições e 6 exclusões
  1. 6 6
      src/views/billet/operator/components/rollLinePrint.vue

+ 6 - 6
src/views/billet/operator/components/rollLinePrint.vue

@@ -87,8 +87,8 @@
     count: 0,
     weight: 0,
     size: {},
-    startNum: 0,
-    endNum: 0,
+    startNum: 1,
+    endNum: 1,
     seriesIndex: 1,
   });
 
@@ -112,8 +112,8 @@
           count: obj.directRollingTotalCount,
           weight: obj.directRollingTotalWeight,
           size: obj.lengthGroupCount,
-          startNum: 0,
-          endNum: 0,
+          startNum: 1,
+          endNum: 1,
         };
 
         sizeOptions.value = (Object.keys(obj.lengthGroupCount || {}) as Array<string>).map((ele) => {
@@ -132,7 +132,7 @@
 
   // 计算起始根
   const getStartEnd = () => {
-    let startNum = 0;
+    let startNum = 1;
     let seriesIndex = 1;
     try {
       curList.value.forEach((ele, index) => {
@@ -145,7 +145,7 @@
         }
       });
       rollOneInfo.value.startNum = startNum;
-      rollOneInfo.value.endNum = startNum + Number(rollOneInfo.value.size[sizeValue.value]);
+      rollOneInfo.value.endNum = startNum + Number(rollOneInfo.value.size[sizeValue.value]) - 1;
       rollOneInfo.value.seriesIndex = seriesIndex;
     } catch (error) {}
   };