经测试针式打印机打印内容不全。选择打印模式A4,解决方法,给打印主题的宽度为60%,可以根据纸张大小进行调整百分比;
打印页脚文字设置,使用定位即可实现
代码如下:
<template>
<div>
<div style="width: 80%;position: fixed;bottom:35%;font-size: 12px;text-align: center;color: #f00;">
{
{
bottomTitle}},手写无效,仿冒必究。</div>
<div v-for="(item,index) in tableData" :key="index">
<table style="width: 55%;" class="detail-tab">
<tr style="color: #000;background-color: rgba(49, 114, 240, 0.6);">
<td>采购企业</td>
<td colspan="4">{
{
item.purchase_company}}</td>
<td>联系人</td>
<td>{
{
item.contact_username}}</td>
</tr>
<tr class="darkblue">
<td>配送地址</td>
<td colspan="4">{
{
item.purchase_address}}</td>
<td>联系电话</td>
<td>{
{
item.contact_phone}}</td>
</tr>
<!-- <tr class="defalutlblue">
<td>配送时间</td>
<td>{
{
item.delivery_date}}</td