#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
|
||||
.loginAndModule('employee', 'ticket')
|
||||
.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() => {
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
<vn-step-control
|
||||
step-count="10"
|
||||
steps="[
|
||||
{name: 'Basic data', state: 'ticket.card.data.stepOne'},
|
||||
{name: 'Price difference', state: 'ticket.card.data.stepTwo'},
|
||||
{name: 'Charge', state: 'ticket.card.data.stepThree'}]"
|
||||
{name: 'Basic data', state: 'ticket.card.basicData.stepOne'},
|
||||
{name: 'Price difference', state: 'ticket.card.basicData.stepTwo'},
|
||||
{name: 'Charge', state: 'ticket.card.basicData.stepThree'}]"
|
||||
on-step-change="$ctrl.onStepChange(state)"
|
||||
on-step-end="$ctrl.onSubmit()">
|
||||
</vn-step-control>
|
|
@ -27,7 +27,7 @@ class Controller {
|
|||
|
||||
Controller.$inject = ['$scope', '$state'];
|
||||
|
||||
ngModule.component('vnTicketData', {
|
||||
ngModule.component('vnTicketBasicData', {
|
||||
template: require('./index.html'),
|
||||
bindings: {
|
||||
ticket: '<'
|
|
@ -159,13 +159,13 @@ class Controller {
|
|||
|
||||
Controller.$inject = ['$scope', '$http', '$translate', 'vnApp'];
|
||||
|
||||
ngModule.component('vnTicketDataStepOne', {
|
||||
ngModule.component('vnTicketBasicDataStepOne', {
|
||||
template: require('./index.html'),
|
||||
controller: Controller,
|
||||
bindings: {
|
||||
ticket: '<'
|
||||
},
|
||||
require: {
|
||||
data: '^vnTicketData'
|
||||
data: '^vnTicketBasicData'
|
||||
}
|
||||
});
|
|
@ -1,7 +1,7 @@
|
|||
import './index.js';
|
||||
|
||||
describe('Ticket', () => {
|
||||
describe('Component vnTicketDataStepOne', () => {
|
||||
describe('Component vnTicketBasicDataStepOne', () => {
|
||||
let $state;
|
||||
let controller;
|
||||
let $httpBackend;
|
||||
|
@ -11,7 +11,7 @@ describe('Ticket', () => {
|
|||
beforeEach(angular.mock.inject(($componentController, _$state_, _$httpBackend_) => {
|
||||
$state = _$state_;
|
||||
$httpBackend = _$httpBackend_;
|
||||
controller = $componentController('vnTicketDataStepOne', {$state});
|
||||
controller = $componentController('vnTicketBasicDataStepOne', {$state});
|
||||
}));
|
||||
|
||||
describe('ticket() setter', () => {
|
|
@ -54,7 +54,7 @@ class Controller {
|
|||
|
||||
Controller.$inject = ['$http', '$scope', '$state', '$translate', 'vnApp'];
|
||||
|
||||
ngModule.component('vnTicketDataStepThree', {
|
||||
ngModule.component('vnTicketBasicDataStepThree', {
|
||||
template: require('./index.html'),
|
||||
controller: Controller,
|
||||
bindings: {
|
||||
|
@ -62,6 +62,6 @@ ngModule.component('vnTicketDataStepThree', {
|
|||
},
|
||||
require: {
|
||||
card: '^vnTicketCard',
|
||||
data: '^vnTicketData'
|
||||
data: '^vnTicketBasicData'
|
||||
}
|
||||
});
|
|
@ -1,7 +1,7 @@
|
|||
import './index.js';
|
||||
|
||||
describe('ticket', () => {
|
||||
describe('Component vnTicketDataStepThree', () => {
|
||||
describe('Component vnTicketBasicDataStepThree', () => {
|
||||
let now = Date.now();
|
||||
let $state;
|
||||
let controller;
|
||||
|
@ -16,7 +16,7 @@ describe('ticket', () => {
|
|||
vnApp = _vnApp_;
|
||||
spyOn(vnApp, 'showError');
|
||||
$httpBackend = _$httpBackend_;
|
||||
controller = $componentController('vnTicketDataStepThree', {$state});
|
||||
controller = $componentController('vnTicketBasicDataStepThree', {$state});
|
||||
}));
|
||||
|
||||
describe('onSubmit()', () => {
|
|
@ -46,13 +46,13 @@ class Controller {
|
|||
|
||||
Controller.$inject = ['$http'];
|
||||
|
||||
ngModule.component('vnTicketDataStepTwo', {
|
||||
ngModule.component('vnTicketBasicDataStepTwo', {
|
||||
template: require('./index.html'),
|
||||
controller: Controller,
|
||||
bindings: {
|
||||
ticket: '<'
|
||||
},
|
||||
require: {
|
||||
data: '^vnTicketData'
|
||||
data: '^vnTicketBasicData'
|
||||
}
|
||||
});
|
|
@ -1,13 +1,13 @@
|
|||
import './index.js';
|
||||
|
||||
describe('Ticket', () => {
|
||||
describe('Component vnTicketDataStepTwo', () => {
|
||||
describe('Component vnTicketBasicDataStepTwo', () => {
|
||||
let controller;
|
||||
|
||||
beforeEach(ngModule('ticket'));
|
||||
|
||||
beforeEach(angular.mock.inject($componentController => {
|
||||
controller = $componentController('vnTicketDataStepTwo');
|
||||
controller = $componentController('vnTicketBasicDataStepTwo');
|
||||
}));
|
||||
|
||||
describe('getTotalPrice()', () => {
|
|
@ -10,10 +10,10 @@ import './descriptor-popover';
|
|||
import './create/card';
|
||||
import './create/index';
|
||||
import './summary';
|
||||
import './data';
|
||||
import './data/step-one';
|
||||
import './data/step-two';
|
||||
import './data/step-three';
|
||||
import './basic-data';
|
||||
import './basic-data/step-one';
|
||||
import './basic-data/step-two';
|
||||
import './basic-data/step-three';
|
||||
import './note';
|
||||
import './expedition';
|
||||
import './volume';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"validations": true,
|
||||
"dependencies": ["worker", "item", "client"],
|
||||
"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.observation", "icon": "insert_drive_file"},
|
||||
{"state": "ticket.card.volume", "icon": "icon-volume"},
|
||||
|
@ -49,33 +49,33 @@
|
|||
"ticket": "$ctrl.ticket"
|
||||
}
|
||||
}, {
|
||||
"url" : "/data",
|
||||
"state": "ticket.card.data",
|
||||
"component": "vn-ticket-data",
|
||||
"url" : "/basic-data",
|
||||
"state": "ticket.card.basicData",
|
||||
"component": "vn-ticket-basic-data",
|
||||
"abstract": true,
|
||||
"params": {
|
||||
"ticket": "$ctrl.ticket"
|
||||
}
|
||||
}, {
|
||||
"url" : "/step-one",
|
||||
"state": "ticket.card.data.stepOne",
|
||||
"component": "vn-ticket-data-step-one",
|
||||
"state": "ticket.card.basicData.stepOne",
|
||||
"component": "vn-ticket-basic-data-step-one",
|
||||
"description": "Basic data",
|
||||
"params": {
|
||||
"ticket": "$ctrl.data"
|
||||
}
|
||||
}, {
|
||||
"url" : "/step-two",
|
||||
"state": "ticket.card.data.stepTwo",
|
||||
"component": "vn-ticket-data-step-two",
|
||||
"state": "ticket.card.basicData.stepTwo",
|
||||
"component": "vn-ticket-basic-data-step-two",
|
||||
"description": "Price difference",
|
||||
"params": {
|
||||
"ticket": "$ctrl.data"
|
||||
}
|
||||
}, {
|
||||
"url" : "/step-three",
|
||||
"state": "ticket.card.data.stepThree",
|
||||
"component": "vn-ticket-data-step-three",
|
||||
"state": "ticket.card.basicData.stepThree",
|
||||
"component": "vn-ticket-basic-data-step-three",
|
||||
"description": "Charge",
|
||||
"params": {
|
||||
"ticket": "$ctrl.data"
|
||||
|
|
Loading…
Reference in New Issue