Browse Source

update integration material

pull/1/head
Muhammad Sulaiman Yusuf 2 years ago
parent
commit
c6aa73f388
  1. 16
      src/function/materialResource.js

16
src/function/materialResource.js

@ -137,16 +137,20 @@ $(document).ready(function () {
placeholder: 'Pilih material',
allowClear: true,
ajax: {
url: `${adwIntegrationUrl}stock_master`,
type: "GET",
processData: false,
contentType: false,
url: `${adwIntegrationUrl}/request-material/get-material-integration`,
type: "get",
data: function (params) {
var query = {
'name': params.term,
}
return query;
},
headers: {
'Authorization': adwAuthToken,
'Authorization': `Bearer ${token}`
},
processResults: function (data) {
var dataIntegrasiMaterial = [];
if (data) {
if (data.data) {
for(var i = 0; i < data.data.length; i++){
var newData = {
id: data.data[i].description,

Loading…
Cancel
Save