fix edit vehicle

This commit is contained in:
Pringgosutono
2025-09-10 08:51:52 +07:00
parent e49309f709
commit 48fe5e3ef6

View File

@ -1317,6 +1317,9 @@
$('#mdlEdtVhc').data('id', data.vid); $('#mdlEdtVhc').data('id', data.vid);
$('#mdlEdtVhc').modal('show'); $('#mdlEdtVhc').modal('show');
$('#edt-dc_code').val(data?.dc_code).trigger('change');
$('#edt-pool_code').val(data?.pool_code).trigger('change');
}, },
removeOptionDevice: function(type) { removeOptionDevice: function(type) {
$(`#edt-deviceid option[data-type='${type}']`).remove(); $(`#edt-deviceid option[data-type='${type}']`).remove();