Commit e8612992 authored by 陆正友's avatar 陆正友

合同工作流按钮隐藏

parent ac67a3d6
......@@ -27,5 +27,12 @@
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select is_constru_unit
from con_contract_sign_lv t1
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -19,11 +19,22 @@
Leaf.onReady(function() {
var status='${/parameter/@project_status}';
if (('${/parameter/@hide_flag}' == 'Y' || status=='APPROVING' || status=='CLOSED' || status=='CONTRACT_CREATED')) {
if (('${/parameter/@hide_flag}' == 'Y' || status=='APPROVING' ) && ("${/model/role_info/record/@role_code}"!="0019")) {
console.log("${/model/role_info/record/@role_code}");
$('PROJECT_LEASE_IMPORT_user_button1').hide();
$('PROJECT_LEASE_IMPORT_user_button2').hide();
$('PROJECT_LEASE_IMPORT_user_button4').hide();
}
else if( status=='CLOSED' || status=='CONTRACT_CREATED'){
$('PROJECT_LEASE_IMPORT_user_button1').hide();
$('PROJECT_LEASE_IMPORT_user_button2').hide();
$('PROJECT_LEASE_IMPORT_user_button4').hide();
}
// if (('${/parameter/@hide_flag}' == 'Y' || status=='APPROVING' ||status=='CLOSED' || status=='CONTRACT_CREATED') && ("${/model/role_info/record/@role_code}"!="0019")) {
// $('PROJECT_LEASE_IMPORT_user_button1').hide();
// $('PROJECT_LEASE_IMPORT_user_button2').hide();
// $('PROJECT_LEASE_IMPORT_user_button4').hide();
// }
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment