|
|
@@ -64,13 +64,23 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#ValueType').lrDataItemSelect({ code: 'ValueType' }); |
|
|
|
$('#GetWay').lrDataItemSelect({ code: 'GetWay' }); |
|
|
|
$('#UseCondition').lrDataItemSelect({ code: 'AssState' }); |
|
|
|
$('#UseDepartment').lrDepartmentSelect(); |
|
|
|
$('#UseDepartment').lrDepartmentSelect({ |
|
|
|
select: function (item) { |
|
|
|
$('#UsePeople').lrselectRefresh({ |
|
|
|
url: top.$.rootUrl + '/LR_OrganizationModule/User/GetList', |
|
|
|
param: { departmentId: item.value } |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#ManageDepartment').lrDepartmentSelect(); |
|
|
|
$('#UsePeople').lrformselect({ |
|
|
|
layerUrl: top.$.rootUrl + '/LR_OrganizationModule/User/SelectOnlyForm', |
|
|
|
layerUrlW: 400, |
|
|
|
layerUrlH: 300, |
|
|
|
dataUrl: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByUserIds' |
|
|
|
$('#UsePeople').lrselect({ |
|
|
|
value: 'F_UserId', |
|
|
|
text: 'F_RealName', |
|
|
|
title: 'F_RealName', |
|
|
|
// 展开最大高度 |
|
|
|
maxHeight: 110, |
|
|
|
// 是否允许搜索 |
|
|
|
allowSearch: true |
|
|
|
}); |
|
|
|
$('#Unit').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); |
|
|
|
$('#CardStatus').lrDataItemSelect({ code: 'CardStatus' }); |
|
|
@@ -160,7 +170,7 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#NetValue').val(netValue); |
|
|
|
netValue == 0 ? $('#NetValue').attr('style', 'color:red;') : $('#NetValue').removeAttr('style'); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//计算:价值数据=财政拨款 + 非财政拨款 |
|
|
|
let calcValue = function (a, b) { |
|
|
|
return Number(a) + Number(b); |
|
|
@@ -177,7 +187,7 @@ var bootstrap = function ($, learun) { |
|
|
|
let calcNetValue = function (a, b) { |
|
|
|
return (Number(a) - Number(b)) > 0 ? (Number(a) - Number(b)) : 0; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
// 设置表单数据 |
|
|
|