|
@ -1,11 +1,11 @@ |
|
|
<template> |
|
|
<template> |
|
|
<!-- 采购上架对应的采购收货打印页面--> |
|
|
<!-- 采购上架对应的采购收货打印页面--> |
|
|
<view class="content" style="padding:0rpx 20rpx 100rpx;min-height: calc(100vh - 120rpx);"> |
|
|
<view class="content" style="padding:0rpx 20rpx 100rpx;min-height: calc(100vh - 120rpx);"> |
|
|
<view class="tabs-box"> |
|
|
<view class="tabs-box" v-if="isHave"> |
|
|
<view @click="tabIndex = 1" :class="tabIndex == 1?'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 @click="tabIndex = 2" :class="tabIndex == 2?'active1' :''" style="padding: 10rpx 0px;">上架指引单</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="" style="padding-top: 100rpx;"> |
|
|
<view class="" :style="{'paddingTop':isHave?'100rpx': '30rpx'}"> |
|
|
<view class="box" style="page-break-before:always;" v-if="tabIndex == 1"> |
|
|
<view class="box" style="page-break-before:always;" v-if="tabIndex == 1"> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<table border='1'> |
|
|
<table border='1'> |
|
@ -60,7 +60,7 @@ |
|
|
</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" |
|
|
style='background:rgb(60, 156, 255) !important ;color: white;margin-top: 80rpx;'> 打印<text v-if="tabIndex == 1">检验指引单</text><text v-if="tabIndex == 2">上架指引单</text></button> |
|
|
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> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
@ -105,7 +105,8 @@ |
|
|
|
|
|
|
|
|
currentPage1: 1, |
|
|
currentPage1: 1, |
|
|
pageSize1: 20, |
|
|
pageSize1: 20, |
|
|
number:'' |
|
|
number:'', |
|
|
|
|
|
isHave:false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -266,6 +267,7 @@ |
|
|
onLoad(option) { |
|
|
onLoad(option) { |
|
|
if (option.data) { |
|
|
if (option.data) { |
|
|
this.data = JSON.parse(decodeURIComponent(option.data)); |
|
|
this.data = JSON.parse(decodeURIComponent(option.data)); |
|
|
|
|
|
this.isHave = true |
|
|
} |
|
|
} |
|
|
if (option.number) { |
|
|
if (option.number) { |
|
|
this.number = option.number; |
|
|
this.number = option.number; |
|
|