@@ -146,18 +146,18 @@ var bootstrap = function ($, learun) { | |||||
$('#lr_viewcg').on('click', function () { | $('#lr_viewcg').on('click', function () { | ||||
var PId = $('#gridtable').jfGridValue('PId'); | var PId = $('#gridtable').jfGridValue('PId'); | ||||
//if (learun.checkrow(PId)) { | //if (learun.checkrow(PId)) { | ||||
if (PId == null || PId === undefined || PId === "") { | |||||
learun.alert.warning("当前项目不含采购单!"); | |||||
return; | |||||
} | |||||
learun.layerForm({ | |||||
id: 'formAss_Purchase', | |||||
title: '查看采购单', | |||||
url: top.$.rootUrl + '/AssetManagementSystem/Ass_Purchase/FormViewJY?keyValue=' + PId, | |||||
width: 1000, | |||||
height: 600, | |||||
btn: null | |||||
}); | |||||
if (PId == null || PId === undefined || PId === "") { | |||||
learun.alert.warning("当前项目不含采购单!"); | |||||
return; | |||||
} | |||||
learun.layerForm({ | |||||
id: 'formAss_Purchase', | |||||
title: '查看采购单', | |||||
url: top.$.rootUrl + '/AssetManagementSystem/Ass_Purchase/FormViewJY?keyValue=' + PId, | |||||
width: 1000, | |||||
height: 600, | |||||
btn: null | |||||
}); | |||||
//} | //} | ||||
}); | }); | ||||
// 删除 | // 删除 | ||||
@@ -233,8 +233,8 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
}, | |||||
{ | |||||
}, | |||||
{ | |||||
label: "审批状态", name: "AAStatus", width: 100, align: "left", | label: "审批状态", name: "AAStatus", width: 100, align: "left", | ||||
formatter: function (cellvalue, row) { | formatter: function (cellvalue, row) { | ||||
if (cellvalue === 1) { | if (cellvalue === 1) { | ||||
@@ -258,13 +258,15 @@ var bootstrap = function ($, learun) { | |||||
param.StartTime = startTime; | param.StartTime = startTime; | ||||
param.EndTime = endTime; | param.EndTime = endTime; | ||||
param.AssType = '1';//普通 低值 | param.AssType = '1';//普通 低值 | ||||
var loginInfo = top.learun.clientdata.get(['userinfo']); | |||||
param.AACreateUserId = loginInfo.userId; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | ||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
if (res && res.code && res.code == 200) { | if (res && res.code && res.code == 200) { | ||||
// 发起流程 | // 发起流程 | ||||
var postData = { | var postData = { | ||||
schemeCode: 'Ass_PurchaseApply',// 填写流程对应模板编号 | schemeCode: 'Ass_PurchaseApply',// 填写流程对应模板编号 | ||||
processId: processId, | processId: processId, | ||||
@@ -214,10 +214,12 @@ var bootstrap = function ($, learun) { | |||||
{ | { | ||||
label: "申请人", name: "AACreateUserId", width: 100, align: "left", | label: "申请人", name: "AACreateUserId", width: 100, align: "left", | ||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
learun.clientdata.getAsync('user', { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', | |||||
key: value, | key: value, | ||||
keyId: 'f_account', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data.name); | |||||
callback(_data['f_realname']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -258,6 +260,8 @@ var bootstrap = function ($, learun) { | |||||
param.StartTime = startTime; | param.StartTime = startTime; | ||||
param.EndTime = endTime; | param.EndTime = endTime; | ||||
param.AssType = '2';//耗材 | param.AssType = '2';//耗材 | ||||
var loginInfo = top.learun.clientdata.get(['userinfo']); | |||||
param.AACreateUserId = loginInfo.userId; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | ||||
} | } | ||||
}; | }; | ||||
@@ -2,7 +2,18 @@ | |||||
ViewBag.Title = "流程监控"; | ViewBag.Title = "流程监控"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div id="lr_layout" class="lr-layout lr-layout-center"> | |||||
<div id="lr_layout" class="lr-layout lr-layout-left-center"> | |||||
<div class="lr-layout-left"> | |||||
<div class="lr-layout-wrap lr-layout-wrap-notitle" style="padding-top:10px;"> | |||||
<div class="lr-layout-body"> | |||||
<ul class="lr-left-list" id="lr_left_list"> | |||||
<li class="active lrlg" data-value="1">未完成</li> | |||||
<li data-value="2" class="lrlg">已完成</li> | |||||
</ul> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-center"> | <div class="lr-layout-center"> | ||||
<div class="lr-layout-wrap lr-layout-wrap-notitle"> | <div class="lr-layout-wrap lr-layout-wrap-notitle"> | ||||
<div class="lr-layout-tool"> | <div class="lr-layout-tool"> | ||||
@@ -177,7 +177,7 @@ var bootstrap = function ($, learun) { | |||||
param = param || {}; | param = param || {}; | ||||
param.StartTime = logbegin; | param.StartTime = logbegin; | ||||
param.EndTime = logend; | param.EndTime = logend; | ||||
param.categoryId = '2'; | |||||
param.categoryId = categoryId; | |||||
param.F_Category = '合同类'; | param.F_Category = '合同类'; | ||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | ||||
}, | }, | ||||
@@ -35,6 +35,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem | |||||
t.AAId, | t.AAId, | ||||
t.AACode, | t.AACode, | ||||
t.AAPrice, | t.AAPrice, | ||||
t.AAAssType, | |||||
t.AACreateTime, | t.AACreateTime, | ||||
t.AACreateDeptId, | t.AACreateDeptId, | ||||
t.AACreateUserId,t.AAStatus, | t.AACreateUserId,t.AAStatus, | ||||