fix(coil): 修复工序面板显示及仓库选择逻辑

修复镀锌工序面板中无进行中工序的显示问题,使用动态label替代硬编码
修复currentTab为0时仓库ID未清空的问题
添加纵剪分条工序的仓库选项并更新特殊分割逻辑
This commit is contained in:
砂糖
2026-03-13 11:25:00 +08:00
parent f4be9312c3
commit 60576864bf
2 changed files with 19 additions and 3 deletions

View File

@@ -54,9 +54,16 @@
{value: '1988151076996706306', label: '镀铬原料库'}, {value: '1988151076996706306', label: '镀铬原料库'},
{value: '1988151132361519105', 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 this.useSpecialSplit = true
} }
// 从map中获取默认的查询参数 // 从map中获取默认的查询参数

View File

@@ -306,7 +306,7 @@
</div> </div>
</div> </div>
<div v-else> <div v-else>
<el-empty description="暂无进行中的镀锌工序" /> <el-empty :description="`暂无进行中的${label}`" />
</div> </div>
</div> </div>
@@ -642,6 +642,12 @@ export default {
border: '1px solid blue', border: '1px solid blue',
color: '#fff' color: '#fff'
} }
} else if (this.acidRollingActionType == 506) {
return {
backgroundColor: '#2bf',
border: '1px solid #2bf',
color: '#fff'
}
} else { } else {
return {} return {}
} }
@@ -671,9 +677,12 @@ export default {
}, },
currentTab: { currentTab: {
handler(newVal) { handler(newVal) {
if (newVal) { if (newVal && newVal != 0) {
this.materialQueryParams.warehouseId = newVal this.materialQueryParams.warehouseId = newVal
} else {
this.materialQueryParams.warehouseId = ''
} }
this.getMaterialCoil() this.getMaterialCoil()
}, },
immediate: true immediate: true