From 6cf3d4220f4d0c73cb7443c2fcac962d6c97bf20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=AB=E7=8C=ABguowen?= <9290821+guowen-the-cat@user.noreply.gitee.com> Date: Mon, 15 Sep 2025 10:33:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=9D=A1=E7=A0=81=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/bas/BasProductCode/index.vue | 143 ++++++++++++------ 1 file changed, 98 insertions(+), 45 deletions(-) diff --git a/ruoyi-ui/src/views/bas/BasProductCode/index.vue b/ruoyi-ui/src/views/bas/BasProductCode/index.vue index eeecbd9..5fad8ff 100644 --- a/ruoyi-ui/src/views/bas/BasProductCode/index.vue +++ b/ruoyi-ui/src/views/bas/BasProductCode/index.vue @@ -48,31 +48,16 @@ -
-
-

标签预览

-
- - 保存并打印 - -
-
- - -
- -

点击"预览"按钮查看标签效果

-
- - -
-
+ + +
+
@@ -183,11 +168,15 @@
-
+ + -
-
+
+

历史数据

+ style="width: 100%;margin-bottom: 40px;height: 550px;" + > row.type === '1' ? '未打印' : '已打印' }, - { prop: 'spare1', label: '订单号', width: 120 }, - { prop: 'spare2', label: '机型', width: 100 }, + { prop: 'spare1', label: '订单号', width: 150 }, + { prop: 'spare2', label: '机型', width: 120 }, { prop: 'spare3', label: '分箱', width: 100 } ] @@ -471,7 +461,7 @@ export default { handleEdit(row) { this.form = { ...row } this.previewData = { ...row } - this.showPreview = true + // this.showPreview = true }, // 删除按钮操作 @@ -616,6 +606,43 @@ export default { background-color: #f5f5f5; } +.list-container { + background: #fff; + padding: 20px; + border-radius: 4px; + box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1); +} + +.section-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 20px; +} + +.section-header h3 { + margin: 0; + font-size: 16px; + font-weight: 500; +} + +.header-actions { + display: flex; + gap: 10px; +} + +.el-table { + margin-bottom: 20px; +} + +.el-table .danger-text { + color: #F56C6C; +} + +.el-table .danger-text:hover { + color: #f78989; +} + /* 容器样式 */ .form-container, .list-container, @@ -630,10 +657,36 @@ export default { margin-bottom: 20px; } -.list-container { - margin-bottom: 20px; - height: 400px; - overflow-y: auto; +.preview-container { + padding: 20px; +} + +.preview-box { + display: flex; + justify-content: space-between; + align-items: flex-start; + padding: 20px; + border: 1px solid #dcdfe6; + border-radius: 4px; +} + +.preview-content { + flex: 1; + margin-right: 20px; +} + +.preview-row { + margin-bottom: 15px; +} + +.preview-label { + font-weight: bold; + margin-right: 10px; +} + +.qrcode-container { + width: 180px; + height: 180px; } .list-container .el-table {