Commit 34914b37 authored by 38823's avatar 38823

合同起租(经租)工作流页面改造

parent 7f6efede
...@@ -61,9 +61,11 @@ ...@@ -61,9 +61,11 @@
url="${/request/@context_path}/modules/batch_download/lease_atm_batch_dl.lsc"/> url="${/request/@context_path}/modules/batch_download/lease_atm_batch_dl.lsc"/>
<a:link id="check_contract_status" model="cont.CON3200.con_checklist_contract" modelaction="query"/> <a:link id="check_contract_status" model="cont.CON3200.con_checklist_contract" modelaction="query"/>
<link href="${/request/@context_path}/modules/viewerjs/viewer.css" rel="stylesheet"/> <link href="${/request/@context_path}/modules/viewerjs/viewer.css" rel="stylesheet"/>
<a:link id="prj2000_pur_order_deteail_link_id" url="${/request/@context_path}/modules/prj/PRJ2000/purchase_order_deteail.lview"></a:link>
<script src="${/request/@context_path}/modules/viewerjs/viewer.js"/> <script src="${/request/@context_path}/modules/viewerjs/viewer.js"/>
<script src="${/request/@context_path}/modules/viewerjs/viewer_tool.js"/> <script src="${/request/@context_path}/modules/viewerjs/viewer_tool.js"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
function lock_current_window() { function lock_current_window() {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}'); Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
} }
...@@ -86,6 +88,7 @@ ...@@ -86,6 +88,7 @@
}; };
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
if('${/parameter/@function_code}'!='CON3200Q_OP'){
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
if (ds_id == ds.id && ds_id) { if (ds_id == ds.id && ds_id) {
// if (record.get('business_type') == 'LEASEBACK'&&'${/parameter/@function_usage}'=='MODIFY') { // if (record.get('business_type') == 'LEASEBACK'&&'${/parameter/@function_usage}'=='MODIFY') {
...@@ -171,6 +174,7 @@ ...@@ -171,6 +174,7 @@
} }
} }
} }
}
}; };
...@@ -273,6 +277,9 @@ ...@@ -273,6 +277,9 @@
} else if (name == 'attach_file_name_new') { } else if (name == 'attach_file_name_new') {
link_function = '${/parameter/@layout_code}_prj500_cdd_attachtment_new_upload'; link_function = '${/parameter/@layout_code}_prj500_cdd_attachtment_new_upload';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>'; return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>';
}else if(name=='lease_detail' && record.get('project_lease_item_id')!=null) {
link_function = 'cont3200_lease_renderer';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' +'明细' + '</a>';
} }
}; };
...@@ -287,6 +294,21 @@ ...@@ -287,6 +294,21 @@
hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, 'wfl_readonly_pageLink_projectQueryScreen_update_project', record.ds.id, '${/parameter/@layout_code}'); hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, 'wfl_readonly_pageLink_projectQueryScreen_update_project', record.ds.id, '${/parameter/@layout_code}');
} }
function cont3200_lease_renderer(record_id, ds_id) {
debugger;
var ds_id = 'CONTRACT_OP_QUERY_INC_G_LEASE_HEAD_CAR_con_contract_lease_item_ds';
var record = $(ds_id).getCurrentRecord();
var project_id=record.get('source_project_id');
var param = {};
var param = record.data;
param['function_code'] = 'PRJ2000D_WFL';
param['function_usage'] = 'QUERY';
param['maintain_type'] = 'READONLY'
param['url_title'] = '采购申请单维护';
param['project_id'] = project_id;
hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, 'prj2000_pur_order_deteail_link_id', null, '${/parameter/@layout_code}');
}
window['${/parameter/@layout_code}_ast_con_cdd4_attachtment_upload'] = function (ds_id, id, name, query_only) { window['${/parameter/@layout_code}_ast_con_cdd4_attachtment_upload'] = function (ds_id, id, name, query_only) {
var record = $(ds_id).findById(id); var record = $(ds_id).findById(id);
...@@ -596,6 +618,7 @@ ...@@ -596,6 +618,7 @@
}; };
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function () {
debugger;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var lease_item_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_lease_item'); var lease_item_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_lease_item');
var record = $(ds_id).getCurrentRecord(); var record = $(ds_id).getCurrentRecord();
...@@ -631,7 +654,9 @@ ...@@ -631,7 +654,9 @@
Leaf.request({ Leaf.request({
url: $('con_approval_link_id').getUrl(), url: $('con_approval_link_id').getUrl(),
para: { para: {
contract_id: contract_id contract_id: contract_id,
function_code: 'CON3200Q',
layout_code: 'CONTRACT_QUERY_INC'
}, },
scope: this, scope: this,
success: function () { success: function () {
...@@ -696,6 +721,11 @@ ...@@ -696,6 +721,11 @@
} }
} }
Leaf.onReady(function () { Leaf.onReady(function () {
debugger;
var a='${/parameter/@layout_code}';
var b='${/parameter/@function_usage}';
var b1='${/parameter/@function_code}';
var c='${/parameter/@layout_code}';
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_INVOICE_INFO', 'con_contract_bp'); var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_INVOICE_INFO', 'con_contract_bp');
$(ds_id).setQueryUrl('${/request/@context_path}/autocrud/prj.PRJ501N.con_contract_bp/query'); $(ds_id).setQueryUrl('${/request/@context_path}/autocrud/prj.PRJ501N.con_contract_bp/query');
$(ds_id).setQueryParameter('contract_id', '${/parameter/@contract_id}'); $(ds_id).setQueryParameter('contract_id', '${/parameter/@contract_id}');
...@@ -748,6 +778,7 @@ ...@@ -748,6 +778,7 @@
$(gridId).hideColumn('item_type_n'); $(gridId).hideColumn('item_type_n');
$(gridId).hideColumn('equipment_type_n'); $(gridId).hideColumn('equipment_type_n');
$(gridId).hideColumn('machine_number'); $(gridId).hideColumn('machine_number');
$(gridId).hideColumn('BP_ID_TENANT_N');
record.getField('machine_number').setRequired(false); record.getField('machine_number').setRequired(false);
}else { }else {
$(gridId).hideColumn('machine_number_70'); $(gridId).hideColumn('machine_number_70');
...@@ -761,7 +792,6 @@ ...@@ -761,7 +792,6 @@
$(gridId).hideColumn('ownership_flag_n'); $(gridId).hideColumn('ownership_flag_n');
$(gridId).hideColumn('created_by_n'); $(gridId).hideColumn('created_by_n');
} }
} }
var cashflow_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_CASHFLOW_1', 'con_contract_cashflow'); var cashflow_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_CASHFLOW_1', 'con_contract_cashflow');
if(ds.id == cashflow_ds_id&&cashflow_ds_id){ if(ds.id == cashflow_ds_id&&cashflow_ds_id){
......
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