@@ -146,18 +146,18 @@ var bootstrap = function ($, learun) {
$('#lr_viewcg').on('click', function () {
var PId = $('#gridtable').jfGridValue('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",
formatter: function (cellvalue, row) {
if (cellvalue === 1) {
@@ -258,13 +258,15 @@ var bootstrap = function ($, learun) {
param.StartTime = startTime;
param.EndTime = endTime;
param.AssType = '1';//普通 低值
var loginInfo = top.learun.clientdata.get(['userinfo']);
param.AACreateUserId = loginInfo.userId;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function (res, postData) {
if (res && res.code && res.code == 200) {
// 发起流程
var postData = {
schemeCode: 'Ass_PurchaseApply',// 填写流程对应模板编号
processId: processId,