Commit 743cf3dc43571b1b4f8c2b8bbb2658368e64fcb7
Exists in
master
Merge branch 'master' into 'master'
Master(efernandez) See merge request modulos-npm/foca-busqueda-cliente!7
Showing
4 changed files
Show diff stats
.gitignore
1 | /node_modules | 1 | /node_modules |
2 | /dist | 2 | /dist |
3 | /tmp | 3 | /tmp |
4 | package-lock\.json | 4 | package-lock\.json |
5 | /src/etc/develop.js | ||
5 | 6 |
package.json
1 | { | 1 | { |
2 | "name": "foca-busqueda-cliente", | 2 | "name": "foca-busqueda-cliente", |
3 | "version": "1.0.0", | 3 | "version": "1.0.0", |
4 | "description": "Búsqueda de clientes", | 4 | "description": "Búsqueda de clientes", |
5 | "main": "dist/foca-abm-sectores.js", | 5 | "main": "dist/foca-abm-sectores.js", |
6 | "scripts": { | 6 | "scripts": { |
7 | "test": "echo \"Error: no test specified\" && exit 1", | 7 | "test": "echo \"Error: no test specified\" && exit 1", |
8 | "compile": "gulp uglify", | 8 | "compile": "gulp uglify", |
9 | "postinstall": "npm run compile && gulp clean-post-install", | 9 | "postinstall": "npm run compile && gulp clean-post-install", |
10 | "install-dev": "npm install -D angular bootstrap angular-ui-bootstrap ui-bootstrap4 font-awesom jquery pre-commit jshint pump jasmine-core gulp gulp-connect gulp-angular-templatecache gulp-concat gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-uglify-es gulp-clean" | 10 | "install-dev": "npm install -D angular bootstrap angular-ui-bootstrap ui-bootstrap4 font-awesom jquery pre-commit jshint pump jasmine-core gulp gulp-connect gulp-angular-templatecache gulp-concat gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-uglify-es gulp-clean" |
11 | }, | 11 | }, |
12 | "repository": { | 12 | "repository": { |
13 | "type": "git", | 13 | "type": "git", |
14 | "url": "https://192.168.0.11/modulos-npm/foca-busqueda-cliente.git" | 14 | "url": "https://debo.suite.repo/modulos-npm/foca-busqueda-cliente.git" |
15 | }, | 15 | }, |
16 | "author": "Foca Software", | 16 | "author": "Foca Software", |
17 | "license": "ISC", | 17 | "license": "ISC", |
18 | "peerDependencies": { | 18 | "peerDependencies": { |
19 | "angular": "^1.7.x", | 19 | "angular": "^1.7.x", |
20 | "bootstrap": "^4.1.x", | 20 | "bootstrap": "^4.1.x", |
21 | "jquery": "^3.3.x", | 21 | "jquery": "^3.3.x", |
22 | "font-awesome": "^4.7.x", | 22 | "font-awesome": "^4.7.x", |
23 | "gulp": "^3.9.x", | 23 | "gulp": "^3.9.x", |
24 | "gulp-concat": "2.6.x", | 24 | "gulp-concat": "2.6.x", |
25 | "gulp-jshint": "^2.1.x", | 25 | "gulp-jshint": "^2.1.x", |
26 | "gulp-rename": "^1.4.x", | 26 | "gulp-rename": "^1.4.x", |
27 | "gulp-replace": "^1.0.x", | 27 | "gulp-replace": "^1.0.x", |
28 | "gulp-uglify-es": "^1.0.x", | 28 | "gulp-uglify-es": "^1.0.x", |
29 | "jshint": "^2.9.x", | 29 | "jshint": "^2.9.x", |
30 | "pump": "^3.0.x" | 30 | "pump": "^3.0.x" |
31 | }, | 31 | }, |
32 | "devDependencies": { | 32 | "devDependencies": { |
33 | "angular": "1.7.4", | 33 | "angular": "1.7.4", |
34 | "angular-ui-bootstrap": "2.5.6", | 34 | "angular-ui-bootstrap": "2.5.6", |
35 | "bootstrap": "4.1.3", | 35 | "bootstrap": "4.1.3", |
36 | "font-awesome": "4.7.0", | 36 | "font-awesome": "4.7.0", |
37 | "gulp": "^3.9.1", | 37 | "gulp": "^3.9.1", |
38 | "gulp-angular-templatecache": "2.2.1", | 38 | "gulp-angular-templatecache": "2.2.1", |
39 | "gulp-clean": "^0.4.0", | 39 | "gulp-clean": "^0.4.0", |
40 | "gulp-concat": "2.6.1", | 40 | "gulp-concat": "2.6.1", |
41 | "gulp-connect": "^5.6.1", | 41 | "gulp-connect": "^5.6.1", |
42 | "gulp-htmlmin": "5.0.1", | 42 | "gulp-htmlmin": "5.0.1", |
43 | "gulp-jshint": "2.1.0", | 43 | "gulp-jshint": "2.1.0", |
44 | "gulp-rename": "1.4.0", | 44 | "gulp-rename": "1.4.0", |
45 | "gulp-replace": "1.0.0", | 45 | "gulp-replace": "1.0.0", |
46 | "gulp-uglify-es": "1.0.4", | 46 | "gulp-uglify-es": "1.0.4", |
47 | "jasmine-core": "3.2.1", | 47 | "jasmine-core": "3.2.1", |
48 | "jquery": "3.3.1", | 48 | "jquery": "3.3.1", |
49 | "jshint": "2.9.6", | 49 | "jshint": "2.9.6", |
50 | "pre-commit": "^1.2.2", | 50 | "pre-commit": "^1.2.2", |
51 | "pump": "3.0.0", | 51 | "pump": "3.0.0", |
52 | "ui-bootstrap4": "^3.0.5" | 52 | "ui-bootstrap4": "^3.0.5" |
53 | } | 53 | } |
54 | } | 54 | } |
55 | 55 |
src/etc/develop.js
1 | angular.module('focaBusquedaCliente') | File was deleted | |
2 | .constant("API_ENDPOINT", { | ||
3 | 'URL': '//192.168.0.23:9900' | ||
4 | }); | ||
5 | 1 | angular.module('focaBusquedaCliente') |
src/views/foca-busqueda-cliente-modal.html
1 | <div class="modal-header"> | 1 | <div class="modal-header"> |
2 | <h3 class="modal-title">Búsqueda de cliente</h3> | 2 | <h3 class="modal-title">Búsqueda de cliente</h3> |
3 | </div> | 3 | </div> |
4 | <div class="modal-body"> | 4 | <div class="modal-body"> |
5 | <form> | 5 | <form> |
6 | <div class="form-group row"> | 6 | <div class="form-group row"> |
7 | <label class="col-sm-4 col-form-label">Nombre o CUIT</label> | 7 | <label class="col-sm-4 col-form-label">Nombre o CUIT</label> |
8 | <div class="col-sm-8"> | 8 | <div class="col-sm-8"> |
9 | <input | 9 | <input |
10 | type="text" | 10 | type="text" |
11 | ng-model="cliente" | 11 | ng-model="cliente" |
12 | placeholder="Nombre o CUIT" | 12 | placeholder="Nombre o CUIT" |
13 | uib-typeahead=" | 13 | uib-typeahead=" |
14 | cliente.nom + ' (' + cliente.cuit + ')' | 14 | cliente.cod + ' ' + cliente.nom + ' (' + cliente.cuit + ')' |
15 | for cliente | 15 | for cliente |
16 | in obtenerClientesPorNombreOCuit($viewValue) | 16 | in obtenerClientesPorNombreOCuit($viewValue) |
17 | " | 17 | " |
18 | typeahead-loading="cargandoClientes" | 18 | typeahead-loading="cargandoClientes" |
19 | typeahead-no-results="sinResultados" | 19 | typeahead-no-results="sinResultados" |
20 | typeahead-min-length="3" | 20 | typeahead-min-length="3" |
21 | typeahead-on-select="seleccionar($item)" | 21 | typeahead-on-select="seleccionar($item)" |
22 | class="form-control" | 22 | class="form-control" |
23 | > | 23 | > |
24 | <i ng-show="cargandoClientes" class="fas fa-sync"></i> | 24 | <i ng-show="cargandoClientes" class="fas fa-sync"></i> |
25 | <div ng-show="sinResultados"> | 25 | <div ng-show="sinResultados"> |
26 | <i class="fa fa-minus"></i> No se encontraron resultados. | 26 | <i class="fa fa-minus"></i> No se encontraron resultados. |
27 | </div> | 27 | </div> |
28 | </div> | 28 | </div> |
29 | </div> | 29 | </div> |
30 | </form> | 30 | </form> |
31 | </div> | 31 | </div> |
32 | <div class="modal-footer"> | 32 | <div class="modal-footer"> |
33 | <button class="btn" ng-click="aceptar()">Aceptar</button> | 33 | <button class="btn" ng-click="aceptar()">Aceptar</button> |
34 | <button class="btn" ng-click="cancelar()">Cancelar</button> | 34 | <button class="btn" ng-click="cancelar()">Cancelar</button> |
35 | </div> | 35 | </div> |
36 | 36 |