feat(标签系统): 添加脱脂原料库标签类型并优化透视表功能

新增脱脂原料库标签类型6及相关组件TuoZhiTag
优化透视表功能,增加保存明细选项和导出功能
在标签渲染组件中添加对脱脂原料库类型的判断
更新相关API调用和UI交互逻辑
This commit is contained in:
砂糖
2026-03-10 15:38:22 +08:00
parent e937ff50f6
commit 6e909212bf
8 changed files with 465 additions and 24 deletions

View File

@@ -38,6 +38,12 @@
:paperWidthMm="180"
:paperHeightMm="100"
/>
<TuoZhiTag
v-if="tagType === '6'"
:content="content"
:paperWidthMm="180"
:paperHeightMm="100"
/>
<!-- <SampleTagPreview v-if="labelType === '4'" :content="content" />
<ForgeTagPreview v-if="labelType === '5'" :content="content" />
<SaltSprayTagPreview v-if="labelType === '6'" :content="content" /> -->
@@ -61,6 +67,8 @@ import GalvanizedTag from './GalvanizedTag.vue';
import WhereTag from './WhereTag.vue';
import ZincRawTag from './ZincRawTag.vue';
import DuGeTag from './DuGeTag.vue';
import TuoZhiTag from './TuoZhiTag.vue';
// import SampleTagPreview from './SampleTagPreview.vue';
// import ForgeTagPreview from './ForgeTagPreview.vue';
@@ -75,6 +83,7 @@ export default {
WhereTag,
ZincRawTag,
DuGeTag,
TuoZhiTag,
// SampleTagPreview,
// ForgeTagPreview,
// SaltSprayTagPreview,
@@ -107,6 +116,10 @@ export default {
width: 180,
height: 100,
},
'6': {
width: 180,
height: 100,
},
}
}
},
@@ -143,6 +156,10 @@ export default {
// 在镀锌颜料库的卷使用镀锌原料标签
if (itemType == 'raw_material' && (warehouseId == '1988150263284953089' || warehouseId == '1988150487185289217')) {
this.labelType = '5';
}
// 脱脂原料库
else if (itemType == 'raw_material' && (warehouseId == '1988150545175736322')) {
this.labelType = '6';
} else if (itemType == 'raw_material') {
this.labelType = '2';
} else if (itemType == 'product' && itemName == '冷硬卷') {