Browse Source

打印 2024/8/3

hella_vue3
王志国 1 month ago
parent
commit
1c5e3ad92c
  1. 10
      src/pages/pointPutawayJob/index.vue
  2. 6
      src/pages/purchaseReceipt/job/receiptDetail.vue

10
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">
<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>
<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="">
<table border='1'>
@ -60,7 +60,7 @@
</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">上架指引单</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>
@ -105,7 +105,8 @@ export default {
currentPage1: 1,
pageSize1: 20,
number:''
number:'',
isHave:false
}
},
@ -266,6 +267,7 @@ export default {
onLoad(option) {
if (option.data) {
this.data = JSON.parse(decodeURIComponent(option.data));
this.isHave = true
}
if (option.number) {
this.number = option.number;

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

@ -406,8 +406,10 @@ const submitJob = () => {
const isCheckPrint = getSwitchInfoByCode(switchCode.value)
if (!isCheckPrint) {
uni.hideLoading()
showCommitSuccessMessage(`提交成功<br>生成采购收货记录<br>${res.data.number}`)
// showCommitSuccessMessage(`<br><br>${res.data.number}`)
uni.redirectTo({
url: '/pages/pointPutawayJob/index?number='+that.jobContent.number
})
} else {
uni.showLoading({
title: '提交成功,将跳转到打印页面',

Loading…
Cancel
Save