|
|
@ -2,8 +2,8 @@ |
|
|
|
<!-- 采购上架对应的采购收货打印页面--> |
|
|
|
<view class="content" style="padding:0rpx 20rpx 100rpx;min-height: calc(100vh - 120rpx);"> |
|
|
|
<view class="tabs-box" v-if="isHave"> |
|
|
|
<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 @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':isHave?'100rpx': '30rpx'}"> |
|
|
|
<view class="box" style="page-break-before:always;" v-if="tabIndex == 1"> |
|
|
@ -59,8 +59,12 @@ |
|
|
|
|
|
|
|
</view> |
|
|
|
<view class="" style="position: fixed;width: 100%;bottom: 0rpx;left: 0px;"> |
|
|
|
<button @click="printImage" |
|
|
|
style='background:rgb(60, 156, 255) !important ;color: white;margin-top: 80rpx;'> 打印<text v-if="tabIndex == 1">检验指引单</text><text v-if="tabIndex == 2&&isHave">上架指引单</text></button> |
|
|
|
<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&&isHave && data.sublist && data.sublist.length>0" |
|
|
|
style='background:rgb(60, 156, 255) !important ;color: white;margin-top: 80rpx;'> 打印上架指引单 |
|
|
|
</button> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
@ -101,12 +105,12 @@ |
|
|
|
currentPage: 1, |
|
|
|
pageSize: 3, |
|
|
|
showTableSubList: [], |
|
|
|
showTableInspectDTOList:[], |
|
|
|
|
|
|
|
showTableInspectDTOList: [], |
|
|
|
|
|
|
|
currentPage1: 1, |
|
|
|
pageSize1: 20, |
|
|
|
number:'', |
|
|
|
isHave:false |
|
|
|
number: '', |
|
|
|
isHave: false |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
@ -227,7 +231,7 @@ |
|
|
|
(this.currentPage - 1) * this.pageSize, |
|
|
|
this.currentPage * this.pageSize |
|
|
|
) |
|
|
|
if(array.length>0){ |
|
|
|
if (array.length > 0) { |
|
|
|
this.showTableSubList = [...this.showTableSubList, ...array] |
|
|
|
this.currentPage += 1 |
|
|
|
} |
|
|
@ -242,14 +246,14 @@ |
|
|
|
(this.currentPage1 - 1) * this.pageSize1, |
|
|
|
this.currentPage1 * this.pageSize1 |
|
|
|
) |
|
|
|
if(array.length>0){ |
|
|
|
if (array.length > 0) { |
|
|
|
this.showTableInspectDTOList = [...this.showTableInspectDTOList, ...array] |
|
|
|
this.currentPage1 += 1 |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.showTableInspectDTOList = this.data1.inspectDTOList |
|
|
|
} |
|
|
|
console.log(233,this.showTableInspectDTOList) |
|
|
|
console.log(233, this.showTableInspectDTOList) |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
@ -291,17 +295,17 @@ |
|
|
|
this.getPurchaseReceiptJobHtml() |
|
|
|
}, |
|
|
|
onReachBottom() { |
|
|
|
if(this.tabIndex == 1){ |
|
|
|
if(this.showTableInspectDTOList.length!=this.data1.inspectDTOList.length){ |
|
|
|
if (this.tabIndex == 1) { |
|
|
|
if (this.showTableInspectDTOList.length != this.data1.inspectDTOList.length) { |
|
|
|
this.getTableInspectDTOList() |
|
|
|
} |
|
|
|
}else{ |
|
|
|
if(this.showTableSubList.length!=this.data.sublist.length){ |
|
|
|
} else { |
|
|
|
if (this.showTableSubList.length != this.data.sublist.length) { |
|
|
|
this.getTableSubList() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|