优化警告问题
This commit is contained in:
@@ -97,13 +97,12 @@ export class CodeField extends Component {
|
||||
} else {
|
||||
if (records[0].state === '占用') {
|
||||
// console.log('此托盘已占用,请检查')
|
||||
alert('此托盘已占用,请检查')
|
||||
alert('此托盘已占用,请检查');
|
||||
} else {
|
||||
// console.log('此托盘已损坏,请登记')
|
||||
alert('此托盘已损坏,请登记')
|
||||
alert('此托盘已损坏,请登记');
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
const searchInput = this.autocompleteContainerRef.el.querySelector("input");
|
||||
searchInput.value = barcode;
|
||||
@@ -114,7 +113,7 @@ export class CodeField extends Component {
|
||||
}
|
||||
}
|
||||
}
|
||||
CodeField.template = 'sf_machine_connect.CodeField'
|
||||
CodeField.template = 'sf_machine_connect.CodeField';
|
||||
// Register the field in the registry
|
||||
CodeField.props = standardFieldProps;
|
||||
registry.category("fields").add("code", CodeField);
|
||||
|
||||
Reference in New Issue
Block a user