#1306 Renombrar controladores, rutas y carpeta
This commit is contained in:
parent
ab70201795
commit
d52f5077b0
|
@ -8,7 +8,7 @@ describe('Ticket Edit basic data path', () => {
|
||||||
return nightmare
|
return nightmare
|
||||||
.loginAndModule('employee', 'ticket')
|
.loginAndModule('employee', 'ticket')
|
||||||
.accessToSearchResult('id:11')
|
.accessToSearchResult('id:11')
|
||||||
.accessToSection('ticket.card.data.stepOne');
|
.accessToSection('ticket.card.basicData.stepOne');
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`should edit the client and address of the ticket then click next`, async() => {
|
it(`should edit the client and address of the ticket then click next`, async() => {
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
<vn-step-control
|
<vn-step-control
|
||||||
step-count="10"
|
step-count="10"
|
||||||
steps="[
|
steps="[
|
||||||
{name: 'Basic data', state: 'ticket.card.data.stepOne'},
|
{name: 'Basic data', state: 'ticket.card.basicData.stepOne'},
|
||||||
{name: 'Price difference', state: 'ticket.card.data.stepTwo'},
|
{name: 'Price difference', state: 'ticket.card.basicData.stepTwo'},
|
||||||
{name: 'Charge', state: 'ticket.card.data.stepThree'}]"
|
{name: 'Charge', state: 'ticket.card.basicData.stepThree'}]"
|
||||||
on-step-change="$ctrl.onStepChange(state)"
|
on-step-change="$ctrl.onStepChange(state)"
|
||||||
on-step-end="$ctrl.onSubmit()">
|
on-step-end="$ctrl.onSubmit()">
|
||||||
</vn-step-control>
|
</vn-step-control>
|
|
@ -27,7 +27,7 @@ class Controller {
|
||||||
|
|
||||||
Controller.$inject = ['$scope', '$state'];
|
Controller.$inject = ['$scope', '$state'];
|
||||||
|
|
||||||
ngModule.component('vnTicketData', {
|
ngModule.component('vnTicketBasicData', {
|
||||||
template: require('./index.html'),
|
template: require('./index.html'),
|
||||||
bindings: {
|
bindings: {
|
||||||
ticket: '<'
|
ticket: '<'
|
|
@ -159,13 +159,13 @@ class Controller {
|
||||||
|
|
||||||
Controller.$inject = ['$scope', '$http', '$translate', 'vnApp'];
|
Controller.$inject = ['$scope', '$http', '$translate', 'vnApp'];
|
||||||
|
|
||||||
ngModule.component('vnTicketDataStepOne', {
|
ngModule.component('vnTicketBasicDataStepOne', {
|
||||||
template: require('./index.html'),
|
template: require('./index.html'),
|
||||||
controller: Controller,
|
controller: Controller,
|
||||||
bindings: {
|
bindings: {
|
||||||
ticket: '<'
|
ticket: '<'
|
||||||
},
|
},
|
||||||
require: {
|
require: {
|
||||||
data: '^vnTicketData'
|
data: '^vnTicketBasicData'
|
||||||
}
|
}
|
||||||
});
|
});
|
|
@ -1,7 +1,7 @@
|
||||||
import './index.js';
|
import './index.js';
|
||||||
|
|
||||||
describe('Ticket', () => {
|
describe('Ticket', () => {
|
||||||
describe('Component vnTicketDataStepOne', () => {
|
describe('Component vnTicketBasicDataStepOne', () => {
|
||||||
let $state;
|
let $state;
|
||||||
let controller;
|
let controller;
|
||||||
let $httpBackend;
|
let $httpBackend;
|
||||||
|
@ -11,7 +11,7 @@ describe('Ticket', () => {
|
||||||
beforeEach(angular.mock.inject(($componentController, _$state_, _$httpBackend_) => {
|
beforeEach(angular.mock.inject(($componentController, _$state_, _$httpBackend_) => {
|
||||||
$state = _$state_;
|
$state = _$state_;
|
||||||
$httpBackend = _$httpBackend_;
|
$httpBackend = _$httpBackend_;
|
||||||
controller = $componentController('vnTicketDataStepOne', {$state});
|
controller = $componentController('vnTicketBasicDataStepOne', {$state});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
describe('ticket() setter', () => {
|
describe('ticket() setter', () => {
|
|
@ -54,7 +54,7 @@ class Controller {
|
||||||
|
|
||||||
Controller.$inject = ['$http', '$scope', '$state', '$translate', 'vnApp'];
|
Controller.$inject = ['$http', '$scope', '$state', '$translate', 'vnApp'];
|
||||||
|
|
||||||
ngModule.component('vnTicketDataStepThree', {
|
ngModule.component('vnTicketBasicDataStepThree', {
|
||||||
template: require('./index.html'),
|
template: require('./index.html'),
|
||||||
controller: Controller,
|
controller: Controller,
|
||||||
bindings: {
|
bindings: {
|
||||||
|
@ -62,6 +62,6 @@ ngModule.component('vnTicketDataStepThree', {
|
||||||
},
|
},
|
||||||
require: {
|
require: {
|
||||||
card: '^vnTicketCard',
|
card: '^vnTicketCard',
|
||||||
data: '^vnTicketData'
|
data: '^vnTicketBasicData'
|
||||||
}
|
}
|
||||||
});
|
});
|
|
@ -1,7 +1,7 @@
|
||||||
import './index.js';
|
import './index.js';
|
||||||
|
|
||||||
describe('ticket', () => {
|
describe('ticket', () => {
|
||||||
describe('Component vnTicketDataStepThree', () => {
|
describe('Component vnTicketBasicDataStepThree', () => {
|
||||||
let now = Date.now();
|
let now = Date.now();
|
||||||
let $state;
|
let $state;
|
||||||
let controller;
|
let controller;
|
||||||
|
@ -16,7 +16,7 @@ describe('ticket', () => {
|
||||||
vnApp = _vnApp_;
|
vnApp = _vnApp_;
|
||||||
spyOn(vnApp, 'showError');
|
spyOn(vnApp, 'showError');
|
||||||
$httpBackend = _$httpBackend_;
|
$httpBackend = _$httpBackend_;
|
||||||
controller = $componentController('vnTicketDataStepThree', {$state});
|
controller = $componentController('vnTicketBasicDataStepThree', {$state});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
describe('onSubmit()', () => {
|
describe('onSubmit()', () => {
|
|
@ -46,13 +46,13 @@ class Controller {
|
||||||
|
|
||||||
Controller.$inject = ['$http'];
|
Controller.$inject = ['$http'];
|
||||||
|
|
||||||
ngModule.component('vnTicketDataStepTwo', {
|
ngModule.component('vnTicketBasicDataStepTwo', {
|
||||||
template: require('./index.html'),
|
template: require('./index.html'),
|
||||||
controller: Controller,
|
controller: Controller,
|
||||||
bindings: {
|
bindings: {
|
||||||
ticket: '<'
|
ticket: '<'
|
||||||
},
|
},
|
||||||
require: {
|
require: {
|
||||||
data: '^vnTicketData'
|
data: '^vnTicketBasicData'
|
||||||
}
|
}
|
||||||
});
|
});
|
|
@ -1,13 +1,13 @@
|
||||||
import './index.js';
|
import './index.js';
|
||||||
|
|
||||||
describe('Ticket', () => {
|
describe('Ticket', () => {
|
||||||
describe('Component vnTicketDataStepTwo', () => {
|
describe('Component vnTicketBasicDataStepTwo', () => {
|
||||||
let controller;
|
let controller;
|
||||||
|
|
||||||
beforeEach(ngModule('ticket'));
|
beforeEach(ngModule('ticket'));
|
||||||
|
|
||||||
beforeEach(angular.mock.inject($componentController => {
|
beforeEach(angular.mock.inject($componentController => {
|
||||||
controller = $componentController('vnTicketDataStepTwo');
|
controller = $componentController('vnTicketBasicDataStepTwo');
|
||||||
}));
|
}));
|
||||||
|
|
||||||
describe('getTotalPrice()', () => {
|
describe('getTotalPrice()', () => {
|
|
@ -10,10 +10,10 @@ import './descriptor-popover';
|
||||||
import './create/card';
|
import './create/card';
|
||||||
import './create/index';
|
import './create/index';
|
||||||
import './summary';
|
import './summary';
|
||||||
import './data';
|
import './basic-data';
|
||||||
import './data/step-one';
|
import './basic-data/step-one';
|
||||||
import './data/step-two';
|
import './basic-data/step-two';
|
||||||
import './data/step-three';
|
import './basic-data/step-three';
|
||||||
import './note';
|
import './note';
|
||||||
import './expedition';
|
import './expedition';
|
||||||
import './volume';
|
import './volume';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"validations": true,
|
"validations": true,
|
||||||
"dependencies": ["worker", "item", "client"],
|
"dependencies": ["worker", "item", "client"],
|
||||||
"menu": [
|
"menu": [
|
||||||
{"state": "ticket.card.data.stepOne", "icon": "settings"},
|
{"state": "ticket.card.basicData.stepOne", "icon": "settings"},
|
||||||
{"state": "ticket.card.sale", "icon": "icon-lines"},
|
{"state": "ticket.card.sale", "icon": "icon-lines"},
|
||||||
{"state": "ticket.card.observation", "icon": "insert_drive_file"},
|
{"state": "ticket.card.observation", "icon": "insert_drive_file"},
|
||||||
{"state": "ticket.card.volume", "icon": "icon-volume"},
|
{"state": "ticket.card.volume", "icon": "icon-volume"},
|
||||||
|
@ -49,33 +49,33 @@
|
||||||
"ticket": "$ctrl.ticket"
|
"ticket": "$ctrl.ticket"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"url" : "/data",
|
"url" : "/basic-data",
|
||||||
"state": "ticket.card.data",
|
"state": "ticket.card.basicData",
|
||||||
"component": "vn-ticket-data",
|
"component": "vn-ticket-basic-data",
|
||||||
"abstract": true,
|
"abstract": true,
|
||||||
"params": {
|
"params": {
|
||||||
"ticket": "$ctrl.ticket"
|
"ticket": "$ctrl.ticket"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"url" : "/step-one",
|
"url" : "/step-one",
|
||||||
"state": "ticket.card.data.stepOne",
|
"state": "ticket.card.basicData.stepOne",
|
||||||
"component": "vn-ticket-data-step-one",
|
"component": "vn-ticket-basic-data-step-one",
|
||||||
"description": "Basic data",
|
"description": "Basic data",
|
||||||
"params": {
|
"params": {
|
||||||
"ticket": "$ctrl.data"
|
"ticket": "$ctrl.data"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"url" : "/step-two",
|
"url" : "/step-two",
|
||||||
"state": "ticket.card.data.stepTwo",
|
"state": "ticket.card.basicData.stepTwo",
|
||||||
"component": "vn-ticket-data-step-two",
|
"component": "vn-ticket-basic-data-step-two",
|
||||||
"description": "Price difference",
|
"description": "Price difference",
|
||||||
"params": {
|
"params": {
|
||||||
"ticket": "$ctrl.data"
|
"ticket": "$ctrl.data"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"url" : "/step-three",
|
"url" : "/step-three",
|
||||||
"state": "ticket.card.data.stepThree",
|
"state": "ticket.card.basicData.stepThree",
|
||||||
"component": "vn-ticket-data-step-three",
|
"component": "vn-ticket-basic-data-step-three",
|
||||||
"description": "Charge",
|
"description": "Charge",
|
||||||
"params": {
|
"params": {
|
||||||
"ticket": "$ctrl.data"
|
"ticket": "$ctrl.data"
|
||||||
|
|
Loading…
Reference in New Issue