Browse Source

打印

hella_online_20240829
zhang_li 2 months ago
parent
commit
1b8105506f
  1. 10
      src/pages/pointPutawayJob/index.vue
  2. 5
      src/pages/purchaseReceipt/job/receiptDetail.vue

10
src/pages/pointPutawayJob/index.vue

@ -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;

5
src/pages/purchaseReceipt/job/receiptDetail.vue

@ -525,7 +525,10 @@
if (!isCheckPrint) { if (!isCheckPrint) {
uni.hideLoading() uni.hideLoading()
this.showCommitSuccessMessage("提交成功<br>生成采购收货记录<br>" + res.data.number) // this.showCommitSuccessMessage("<br><br>" + res.data.number)
uni.redirectTo({
url: '/pages/pointPutawayJob/index?number='+that.jobContent.number)
})
} else { } else {
// if (res.data == '') { // if (res.data == '') {
// this.showCommitSuccessMessage(res.data) // this.showCommitSuccessMessage(res.data)

Loading…
Cancel
Save