Commit 3b1b7caf authored by Spencer Chang's avatar Spencer Chang

[fix] 生成文本按钮明细页面取消

parent c76abba5
...@@ -192,7 +192,6 @@ ...@@ -192,7 +192,6 @@
$('${/parameter/@layout_code}_quote').disable(); $('${/parameter/@layout_code}_quote').disable();
} }
$('${/parameter/@layout_code}_user_button1').disable(); $('${/parameter/@layout_code}_user_button1').disable();
$('${/parameter/@layout_code}_user_button2').disable();
setTimeout(window['${/parameter/@layout_code}_SAVE_LAYOUT_DYNAMIC_CLICK'](con731_submit), 2000); setTimeout(window['${/parameter/@layout_code}_SAVE_LAYOUT_DYNAMIC_CLICK'](con731_submit), 2000);
} else { } else {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
...@@ -220,7 +219,6 @@ ...@@ -220,7 +219,6 @@
$('${/parameter/@layout_code}_quote').enable(); $('${/parameter/@layout_code}_quote').enable();
} }
$('${/parameter/@layout_code}_user_button1').enable(); $('${/parameter/@layout_code}_user_button1').enable();
$('${/parameter/@layout_code}_user_button2').enable();
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
error: function() { error: function() {
...@@ -230,7 +228,6 @@ ...@@ -230,7 +228,6 @@
$('${/parameter/@layout_code}_quote').enable(); $('${/parameter/@layout_code}_quote').enable();
} }
$('${/parameter/@layout_code}_user_button1').enable(); $('${/parameter/@layout_code}_user_button1').enable();
$('${/parameter/@layout_code}_user_button2').enable();
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
scope: this scope: this
...@@ -303,14 +300,7 @@ ...@@ -303,14 +300,7 @@
}); });
}; };
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() { //附件上传
$('${/parameter/@layout_code}_user_button1').disable();
$('${/parameter/@layout_code}_user_button1').enable();
};
//////附件上传
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record, bp_seq) { window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record, bp_seq) {
var link_function = ''; var link_function = '';
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record; window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
...@@ -696,7 +686,6 @@ ...@@ -696,7 +686,6 @@
} }
}; };
/// 附件上传 end
//图片渲染 //图片渲染
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_pic_renderer'] = function(record, name, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_pic_renderer'] = function(record, name, bp_seq) {
var result = name.match(/(.*)_pic$/); var result = name.match(/(.*)_pic$/);
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
2014-10-27 create bu xuls for 变更申请-支付期调整 维护 2019-09 变更申请-维护
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" customizationEnabled="true" dynamiccreateenabled="true" trace="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:init-procedure/> <a:init-procedure/>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
2014-10-27 create bu xuls for 变更申请-支付期调整 查询 2019-09 for 变更申请-查询
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" <a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script"
customizationEnabled="true" dynamiccreateenabled="true" trace="true"> customizationEnabled="true" dynamiccreateenabled="true" trace="true">
...@@ -18,12 +17,6 @@ ...@@ -18,12 +17,6 @@
<a:link id="con_contract_change_req_link" <a:link id="con_contract_change_req_link"
url="${/request/@context_path}/modules/cont/CON701/con_contract_et_print.lsc"/> url="${/request/@context_path}/modules/cont/CON701/con_contract_et_print.lsc"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
var new_recs = []; //任务数组
var total_index = 0;
var current_index = 0;
var file_path = '${/parameter/@file_path}';
var download_arr = [];
function open_contract_win(ds_id, record_id) { function open_contract_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id); var record = $(ds_id).findById(record_id);
var param = record.data; var param = record.data;
......
...@@ -77,7 +77,6 @@ ...@@ -77,7 +77,6 @@
$('${/parameter/@layout_code}_submit_approval').disable(); $('${/parameter/@layout_code}_submit_approval').disable();
$('${/parameter/@layout_code}_save').disable(); $('${/parameter/@layout_code}_save').disable();
$('${/parameter/@layout_code}_user_button1').disable(); $('${/parameter/@layout_code}_user_button1').disable();
$('${/parameter/@layout_code}_user_button2').disable();
$('${/parameter/@layout_code}_user_button3').disable(); $('${/parameter/@layout_code}_user_button3').disable();
setTimeout(window['${/parameter/@layout_code}_SAVE_LAYOUT_DYNAMIC_CLICK'](con_repo001_submit), 2000); setTimeout(window['${/parameter/@layout_code}_SAVE_LAYOUT_DYNAMIC_CLICK'](con_repo001_submit), 2000);
} else { } else {
...@@ -98,7 +97,6 @@ ...@@ -98,7 +97,6 @@
$('${/parameter/@layout_code}_submit_approval').enable(); $('${/parameter/@layout_code}_submit_approval').enable();
$('${/parameter/@layout_code}_save').enable(); $('${/parameter/@layout_code}_save').enable();
$('${/parameter/@layout_code}_user_button1').enable(); $('${/parameter/@layout_code}_user_button1').enable();
$('${/parameter/@layout_code}_user_button2').enable();
$('${/parameter/@layout_code}_user_button3').enable(); $('${/parameter/@layout_code}_user_button3').enable();
$('${/parameter/@winid}').close(); $('${/parameter/@winid}').close();
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
...@@ -107,7 +105,6 @@ ...@@ -107,7 +105,6 @@
$('${/parameter/@layout_code}_submit_approval').enable(); $('${/parameter/@layout_code}_submit_approval').enable();
$('${/parameter/@layout_code}_save').enable(); $('${/parameter/@layout_code}_save').enable();
$('${/parameter/@layout_code}_user_button1').enable(); $('${/parameter/@layout_code}_user_button1').enable();
$('${/parameter/@layout_code}_user_button2').enable();
$('${/parameter/@layout_code}_user_button3').enable(); $('${/parameter/@layout_code}_user_button3').enable();
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
...@@ -115,7 +112,6 @@ ...@@ -115,7 +112,6 @@
$('${/parameter/@layout_code}_submit_approval').enable(); $('${/parameter/@layout_code}_submit_approval').enable();
$('${/parameter/@layout_code}_save').enable(); $('${/parameter/@layout_code}_save').enable();
$('${/parameter/@layout_code}_user_button1').enable(); $('${/parameter/@layout_code}_user_button1').enable();
$('${/parameter/@layout_code}_user_button2').enable();
$('${/parameter/@layout_code}_user_button3').enable(); $('${/parameter/@layout_code}_user_button3').enable();
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
...@@ -182,12 +178,7 @@ ...@@ -182,12 +178,7 @@
scope: this scope: this
}); });
} }
//生成文本
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
//$('${/parameter/@layout_code}_user_button2').disable(); //按钮不可用
//$('${/parameter/@layout_code}_user_button2').enable(); //按钮启用
};
//取消变更 //取消变更
window['${/parameter/@layout_code}_user_button3_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_user_button3_layout_dynamic_click'] = function() {
$('${/parameter/@layout_code}_user_button3').disable(); //按钮不可用 $('${/parameter/@layout_code}_user_button3').disable(); //按钮不可用
......
...@@ -205,6 +205,7 @@ ...@@ -205,6 +205,7 @@
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function() {
if (calc_flag && maunal_calc_flag){ if (calc_flag && maunal_calc_flag){
$('${/parameter/@layout_code}_submit_approval').disable();
var req_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASE_01', 'con_contract'); var req_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASE_01', 'con_contract');
var req_record = $(req_ds_id).getAt(0); var req_record = $(req_ds_id).getAt(0);
var case_type = ''; var case_type = '';
...@@ -212,12 +213,16 @@ ...@@ -212,12 +213,16 @@
var calc_session_id = req_record.get('calc_session_id'); var calc_session_id = req_record.get('calc_session_id');
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
if ($(req_ds_id).validate()) { if ($(req_ds_id).validate($('${/parameter/@layout_code}_submit_approval').enable())) {
if (req_record.dirty) { // if (req_record.dirty) {
Leaf.showMessage('${l:HLS.PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); // Leaf.showMessage('${l:HLS.PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); // window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return; // return;
} // }
$('${/parameter/@layout_code}_submit_approval').disable();
$('${/parameter/@layout_code}_save').disable();
$('${/parameter/@layout_code}_user_button1').disable();
$('${/parameter/@layout_code}_user_button3').disable();
setTimeout(window['${/parameter/@layout_code}_SAVE_LAYOUT_DYNAMIC_CLICK'](con_repo001_submit), 2000); setTimeout(window['${/parameter/@layout_code}_SAVE_LAYOUT_DYNAMIC_CLICK'](con_repo001_submit), 2000);
} else { } else {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
...@@ -235,13 +240,25 @@ ...@@ -235,13 +240,25 @@
layout_code: '${/parameter/@layout_code}' layout_code: '${/parameter/@layout_code}'
}, },
success: function(res) { success: function(res) {
$('${/parameter/@layout_code}_submit_approval').enable();
$('${/parameter/@layout_code}_save').enable();
$('${/parameter/@layout_code}_user_button1').enable();
$('${/parameter/@layout_code}_user_button3').enable();
$('${/parameter/@winid}').close(); $('${/parameter/@winid}').close();
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
failure: function() { failure: function() {
$('${/parameter/@layout_code}_submit_approval').enable();
$('${/parameter/@layout_code}_save').enable();
$('${/parameter/@layout_code}_user_button1').enable();
$('${/parameter/@layout_code}_user_button3').enable();
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
error: function() { error: function() {
$('${/parameter/@layout_code}_submit_approval').enable();
$('${/parameter/@layout_code}_save').enable();
$('${/parameter/@layout_code}_user_button1').enable();
$('${/parameter/@layout_code}_user_button3').enable();
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, },
scope: this scope: this
...@@ -295,12 +312,6 @@ ...@@ -295,12 +312,6 @@
scope: this scope: this
}); });
} }
//生成文本
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
//$('${/parameter/@layout_code}_user_button2').disable(); //按钮不可用
//$('${/parameter/@layout_code}_user_button2').enable(); //按钮启用
};
//取消变更 //取消变更
window['${/parameter/@layout_code}_user_button3_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_user_button3_layout_dynamic_click'] = function() {
$('${/parameter/@layout_code}_user_button3').disable(); //按钮不可用 $('${/parameter/@layout_code}_user_button3').disable(); //按钮不可用
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
var prj_project_result_ds = $(ds_id); var prj_project_result_ds = $(ds_id);
var records = prj_project_result_ds.getSelected(); var records = prj_project_result_ds.getSelected();
if (records.length != 1) { if (records.length != 1) {
$('${/parameter/@layout_code}_user_button1').enable(); //按钮启用
Leaf.showMessage('${l:PROMPT}', '${l:HLS.SELECT_RECORD}'); Leaf.showMessage('${l:PROMPT}', '${l:HLS.SELECT_RECORD}');
return; return;
} }
......
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