feat(wms): 添加修复工序的样式和分条选项
为酸轧、镀锌、脱脂、拉矫、双机架和镀铬修复工序添加渐变样式标识 在分条功能中增加修复工序的原料库和成品库选项
This commit is contained in:
@@ -61,9 +61,39 @@
|
||||
{value: '1988150380649967617', label: '镀锌分条成品'},
|
||||
{value: '1988151027466170370', label: '拉矫分条成品'},
|
||||
],
|
||||
'酸轧修复工序': [
|
||||
{value: '1988150044862377986', label: '酸连轧原料库'},
|
||||
{value: '1988150099140866050', label: '酸连轧成品库'},
|
||||
{value: '1988150263284953089', label: '镀锌原料库'},
|
||||
{value: '1988150545175736322', label: '脱脂原料库'},
|
||||
],
|
||||
'镀锌修复工序': [
|
||||
{value: '1988150263284953089', label: '镀锌原料库'},
|
||||
{value: '1988150323162836993', label: '镀锌成品库'},
|
||||
{value: '1988150487185289217', label: '镀锌纵剪分条原料库'},
|
||||
],
|
||||
'脱脂修复工序': [
|
||||
{value: '1988150545175736322', label: '脱脂原料库'},
|
||||
{value: '1988150586938421250', label: '脱脂成品库'},
|
||||
],
|
||||
'拉矫修复工序': [
|
||||
{value: '1988150854442741762', label: '拉矫原料库'},
|
||||
{value: '1988150915591499777', label: '拉矫成品库'},
|
||||
],
|
||||
'双机架修复工序': [
|
||||
{value: '1992873386047643650', label: '双机架原料库'},
|
||||
{value: '1992873437713080322', label: '双机架成品库'},
|
||||
],
|
||||
'镀铬修复工序': [
|
||||
{value: '1988151076996706306', label: '镀铬原料库'},
|
||||
{value: '1988151132361519105', label: '镀铬成品库'},
|
||||
],
|
||||
}
|
||||
|
||||
if (this.actionType === '镀锌工序' || this.actionType === '脱脂工序' || this.actionType === '拉矫平整工序' || this.actionType === '双机架工序' || this.actionType === '镀铬工序' || this.actionType === '纵剪分条工序' || this.actionType === '拉矫修复工序') {
|
||||
if (
|
||||
this.actionType === '镀锌工序' || this.actionType === '脱脂工序' || this.actionType === '拉矫平整工序' || this.actionType === '双机架工序' || this.actionType === '镀铬工序'
|
||||
|| this.actionType === '纵剪分条工序'
|
||||
|| this.actionType === '酸轧修复工序' || this.actionType === '镀锌修复工序' || this.actionType === '脱脂修复工序' || this.actionType === '拉矫修复工序' || this.actionType === '双机架修复工序' || this.actionType === '镀铬修复工序' ) {
|
||||
this.useSpecialSplit = true
|
||||
}
|
||||
// 从map中获取默认的查询参数
|
||||
|
||||
@@ -425,11 +425,47 @@ export default {
|
||||
border: '1px solid #2bf',
|
||||
color: '#fff'
|
||||
}
|
||||
} else if (this.acidRollingActionType == 507) {
|
||||
}
|
||||
// 各个修复工序,使用工序的代表色 + 粉色的渐变来标识
|
||||
// 酸轧修复工序
|
||||
else if (this.acidRollingActionType == 520) {
|
||||
return {
|
||||
// 亮粉色
|
||||
backgroundColor: '#FFAACC',
|
||||
border: '1px solid #FFAACC',
|
||||
background: 'linear-gradient(45deg, #5b7294 0% 90%, #FFAACC 90% 100%)',
|
||||
color: '#fff'
|
||||
}
|
||||
}
|
||||
// 镀锌修复工序
|
||||
else if (this.acidRollingActionType == 521) {
|
||||
return {
|
||||
background: 'linear-gradient(45deg, #2cb867 0% 90%, #FFAACC 90% 100%)',
|
||||
color: '#fff'
|
||||
}
|
||||
}
|
||||
// 脱脂修复工序
|
||||
else if (this.acidRollingActionType == 522) {
|
||||
return {
|
||||
background: 'linear-gradient(45deg, purple 0% 90%, #FFAACC 90% 100%)',
|
||||
color: '#fff'
|
||||
}
|
||||
}
|
||||
// 拉矫修复工序
|
||||
else if (this.acidRollingActionType == 523) {
|
||||
return {
|
||||
background: 'linear-gradient(45deg, #f56c6c 0% 90%, #FFAACC 90% 100%)',
|
||||
color: '#fff'
|
||||
}
|
||||
}
|
||||
// 双机架修复工序
|
||||
else if (this.acidRollingActionType == 524) {
|
||||
return {
|
||||
background: 'linear-gradient(45deg, #orange 0% 90%, #FFAACC 90% 100%)',
|
||||
color: '#fff'
|
||||
}
|
||||
}
|
||||
// 镀铬修复工序
|
||||
else if (this.acidRollingActionType == 525) {
|
||||
return {
|
||||
background: 'linear-gradient(45deg, #2bf 0% 90%, #FFAACC 90% 100%)',
|
||||
color: '#fff'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user