15 lines
384 B
JavaScript
15 lines
384 B
JavaScript
import ngModule from '../module';
|
|
import Section from 'salix/components/section';
|
|
|
|
export default class Controller extends Section {
|
|
setDefaultDate(hasData) {
|
|
if (hasData && !this.clientUnpaid.dated)
|
|
this.clientUnpaid.dated = Date.vnNew();
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnClientUnpaid', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|