2018-04-10 05:48:04 +00:00
|
|
|
import ngModule from '../module';
|
2020-03-18 07:35:59 +00:00
|
|
|
import Section from 'salix/components/section';
|
2018-04-10 05:48:04 +00:00
|
|
|
|
2020-03-18 07:35:59 +00:00
|
|
|
class Controller extends Section {
|
2018-04-10 05:48:04 +00:00
|
|
|
set ticket(data) {
|
2018-05-16 06:13:39 +00:00
|
|
|
if (!data) return;
|
|
|
|
|
2018-04-10 05:48:04 +00:00
|
|
|
this.data = Object.assign({}, data);
|
|
|
|
}
|
|
|
|
|
2018-05-16 06:13:39 +00:00
|
|
|
registerChild(child) {
|
|
|
|
this.child = child;
|
2018-04-10 05:48:04 +00:00
|
|
|
}
|
|
|
|
|
2020-02-07 12:38:32 +00:00
|
|
|
onStepChange() {
|
|
|
|
return this.child.onStepChange();
|
2018-05-16 06:13:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
onSubmit() {
|
|
|
|
this.child.onSubmit();
|
2018-04-10 05:48:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-24 12:22:30 +00:00
|
|
|
ngModule.vnComponent('vnTicketBasicData', {
|
2018-05-25 08:03:45 +00:00
|
|
|
template: require('./index.html'),
|
2018-04-10 05:48:04 +00:00
|
|
|
bindings: {
|
|
|
|
ticket: '<'
|
|
|
|
},
|
|
|
|
controller: Controller
|
|
|
|
});
|