From d448280782065835b76c2fa41d8d80e4284bb16e Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Tue, 16 Apr 2024 15:29:39 +0800 Subject: [PATCH 1/2] test --- src/views/report/productionDayR/index.vue | 85 +++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 src/views/report/productionDayR/index.vue diff --git a/src/views/report/productionDayR/index.vue b/src/views/report/productionDayR/index.vue new file mode 100644 index 00000000..12215e5a --- /dev/null +++ b/src/views/report/productionDayR/index.vue @@ -0,0 +1,85 @@ + + + 开发中 + + + + + + -- 2.45.2 From c9128ce94646b86263572dfc16c04283569bd50e Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Fri, 19 Apr 2024 11:03:50 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=8C=85=E8=A3=8540%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ButtonNav/index.vue | 138 +++ src/views/base/custom/index.vue | 849 ++++++++++-------- .../components/InputArea.vue | 45 + .../components/OtherMsg.vue | 226 +++++ .../packagingPrintLog2/components/Printed.vue | 182 ++++ .../components/PrintedEdit.vue | 0 .../packagingPrintLog2/components/UnPrint.vue | 332 +++++++ .../components/UnPrintEdit.vue | 69 ++ .../packagingPrintLog2/components/preview.vue | 100 +++ src/views/base/packagingPrintLog2/index.vue | 47 + .../base/packagingPrintLog2/print-template.js | 554 ++++++++++++ .../packagingPrintModel/add-or-updata.vue | 410 ++++----- .../base/packagingPrintType/add-or-updata.vue | 339 ++----- 13 files changed, 2447 insertions(+), 844 deletions(-) create mode 100644 src/components/ButtonNav/index.vue create mode 100644 src/views/base/packagingPrintLog2/components/InputArea.vue create mode 100644 src/views/base/packagingPrintLog2/components/OtherMsg.vue create mode 100644 src/views/base/packagingPrintLog2/components/Printed.vue create mode 100644 src/views/base/packagingPrintLog2/components/PrintedEdit.vue create mode 100644 src/views/base/packagingPrintLog2/components/UnPrint.vue create mode 100644 src/views/base/packagingPrintLog2/components/UnPrintEdit.vue create mode 100644 src/views/base/packagingPrintLog2/components/preview.vue create mode 100644 src/views/base/packagingPrintLog2/index.vue create mode 100644 src/views/base/packagingPrintLog2/print-template.js diff --git a/src/components/ButtonNav/index.vue b/src/components/ButtonNav/index.vue new file mode 100644 index 00000000..b61cac0e --- /dev/null +++ b/src/components/ButtonNav/index.vue @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/base/custom/index.vue b/src/views/base/custom/index.vue index 6deb1a50..04a9ba37 100644 --- a/src/views/base/custom/index.vue +++ b/src/views/base/custom/index.vue @@ -1,19 +1,24 @@ - - - - - - 模板设计 - - - - - - - + + + + + + 模板设计 + + + + + + + - - - - - - - {{ type }} - - - - - - ~ - - - - 确定 - - 自定义宽高 - + + + + + + {{ type }} + + + + + + + ~ + + + + + 确定 + + + + 自定义宽高 + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - 旋转 - - 预览 - - + + + 旋转 + + + 预览 + + - - 保存 - - - 清空 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + 保存 + + + 清空 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/base/packagingPrintLog2/components/InputArea.vue b/src/views/base/packagingPrintLog2/components/InputArea.vue new file mode 100644 index 00000000..f7945036 --- /dev/null +++ b/src/views/base/packagingPrintLog2/components/InputArea.vue @@ -0,0 +1,45 @@ + + + + {{ list[itemProp] }} + + + diff --git a/src/views/base/packagingPrintLog2/components/OtherMsg.vue b/src/views/base/packagingPrintLog2/components/OtherMsg.vue new file mode 100644 index 00000000..c4425b29 --- /dev/null +++ b/src/views/base/packagingPrintLog2/components/OtherMsg.vue @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/base/packagingPrintLog2/components/Printed.vue b/src/views/base/packagingPrintLog2/components/Printed.vue new file mode 100644 index 00000000..b1dc68c9 --- /dev/null +++ b/src/views/base/packagingPrintLog2/components/Printed.vue @@ -0,0 +1,182 @@ + + + + + + + + + + + + diff --git a/src/views/base/packagingPrintLog2/components/PrintedEdit.vue b/src/views/base/packagingPrintLog2/components/PrintedEdit.vue new file mode 100644 index 00000000..e69de29b diff --git a/src/views/base/packagingPrintLog2/components/UnPrint.vue b/src/views/base/packagingPrintLog2/components/UnPrint.vue new file mode 100644 index 00000000..1f958865 --- /dev/null +++ b/src/views/base/packagingPrintLog2/components/UnPrint.vue @@ -0,0 +1,332 @@ + + + + + + + + + + + + + + + + diff --git a/src/views/base/packagingPrintLog2/components/UnPrintEdit.vue b/src/views/base/packagingPrintLog2/components/UnPrintEdit.vue new file mode 100644 index 00000000..e9ec720b --- /dev/null +++ b/src/views/base/packagingPrintLog2/components/UnPrintEdit.vue @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + diff --git a/src/views/base/packagingPrintLog2/components/preview.vue b/src/views/base/packagingPrintLog2/components/preview.vue new file mode 100644 index 00000000..0f68d42b --- /dev/null +++ b/src/views/base/packagingPrintLog2/components/preview.vue @@ -0,0 +1,100 @@ + + + + + + + 关闭 + + + + + + + diff --git a/src/views/base/packagingPrintLog2/index.vue b/src/views/base/packagingPrintLog2/index.vue new file mode 100644 index 00000000..ecc60ac9 --- /dev/null +++ b/src/views/base/packagingPrintLog2/index.vue @@ -0,0 +1,47 @@ + + + + + + + + + + + + + diff --git a/src/views/base/packagingPrintLog2/print-template.js b/src/views/base/packagingPrintLog2/print-template.js new file mode 100644 index 00000000..14f5bd22 --- /dev/null +++ b/src/views/base/packagingPrintLog2/print-template.js @@ -0,0 +1,554 @@ +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 diff --git a/src/views/base/packagingPrintModel/add-or-updata.vue b/src/views/base/packagingPrintModel/add-or-updata.vue index e89a6227..9a7231c2 100644 --- a/src/views/base/packagingPrintModel/add-or-updata.vue +++ b/src/views/base/packagingPrintModel/add-or-updata.vue @@ -6,138 +6,130 @@ * @Description: --> - - - {{ !dataForm.id ? '新增' : '编辑' }} - + + + {{ !dataForm.id ? '新增' : '编辑' }} + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 模板设计 - - - - - - - - - - - - - - 取消 - - 确定 - - - + + 确定 + + + + - - -- 2.45.2