From ab56bc354afaaa203cdbbdf4d3ec516fef9e6087 Mon Sep 17 00:00:00 2001
From: juzi <819872918@qq.com>
Date: Tue, 7 May 2024 09:01:32 +0800
Subject: [PATCH] =?UTF-8?q?=E5=91=A8=E8=BD=AC=E6=A0=87=E7=AD=BE=E6=89=93?=
=?UTF-8?q?=E5=8D=B050%?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.dev | 4 +-
.../components/InputArea.vue | 0
.../components/OtherMsg.vue | 1 +
.../components/Printed.vue | 0
.../components/PrintedEdit.vue | 0
.../components/UnPrint.vue | 103 +-
.../components/UnPrintEdit.vue | 0
.../components/preview.vue | 0
src/views/base/packagingPrintLog/index.vue | 367 +-------
.../base/packagingPrintLog/print-template.js | 889 ++++++++++++++++++
.../SmallTitle.vue | 0
.../add-or-updata.vue | 0
src/views/base/packagingPrintLog1/index.vue | 344 +++++++
.../unitDict.vue | 0
src/views/base/packagingPrintLog2/index.vue | 47 -
.../base/packagingPrintLog2/print-template.js | 554 -----------
16 files changed, 1361 insertions(+), 948 deletions(-)
rename src/views/base/{packagingPrintLog2 => packagingPrintLog}/components/InputArea.vue (100%)
rename src/views/base/{packagingPrintLog2 => packagingPrintLog}/components/OtherMsg.vue (99%)
rename src/views/base/{packagingPrintLog2 => packagingPrintLog}/components/Printed.vue (100%)
rename src/views/base/{packagingPrintLog2 => packagingPrintLog}/components/PrintedEdit.vue (100%)
rename src/views/base/{packagingPrintLog2 => packagingPrintLog}/components/UnPrint.vue (72%)
rename src/views/base/{packagingPrintLog2 => packagingPrintLog}/components/UnPrintEdit.vue (100%)
rename src/views/base/{packagingPrintLog2 => packagingPrintLog}/components/preview.vue (100%)
create mode 100644 src/views/base/packagingPrintLog/print-template.js
rename src/views/base/{packagingPrintLog => packagingPrintLog1}/SmallTitle.vue (100%)
rename src/views/base/{packagingPrintLog => packagingPrintLog1}/add-or-updata.vue (100%)
create mode 100644 src/views/base/packagingPrintLog1/index.vue
rename src/views/base/{packagingPrintLog => packagingPrintLog1}/unitDict.vue (100%)
delete mode 100644 src/views/base/packagingPrintLog2/index.vue
delete mode 100644 src/views/base/packagingPrintLog2/print-template.js
diff --git a/.env.dev b/.env.dev
index 9a3e70a1..5a600926 100644
--- a/.env.dev
+++ b/.env.dev
@@ -12,8 +12,8 @@ ENV = 'development'
VUE_APP_TITLE = MES系统
# 芋道管理系统/开发环境
-VUE_APP_BASE_API = 'http://192.168.0.33:48082'
-# VUE_APP_BASE_API = 'http://192.168.1.104:48082'
+# VUE_APP_BASE_API = 'http://192.168.0.33:48082'
+VUE_APP_BASE_API = 'http://192.168.1.104:48082'
# VUE_APP_BASE_API = 'http://10.70.2.2:8080'
# 积木报表指向地址
VUE_APP_JIMU_API = 'http://192.168.1.101:48082'
diff --git a/src/views/base/packagingPrintLog2/components/InputArea.vue b/src/views/base/packagingPrintLog/components/InputArea.vue
similarity index 100%
rename from src/views/base/packagingPrintLog2/components/InputArea.vue
rename to src/views/base/packagingPrintLog/components/InputArea.vue
diff --git a/src/views/base/packagingPrintLog2/components/OtherMsg.vue b/src/views/base/packagingPrintLog/components/OtherMsg.vue
similarity index 99%
rename from src/views/base/packagingPrintLog2/components/OtherMsg.vue
rename to src/views/base/packagingPrintLog/components/OtherMsg.vue
index c4425b29..d9f48d59 100644
--- a/src/views/base/packagingPrintLog2/components/OtherMsg.vue
+++ b/src/views/base/packagingPrintLog/components/OtherMsg.vue
@@ -204,6 +204,7 @@ export default {
});
},
changeChoose(val) {
+ console.log(val);
this.$emit('changeChoose', val);
},
},
diff --git a/src/views/base/packagingPrintLog2/components/Printed.vue b/src/views/base/packagingPrintLog/components/Printed.vue
similarity index 100%
rename from src/views/base/packagingPrintLog2/components/Printed.vue
rename to src/views/base/packagingPrintLog/components/Printed.vue
diff --git a/src/views/base/packagingPrintLog2/components/PrintedEdit.vue b/src/views/base/packagingPrintLog/components/PrintedEdit.vue
similarity index 100%
rename from src/views/base/packagingPrintLog2/components/PrintedEdit.vue
rename to src/views/base/packagingPrintLog/components/PrintedEdit.vue
diff --git a/src/views/base/packagingPrintLog2/components/UnPrint.vue b/src/views/base/packagingPrintLog/components/UnPrint.vue
similarity index 72%
rename from src/views/base/packagingPrintLog2/components/UnPrint.vue
rename to src/views/base/packagingPrintLog/components/UnPrint.vue
index 1f958865..cf34848c 100644
--- a/src/views/base/packagingPrintLog2/components/UnPrint.vue
+++ b/src/views/base/packagingPrintLog/components/UnPrint.vue
@@ -46,17 +46,18 @@ const tableProps = [
showOverflowtooltip: true,
},
{
- prop: 'lineId',
+ prop: 'lineName',
label: '产线',
showOverflowtooltip: true,
},
{
prop: 'specifications',
label: '规格',
+ minWidth: 140,
showOverflowtooltip: true,
},
{
- prop: 'check',
+ prop: 'checkGoodName',
label: '判定',
showOverflowtooltip: true,
},
@@ -74,12 +75,12 @@ const tableProps = [
{
prop: 'remark',
label: '备注1',
+ minWidth: 120,
showOverflowtooltip: true,
},
{
- prop: 'printStatus',
+ prop: 'printStatusName',
label: '打印状态',
- filter: (val) => (val == 1 ? '未打印' : '已打印'),
},
{
prop: 'createTime',
@@ -106,27 +107,30 @@ export default {
return {
printMsg1: {
customerId: '',
+ customerName: '',
sealWorker: '',
packWorker: '',
processCard: '',
pallet: '',
- remark: '',
+ remarkT: '',
},
printMsg2: {
customerId: '',
+ customerName: '',
sealWorker: '',
packWorker: '',
processCard: '',
pallet: '',
- remark: '',
+ remarkT: '',
},
printMsg3: {
customerId: '',
+ customerName: '',
sealWorker: '',
packWorker: '',
processCard: '',
pallet: '',
- remark: '',
+ remarkT: '',
},
chooseMsg: 1, //单选
formConfig: [
@@ -157,6 +161,16 @@ export default {
color: 'primary',
},
],
+ lineList: [],
+ printStatusList: [
+ { id: 1, name: '未打印' },
+ { id: 2, name: '已打印' },
+ { id: 3, name: '已重打' },
+ ],
+ checkGoodList: [
+ { id: 0, name: '否' },
+ { id: 1, name: '是' },
+ ],
// 查询参数
queryParams: {
pageNo: 1,
@@ -242,18 +256,39 @@ export default {
},
mounted() {
this.getLineList();
- console.log(printTemplate);
+ this.getTopTitle();
+ console.log(JSON.stringify(printTemplate));
console.log('================printTemplate');
},
methods: {
getLineList() {
getCorePLList().then((res) => {
- this.formConfig[0].selectOptions = res.data;
+ this.formConfig[0].selectOptions = res.data || [];
+ this.lineList = res.data || [];
+ this.getList();
});
},
getList() {
getPackingPage({ ...this.queryParams }).then((res) => {
- this.list = res.data.records || [];
+ let arr = res.data.records || [];
+ arr.map((item) => {
+ this.lineList.map((subItem) => {
+ if (item.lineId === subItem.id) {
+ item.lineName = subItem.name;
+ }
+ });
+ this.printStatusList.map((subItem2) => {
+ if (item.printStatus === subItem2.id) {
+ item.printStatusName = subItem2.name;
+ }
+ });
+ this.checkGoodList.map((subItem3) => {
+ if (item.checkGood === subItem3.id) {
+ item.checkGoodName = subItem3.name;
+ }
+ });
+ });
+ this.list = arr;
this.total = res.data.total;
});
},
@@ -276,9 +311,13 @@ export default {
this.saveNum(val.data);
break;
case 'view':
- this.preView();
+ // 保存选中的内容
+ this.saveTopTitle();
+ this.preView(val.data);
break;
case 'print':
+ // 保存选中的内容
+ this.saveTopTitle();
this.printTemp();
break;
default:
@@ -302,11 +341,18 @@ export default {
this.list[val._pageIndex - 1][val.prop] = val[val.prop];
},
// 预览
- preView() {
+ preView(data) {
+ let topMsg =
+ this.chooseMsg === 1
+ ? this.printMsg1
+ : this.chooseMsg === 2
+ ? this.printMsg2
+ : this.printMsg3;
+ let printData = { ...data, ...topMsg };
var hiprintTemplate = new hiprint.PrintTemplate({
template: printTemplate,
});
- this.$refs.preView.show(hiprintTemplate);
+ this.$refs.preView.show(hiprintTemplate, printData);
},
// 打印
printTemp() {
@@ -327,6 +373,37 @@ export default {
);
console.log(hiprintTemplate);
},
+ // 保存选中的内容
+ saveTopTitle() {
+ switch (this.chooseMsg) {
+ case 1:
+ localStorage.setItem('printMsg1', JSON.stringify(this.printMsg1));
+ break;
+ case 2:
+ localStorage.setItem('printMsg2', JSON.stringify(this.printMsg2));
+ break;
+ case 3:
+ localStorage.setItem('printMsg3', JSON.stringify(this.printMsg3));
+ break;
+ default:
+ throw new Error(`${this.chooseMsg}的值不正确,请检查!`);
+ }
+ },
+ // 获取打印内容top
+ getTopTitle() {
+ let pm1 = localStorage.getItem('printMsg1');
+ let pm2 = localStorage.getItem('printMsg2');
+ let pm3 = localStorage.getItem('printMsg3');
+ if (pm1) {
+ this.printMsg1 = JSON.parse(pm1);
+ }
+ if (pm2) {
+ this.printMsg2 = JSON.parse(pm2);
+ }
+ if (pm3) {
+ this.printMsg3 = JSON.parse(pm3);
+ }
+ },
},
};
diff --git a/src/views/base/packagingPrintLog2/components/UnPrintEdit.vue b/src/views/base/packagingPrintLog/components/UnPrintEdit.vue
similarity index 100%
rename from src/views/base/packagingPrintLog2/components/UnPrintEdit.vue
rename to src/views/base/packagingPrintLog/components/UnPrintEdit.vue
diff --git a/src/views/base/packagingPrintLog2/components/preview.vue b/src/views/base/packagingPrintLog/components/preview.vue
similarity index 100%
rename from src/views/base/packagingPrintLog2/components/preview.vue
rename to src/views/base/packagingPrintLog/components/preview.vue
diff --git a/src/views/base/packagingPrintLog/index.vue b/src/views/base/packagingPrintLog/index.vue
index 450f9294..ecc60ac9 100644
--- a/src/views/base/packagingPrintLog/index.vue
+++ b/src/views/base/packagingPrintLog/index.vue
@@ -1,344 +1,47 @@
-
-
+
-
+
diff --git a/src/views/base/packagingPrintLog/print-template.js b/src/views/base/packagingPrintLog/print-template.js
new file mode 100644
index 00000000..13cb1a2f
--- /dev/null
+++ b/src/views/base/packagingPrintLog/print-template.js
@@ -0,0 +1,889 @@
+export default {
+ "panels":[
+ {
+ "index":0,
+ "name":1,
+ "height":125,
+ "width":95,
+ "paperHeader":0,
+ "paperFooter":354.33070866141736,
+ "printElements":[
+ {
+ "options":{
+ "left":5,
+ "top":5,
+ "height":30,
+ "width":256.5,
+ "right":262.2421875,
+ "bottom":34.9921875,
+ "vCenter":133.9921875,
+ "hCenter":19.9921875,
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "borderColor":"green",
+ "backgroundColor":"green"
+ },
+ "printElementType":{
+ "title":"矩形",
+ "type":"rect"
+ }
+ },
+ {
+ "options":{
+ "left":35,
+ "top":15,
+ "height":20,
+ "width":195,
+ "title":"厂内镀膜/钢化片周转标签",
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":16.5,
+ "color":"#ffffff",
+ "qrCodeLevel":0,
+ "right":232.9921875,
+ "bottom":35.24609375,
+ "vCenter":135.4921875,
+ "hCenter":25.24609375
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":50,
+ "top":35,
+ "height":52.5,
+ "width":9
+ },
+ "printElementType":{
+ "title":"竖线",
+ "type":"vline"
+ }
+ },
+ {
+ "options":{
+ "left":5,
+ "top":35,
+ "height":309,
+ "width":256.5,
+ "right":261.4921875,
+ "bottom":343.9921875,
+ "vCenter":133.2421875,
+ "hCenter":189.4921875
+ },
+ "printElementType":{
+ "title":"矩形",
+ "type":"rect"
+ }
+ },
+ {
+ "options":{
+ "left":10,
+ "top":42.5,
+ "height":18,
+ "width":36,
+ "title":"线别",
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":45.99609375,
+ "bottom":60.4921875,
+ "vCenter":27.99609375,
+ "hCenter":51.4921875
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":55,
+ "top":42.5,
+ "height":18,
+ "width":200,
+ "title":"判定",
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":93.4921875,
+ "bottom":59.25,
+ "vCenter":75.4921875,
+ "hCenter":50.25,
+ "field":"checkGoodName"
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":5,
+ "top":62.5,
+ "height":9,
+ "width":256.5,
+ "right":259.9921875,
+ "bottom":72.4921875,
+ "vCenter":132.4921875,
+ "hCenter":67.9921875
+ },
+ "printElementType":{
+ "title":"横线",
+ "type":"hline"
+ }
+ },
+ {
+ "options":{
+ "left":55,
+ "top":70,
+ "height":18,
+ "width":199.5,
+ "title":"备注",
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":91.2421875,
+ "bottom":86.25,
+ "vCenter":73.2421875,
+ "hCenter":77.25,
+ "field":"remarkT"
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":190,
+ "top":87.5,
+ "height":169.5,
+ "width":9,
+ "right":199.74609375,
+ "bottom":255.75,
+ "vCenter":195.24609375,
+ "hCenter":171
+ },
+ "printElementType":{
+ "title":"竖线",
+ "type":"vline"
+ }
+ },
+ {
+ "options":{
+ "left":5,
+ "top":87.5,
+ "height":9,
+ "width":256.5,
+ "right":260.7421875,
+ "bottom":96.75,
+ "vCenter":132.4921875,
+ "hCenter":92.25
+ },
+ "printElementType":{
+ "title":"横线",
+ "type":"hline"
+ }
+ },
+ {
+ "options":{
+ "left":77.5,
+ "top":90,
+ "height":15,
+ "width":36,
+ "title":"规格",
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":113.49609375,
+ "bottom":105.4921875,
+ "vCenter":95.49609375,
+ "hCenter":97.9921875
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":207.5,
+ "top":100,
+ "height":18,
+ "width":36,
+ "title":"用户",
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":242.7421875,
+ "bottom":116.25,
+ "vCenter":224.7421875,
+ "hCenter":107.25
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":25,
+ "top":102.5,
+ "height":15,
+ "width":156,
+ "title":"长*宽*厚度(单位:mm)",
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":179.25,
+ "bottom":117.4921875,
+ "vCenter":101.25,
+ "hCenter":109.9921875
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":5,
+ "top":117.5,
+ "height":9,
+ "width":256.5,
+ "right":263.7421875,
+ "bottom":125.7421875,
+ "vCenter":135.4921875,
+ "hCenter":121.2421875
+ },
+ "printElementType":{
+ "title":"横线",
+ "type":"hline"
+ }
+ },
+ {
+ "options":{
+ "left":130,
+ "top":145,
+ "height":55.5,
+ "width":9,
+ "right":138.99609375,
+ "bottom":199.5,
+ "vCenter":134.49609375,
+ "hCenter":171.75
+ },
+ "printElementType":{
+ "title":"竖线",
+ "type":"vline"
+ }
+ },
+ {
+ "options":{
+ "left":5,
+ "top":145,
+ "height":9,
+ "width":256.5,
+ "right":260.25,
+ "bottom":154.2421875,
+ "vCenter":132,
+ "hCenter":149.7421875
+ },
+ "printElementType":{
+ "title":"横线",
+ "type":"hline"
+ }
+ },
+ {
+ "options":{
+ "left":45,
+ "top":155,
+ "height":18,
+ "width":36,
+ "title":"编号",
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":82.2421875,
+ "bottom":171.75,
+ "vCenter":64.2421875,
+ "hCenter":162.75
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":135,
+ "top":155,
+ "height":18,
+ "width":49.5,
+ "title":"工位号",
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":186,
+ "bottom":172.9921875,
+ "vCenter":161.25,
+ "hCenter":163.9921875
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":197.5,
+ "top":155,
+ "height":18,
+ "width":60,
+ "title":"流程卡号",
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":256.74609375,
+ "bottom":143.7421875,
+ "vCenter":226.74609375,
+ "hCenter":134.7421875
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":5,
+ "top":175,
+ "height":9,
+ "width":256.5,
+ "right":259.2421875,
+ "bottom":183.75,
+ "vCenter":130.9921875,
+ "hCenter":179.25
+ },
+ "printElementType":{
+ "title":"横线",
+ "type":"hline"
+ }
+ },
+ {
+ "options":{
+ "left":50,
+ "top":200,
+ "height":58.5,
+ "width":9,
+ "right":58.9921875,
+ "bottom":259.5,
+ "vCenter":54.4921875,
+ "hCenter":230.25
+ },
+ "printElementType":{
+ "title":"竖线",
+ "type":"vline"
+ }
+ },
+ {
+ "options":{
+ "left":110,
+ "top":200,
+ "height":58.5,
+ "width":9,
+ "right":117.75,
+ "bottom":256.9921875,
+ "vCenter":113.25,
+ "hCenter":227.7421875
+ },
+ "printElementType":{
+ "title":"竖线",
+ "type":"vline"
+ }
+ },
+ {
+ "options":{
+ "left":5,
+ "top":200,
+ "height":9,
+ "width":256.5,
+ "right":262.9921875,
+ "bottom":210.24609375,
+ "vCenter":134.7421875,
+ "hCenter":205.74609375
+ },
+ "printElementType":{
+ "title":"横线",
+ "type":"hline"
+ }
+ },
+ {
+ "options":{
+ "left":10,
+ "top":210,
+ "height":18,
+ "width":36,
+ "title":"日期",
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":45.99609375,
+ "bottom":228,
+ "vCenter":27.99609375,
+ "hCenter":219
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":67.5,
+ "top":210,
+ "height":18,
+ "width":36,
+ "title":"班次",
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":103.5,
+ "bottom":228,
+ "vCenter":85.5,
+ "hCenter":219
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":207.5,
+ "top":210,
+ "height":18,
+ "width":36,
+ "title":"片数",
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":243.4921875,
+ "bottom":228,
+ "vCenter":225.4921875,
+ "hCenter":219
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":5,
+ "top":230,
+ "height":9,
+ "width":256.5,
+ "right":261.4921875,
+ "bottom":239.25,
+ "vCenter":133.2421875,
+ "hCenter":234.75
+ },
+ "printElementType":{
+ "title":"横线",
+ "type":"hline"
+ }
+ },
+ {
+ "options":{
+ "left":5,
+ "top":257.5,
+ "height":9,
+ "width":256.5,
+ "right":261.4921875,
+ "bottom":266.49609375,
+ "vCenter":133.2421875,
+ "hCenter":261.99609375
+ },
+ "printElementType":{
+ "title":"横线",
+ "type":"hline"
+ }
+ },
+ {
+ "options":{
+ "left":10,
+ "top":262.5,
+ "height":18,
+ "width":243,
+ "title":"封箱人员工号",
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":46.9921875,
+ "bottom":279.24609375,
+ "vCenter":28.9921875,
+ "hCenter":270.24609375,
+ "field":"sealWorker"
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":5,
+ "top":280,
+ "height":9,
+ "width":256.5,
+ "right":262.2421875,
+ "bottom":289.2421875,
+ "vCenter":133.9921875,
+ "hCenter":284.7421875
+ },
+ "printElementType":{
+ "title":"横线",
+ "type":"hline"
+ }
+ },
+ {
+ "options":{
+ "left":10,
+ "top":285,
+ "height":18,
+ "width":244.5,
+ "title":"打包人员工号",
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":96.4921875,
+ "bottom":301.74609375,
+ "vCenter":52.9921875,
+ "hCenter":292.74609375,
+ "field":"packWorker"
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":5,
+ "top":300,
+ "height":9,
+ "width":256.5,
+ "right":264.4921875,
+ "bottom":308.49609375,
+ "vCenter":136.2421875,
+ "hCenter":303.99609375
+ },
+ "printElementType":{
+ "title":"横线",
+ "type":"hline"
+ }
+ },
+ {
+ "options":{
+ "left":10,
+ "top":305,
+ "height":18,
+ "width":247.5,
+ "title":"备注1:单层镀/双层镀/丝印打孔/打孔钢片",
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":96.99609375,
+ "bottom":322.9921875,
+ "vCenter":53.49609375,
+ "hCenter":313.9921875
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":5,
+ "top":322.5,
+ "height":9,
+ "width":256.5,
+ "right":262.2421875,
+ "bottom":332.7421875,
+ "vCenter":133.9921875,
+ "hCenter":328.2421875
+ },
+ "printElementType":{
+ "title":"横线",
+ "type":"hline"
+ }
+ },
+ {
+ "options":{
+ "left":10,
+ "top":327.5,
+ "height":18,
+ "width":244.5,
+ "title":"备注2:",
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":97.9921875,
+ "bottom":343.74609375,
+ "vCenter":54.4921875,
+ "hCenter":334.74609375
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":20,
+ "top":122.5,
+ "height":18,
+ "width":157.5,
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":54.99609375,
+ "bottom":142.5,
+ "vCenter":36.99609375,
+ "hCenter":133.5,
+ "field":"specifications",
+ "hideTitle":true
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":195,
+ "top":122.5,
+ "height":18,
+ "width":58.5,
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":250.9921875,
+ "bottom":140.49609375,
+ "vCenter":223.2421875,
+ "hCenter":131.49609375,
+ "field":"customerName",
+ "hideTitle":true
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":12.5,
+ "top":177.5,
+ "height":18,
+ "width":112.5,
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":48.24609375,
+ "bottom":195,
+ "vCenter":30.24609375,
+ "hCenter":186,
+ "field":"packagingCode",
+ "hideTitle":true
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":135,
+ "top":177.5,
+ "height":18,
+ "width":49.5,
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":186.24609375,
+ "bottom":196.5,
+ "vCenter":161.49609375,
+ "hCenter":187.5,
+ "field":"workStation",
+ "hideTitle":true
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":195,
+ "top":177.5,
+ "height":18,
+ "width":60,
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":254.7421875,
+ "bottom":194.25,
+ "vCenter":224.7421875,
+ "hCenter":185.25,
+ "field":"processCard",
+ "hideTitle":true
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":10,
+ "top":235,
+ "height":18,
+ "width":36,
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":46.9921875,
+ "bottom":252.24609375,
+ "vCenter":28.9921875,
+ "hCenter":243.24609375,
+ "field":"date",
+ "hideTitle":true
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":60,
+ "top":235,
+ "height":18,
+ "width":48,
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":97.2421875,
+ "bottom":253.9921875,
+ "vCenter":79.2421875,
+ "hCenter":244.9921875,
+ "field":"groupClass",
+ "hideTitle":true
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":120,
+ "top":235,
+ "height":18,
+ "width":64.5,
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":167.49609375,
+ "bottom":253.9921875,
+ "vCenter":143.49609375,
+ "hCenter":244.9921875,
+ "field":"time",
+ "hideTitle":true
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":202.5,
+ "top":235,
+ "height":18,
+ "width":48,
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":250.74609375,
+ "bottom":253.2421875,
+ "vCenter":226.74609375,
+ "hCenter":244.2421875,
+ "field":"num",
+ "hideTitle":true
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ },
+ {
+ "options":{
+ "left":7.5,
+ "top":62.5,
+ "height":18,
+ "width":36,
+ "coordinateSync":false,
+ "widthHeightSync":false,
+ "fontSize":12,
+ "qrCodeLevel":0,
+ "right":44.7421875,
+ "bottom":81.24609375,
+ "vCenter":26.7421875,
+ "hCenter":72.24609375,
+ "field":"lineName",
+ "hideTitle":true
+ },
+ "printElementType":{
+ "title":"文本",
+ "type":"text"
+ }
+ }
+ ],
+ "paperNumberLeft":372.5,
+ "paperNumberTop":337.5,
+ "paperNumberContinue":true,
+ "watermarkOptions":{
+ }
+ }
+ ]
+ }
\ No newline at end of file
diff --git a/src/views/base/packagingPrintLog/SmallTitle.vue b/src/views/base/packagingPrintLog1/SmallTitle.vue
similarity index 100%
rename from src/views/base/packagingPrintLog/SmallTitle.vue
rename to src/views/base/packagingPrintLog1/SmallTitle.vue
diff --git a/src/views/base/packagingPrintLog/add-or-updata.vue b/src/views/base/packagingPrintLog1/add-or-updata.vue
similarity index 100%
rename from src/views/base/packagingPrintLog/add-or-updata.vue
rename to src/views/base/packagingPrintLog1/add-or-updata.vue
diff --git a/src/views/base/packagingPrintLog1/index.vue b/src/views/base/packagingPrintLog1/index.vue
new file mode 100644
index 00000000..450f9294
--- /dev/null
+++ b/src/views/base/packagingPrintLog1/index.vue
@@ -0,0 +1,344 @@
+
+
+
+
+
+
diff --git a/src/views/base/packagingPrintLog/unitDict.vue b/src/views/base/packagingPrintLog1/unitDict.vue
similarity index 100%
rename from src/views/base/packagingPrintLog/unitDict.vue
rename to src/views/base/packagingPrintLog1/unitDict.vue
diff --git a/src/views/base/packagingPrintLog2/index.vue b/src/views/base/packagingPrintLog2/index.vue
deleted file mode 100644
index ecc60ac9..00000000
--- a/src/views/base/packagingPrintLog2/index.vue
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
diff --git a/src/views/base/packagingPrintLog2/print-template.js b/src/views/base/packagingPrintLog2/print-template.js
deleted file mode 100644
index 14f5bd22..00000000
--- a/src/views/base/packagingPrintLog2/print-template.js
+++ /dev/null
@@ -1,554 +0,0 @@
-export default {
- panels: [
- {
- index: 0,
- name: 1,
- height: 125,
- width: 95,
- paperHeader: 0,
- paperFooter: 354.33070866141736,
- printElements: [
- {
- options: {
- left: 5,
- top: 5,
- height: 30,
- width: 256.5,
- right: 262.2421875,
- bottom: 34.9921875,
- vCenter: 133.9921875,
- hCenter: 19.9921875,
- coordinateSync: false,
- widthHeightSync: false,
- borderColor: 'green',
- backgroundColor: 'green',
- },
- printElementType: { title: '矩形', type: 'rect' },
- },
- {
- options: {
- left: 35,
- top: 15,
- height: 20,
- width: 195,
- title: '厂内镀膜/钢化片周转标签',
- coordinateSync: false,
- widthHeightSync: false,
- fontSize: 16.5,
- color: '#ffffff',
- qrCodeLevel: 0,
- right: 232.9921875,
- bottom: 35.24609375,
- vCenter: 135.4921875,
- hCenter: 25.24609375,
- },
- printElementType: { title: '文本', type: 'text' },
- },
- {
- options: { left: 50, top: 35, height: 52.5, width: 9 },
- printElementType: { title: '竖线', type: 'vline' },
- },
- {
- options: {
- left: 5,
- top: 35,
- height: 309,
- width: 256.5,
- right: 261.4921875,
- bottom: 343.9921875,
- vCenter: 133.2421875,
- hCenter: 189.4921875,
- },
- printElementType: { title: '矩形', type: 'rect' },
- },
- {
- options: {
- left: 10,
- top: 42.5,
- height: 18,
- width: 36,
- title: '线别',
- coordinateSync: false,
- widthHeightSync: false,
- fontSize: 12,
- qrCodeLevel: 0,
- right: 45.99609375,
- bottom: 60.4921875,
- vCenter: 27.99609375,
- hCenter: 51.4921875,
- },
- printElementType: { title: '文本', type: 'text' },
- },
- {
- options: {
- left: 55,
- top: 42.5,
- height: 18,
- width: 200,
- title: '判定:良品/保留/再检',
- coordinateSync: false,
- widthHeightSync: false,
- fontSize: 12,
- qrCodeLevel: 0,
- right: 93.4921875,
- bottom: 59.25,
- vCenter: 75.4921875,
- hCenter: 50.25,
- },
- printElementType: { title: '文本', type: 'text' },
- },
- {
- options: {
- left: 5,
- top: 62.5,
- height: 9,
- width: 256.5,
- right: 259.9921875,
- bottom: 72.4921875,
- vCenter: 132.4921875,
- hCenter: 67.9921875,
- },
- printElementType: { title: '横线', type: 'hline' },
- },
- {
- options: {
- left: 55,
- top: 70,
- height: 18,
- width: 46,
- title: '备注:',
- coordinateSync: false,
- widthHeightSync: false,
- fontSize: 12,
- qrCodeLevel: 0,
- right: 91.2421875,
- bottom: 86.25,
- vCenter: 73.2421875,
- hCenter: 77.25,
- },
- printElementType: { title: '文本', type: 'text' },
- },
- {
- options: {
- left: 190,
- top: 87.5,
- height: 169.5,
- width: 9,
- right: 199.74609375,
- bottom: 255.75,
- vCenter: 195.24609375,
- hCenter: 171,
- },
- printElementType: { title: '竖线', type: 'vline' },
- },
- {
- options: {
- left: 5,
- top: 87.5,
- height: 9,
- width: 256.5,
- right: 260.7421875,
- bottom: 96.75,
- vCenter: 132.4921875,
- hCenter: 92.25,
- },
- printElementType: { title: '横线', type: 'hline' },
- },
- {
- options: {
- left: 77.5,
- top: 90,
- height: 15,
- width: 36,
- title: '规格',
- coordinateSync: false,
- widthHeightSync: false,
- fontSize: 12,
- qrCodeLevel: 0,
- right: 113.49609375,
- bottom: 105.4921875,
- vCenter: 95.49609375,
- hCenter: 97.9921875,
- },
- printElementType: { title: '文本', type: 'text' },
- },
- {
- options: {
- left: 207.5,
- top: 100,
- height: 18,
- width: 36,
- title: '用户',
- coordinateSync: false,
- widthHeightSync: false,
- fontSize: 12,
- qrCodeLevel: 0,
- right: 242.7421875,
- bottom: 116.25,
- vCenter: 224.7421875,
- hCenter: 107.25,
- },
- printElementType: { title: '文本', type: 'text' },
- },
- {
- options: {
- left: 25,
- top: 102.5,
- height: 15,
- width: 156,
- title: '长*宽*厚度(单位:mm)',
- coordinateSync: false,
- widthHeightSync: false,
- fontSize: 12,
- qrCodeLevel: 0,
- right: 179.25,
- bottom: 117.4921875,
- vCenter: 101.25,
- hCenter: 109.9921875,
- },
- printElementType: { title: '文本', type: 'text' },
- },
- {
- options: {
- left: 5,
- top: 117.5,
- height: 9,
- width: 256.5,
- right: 263.7421875,
- bottom: 125.7421875,
- vCenter: 135.4921875,
- hCenter: 121.2421875,
- },
- printElementType: { title: '横线', type: 'hline' },
- },
- {
- options: {
- left: 130,
- top: 145,
- height: 55.5,
- width: 9,
- right: 138.99609375,
- bottom: 199.5,
- vCenter: 134.49609375,
- hCenter: 171.75,
- },
- printElementType: { title: '竖线', type: 'vline' },
- },
- {
- options: {
- left: 5,
- top: 145,
- height: 9,
- width: 256.5,
- right: 260.25,
- bottom: 154.2421875,
- vCenter: 132,
- hCenter: 149.7421875,
- },
- printElementType: { title: '横线', type: 'hline' },
- },
- {
- options: {
- left: 45,
- top: 155,
- height: 18,
- width: 36,
- title: '编号',
- coordinateSync: false,
- widthHeightSync: false,
- fontSize: 12,
- qrCodeLevel: 0,
- right: 82.2421875,
- bottom: 171.75,
- vCenter: 64.2421875,
- hCenter: 162.75,
- },
- printElementType: { title: '文本', type: 'text' },
- },
- {
- options: {
- left: 135,
- top: 155,
- height: 18,
- width: 49.5,
- title: '工位号',
- coordinateSync: false,
- widthHeightSync: false,
- fontSize: 12,
- qrCodeLevel: 0,
- right: 186,
- bottom: 172.9921875,
- vCenter: 161.25,
- hCenter: 163.9921875,
- },
- printElementType: { title: '文本', type: 'text' },
- },
- {
- options: {
- left: 197.5,
- top: 155,
- height: 18,
- width: 60,
- title: '流程卡号',
- coordinateSync: false,
- widthHeightSync: false,
- fontSize: 12,
- qrCodeLevel: 0,
- right: 256.74609375,
- bottom: 143.7421875,
- vCenter: 226.74609375,
- hCenter: 134.7421875,
- },
- printElementType: { title: '文本', type: 'text' },
- },
- {
- options: {
- left: 5,
- top: 175,
- height: 9,
- width: 256.5,
- right: 259.2421875,
- bottom: 183.75,
- vCenter: 130.9921875,
- hCenter: 179.25,
- },
- printElementType: { title: '横线', type: 'hline' },
- },
- {
- options: {
- left: 50,
- top: 200,
- height: 58.5,
- width: 9,
- right: 58.9921875,
- bottom: 259.5,
- vCenter: 54.4921875,
- hCenter: 230.25,
- },
- printElementType: { title: '竖线', type: 'vline' },
- },
- {
- options: {
- left: 110,
- top: 200,
- height: 58.5,
- width: 9,
- right: 117.75,
- bottom: 256.9921875,
- vCenter: 113.25,
- hCenter: 227.7421875,
- },
- printElementType: { title: '竖线', type: 'vline' },
- },
- {
- options: {
- left: 5,
- top: 200,
- height: 9,
- width: 256.5,
- right: 262.9921875,
- bottom: 210.24609375,
- vCenter: 134.7421875,
- hCenter: 205.74609375,
- },
- printElementType: { title: '横线', type: 'hline' },
- },
- {
- options: {
- left: 10,
- top: 210,
- height: 18,
- width: 36,
- title: '日期',
- coordinateSync: false,
- widthHeightSync: false,
- fontSize: 12,
- qrCodeLevel: 0,
- right: 45.99609375,
- bottom: 228,
- vCenter: 27.99609375,
- hCenter: 219,
- },
- printElementType: { title: '文本', type: 'text' },
- },
- {
- options: {
- left: 67.5,
- top: 210,
- height: 18,
- width: 36,
- title: '班次',
- coordinateSync: false,
- widthHeightSync: false,
- fontSize: 12,
- qrCodeLevel: 0,
- right: 103.5,
- bottom: 228,
- vCenter: 85.5,
- hCenter: 219,
- },
- printElementType: { title: '文本', type: 'text' },
- },
- {
- options: {
- left: 207.5,
- top: 210,
- height: 18,
- width: 36,
- title: '片数',
- coordinateSync: false,
- widthHeightSync: false,
- fontSize: 12,
- qrCodeLevel: 0,
- right: 243.4921875,
- bottom: 228,
- vCenter: 225.4921875,
- hCenter: 219,
- },
- printElementType: { title: '文本', type: 'text' },
- },
- {
- options: {
- left: 5,
- top: 230,
- height: 9,
- width: 256.5,
- right: 261.4921875,
- bottom: 239.25,
- vCenter: 133.2421875,
- hCenter: 234.75,
- },
- printElementType: { title: '横线', type: 'hline' },
- },
- {
- options: {
- left: 5,
- top: 257.5,
- height: 9,
- width: 256.5,
- right: 261.4921875,
- bottom: 266.49609375,
- vCenter: 133.2421875,
- hCenter: 261.99609375,
- },
- printElementType: { title: '横线', type: 'hline' },
- },
- {
- options: {
- left: 10,
- top: 262.5,
- height: 18,
- width: 87,
- title: '封箱人员工号:',
- coordinateSync: false,
- widthHeightSync: false,
- fontSize: 12,
- qrCodeLevel: 0,
- right: 46.9921875,
- bottom: 279.24609375,
- vCenter: 28.9921875,
- hCenter: 270.24609375,
- },
- printElementType: { title: '文本', type: 'text' },
- },
- {
- options: {
- left: 5,
- top: 280,
- height: 9,
- width: 256.5,
- right: 262.2421875,
- bottom: 289.2421875,
- vCenter: 133.9921875,
- hCenter: 284.7421875,
- },
- printElementType: { title: '横线', type: 'hline' },
- },
- {
- options: {
- left: 10,
- top: 285,
- height: 18,
- width: 87,
- title: '打包人员工号:',
- coordinateSync: false,
- widthHeightSync: false,
- fontSize: 12,
- qrCodeLevel: 0,
- right: 96.4921875,
- bottom: 301.74609375,
- vCenter: 52.9921875,
- hCenter: 292.74609375,
- },
- printElementType: { title: '文本', type: 'text' },
- },
- {
- options: {
- left: 5,
- top: 300,
- height: 9,
- width: 256.5,
- right: 264.4921875,
- bottom: 308.49609375,
- vCenter: 136.2421875,
- hCenter: 303.99609375,
- },
- printElementType: { title: '横线', type: 'hline' },
- },
- {
- options: {
- left: 10,
- top: 305,
- height: 18,
- width: 247.5,
- title: '备注1:单层镀/双层镀/丝印打孔/打孔钢片',
- coordinateSync: false,
- widthHeightSync: false,
- fontSize: 12,
- qrCodeLevel: 0,
- right: 96.99609375,
- bottom: 322.9921875,
- vCenter: 53.49609375,
- hCenter: 313.9921875,
- },
- printElementType: { title: '文本', type: 'text' },
- },
- {
- options: {
- left: 5,
- top: 322.5,
- height: 9,
- width: 256.5,
- right: 262.2421875,
- bottom: 332.7421875,
- vCenter: 133.9921875,
- hCenter: 328.2421875,
- },
- printElementType: { title: '横线', type: 'hline' },
- },
- {
- options: {
- left: 10,
- top: 327.5,
- height: 18,
- width: 87,
- title: '备注2:',
- coordinateSync: false,
- widthHeightSync: false,
- fontSize: 12,
- qrCodeLevel: 0,
- right: 97.9921875,
- bottom: 343.74609375,
- vCenter: 54.4921875,
- hCenter: 334.74609375,
- },
- printElementType: { title: '文本', type: 'text' },
- },
- ],
- paperNumberLeft: 372.5,
- paperNumberTop: 337.5,
- paperNumberContinue: true,
- watermarkOptions: {},
- },
- ]
-}
\ No newline at end of file