Commit ef4ee325 authored by 38823's avatar 38823

茂甲控制保证金页面优化

parent 416ed6d3
...@@ -85,12 +85,14 @@ ...@@ -85,12 +85,14 @@
//自定义保存 //自定义保存
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
var ds_id = 'MARGIN_CHECK_F_QUERY_csh_margin_check_ds'; var ds_id = 'MARGIN_CHECK_F_QUERY_csh_margin_check_ds';
var ds_result_id = 'MARGIN_CHECK_F_RESULT_csh_margin_check_ds'; var ds_result_id = 'MARGIN_CHECK_F_RESULT_csh_margin_check_ds';
var record=$(ds_id).getCurrentRecord(); var record=$(ds_id).getCurrentRecord();
var params = record.data; var params = record.data;
var marAfterStatus= params.mar_after_status; var marAfterStatus= params.mar_after_status;
if (marAfterStatus == '${/model/wfl_status/record/@mar_status}') { if (marAfterStatus == '${/model/wfl_status/record/@mar_status}') {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showErrorMessage('提示', '修改前的状态和修改后的状态不能一样'); Leaf.showErrorMessage('提示', '修改前的状态和修改后的状态不能一样');
return false; return false;
} }
...@@ -99,6 +101,7 @@ ...@@ -99,6 +101,7 @@
if (record.length != 1) { if (record.length != 1) {
for (var i = 0; i < record.length; i++) { for (var i = 0; i < record.length; i++) {
if (record[i].get('wfl_status') == 'NEW' || record[i].get('wfl_status') == 'APPROVING') { if (record[i].get('wfl_status') == 'NEW' || record[i].get('wfl_status') == 'APPROVING') {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showErrorMessage('提示', '必须审批通过后才可以新建'); Leaf.showErrorMessage('提示', '必须审批通过后才可以新建');
return false; return false;
} }
...@@ -116,6 +119,8 @@ ...@@ -116,6 +119,8 @@
}); });
var ds_result_id = 'MARGIN_CHECK_F_RESULT_csh_margin_check_ds'; var ds_result_id = 'MARGIN_CHECK_F_RESULT_csh_margin_check_ds';
$(ds_result_id).query(); $(ds_result_id).query();
$(ds_id).query();
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
failure: function() { failure: function() {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
...@@ -125,7 +130,6 @@ ...@@ -125,7 +130,6 @@
}, },
scope: this scope: this
}); });
$(ds_id).query();
} }
]]></script> ]]></script>
......
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