Commit 58c539c6 authored by lizhe's avatar lizhe

日立返还金后续修改

parent 129d81bb
...@@ -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) {
if (role_code == '0017' || role_code == 'HAND') {
record.getField('ref_n01').setReadOnly(false); record.getField('ref_n01').setReadOnly(false);
}else { } else {
record.getField('ref_n01').setReadOnly(true); 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