Update noInventario added
This commit is contained in:
@@ -65,7 +65,6 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
user: null
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const config = {
|
||||
//api: 'https://venus.acatlan.unam.mx/censo-pruebas/',
|
||||
api: 'https://venus.acatlan.unam.mx/censo_orion',
|
||||
//api: 'http://localhost:3000',
|
||||
// api: 'https://venus.acatlan.unam.mx/censo_orion',
|
||||
api: 'http://localhost:3000',
|
||||
}
|
||||
|
||||
module.exports = config
|
||||
|
||||
@@ -32,13 +32,13 @@
|
||||
>
|
||||
<h6 class="mb-3"> Numero de inventario:</h6>
|
||||
<input
|
||||
v-model="equipo.noInventario"
|
||||
v-model="noInventarioAdd"
|
||||
type="text"
|
||||
class="pb-2 mb-5"
|
||||
placeholder="Introduzca el campo nuevo:"
|
||||
/>
|
||||
|
||||
<h6 class="mb-3"> Numero de inventario:</h6>
|
||||
<h6 class="mb-3"> Numero de resguardo:</h6>
|
||||
<input
|
||||
v-model="equipo.noResguardo"
|
||||
type="text"
|
||||
@@ -262,7 +262,8 @@ export default {
|
||||
loading: true,
|
||||
status: null,
|
||||
equipo: {},
|
||||
respuesta: {}
|
||||
respuesta: {},
|
||||
noInventarioAdd: null
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -281,6 +282,7 @@ export default {
|
||||
})
|
||||
.then( res => {
|
||||
this.equipo = res.data.equipo[0];
|
||||
this.noInventarioAdd = this.equipo.noInventario;
|
||||
this.getAll();
|
||||
this.loading = false;
|
||||
})
|
||||
@@ -323,6 +325,7 @@ export default {
|
||||
cancelButtonText: 'Cancelar'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
this.equipo.noInventarioAdd = this.noInventarioAdd;
|
||||
axios
|
||||
.put(`${ config.api }/api/updateEquip`, this.equipo, {
|
||||
headers: {
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
>
|
||||
<h6>Número de inventario:</h6>
|
||||
<input
|
||||
v-model="printer.noInventario"
|
||||
v-model="noInventarioAdd"
|
||||
type="text"
|
||||
class="pb-2 mb-5"
|
||||
placeholder="Introduzca el campo nuevo:"
|
||||
@@ -210,7 +210,8 @@ export default {
|
||||
loading: true,
|
||||
status: null,
|
||||
printer: {},
|
||||
respuesta: {}
|
||||
respuesta: {},
|
||||
noInventarioAdd: null
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -229,6 +230,7 @@ export default {
|
||||
})
|
||||
.then( res => {
|
||||
this.printer = res.data.printer[0];
|
||||
this.noInventarioAdd = this.printer.noInventario;
|
||||
this.getAll();
|
||||
this.loading = false;
|
||||
})
|
||||
@@ -271,6 +273,7 @@ export default {
|
||||
cancelButtonText: 'Cancelar'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
this.printer.noInventarioAdd = this.noInventarioAdd;
|
||||
axios
|
||||
.put(`${ config.api }/api/updatePrinter`, this.printer, {
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user