47 lines
861 B
JavaScript
47 lines
861 B
JavaScript
|
|
$(document).on('click', '#addEquip', function (){
|
||
|
|
$.ajax({
|
||
|
|
url: '/equip/cellPhoneEditModal',
|
||
|
|
type: 'GET',
|
||
|
|
dataType:"html",
|
||
|
|
success: function(html){
|
||
|
|
$("#cellPhoneEditModalContent").empty().append(html);
|
||
|
|
$("#cellPhoneEditModal").modal('show');
|
||
|
|
},
|
||
|
|
error:function(){
|
||
|
|
|
||
|
|
}
|
||
|
|
});
|
||
|
|
})
|
||
|
|
|
||
|
|
$(document).on('change', '#mgtOrgan', function (){
|
||
|
|
const ogCd = $(this).val();
|
||
|
|
if(ogCd != ''){
|
||
|
|
changeManager(ogCd);
|
||
|
|
}else{
|
||
|
|
$("#pUserSeq").prop('disabled',true);
|
||
|
|
$("#pUserSeq").val('');
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
|
||
|
|
function changeManager(ogCd){
|
||
|
|
$.ajax({
|
||
|
|
url: '/target/partInfoSelecBox',
|
||
|
|
data: {
|
||
|
|
ogCd,
|
||
|
|
},
|
||
|
|
type: 'GET',
|
||
|
|
dataType:"html",
|
||
|
|
success: function(html){
|
||
|
|
$("#pUserSeq").empty().append(html);
|
||
|
|
$("#pUserSeq").prop('disabled',false);
|
||
|
|
},
|
||
|
|
error:function(){
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|