|
|
|
@ -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, |
|
|
|
|