|
@@ -28,17 +28,19 @@ var bootstrap = function ($, learun) { |
|
|
init: function () { |
|
|
init: function () { |
|
|
$('.lr-form-wrap').lrscroll(); |
|
|
$('.lr-form-wrap').lrscroll(); |
|
|
$("#detailadd").on('click', function () { |
|
|
$("#detailadd").on('click', function () { |
|
|
learun.layerForm({ |
|
|
|
|
|
|
|
|
selectedRow = null; |
|
|
|
|
|
learun.layerFormForPercent({ |
|
|
id: 'formitem', |
|
|
id: 'formitem', |
|
|
title: '新增明细', |
|
|
title: '新增明细', |
|
|
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsOutApply/IndexTwo', |
|
|
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsOutApply/IndexTwo', |
|
|
width: 860, |
|
|
|
|
|
height: 600, |
|
|
|
|
|
|
|
|
width: "60%", |
|
|
|
|
|
height: "70%", |
|
|
callBack: function (id) { |
|
|
callBack: function (id) { |
|
|
return top[id].acceptClick(refreshGirdData); |
|
|
return top[id].acceptClick(refreshGirdData); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
$("#detaildel").on('click', function () { |
|
|
$("#detaildel").on('click', function () { |
|
|
var keyValue = $('#Ass_AssetsOutItemApply').jfGridValue('AOICode'); |
|
|
var keyValue = $('#Ass_AssetsOutItemApply').jfGridValue('AOICode'); |
|
|
if (learun.checkrow(keyValue)) { |
|
|
if (learun.checkrow(keyValue)) { |
|
@@ -109,7 +111,7 @@ var bootstrap = function ($, learun) { |
|
|
param: {} |
|
|
param: {} |
|
|
}); |
|
|
}); |
|
|
$('#AOStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' }); |
|
|
$('#AOStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' }); |
|
|
console.log($('#Ass_AssetsOutItemApply').val()) |
|
|
|
|
|
|
|
|
|
|
|
$('#Ass_AssetsOutItemApply').jfGrid({ |
|
|
$('#Ass_AssetsOutItemApply').jfGrid({ |
|
|
headData: [ |
|
|
headData: [ |
|
|
{ |
|
|
{ |
|
@@ -183,7 +185,7 @@ var bootstrap = function ($, learun) { |
|
|
$.lrSetForm(top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsOutApply/GetFormData?keyValue=' + keyValue, function (data) { |
|
|
$.lrSetForm(top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsOutApply/GetFormData?keyValue=' + keyValue, function (data) { |
|
|
for (var id in data) { |
|
|
for (var id in data) { |
|
|
if (!!data[id].length && data[id].length > 0) { |
|
|
if (!!data[id].length && data[id].length > 0) { |
|
|
//$('#' + id).jfGridSet('refreshdata', data[id]); |
|
|
|
|
|
|
|
|
$('#' + id).jfGridSet('refreshdata', data[id]); |
|
|
tempdatra = data[id]; |
|
|
tempdatra = data[id]; |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
@@ -239,7 +241,7 @@ var bootstrap = function ($, learun) { |
|
|
$('#Ass_AssetsOutItemApply').jfGridSet('refreshdata', tempdatra.sort(sortNumber)); |
|
|
$('#Ass_AssetsOutItemApply').jfGridSet('refreshdata', tempdatra.sort(sortNumber)); |
|
|
}; |
|
|
}; |
|
|
function sortNumber(a, b) { |
|
|
function sortNumber(a, b) { |
|
|
return 1;//a.AAIOrder - b.AAIOrder; |
|
|
|
|
|
|
|
|
return a.AAIOrder - b.AAIOrder; |
|
|
} |
|
|
} |
|
|
// 设置表单数据 |
|
|
// 设置表单数据 |
|
|
setFormData = function (processId) { |
|
|
setFormData = function (processId) { |
|
|