fix(coil): 修复工序面板显示及仓库选择逻辑
修复镀锌工序面板中无进行中工序的显示问题,使用动态label替代硬编码 修复currentTab为0时仓库ID未清空的问题 添加纵剪分条工序的仓库选项并更新特殊分割逻辑
This commit is contained in:
@@ -54,9 +54,16 @@
|
||||
{value: '1988151076996706306', label: '镀铬原料库'},
|
||||
{value: '1988151132361519105', label: '镀铬成品库'},
|
||||
],
|
||||
'纵剪分条工序': [
|
||||
{value: '', label: '原料库'},
|
||||
{value: '1988150210872930306', label: '酸连轧分条成品'},
|
||||
{value: '1988150800092950529', label: '退火分条成品'},
|
||||
{value: '1988150380649967617', label: '镀锌分条成品'},
|
||||
{value: '1988151027466170370', label: '拉矫分条成品'},
|
||||
],
|
||||
}
|
||||
|
||||
if (this.actionType === '镀锌工序' || this.actionType === '脱脂工序' || this.actionType === '拉矫平整工序' || this.actionType === '双机架工序' || this.actionType === '镀铬工序') {
|
||||
if (this.actionType === '镀锌工序' || this.actionType === '脱脂工序' || this.actionType === '拉矫平整工序' || this.actionType === '双机架工序' || this.actionType === '镀铬工序' || this.actionType === '纵剪分条工序') {
|
||||
this.useSpecialSplit = true
|
||||
}
|
||||
// 从map中获取默认的查询参数
|
||||
|
||||
@@ -306,7 +306,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
<el-empty description="暂无进行中的镀锌工序" />
|
||||
<el-empty :description="`暂无进行中的${label}`" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -642,6 +642,12 @@ export default {
|
||||
border: '1px solid blue',
|
||||
color: '#fff'
|
||||
}
|
||||
} else if (this.acidRollingActionType == 506) {
|
||||
return {
|
||||
backgroundColor: '#2bf',
|
||||
border: '1px solid #2bf',
|
||||
color: '#fff'
|
||||
}
|
||||
} else {
|
||||
return {}
|
||||
}
|
||||
@@ -671,9 +677,12 @@ export default {
|
||||
},
|
||||
currentTab: {
|
||||
handler(newVal) {
|
||||
if (newVal) {
|
||||
if (newVal && newVal != 0) {
|
||||
this.materialQueryParams.warehouseId = newVal
|
||||
} else {
|
||||
this.materialQueryParams.warehouseId = ''
|
||||
}
|
||||
|
||||
this.getMaterialCoil()
|
||||
},
|
||||
immediate: true
|
||||
|
||||
Reference in New Issue
Block a user