From 9fd9d5e46369c29ace4aeebc7e1ed31fcf8e7d56 Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期二, 26 八月 2025 09:37:00 +0800
Subject: [PATCH] 提交 发货单打印条数

---
 north-glass-erp/northglass-erp/src/components/sd/delivery/PrintSheetLuoyangDetails.vue |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/components/sd/delivery/PrintSheetLuoyangDetails.vue b/north-glass-erp/northglass-erp/src/components/sd/delivery/PrintSheetLuoyangDetails.vue
index 829ae04..8812c5a 100644
--- a/north-glass-erp/northglass-erp/src/components/sd/delivery/PrintSheetLuoyangDetails.vue
+++ b/north-glass-erp/northglass-erp/src/components/sd/delivery/PrintSheetLuoyangDetails.vue
@@ -1,6 +1,6 @@
 <script setup>
 import request from "@/utils/request"
-import {computed, onMounted, onUpdated, ref} from "vue"
+import {computed, onMounted, onUpdated, ref, watch} from "vue"
 import PrintFoot from "@/components/sd/order/PrintFoot.vue"
 import companyInfo from "@/stores/sd/companyInfo"
 import deepClone from "@/utils/deepClone";
@@ -21,7 +21,8 @@
 
 let props = defineProps({
   deliveryId: null,
-  type: null
+  type: null,
+  optionVal:8
 })
 const form = ref({})
 let produceList2 = ref([])
@@ -30,6 +31,11 @@
 const deliveryId = ref()
 
 const pageData = ref()
+watch(()=>props.optionVal,()=>{
+  //缁欐暟鎹繘琛屽垎椤�
+  pageData.value = groupArrayByFive(produceList2.value[0].data)
+  delivery.value = produceList2.value[0].delivery
+})
 const getData = () => {
   if (props.deliveryId === null || props.deliveryId === undefined || props.deliveryId === '') {
     return
@@ -165,8 +171,10 @@
     }else{
       next=true
     }
-
-    if((index==3 && next) ||number==8){
+    if(props.optionVal === null){
+      props.optionVal = 8
+    }
+    if((index==3 && next) ||number==props.optionVal){
       results.push(numberResult);
       index=0
       number=0

--
Gitblit v1.8.0