|
|
@@ -97,16 +97,19 @@ var bootstrap = function ($, learun) { |
|
|
|
initData: function () { |
|
|
|
|
|
|
|
if (!!keyValue) { |
|
|
|
$.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Accommodation/GetFormData?keyValue=' + keyValue, function (data) { |
|
|
|
for (var id in data) { |
|
|
|
if (!!data[id].length && data[id].length > 0) { |
|
|
|
$('#' + id).jfGridSet('refreshdata', data[id]); |
|
|
|
$.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Accommodation/GetFormData?keyValue=' + keyValue, |
|
|
|
function(data) { |
|
|
|
for (var id in data) { |
|
|
|
if (!!data[id].length && data[id].length > 0) { |
|
|
|
$('#' + id).jfGridSet('refreshdata', data[id]); |
|
|
|
} else { |
|
|
|
$('[data-table="' + id + '"]').lrSetFormData(data[id]); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
$('[data-table="' + id + '"]').lrSetFormData(data[id]); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#BuildType').lrselectSet('4'); |
|
|
|
$('#BuildType').attr('readonly', 'readonly'); |
|
|
|
} |
|
|
|
}, |
|
|
|
initSelect: function () { |
|
|
|