From df3902e7eae5dd38a2d47aa63e5f27131f701db9 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期一, 20 四月 2026 13:49:14 +0800
Subject: [PATCH] 绩效管理模块调整
---
src/views/business/productOrder/components/printDialog.vue | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/views/business/productOrder/components/printDialog.vue b/src/views/business/productOrder/components/printDialog.vue
index 77a921f..832f394 100644
--- a/src/views/business/productOrder/components/printDialog.vue
+++ b/src/views/business/productOrder/components/printDialog.vue
@@ -1,6 +1,6 @@
<template>
<div>
- <el-dialog :visible.sync="isShow" title="鏍囩鎵撳嵃" top="5vh" width="600px" @close="$emit('closePrintDialog')">
+ <el-dialog :visible.sync="isShow" title="鏍囩鎵撳嵃" top="5vh" width="800px" @close="$emit('closePrintDialog')">
<div style="width:100%;height: 400px;overflow-y: auto;text-align: left">
<div class="dia_body">
<el-checkbox
@@ -75,7 +75,7 @@
<div>
<div class="titleH1" style="text-align: center;margin-bottom: 1px">妫�娴嬩腑蹇冩牱鍝佹爣璇嗗崱</div>
<div style="text-align: center;">
- <barcode :displayValue="false" :height="22" :value="item.barcode" :width="1.6"></barcode>
+ <barcode :displayValue="false" :height="30" :value="item.barcode" :width="1.5"></barcode>
</div>
<div style="margin-left: 12px;text-align: left">
<div class="item">
@@ -124,6 +124,7 @@
<script>
import PrintJS from "print-js";
import {labelOrderPrinting} from "@/api/business/productOrder";
+import {stringToBase64} from '@/utils/base64Util'
export default {
name: "printDialog",
@@ -165,7 +166,7 @@
res.data.forEach(item => {
item.sendTime = item.sendTime && item.sendTime.substring(0, 10)
item.sampleNumber = item.qtyArrived + item.buyUnitMeas
- this.$set(item, 'barcode', item.entrustCode)
+ this.$set(item, 'barcode', item.entrustCode+","+stringToBase64(item.partColor))
this.$set(item, 'isLeave', item.insState === '2')
})
this.barcodeData = res.data
@@ -221,7 +222,7 @@
targetStyles: ["*"], // 浣跨敤dom鐨勬墍鏈夋牱寮忥紝寰堥噸瑕�
printable: 'printOrder',//椤甸潰
type: "html",//鏂囨。绫诲瀷
- maxWidth: 360,
+ maxWidth: 440,
header: '',
style:
`@page {
@@ -230,14 +231,14 @@
margin-top: 0.4cm;
margin-bottom: 0.4cm;
padding-bottom: 0px;
- size: 400px 75px collapse;
+ size: 440px 75px collapse;
}
html{
zoom:100%;
}
@media print{
- width: 400px;
+ width: 440px;
height: 75px;
margin:0;
}`,
--
Gitblit v1.9.3