feat(标签打印): 添加分条成品标签类型及打印组件
新增分条成品标签类型,支持在特定仓库中自动识别并打印分条成品标签。添加SplitTag.vue组件用于分条成品标签的渲染,并更新相关逻辑以支持新的标签类型。
This commit is contained in:
@@ -4,7 +4,8 @@ const ECoilPrintType = {
|
||||
'镀锌成品': '4',
|
||||
'镀铬成品': 'ge',
|
||||
'镀锌原料': '5',
|
||||
'脱脂原料': '6'
|
||||
'脱脂原料': '6',
|
||||
'分条成品': 'split',
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -26,6 +27,11 @@ export const getCoilTagPrintType = (coil) => {
|
||||
else if (itemType == 'raw_material' && (warehouseId == '1988150545175736322')) {
|
||||
type = ECoilPrintType['脱脂原料'];
|
||||
}
|
||||
// 分条成品库
|
||||
else if (itemType == 'product' && (warehouseId == '1988150210872930306' || warehouseId == '1988150800092950529' || warehouseId == '1988150380649967617' || warehouseId == '1988151027466170370')) {
|
||||
type = ECoilPrintType['分条成品'];
|
||||
}
|
||||
// 其他卷使用成品标签
|
||||
else if (itemType == 'raw_material') {
|
||||
type = ECoilPrintType['原料标签'];
|
||||
} else if (itemType == 'product' && itemName == '冷硬卷') {
|
||||
|
||||
Reference in New Issue
Block a user