guoyujie
2025-08-26 9fd9d5e46369c29ace4aeebc7e1ed31fcf8e7d56
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