Commit 27d6bfb1 authored by lizhe's avatar lizhe

日立返还金后续修改

parent cdc71f05
...@@ -513,7 +513,7 @@ ...@@ -513,7 +513,7 @@
Leaf.onReady(function () { Leaf.onReady(function () {
// 会计担当(0014)不展示退款按钮 // 会计担当(0014)不展示退款按钮
var role_code = '${/model/role_info/record/@role_code}'; var role_code = '${/model/role_info/record/@role_code}';
if (role_code == '0009') { if (role_code == '0014') {
if (document.getElementById('csh515_receipt_return_but')) { if (document.getElementById('csh515_receipt_return_but')) {
document.getElementById('csh515_receipt_return_but').style.display = "none"; document.getElementById('csh515_receipt_return_but').style.display = "none";
} }
......
...@@ -101,12 +101,13 @@ ...@@ -101,12 +101,13 @@
window['${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function(ds, record) { window['${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function(ds, record) {
//0017 宏菱管理员 HAND HAND管理员 //0017 宏菱管理员 HAND HAND管理员
var role_code = '${/model/user_name_path/record/@role_code}'; var role_code = '${/model/user_name_path/record/@role_code}';
if(role_code == '0017' || role_code == 'HAND'){ if (record) {
record.getField('ref_n01').setReadOnly(false); if (role_code == '0017' || role_code == 'HAND') {
}else { record.getField('ref_n01').setReadOnly(false);
record.getField('ref_n01').setReadOnly(true); } else {
record.getField('ref_n01').setReadOnly(true);
}
} }
}; };
//新增时调用(grid,table,gridBox) //新增时调用(grid,table,gridBox)
......
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