From d07f198f5b19ae434e5da59b1fc394a94304ed3f Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期四, 04 七月 2024 13:03:13 +0800
Subject: [PATCH] 流程卡打印添加配置
---
north-glass-erp/northglass-erp/src/views/pp/processCard/PrintProcess.vue | 126 ++++++++++++++++++-----------------------
1 files changed, 56 insertions(+), 70 deletions(-)
diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintProcess.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintProcess.vue
index 39b432d..c1f8d8c 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintProcess.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintProcess.vue
@@ -8,6 +8,9 @@
import {useI18n} from 'vue-i18n'
import deepClone from "@/utils/deepClone";
import QRCode from "qrcode";
+import companyInfo from "@/stores/sd/companyInfo"
+
+const company = companyInfo()
//璇█鑾峰彇
const {t} = useI18n()
let router = useRouter()
@@ -40,10 +43,11 @@
item.detail[0].technologyNumber = printMerge;
});
}
- let technologyNumberMerge = printMerge.split('').join(',');
- console.log(technologyNumberMerge)
- produceList.value[0].detail[0].technologyNumberMerge = technologyNumberMerge
- console.log(produceList.value[0].detail[0])
+ produceList.value.forEach(item =>{
+ let technologyNumberMerge = printMerge.split('').join(',');
+ item.detail[0].technologyNumberMerge = technologyNumberMerge
+ })
+
const s01Values = [];
// 閬嶅巻 res.data.numberList 鏁扮粍锛岃幏鍙栨瘡涓厓绱犵殑 S01 鍊煎苟瀛樺偍鍒� s01Values 鏁扮粍涓�
produceList.value[0].detailList.forEach(element => {
@@ -70,7 +74,7 @@
}
});
-
+ console.log(produceList.value)
@@ -200,22 +204,22 @@
<!-- <td colspan='2'></td>-->
</tr>
<tr>
- <td>姝e搧</td>
- <td>娆″搧</td>
- <td>姝e搧</td>
- <td>娆″搧</td>
- <td>姝e搧</td>
- <td>娆″搧</td>
- <td>姝e搧</td>
- <td>娆″搧</td>
- <td>姝e搧</td>
- <td>娆″搧</td>
- <td>姝e搧</td>
- <td>娆″搧</td>
- <td>姝e搧</td>
- <td>娆″搧</td>
- <td>姝e搧</td>
- <td>娆″搧</td>
+ <td>{{company.printLabel.printFlowCard.patch}}</td>
+ <td>{{company.printLabel.printFlowCard.lackOf}}</td>
+ <td>{{company.printLabel.printFlowCard.patch}}</td>
+ <td>{{company.printLabel.printFlowCard.lackOf}}</td>
+ <td>{{company.printLabel.printFlowCard.patch}}</td>
+ <td>{{company.printLabel.printFlowCard.lackOf}}</td>
+ <td>{{company.printLabel.printFlowCard.patch}}</td>
+ <td>{{company.printLabel.printFlowCard.lackOf}}</td>
+ <td>{{company.printLabel.printFlowCard.patch}}</td>
+ <td>{{company.printLabel.printFlowCard.lackOf}}</td>
+ <td>{{company.printLabel.printFlowCard.patch}}</td>
+ <td>{{company.printLabel.printFlowCard.lackOf}}</td>
+ <td>{{company.printLabel.printFlowCard.patch}}</td>
+ <td>{{company.printLabel.printFlowCard.lackOf}}</td>
+ <td>{{company.printLabel.printFlowCard.patch}}</td>
+ <td>{{company.printLabel.printFlowCard.lackOf}}</td>
</tr>
</thead>
<tbody>
@@ -260,67 +264,45 @@
</tr>
<tr v-for="(itemtextarea,index) in item.detail" :key="index">
<td colspan="6" rowspan="6" style="width: 480px;height: 100px ">
- <div style="width: 100%;height: 100%"><textarea style="height: 99%;width: 99%">{{ itemtextarea.processing_note }}</textarea>
+<!-- <div style="width: 100%;height: 100%"><textarea style="height: 99%;width: 99%;font-size: 11px">{{ itemtextarea.processing_note }}</textarea>-->
+<!-- </div>-->
+ <div style="width: 100%;height: 100%"><textarea style="height: 99%;width: 99%;font-size: 11px">{{company.printLabel.printFlowCard.processingNote(itemtextarea)}}</textarea>
</div>
</td>
<td>瀹屽伐绛惧悕</td>
<td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
</tr>
<tr>
<td>鐢熶骇鏃ユ湡</td>
<td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
</tr>
<tr>
<td>璐ㄦ绛惧悕</td>
<td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
+ <td colspan="2"></td>
</tr>
<tr v-for="(qrCodeItem,index) in item.detail" :key="index">
<td colspan="19">
@@ -397,6 +379,10 @@
font-weight: bolder;
}
+@page {
+ size: auto; /* auto is the initial value */
+ margin: 2mm 0mm 0mm 1mm; /* this affects the margin in the printer settings */
+}
@media print {
--
Gitblit v1.8.0