Commit 6fc2f31d authored by 38823's avatar 38823

茂甲控制保证金测试问题修复

parent b61c4256
...@@ -48,42 +48,6 @@ ...@@ -48,42 +48,6 @@
}); });
// 提交审批
// window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
// var ds_id = 'MARGIN_CHECK_F_RESULT_csh_margin_check_ds';
// var record= $(ds_id).getSelected()[0];
// var marginId=record.get('margin_check_id');
// var wflStatus=record.data.wfl_status;
// if(wflStatus == 'APPROVING' || wflStatus == 'APPROVED' || wflStatus == 'REJECT'){
// Leaf.showErrorMessage('提示', '只有新建的单据才可以提交审批');
// return false;
// }
// Leaf.showConfirm('${l:HLS.PROMPT}', '${l:HLS.ARE_YOU_SURE_TO_SUBMIT}', function() {
// window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
// Leaf.request({
// url: $('${/parameter/@layout_code}_csh531_margin_check_submit_link_id').getUrl(),
// para: {
// margin_check_id: marginId,
// },
// success: function(res) {
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// $('${/parameter/@winid}').close();
// Leaf.SideBar.show({
// msg: '操作成功',
// duration: 200
// });
// },
// failure: function() {
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// },
// error: function() {
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// },
// scope: this
// });
// });
// }
//自定义提交审批保存 //自定义提交审批保存
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
debugger; debugger;
...@@ -114,13 +78,14 @@ ...@@ -114,13 +78,14 @@
} }
} }
} }
Leaf.request({ Leaf.showConfirm('${l:HLS.PROMPT}', '${l:HLS.ARE_YOU_SURE_TO_SUBMIT}', function() {
url: $('${/parameter/@layout_code}_csh531_margin_check_save_link_id').getUrl(), window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
para: params, Leaf.request({
success: function(res) { url: $('${/parameter/@layout_code}_csh531_margin_check_save_link_id').getUrl(),
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); para: params,
debugger; success: function(res) {
Leaf.showConfirm('${l:HLS.PROMPT}', '${l:HLS.ARE_YOU_SURE_TO_SUBMIT}', function() { window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
debugger;
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var marginCheckId=res.result.margin_check_id; var marginCheckId=res.result.margin_check_id;
Leaf.request({ Leaf.request({
...@@ -144,22 +109,21 @@ ...@@ -144,22 +109,21 @@
}, },
scope: this scope: this
}); });
}); var ds_result_id = 'MARGIN_CHECK_F_RESULT_csh_margin_check_ds';
// Leaf.SideBar.show({ $(ds_result_id).query();
// msg: '操作成功', $(ds_id).query();
// duration: 200 },
// }); failure: function() {
var ds_result_id = 'MARGIN_CHECK_F_RESULT_csh_margin_check_ds'; window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$(ds_result_id).query(); },
$(ds_id).query(); error: function() {
}, window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
failure: function() { },
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); scope: this
}, });
error: function() { },function (){
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); debugger;
}, window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
scope: this
}); });
} }
......
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