feat(wms/coil): 酸轧自动填写冷卷号,自动填写最优项

This commit is contained in:
2026-06-26 09:29:59 +08:00
parent b3dbdaef58
commit c20965406f
2 changed files with 17 additions and 2 deletions

View File

@@ -88,7 +88,8 @@ const PLAN_FIELDS = [
export default {
name: 'L2MatchPanel',
props: {
hotCoilId: { type: String, default: '' }
hotCoilId: { type: String, default: '' },
autoFill: { type: Boolean, default: false }
},
data() {
return {
@@ -103,6 +104,11 @@ export default {
hotCoilId(val) {
if (val) this.loadBestMatch(val)
else this.bestMatch = null
},
bestMatch(val) {
if (val && this.autoFill) {
this.$emit('fill', val)
}
}
},
created() {