Commit d7e9dbab authored by 21471731's avatar 21471731

租赁物导入调整12

parent 59d2359c
......@@ -15,7 +15,7 @@
<script><![CDATA[
Leaf.onReady(function() {
if ('${/parameter/@hide_flag}' == 'Y') {
if ('${/parameter/@hide_flag}' == 'Y' || '${/parameter/@project_status}'!='NEW') {
$('PROJECT_LEASE_IMPORT_user_button1').hide();
$('PROJECT_LEASE_IMPORT_user_button2').hide();
$('PROJECT_LEASE_IMPORT_user_button4').hide();
......@@ -44,15 +44,15 @@
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, record, config_records, bp_seq) {
if('${/parameter/@hide_flag}' != 'Y' && record!=''){
if('${/parameter/@project_status}'!='NEW' && record!=''){
record.getField('seq').setReadOnly(true);
record.getField('asset_num').setReadOnly(false);
record.getField('asset_type').setReadOnly(false);
record.getField('asset_name').setReadOnly(false);
record.getField('specification').setReadOnly(false);
record.getField('posted_date').setReadOnly(false);
record.getField('price').setReadOnly(false);
record.getField('manufacturer').setReadOnly(false);
record.getField('asset_num').setReadOnly(true);
record.getField('asset_type').setReadOnly(true);
record.getField('asset_name_n').setReadOnly(true);
record.getField('specification').setReadOnly(true);
record.getField('posted_date').setReadOnly(true);
record.getField('price').setReadOnly(true);
record.getField('manufacturer').setReadOnly(true);
}
}
......
......@@ -447,6 +447,7 @@
var prj_quotation_ds = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
var record = $(ds_id).findById(record_id);
var param = {};
param['project_status'] = '${/parameter/@project_status}';
param['project_lease_item_id'] = record.get('project_lease_item_id');
param['lease_item_id'] = record.get('lease_item_id');
param['set_number'] = record.get('set_number');
......
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