@@ -5,6 +5,7 @@ | |||||
* 描 述:资产报废 | * 描 述:资产报废 | ||||
*/ | */ | ||||
var refreshGirdData; | var refreshGirdData; | ||||
var refreshGirdData1; | |||||
var bootstrap = function ($, learun) { | var bootstrap = function ($, learun) { | ||||
"use strict"; | "use strict"; | ||||
var processId = ''; | var processId = ''; | ||||
@@ -88,7 +89,7 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认删除该项!', function (res) { | learun.layerConfirm('是否确认删除该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
learun.deleteForm(top.$.rootUrl + '/AssetManagementSystem/AssScrap/DeleteForm', { keyValue: keyValue }, function () { | learun.deleteForm(top.$.rootUrl + '/AssetManagementSystem/AssScrap/DeleteForm', { keyValue: keyValue }, function () { | ||||
refreshGirdData(); | |||||
refreshGirdData1(); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -184,7 +185,7 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
if (res.code == 200) { | |||||
if (res && res.code == 200) { | |||||
// 发起流程 | // 发起流程 | ||||
var postData = { | var postData = { | ||||
schemeCode: 'Ass_Scrap',// 填写流程对应模板编号 | schemeCode: 'Ass_Scrap',// 填写流程对应模板编号 | ||||
@@ -198,5 +199,8 @@ var bootstrap = function ($, learun) { | |||||
page.search(); | page.search(); | ||||
} | } | ||||
}; | }; | ||||
refreshGirdData1 = function () { | |||||
page.search(); | |||||
}; | |||||
page.init(); | page.init(); | ||||
} | } |
@@ -70,7 +70,7 @@ var bootstrap = function ($, learun) { | |||||
id: 'form', | id: 'form', | ||||
title: '资产明细', | title: '资产明细', | ||||
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoItem/Index?AId=' + keyValue, | url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoItem/Index?AId=' + keyValue, | ||||
width: 1000, | |||||
width: 1100, | |||||
height: 700, | height: 700, | ||||
btn: null, | btn: null, | ||||
end: function () { | end: function () { | ||||
@@ -5,6 +5,7 @@ | |||||
* 描 述:资产盘点 | * 描 述:资产盘点 | ||||
*/ | */ | ||||
var refreshGirdData; | var refreshGirdData; | ||||
var refreshGirdData1; | |||||
var bootstrap = function ($, learun) { | var bootstrap = function ($, learun) { | ||||
"use strict"; | "use strict"; | ||||
var processId = ''; | var processId = ''; | ||||
@@ -87,7 +88,7 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认删除该项!', function (res) { | learun.layerConfirm('是否确认删除该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
learun.deleteForm(top.$.rootUrl + '/AssetManagementSystem/Ass_Inventory/DeleteForm', { keyValue: keyValue }, function () { | learun.deleteForm(top.$.rootUrl + '/AssetManagementSystem/Ass_Inventory/DeleteForm', { keyValue: keyValue }, function () { | ||||
refreshGirdData(); | |||||
refreshGirdData1(); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -181,5 +182,8 @@ var bootstrap = function ($, learun) { | |||||
page.search(); | page.search(); | ||||
} | } | ||||
}; | }; | ||||
refreshGirdData1 = function () { | |||||
page.search(); | |||||
}; | |||||
page.init(); | page.init(); | ||||
} | } |
@@ -2,22 +2,22 @@ | |||||
ViewBag.Title = "使用人员变动记录"; | ViewBag.Title = "使用人员变动记录"; | ||||
Layout = "~/Views/Shared/_Form.cshtml"; | Layout = "~/Views/Shared/_Form.cshtml"; | ||||
} | } | ||||
<div class="lr-form-wrap"> | |||||
<div class="col-xs-12 lr-form-item" data-table="Ass_UserChangeInfo" > | |||||
<div class="lr-form-wrap" id="form"> | |||||
<div class="col-xs-12 lr-form-item" data-table="Ass_UserChangeInfo"> | |||||
<div class="lr-form-item-title">明细ID</div> | <div class="lr-form-item-title">明细ID</div> | ||||
<input id="AIID" type="text" class="form-control" /> | |||||
<div id="AIID" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="Ass_UserChangeInfo" > | |||||
<div class="lr-form-item-title">使用人员ID</div> | |||||
<input id="UserID" type="text" class="form-control" /> | |||||
<div class="col-xs-12 lr-form-item" data-table="Ass_UserChangeInfo"> | |||||
<div class="lr-form-item-title">使用人员</div> | |||||
<div id="UserID" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="Ass_UserChangeInfo" > | |||||
<div class="col-xs-12 lr-form-item" data-table="Ass_UserChangeInfo"> | |||||
<div class="lr-form-item-title">修改时间</div> | <div class="lr-form-item-title">修改时间</div> | ||||
<input id="UCChangeTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#UCChangeTime').trigger('change'); } })" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="Ass_UserChangeInfo" > | |||||
<div class="lr-form-item-title">操作人</div> | |||||
<div id="UCEditer" ></div> | |||||
<input id="UCChangeTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#UCChangeTime').trigger('change'); } })" /> | |||||
</div> | </div> | ||||
@*<div class="col-xs-12 lr-form-item" data-table="Ass_UserChangeInfo"> | |||||
<div class="lr-form-item-title">操作人</div> | |||||
<div id="UCEditer"></div> | |||||
</div>*@ | |||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/AssetManagementSystem/Views/Ass_UserChangeInfo/Form.js") | @Html.AppendJsFile("/Areas/AssetManagementSystem/Views/Ass_UserChangeInfo/Form.js") |
@@ -10,12 +10,14 @@ var bootstrap = function ($, learun) { | |||||
"use strict"; | "use strict"; | ||||
var page = { | var page = { | ||||
init: function () { | init: function () { | ||||
$('.lr-form-wrap').lrscroll(); | |||||
$('.lr-form-wrap').lrscroll(); | |||||
page.bind(); | page.bind(); | ||||
page.initData(); | page.initData(); | ||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
$('#UCEditer').lrDataItemSelect({ code: '' }); | |||||
$('#UserID').lrDataSourceSelect({ code: 'BaseUser', value: 'f_userid', text: 'f_realname' }); | |||||
//$('#UCEditer').lrDataSourceSelect({ code: 'BaseUser', value: 'f_userid', text: 'f_realname' }); | |||||
$('#AIID').lrDataSourceSelect({ code: 'Ass_AssetsInfoItem', value: 'aiid', text: 'aicode' }); | |||||
}, | }, | ||||
initData: function () { | initData: function () { | ||||
if (!!keyValue) { | if (!!keyValue) { | ||||
@@ -14,12 +14,12 @@ | |||||
<div id="multiple_condition_query"> | <div id="multiple_condition_query"> | ||||
<div class="lr-query-formcontent"> | <div class="lr-query-formcontent"> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">明细ID</div> | |||||
<input id="AIID" type="text" class="form-control" /> | |||||
<div class="lr-form-item-title">明细编号</div> | |||||
<div id="AIID"></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">使用人员ID</div> | |||||
<input id="UserID" type="text" class="form-control" /> | |||||
<div class="lr-form-item-title">使用人员</div> | |||||
<div id="UserID"></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> | ||||
@@ -46,7 +46,9 @@ var bootstrap = function ($, learun) { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | ||||
page.search(queryJson); | page.search(queryJson); | ||||
}, 220, 400); | }, 220, 400); | ||||
$('#UCEditer').lrDataItemSelect({ code: '' }); | |||||
$('#UserID').lrDataSourceSelect({ code: 'BaseUser', value: 'f_userid', text: 'f_realname' }); | |||||
$('#UCEditer').lrDataSourceSelect({ code: 'BaseUser', value: 'f_userid', text: 'f_realname' }); | |||||
$('#AIID').lrDataSourceSelect({ code: 'Ass_AssetsInfoItem', value: 'aiid', text: 'aicode' }); | |||||
// 刷新 | // 刷新 | ||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
@@ -98,13 +100,13 @@ var bootstrap = function ($, learun) { | |||||
key: value, | key: value, | ||||
keyId: 'aiid', | keyId: 'aiid', | ||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['aiassname']); | |||||
callback(_data['aicode']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
label: "使用者", name: "UserID", width: 100, align: "left", | |||||
label: "使用人员", name: "UserID", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', | ||||
@@ -116,7 +118,7 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ label: "修改时间", name: "UCChangeTime", width: 100, align: "left"}, | |||||
{ label: "修改时间", name: "UCChangeTime", width: 200, align: "left"}, | |||||
{ | { | ||||
label: "操作人", name: "UCEditer", width: 100, align: "left", | label: "操作人", name: "UCEditer", width: 100, align: "left", | ||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||