@@ -34,7 +34,7 @@ | |||||
<input id="AICode" type="text" class="form-control" /> | <input id="AICode" type="text" class="form-control" /> | ||||
</div>*@ | </div>*@ | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">金隅编号</div> | |||||
<div class="lr-form-item-title">资产编号</div> | |||||
<input id="AICodeNumJY" type="text" class="form-control" /> | <input id="AICodeNumJY" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
@@ -46,12 +46,12 @@ | |||||
<input id="AIASSName" type="text" class="form-control" /> | <input id="AIASSName" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">库房</div> | |||||
<div class="lr-form-item-title">楼宇名称</div> | |||||
<div id="AIIStorageId"></div> | <div id="AIIStorageId"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">库房位置</div> | |||||
<input id="AIIStoragePosition" type="text" class="form-control" /> | |||||
<div class="lr-form-item-title">房间号</div> | |||||
<div id="AIIStoragePosition"></div> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">资产状态</div> | <div class="lr-form-item-title">资产状态</div> | ||||
@@ -32,7 +32,26 @@ var bootstrap = function ($, learun) { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | ||||
page.search(queryJson); | page.search(queryJson); | ||||
}, 400, 400); | }, 400, 400); | ||||
$('#AIIStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' }); | |||||
//$('#AIIStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' }); | |||||
$('#AIIStorageId').lrselect({ | |||||
type: 'tree', | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/AssetManagementSystem/AssStorageRoom/GetTree', | |||||
param: {}, | |||||
select: function (val) { | |||||
var storageId = ""; | |||||
if (val) { | |||||
storageId = val.value; | |||||
} | |||||
$('#AIIStoragePosition').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/AssetManagementSystem/AssStorageRoom/GetListForStorageId?storageId=' + storageId, | |||||
text: "RCode", | |||||
value: "RId" | |||||
}); | |||||
} | |||||
}); | |||||
//房间 | |||||
$('#AIIStoragePosition').lrselect({ value: 'RId', text: 'RCode' }); | |||||
$('#AIASSState').lrDataItemSelect({ code: 'AssState' }); | $('#AIASSState').lrDataItemSelect({ code: 'AssState' }); | ||||
$('#AIDepartment').lrDepartmentSelect(); | $('#AIDepartment').lrDepartmentSelect(); | ||||
// 刷新 | // 刷新 | ||||
@@ -46,12 +46,12 @@ | |||||
<input id="AIASSName" type="text" class="form-control" /> | <input id="AIASSName" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">库房</div> | |||||
<div class="lr-form-item-title">楼宇名称</div> | |||||
<div id="AIIStorageId"></div> | <div id="AIIStorageId"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">库房位置</div> | |||||
<input id="AIIStoragePosition" type="text" class="form-control" /> | |||||
<div class="lr-form-item-title">房间号</div> | |||||
<div id="AIIStoragePosition"></div> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">资产状态</div> | <div class="lr-form-item-title">资产状态</div> | ||||
@@ -25,7 +25,26 @@ var bootstrap = function ($, learun) { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | ||||
page.search(queryJson); | page.search(queryJson); | ||||
}, 400, 400); | }, 400, 400); | ||||
$('#AIIStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' }); | |||||
//$('#AIIStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' }); | |||||
$('#AIIStorageId').lrselect({ | |||||
type: 'tree', | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/AssetManagementSystem/AssStorageRoom/GetTree', | |||||
param: {}, | |||||
select: function (val) { | |||||
var storageId = ""; | |||||
if (val) { | |||||
storageId = val.value; | |||||
} | |||||
$('#AIIStoragePosition').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/AssetManagementSystem/AssStorageRoom/GetListForStorageId?storageId=' + storageId, | |||||
text: "RCode", | |||||
value: "RId" | |||||
}); | |||||
} | |||||
}); | |||||
//房间 | |||||
$('#AIIStoragePosition').lrselect({ value: 'RId', text: 'RCode' }); | |||||
$('#AIASSState').lrDataItemSelect({ code: 'AssState' }); | $('#AIASSState').lrDataItemSelect({ code: 'AssState' }); | ||||
$('#AIDepartment').lrDepartmentSelect(); | $('#AIDepartment').lrDepartmentSelect(); | ||||
// 刷新 | // 刷新 | ||||
@@ -42,12 +42,12 @@ | |||||
<input id="AIASSName" type="text" class="form-control" /> | <input id="AIASSName" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">库房</div> | |||||
<div class="lr-form-item-title">楼宇名称</div> | |||||
<div id="AIIStorageId"></div> | <div id="AIIStorageId"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">库房位置</div> | |||||
<input id="AIIStoragePosition" type="text" class="form-control" /> | |||||
<div class="lr-form-item-title">房间号</div> | |||||
<div id="AIIStoragePosition"></div> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">资产状态</div> | <div class="lr-form-item-title">资产状态</div> | ||||
@@ -33,7 +33,26 @@ var bootstrap = function ($, learun) { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | ||||
page.search(queryJson); | page.search(queryJson); | ||||
}, 400, 400); | }, 400, 400); | ||||
$('#AIIStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' }); | |||||
//$('#AIIStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' }); | |||||
$('#AIIStorageId').lrselect({ | |||||
type: 'tree', | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/AssetManagementSystem/AssStorageRoom/GetTree', | |||||
param: {}, | |||||
select: function (val) { | |||||
var storageId = ""; | |||||
if (val) { | |||||
storageId = val.value; | |||||
} | |||||
$('#AIIStoragePosition').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/AssetManagementSystem/AssStorageRoom/GetListForStorageId?storageId=' + storageId, | |||||
text: "RCode", | |||||
value: "RId" | |||||
}); | |||||
} | |||||
}); | |||||
//房间 | |||||
$('#AIIStoragePosition').lrselect({ value: 'RId', text: 'RCode' }); | |||||
$('#AIASSState').lrDataItemSelect({ code: 'AssState' }); | $('#AIASSState').lrDataItemSelect({ code: 'AssState' }); | ||||
$('#AIAssType').lrDataItemSelect({ code: 'AssType' }); | $('#AIAssType').lrDataItemSelect({ code: 'AssType' }); | ||||
$('#AIDepartment').lrDepartmentSelect(); | $('#AIDepartment').lrDepartmentSelect(); | ||||