add new fictures

This commit is contained in:
2024-04-02 22:50:36 +03:00
parent 294d646bb6
commit 34ea972560
6 changed files with 89 additions and 41 deletions

35
static/js/allmatc.js Normal file
View File

@@ -0,0 +1,35 @@
function getAllData(){
$.ajax({
url: "/getall",
type: "get",
contentType: 'application/json',
dataType: 'json',
success: function(response){
console.log(response)
let data = response;
$('#datatable tbody').empty();
$.each(response, function(index, item) {
$('#datatable tbody').append(
'<tr>' +
'<td>' + item.invNumber + '</td>' +
'<td>' + item.nazvanie + '</td>' +
'<td>' + item.raspologenie + '</td>' +
'<td>' + item.numberved + '</td>' +
'<td>' + item.buhnumberpp + '</td>' +
'<td>' + item.kolichestvo + '</td>' +
'<td>' + item.balancenumber + '</td>' +
'</tr>'
);
})
},
})
}
$(document).ready(function(){
getAllData()
})