|
@ -59,8 +59,12 @@ |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<view class="" style="position: fixed;width: 100%;bottom: 0rpx;left: 0px;"> |
|
|
<view class="" style="position: fixed;width: 100%;bottom: 0rpx;left: 0px;"> |
|
|
<button @click="printImage" |
|
|
<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;'> 打印<text v-if="tabIndex == 1">检验指引单</text><text v-if="tabIndex == 2&&isHave">上架指引单</text></button> |
|
|
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> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
@ -101,12 +105,12 @@ |
|
|
currentPage: 1, |
|
|
currentPage: 1, |
|
|
pageSize: 3, |
|
|
pageSize: 3, |
|
|
showTableSubList: [], |
|
|
showTableSubList: [], |
|
|
showTableInspectDTOList:[], |
|
|
showTableInspectDTOList: [], |
|
|
|
|
|
|
|
|
currentPage1: 1, |
|
|
currentPage1: 1, |
|
|
pageSize1: 20, |
|
|
pageSize1: 20, |
|
|
number:'', |
|
|
number: '', |
|
|
isHave:false |
|
|
isHave: false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -227,7 +231,7 @@ |
|
|
(this.currentPage - 1) * this.pageSize, |
|
|
(this.currentPage - 1) * this.pageSize, |
|
|
this.currentPage * this.pageSize |
|
|
this.currentPage * this.pageSize |
|
|
) |
|
|
) |
|
|
if(array.length>0){ |
|
|
if (array.length > 0) { |
|
|
this.showTableSubList = [...this.showTableSubList, ...array] |
|
|
this.showTableSubList = [...this.showTableSubList, ...array] |
|
|
this.currentPage += 1 |
|
|
this.currentPage += 1 |
|
|
} |
|
|
} |
|
@ -242,14 +246,14 @@ |
|
|
(this.currentPage1 - 1) * this.pageSize1, |
|
|
(this.currentPage1 - 1) * this.pageSize1, |
|
|
this.currentPage1 * this.pageSize1 |
|
|
this.currentPage1 * this.pageSize1 |
|
|
) |
|
|
) |
|
|
if(array.length>0){ |
|
|
if (array.length > 0) { |
|
|
this.showTableInspectDTOList = [...this.showTableInspectDTOList, ...array] |
|
|
this.showTableInspectDTOList = [...this.showTableInspectDTOList, ...array] |
|
|
this.currentPage1 += 1 |
|
|
this.currentPage1 += 1 |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
this.showTableInspectDTOList = this.data1.inspectDTOList |
|
|
this.showTableInspectDTOList = this.data1.inspectDTOList |
|
|
} |
|
|
} |
|
|
console.log(233,this.showTableInspectDTOList) |
|
|
console.log(233, this.showTableInspectDTOList) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
@ -291,12 +295,12 @@ |
|
|
this.getPurchaseReceiptJobHtml() |
|
|
this.getPurchaseReceiptJobHtml() |
|
|
}, |
|
|
}, |
|
|
onReachBottom() { |
|
|
onReachBottom() { |
|
|
if(this.tabIndex == 1){ |
|
|
if (this.tabIndex == 1) { |
|
|
if(this.showTableInspectDTOList.length!=this.data1.inspectDTOList.length){ |
|
|
if (this.showTableInspectDTOList.length != this.data1.inspectDTOList.length) { |
|
|
this.getTableInspectDTOList() |
|
|
this.getTableInspectDTOList() |
|
|
} |
|
|
} |
|
|
}else{ |
|
|
} else { |
|
|
if(this.showTableSubList.length!=this.data.sublist.length){ |
|
|
if (this.showTableSubList.length != this.data.sublist.length) { |
|
|
this.getTableSubList() |
|
|
this.getTableSubList() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|