zck 8 месяцев назад
Родитель
Сommit
53f8ae2a71
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      src/view/job/processSheet/processSheet.vue

+ 5 - 5
src/view/job/processSheet/processSheet.vue

@@ -84,7 +84,7 @@
 		                <td><input name="start_liucheng" type="text" v-model="workData.start_liucheng" value="1" class="required" style="width: 380px;height: 30px;"></td>
 		                </tr>
 		                <tr>
-		                <td><span>本次打印流程数量</span></td>
+		                <td><span>截止流程号</span></td>
 		                <td><input name="liucheng_num" type="text" v-model="workData.liucheng_num" value="1" class="required" style="width: 380px;height: 30px;"></td>
 		                </tr>
 		                <tr>
@@ -5384,10 +5384,10 @@ const selectpYj = (event) => {
   const hiprintTemplate = new hiprint.PrintTemplate({ template: jsondata1 });
 
 // 获取起始和结束值
-const start = workData.value.start_liucheng;
-const total = workData.value.liucheng_total;
+const start = workData.value.start_liucheng;//起始流程单号
+const end = workData.value.liucheng_num;//截止程单号
 
-for (let i = start; i <= total; i++) {
+for (let i = start; i <= end; i++) {
   (function(currentIndex, relativeIndex) {  // 新增 relativeIndex 参数
     console.log("currentIndex:", currentIndex, "relativeIndex:", relativeIndex);
     const delay = relativeIndex * 3600;  // 使用 relativeIndex 计算延迟
@@ -5397,7 +5397,7 @@ for (let i = start; i <= total; i++) {
         "xsddh": getDocumentInfos.data[0].销售订单号,
         "mbh": getDocumentInfos.data[0].mabao,
         "lcdh": `${workData.value.liucheng_total}-${currentIndex}`,
-        "qrcode": `${getDocumentInfos.data[0].Gd_gdbh}-${workData.value.liucheng_total}-${currentIndex}`,
+        "qrcode": `${getDocumentInfos.data[0].Gd_gdbh}-${workData.value.liucheng_total}-${currentIndex}`,//总流程单号-当前流程单号
         "gdsm": getDocumentInfos.data[0].version,
         "cpmc": getDocumentInfos.data[0].Gd_cpmc,
         "ztzs": workData.value.num,