Browse Source

检验指引单显示问题 2024/8/6

hella_vue3
王志国 1 month ago
parent
commit
550638a5d0
  1. 13
      src/pages/pointPutawayJob/index.vue

13
src/pages/pointPutawayJob/index.vue

@ -1,11 +1,11 @@
<template>
<!-- 采购上架对应的采购收货打印页面-->
<view class="content" style="padding:0rpx 20rpx 100rpx;min-height: calc(100vh - 120rpx);">
<view class="tabs-box" v-if="isHaveOn">
<view class="tabs-box" v-if="isHaveOn && data1 && data1.inspectDTOList && data1.inspectDTOList.length>0">
<view @click="tabIndex = 1" :class="tabIndex == 1?'active1' :''" style="padding: 10rpx 0px;">检验指引单</view>
<view @click="tabIndex = 2" :class="tabIndex == 2?'active1' :''" style="padding: 10rpx 0px;">上架指引单</view>
</view>
<view class="" :style="{'paddingTop':isHaveOn?'100rpx': '30rpx'}">
<view class="" :style="{'paddingTop':isHaveOn && data1 && data1.inspectDTOList && data1.inspectDTOList.length>0?'100rpx': '30rpx'}">
<view class="box" style="page-break-before:always;" v-if="tabIndex == 1">
<view class="">
<table border='1'>
@ -59,7 +59,7 @@
</view>
<view class="" style="position: fixed;width: 100%;bottom: 0rpx;left: 0px;">
<button @click="printImage" v-if="tabIndex == 1 && isHaveInspect && data1.inspectDTOList && data1.inspectDTOList.length>0"
<button @click="printImage" v-if="tabIndex == 1 && data1.inspectDTOList && data1.inspectDTOList.length>0"
style='background:rgb(60, 156, 255) !important ;color: white;margin-top: 80rpx;'> 打印检验指引单
</button>
<button @click="printImage" v-if="tabIndex == 2&&isHaveOn && data.sublist && data.sublist.length>0"
@ -111,7 +111,7 @@ export default {
pageSize1: 20,
number:'',
isHaveOn: false,//
isHaveInspect:false,//
// isHaveInspect:false,//
}
},
@ -291,6 +291,11 @@ export default {
number: this.number
}).then(async res1 => {
this.data1 = res1.data
this.data1.inspectDTOList = this.data1.inspectDTOList.filter(item=>item.sampleQty>0)
// this.data1.inspectDTOList=[]
if(this.data1&&this.data1.inspectDTOList&&this.data1.inspectDTOList.length == 0){
this.tabIndex =2
}
this.getTableInspectDTOList()
this.isHaveInspect = this.data1.inspectDTOList.some(item=>item.sampleQty>0)
})

Loading…
Cancel
Save