| | |
| | | <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"; |
| | |
| | | |
| | | let props = defineProps({ |
| | | deliveryId: null, |
| | | type: null |
| | | type: null, |
| | | optionVal:8 |
| | | }) |
| | | const form = ref({}) |
| | | let produceList2 = ref([]) |
| | |
| | | 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 |
| | |
| | | }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 |