feat(wms/coil): 酸轧自动填写冷卷号,自动填写最优项
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user