@@ -32,7 +32,7 @@ | |||||
<input id="detailadd" type="button" class="btn btn-success" value="新增明细" /> | <input id="detailadd" type="button" class="btn btn-success" value="新增明细" /> | ||||
<input id="detailedit" type="button" class="btn btn-warning" value="编辑明细" /> | <input id="detailedit" type="button" class="btn btn-warning" value="编辑明细" /> | ||||
<input id="detaildel" type="button" class="btn btn-danger" value="移除明细" /> | <input id="detaildel" type="button" class="btn btn-danger" value="移除明细" /> | ||||
<input id="detailprint" type="button" class="btn btn-success" value="打印明细" /> | |||||
@*<input id="detailprint" type="button" class="btn btn-success" value="打印明细" />*@ | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item lr-form-item-grid"> | <div class="col-xs-12 lr-form-item lr-form-item-grid"> | ||||
<div id="Ass_Acceptance"></div> | <div id="Ass_Acceptance"></div> | ||||
@@ -72,7 +72,7 @@ | |||||
if (tempdatra[i].AAIStock != 'undefined') { | if (tempdatra[i].AAIStock != 'undefined') { | ||||
num += tempdatra[i].AAIStock; | num += tempdatra[i].AAIStock; | ||||
} | } | ||||
pricenum += tempdatra[i].AAIPrice * tempdatra[i].AAIStock; | pricenum += tempdatra[i].AAIPrice * tempdatra[i].AAIStock; | ||||
//单位 | //单位 | ||||
var AAIUnit = ''; | var AAIUnit = ''; | ||||
@@ -92,7 +92,9 @@ | |||||
key: tempdatra[i].AAIUseDeptId, | key: tempdatra[i].AAIUseDeptId, | ||||
keyId: 'id', | keyId: 'id', | ||||
callback: function (_data) { | callback: function (_data) { | ||||
AAIUseDeptName = _data['name']; | |||||
if (_data['name'] && _data['name'] != 'undefined') { | |||||
AAIUseDeptName = _data['name']; | |||||
} | |||||
} | } | ||||
}); | }); | ||||
//放置地点 | //放置地点 | ||||
@@ -102,7 +104,9 @@ | |||||
key: tempdatra[i].AAIStorageId, | key: tempdatra[i].AAIStorageId, | ||||
keyId: 'sid', | keyId: 'sid', | ||||
callback: function (_data) { | callback: function (_data) { | ||||
AAIStorage += _data['sname']; | |||||
if (_data['sname'] && _data['sname'] != 'undefined') { | |||||
AAIStorage += _data['sname']; | |||||
} | |||||
} | } | ||||
}); | }); | ||||
top.learun.clientdata.getAsync('custmerData', { | top.learun.clientdata.getAsync('custmerData', { | ||||
@@ -110,7 +114,9 @@ | |||||
key: tempdatra[i].AAIStoragePosition, | key: tempdatra[i].AAIStoragePosition, | ||||
keyId: 'rid', | keyId: 'rid', | ||||
callback: function (_data) { | callback: function (_data) { | ||||
AAIStorage += _data['rname']; | |||||
if (_data['rname'] && _data['rname'] != 'undefined') { | |||||
AAIStorage += _data['rname']; | |||||
} | |||||
} | } | ||||
}); | }); | ||||
//使用人 | //使用人 | ||||
@@ -8,7 +8,7 @@ | |||||
<div class="lr-form-wrap"> | <div class="lr-form-wrap"> | ||||
<div class="col-xs-12 lr-form-item" data-table="Ass_AssetsOutApply"> | <div class="col-xs-12 lr-form-item" data-table="Ass_AssetsOutApply"> | ||||
<div class="lr-form-item-title">调拨单流水号</div> | <div class="lr-form-item-title">调拨单流水号</div> | ||||
<input id="AOCode" type="text" class="form-control" /> | |||||
<input id="AOCode" type="text" class="form-control" /> | |||||
</div> | </div> | ||||
@*<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsOutApply"> | @*<div class="col-xs-6 lr-form-item" data-table="Ass_AssetsOutApply"> | ||||
<div class="lr-form-item-title">出库总价</div> | <div class="lr-form-item-title">出库总价</div> | ||||
@@ -55,7 +55,12 @@ | |||||
<div class="lr-form-item-title">项目名称</div> | <div class="lr-form-item-title">项目名称</div> | ||||
<input id="AOProjectName" type="text" class="form-control" /> | <input id="AOProjectName" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">明细操作</div> | |||||
<input id="detailprint" type="button" class="btn btn-success" value="打印明细" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item lr-form-item-grid"> | <div class="col-xs-12 lr-form-item lr-form-item-grid"> | ||||
<div id="Ass_AssetsOutItemApply"></div> | <div id="Ass_AssetsOutItemApply"></div> | ||||
</div> | </div> | ||||
@@ -112,6 +112,19 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
$('#AOStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' }); | $('#AOStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' }); | ||||
//打印 | |||||
$('#detailprint').on('click', function () { | |||||
learun.layerForm({ | |||||
id: 'print', | |||||
title: '固定资产调拨单', | |||||
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsOutApply/Print', | |||||
width: 1100, | |||||
height: 800, | |||||
btn: null | |||||
}); | |||||
}); | |||||
$('#Ass_AssetsOutItemApply').jfGrid({ | $('#Ass_AssetsOutItemApply').jfGrid({ | ||||
headData: [ | headData: [ | ||||
{ | { | ||||
@@ -109,7 +109,7 @@ var bootstrap = function ($, learun) { | |||||
var keyValue = $('#gridtable').jfGridValue('AOId'); | var keyValue = $('#gridtable').jfGridValue('AOId'); | ||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
learun.layerForm({ | learun.layerForm({ | ||||
id: 'formAss_AssetsInfoApply', | |||||
id: 'formAss_AssetsOutApply', | |||||
title: '查看调拨申请', | title: '查看调拨申请', | ||||
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsOutApply/AssetsFormView?keyValue=' + keyValue, | url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsOutApply/AssetsFormView?keyValue=' + keyValue, | ||||
width: 1000, | width: 1000, | ||||
@@ -44,7 +44,7 @@ | |||||
<input id="detailadd" type="button" class="btn btn-success" value="新增明细" /> | <input id="detailadd" type="button" class="btn btn-success" value="新增明细" /> | ||||
<input id="detailedit" type="button" class="btn btn-warning" value="编辑明细" /> | <input id="detailedit" type="button" class="btn btn-warning" value="编辑明细" /> | ||||
<input id="detaildel" type="button" class="btn btn-danger" value="移除明细" /> | <input id="detaildel" type="button" class="btn btn-danger" value="移除明细" /> | ||||
<input id="detailprint" type="button" class="btn btn-success" value="打印明细" /> | |||||
@*<input id="detailprint" type="button" class="btn btn-success" value="打印明细" />*@ | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item lr-form-item-grid"> | <div class="col-xs-12 lr-form-item lr-form-item-grid"> | ||||
@@ -66,6 +66,7 @@ | |||||
$(function () { | $(function () { | ||||
var tempdatra = top["layer_formAss_AssetsOutApply"].tempdatra; | var tempdatra = top["layer_formAss_AssetsOutApply"].tempdatra; | ||||
//console.log(tempdatra); | |||||
if (tempdatra) { | if (tempdatra) { | ||||
var html = ''; | var html = ''; | ||||
var num = 0, pricenum = 0; | var num = 0, pricenum = 0; | ||||
@@ -83,7 +84,7 @@ | |||||
key: tempdatra[i].AOIOldDepartment, | key: tempdatra[i].AOIOldDepartment, | ||||
keyId: 'id', | keyId: 'id', | ||||
callback: function (_data) { | callback: function (_data) { | ||||
if (_data['sname'] && _data['sname'] != 'undefined') { | |||||
if (_data['name'] && _data['name'] != 'undefined') { | |||||
AOIOldDepartment = _data['name']; | AOIOldDepartment = _data['name']; | ||||
} | } | ||||
} | } | ||||
@@ -119,7 +120,7 @@ | |||||
key: tempdatra[i].AOINewDepartment, | key: tempdatra[i].AOINewDepartment, | ||||
keyId: 'id', | keyId: 'id', | ||||
callback: function (_data) { | callback: function (_data) { | ||||
if (_data['sname'] && _data['sname'] != 'undefined') { | |||||
if (_data['name'] && _data['name'] != 'undefined') { | |||||
AOINewDepartment = _data['name']; | AOINewDepartment = _data['name']; | ||||
} | } | ||||
} | } | ||||