From 2490f487fda975e9a4db9283d84096dd2d685929 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= <2178503051@qq.com>
Date: Tue, 23 Jun 2026 14:35:35 +0800
Subject: [PATCH] =?UTF-8?q?feat(wms/coil/label):=20=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E9=80=80=E7=81=AB=E5=8E=9F=E6=96=99=E6=A0=87=E7=AD=BE=E7=BB=84?=
=?UTF-8?q?=E4=BB=B6=E5=B9=B6=E8=B0=83=E6=95=B4=E6=A0=87=E7=AD=BE=E9=80=BB?=
=?UTF-8?q?=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
拆分退火原料库和脱脂原料库的标签逻辑,新增退火原料专用标签组件,调整仓库对应的标签类型映射规则
---
.../coil/panels/LabelRender/TuiHuoRawTag.vue | 312 ++++++++++++++++++
.../wms/coil/panels/LabelRender/index.vue | 20 +-
2 files changed, 330 insertions(+), 2 deletions(-)
create mode 100644 klp-ui/src/views/wms/coil/panels/LabelRender/TuiHuoRawTag.vue
diff --git a/klp-ui/src/views/wms/coil/panels/LabelRender/TuiHuoRawTag.vue b/klp-ui/src/views/wms/coil/panels/LabelRender/TuiHuoRawTag.vue
new file mode 100644
index 00000000..81f2decc
--- /dev/null
+++ b/klp-ui/src/views/wms/coil/panels/LabelRender/TuiHuoRawTag.vue
@@ -0,0 +1,312 @@
+
+
+
+
+
嘉祥科伦普重工有限公司
+
+
+
冷卷号
+
+
{{ content.currentCoilNo || '' }}
+
+
热卷号
+
+
{{ content.enterCoilNo || '' }}
+
+
+
+
规格
+
+
{{ content.specification || '' }}
+
+
钢种
+
+
{{ content.material || '' }}
+
+
+
+
净重
+
+
{{ content.netWeight || '' }}
+
+
下工序
+
+
{{ content.nextProcess || '退火' }}
+
+
+
+
包装要求
+
+
{{ content.packagingRequirement || '' }}
+
+
切边要求
+
+
{{ content.trimmingRequirement || '' }}
+
+
+
+
班组
+
+
{{ content.team || '' }}
+
+
代码
+
+
+
+
+
+
+
生产日期
+
+
{{ content.createTime || '' }}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/klp-ui/src/views/wms/coil/panels/LabelRender/index.vue b/klp-ui/src/views/wms/coil/panels/LabelRender/index.vue
index cf095f62..ee2917c1 100644
--- a/klp-ui/src/views/wms/coil/panels/LabelRender/index.vue
+++ b/klp-ui/src/views/wms/coil/panels/LabelRender/index.vue
@@ -50,6 +50,12 @@
:paperWidthMm="100"
:paperHeightMm="80"
/>
+
下载标签图片
@@ -73,6 +79,7 @@ import ZincRawTag from './ZincRawTag.vue';
import DuGeTag from './DuGeTag.vue';
import TuoZhiTag from './TuoZhiTag.vue';
import SplitTag from './SplitTag.vue';
+import TuiHuoRawTag from './TuiHuoRawTag.vue';
export default {
name: 'LabelRender',
@@ -85,6 +92,7 @@ export default {
DuGeTag,
TuoZhiTag,
SplitTag,
+ TuiHuoRawTag,
},
data() {
return {
@@ -123,6 +131,10 @@ export default {
width: 100,
height: 80,
},
+ 'tuihuo-raw': {
+ width: 180,
+ height: 100,
+ }
},
loading: false,
}
@@ -173,10 +185,14 @@ export default {
if (itemType == 'raw_material' && (warehouseId == '1988150263284953089' || warehouseId == '1988150487185289217')) {
this.labelType = '5';
}
- // 在脱脂原料库或者退火原料库或者罩式退火纵剪分条原料库的卷使用脱脂原料标签
- else if (itemType == 'raw_material' && (warehouseId == '1988150545175736322' || warehouseId == '1988150648993148929' || warehouseId == '1988150750390448129')) {
+ // 在脱脂原料库使用脱脂原料标签
+ else if (itemType == 'raw_material' && warehouseId == '1988150545175736322') {
this.labelType = '6';
}
+ // 在退火原料库或者罩式退火纵剪分条原料库的卷使用退火原料标签
+ else if (itemType == 'raw_material' && (warehouseId == '1988150648993148929' || warehouseId == '1988150750390448129')) {
+ this.labelType = 'tuihuo-raw';
+ }
// 否则使用普通的原料标签
else if (itemType == 'raw_material') {
this.labelType = '2';