2022-11-17 22:31:48 +00:00
|
|
|
import './style.scss';
|
2015-09-22 07:20:47 +00:00
|
|
|
|
2022-11-16 01:44:39 +00:00
|
|
|
export default new Class({
|
2022-11-17 22:31:48 +00:00
|
|
|
Extends: Hedera.Form,
|
2022-11-28 08:51:31 +00:00
|
|
|
Template: require('./ui.xml'),
|
2016-10-04 15:27:49 +00:00
|
|
|
|
2022-11-28 08:51:31 +00:00
|
|
|
activate() {
|
2022-05-30 01:30:33 +00:00
|
|
|
this.$.lot.assign({
|
|
|
|
date: new Date(),
|
|
|
|
useIds: false
|
|
|
|
});
|
2022-11-28 08:51:31 +00:00
|
|
|
},
|
2016-10-04 15:27:49 +00:00
|
|
|
|
2022-11-28 08:51:31 +00:00
|
|
|
onConfigChange() {
|
2022-05-30 01:30:33 +00:00
|
|
|
this.$.lot.assignLot(this.$.config);
|
2022-11-28 08:51:31 +00:00
|
|
|
},
|
2015-09-22 07:20:47 +00:00
|
|
|
|
2022-11-28 08:51:31 +00:00
|
|
|
onPreviewClick() {
|
2022-05-30 01:30:33 +00:00
|
|
|
this.gui.openReport('shelves-report', this.$.lot);
|
2015-10-21 23:42:52 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|