mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
ot
This commit is contained in:
31
httpdocs/assets/js/safekat/pages/produccion/ot.js
Normal file
31
httpdocs/assets/js/safekat/pages/produccion/ot.js
Normal file
@ -0,0 +1,31 @@
|
||||
import Ajax from "../../components/ajax.js"
|
||||
|
||||
class OrdenTrabajo
|
||||
{
|
||||
constructor(domItem) {
|
||||
this.item = domItem
|
||||
this.otForm = this.item.find("#ot-edit-form")
|
||||
this.modelId = this.item.data("id");
|
||||
}
|
||||
|
||||
init(){
|
||||
console.log(this.getFormData())
|
||||
}
|
||||
getFormData() {
|
||||
let data = {}
|
||||
this.otForm.serializeArray().forEach((e) => {
|
||||
data[e.name] = e.value
|
||||
}
|
||||
)
|
||||
return data
|
||||
}
|
||||
_handleGetData(){
|
||||
const ajax = new Ajax(`/produccion/ordentrabajo/${this.modelId}`)
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
export default OrdenTrabajo;
|
||||
Reference in New Issue
Block a user