32 lines
836 B
JavaScript
32 lines
836 B
JavaScript
( async function(){
|
|
|
|
let app = new Vue({
|
|
el : '#stitchingReceiveInventory',
|
|
data:{
|
|
bundles : [],
|
|
masterBundle : {}
|
|
},
|
|
methods : {
|
|
OnSelect : function ( id, masterBundle ){
|
|
this.masterBundle = masterBundle;
|
|
$.ajax({
|
|
url: `/ctp/rest/bundles/find-by-master/${id}`,
|
|
method: 'GET',
|
|
contentType: 'application/json',
|
|
dataType: 'json',
|
|
success: ( data ) => {
|
|
this.bundles = data;
|
|
},
|
|
error : function ( err ){
|
|
alert( err );
|
|
}
|
|
})
|
|
}
|
|
},
|
|
mounted : function () {
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})(jQuery) |