forked from verdnatura/hedera-web
23 lines
338 B
JavaScript
23 lines
338 B
JavaScript
import './style.scss';
|
|
|
|
export default new Class({
|
|
Extends: Hedera.Form,
|
|
Template: require('./ui.xml'),
|
|
|
|
activate() {
|
|
this.$.lot.assign({
|
|
date: new Date(),
|
|
useIds: false
|
|
});
|
|
},
|
|
|
|
onConfigChange() {
|
|
this.$.lot.assignLot(this.$.config);
|
|
},
|
|
|
|
onPreviewClick() {
|
|
this.gui.openReport('shelves-report', this.$.lot);
|
|
}
|
|
});
|
|
|