@@ -6,7 +6,8 @@ | |||||
*/ | */ | ||||
var acceptClick; | var acceptClick; | ||||
var keyValue = request('keyValue'); | var keyValue = request('keyValue'); | ||||
var PPId = request("PPId"); | |||||
var PPId = request("PPId");//项目阶段id | |||||
var PId = request("PId");//项目Id | |||||
var bootstrap = function ($, learun) { | var bootstrap = function ($, learun) { | ||||
"use strict"; | "use strict"; | ||||
var page = { | var page = { | ||||
@@ -26,6 +27,9 @@ var bootstrap = function ($, learun) { | |||||
value: "Id", | value: "Id", | ||||
text: "Name", | text: "Name", | ||||
}); | }); | ||||
if (!!PId) { | |||||
$('#PId').lrselectSet(PId); | |||||
} | |||||
$('#PPId').lrselect({ | $('#PPId').lrselect({ | ||||
type: 'tree', | type: 'tree', | ||||
// 展开最大高度 | // 展开最大高度 | ||||
@@ -43,7 +47,6 @@ var bootstrap = function ($, learun) { | |||||
if (!!PPId) { | if (!!PPId) { | ||||
$('#PPId').lrselectSet(PPId); | $('#PPId').lrselectSet(PPId); | ||||
} | } | ||||
$('#Files').lrUploader(); | $('#Files').lrUploader(); | ||||
$('#DepartmentId').lrDepartmentSelect(); | $('#DepartmentId').lrDepartmentSelect(); | ||||
$('#ManagerId').lrUserSelect(0); | $('#ManagerId').lrUserSelect(0); | ||||
@@ -6,6 +6,7 @@ | |||||
*/ | */ | ||||
var refreshGirdData; | var refreshGirdData; | ||||
var PPId; | var PPId; | ||||
var PId = request("PId");//项目Id | |||||
var bootstrap = function ($, learun) { | var bootstrap = function ($, learun) { | ||||
"use strict"; | "use strict"; | ||||
var page = { | var page = { | ||||
@@ -33,7 +34,7 @@ var bootstrap = function ($, learun) { | |||||
learun.layerForm({ | learun.layerForm({ | ||||
id: 'ProjectDataManageform', | id: 'ProjectDataManageform', | ||||
title: '新增', | title: '新增', | ||||
url: top.$.rootUrl + '/LogisticsManagement/ProjectDataManage/Form?PPId=' + PPId, | |||||
url: top.$.rootUrl + '/LogisticsManagement/ProjectDataManage/Form?PPId=' + PPId + '&PId=' + PId, | |||||
width: 800, | width: 800, | ||||
height: 600, | height: 600, | ||||
callBack: function (id) { | callBack: function (id) { | ||||
@@ -125,6 +126,7 @@ var bootstrap = function ($, learun) { | |||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
param.PPId = PPId; | param.PPId = PPId; | ||||
param.PId = PId; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | ||||
} | } | ||||
}; | }; | ||||
@@ -6,7 +6,7 @@ | |||||
*/ | */ | ||||
var acceptClick; | var acceptClick; | ||||
var keyValue = request('keyValue'); | var keyValue = request('keyValue'); | ||||
var PTId = request("PTId"); | |||||
var PTId = request("PTId");//项目类型id | |||||
var bootstrap = function ($, learun) { | var bootstrap = function ($, learun) { | ||||
"use strict"; | "use strict"; | ||||
var page = { | var page = { | ||||
@@ -72,6 +72,17 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
// 上传项目资料 | // 上传项目资料 | ||||
$('#lr_data').on('click', function () { | $('#lr_data').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
learun.layerForm({ | |||||
id: 'ProjectDataManageIndex', | |||||
title: '项目资料管理', | |||||
url: top.$.rootUrl + '/LogisticsManagement/ProjectDataManage/Index?PId=' + keyValue, | |||||
width: 1000, | |||||
height: 800, | |||||
btn: null | |||||
}); | |||||
} | |||||
}); | }); | ||||
}, | }, | ||||
inittree: function () { | inittree: function () { | ||||