Commit 592597c9 authored by lijingjing's avatar lijingjing

[fix]起租页面修改

parent 9f8d6dea
...@@ -480,6 +480,7 @@ ...@@ -480,6 +480,7 @@
var calc_session_id = record.get('calc_session_id'); var calc_session_id = record.get('calc_session_id');
var parent_pk_value = record.get('contract_id'); var parent_pk_value = record.get('contract_id');
var calc_type = '${/parameter/@calc_type}' || 'CLASSIC_CALCULATOR'; var calc_type = '${/parameter/@calc_type}' || 'CLASSIC_CALCULATOR';
var maintain_type='QUERY'
if (calc_session_id) { if (calc_session_id) {
//直接进入报价页面 //直接进入报价页面
var win = new Leaf.Window({ var win = new Leaf.Window({
...@@ -488,6 +489,7 @@ ...@@ -488,6 +489,7 @@
document_id: parent_pk_value, document_id: parent_pk_value,
price_list: price_list, price_list: price_list,
document_category: 'CONTRACT', document_category: 'CONTRACT',
contract_status:record.get('contract_status'),
maintain_type: 'MODIFY', maintain_type: 'MODIFY',
calc_session_id: record.get('calc_session_id'), calc_session_id: record.get('calc_session_id'),
quotation_id: record.get('quotation_id'), quotation_id: record.get('quotation_id'),
......
...@@ -789,7 +789,7 @@ ...@@ -789,7 +789,7 @@
function onEditorHdload(ds) { function onEditorHdload(ds) {
var headRecords = ds.getAll(); var headRecords = ds.getAll();
if('${/parameter/@document_category}'=='CONTRACT'){ if('${/parameter/@document_category}'=='CONTRACT'&&'${/parameter/@contract_status}'=='SIGN'){
for (var i = 0;i < headRecords.length;i++) { for (var i = 0;i < headRecords.length;i++) {
var column_name = headRecords[i].get('column_name') var column_name = headRecords[i].get('column_name')
...@@ -800,6 +800,15 @@ ...@@ -800,6 +800,15 @@
headRecords[i].getField('column_value_c').setReadOnly(true); headRecords[i].getField('column_value_c').setReadOnly(true);
} }
} }
}else{
for (var i = 0;i < headRecords.length;i++) {
var column_name = headRecords[i].get('column_name')
headRecords[i].set('input_mode','READONLY');
headRecords[i].set('readonly_input_mode','TRUE');
headRecords[i].getField('column_value').setReadOnly(true);
headRecords[i].getField('column_value_c').setReadOnly(true);
}
} }
if (headRecords[0].get('show_column_code') == 'N') { if (headRecords[0].get('show_column_code') == 'N') {
$('hls_fin_calculator_hd_grid_id').hideColumn('column_code'); $('hls_fin_calculator_hd_grid_id').hideColumn('column_code');
......
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