Commit d1da5b4f authored by 25484's avatar 25484

[fix]合同结束工作流修改

parent be3f0aa1
......@@ -45,6 +45,9 @@
Leaf.onReady(function () {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var head_record = $(ds_id).getAt(0);
head_record.getField('invoice_agent_id_n').setRequired(true);
var invoice_agent_id = '${/model/user_agent_description/record/@agent_id}';
var invoice_agent_id_n = '${/model/user_agent_description/record/@agent_name}';
head_record.set('unit_id', '${/model/4s_root_path/record/@value_code}');
head_record.set('unit_id_n', '${/model/4s_root_path/record/@value_name}');
......@@ -53,8 +56,17 @@
head_record.set('invoice_agent_id', '${/model/prj_project_invoice_agent_id_dafault_value_path/record/@bp_id}');
// head_record.set('invoice_agent_id', '${/model/prj_project_invoice_agent_id_dafault_value_path/record/@bp_id}');
// head_record.set('invoice_agent_id_n', '${/model/prj_project_invoice_agent_id_dafault_value_path/record/@bp_id_n}');
head_record.set('invoice_agent_id', '${/model/user_agent_description/record/@agent_id}');
head_record.set('invoice_agent_id_n', '${/model/user_agent_description/record/@agent_name}');
head_record.set('invoice_agent_id', invoice_agent_id);
head_record.set('invoice_agent_id_n', invoice_agent_id_n);
if(!invoice_agent_id){
head_record.getField('invoice_agent_id_n').setReadOnly(false);
// head_record.getField('invoice_agent_id_n').setRequired(false);
}
// alert('${/session/@user_id}');
});
......@@ -64,25 +76,25 @@
//
if (name == 'division') {
record.set('bp_class_n', '');
// record.set('bp_class_n', '');
// record.set('invoice_agent_id_n', '');
record.getField('bp_class_n').setReadOnly(false);
// record.getField('invoice_agent_id_n').setRequired(true);
} else if (name == 'lease_channel') {
record.set('division', '');
record.set('division_n', '');
record.set('first_flag', '');
record.set('first_flag_n', '');
record.set('ka_prj_id', '');
record.set('ka_prj_id_n', '');
record.getField('first_flag_n').setReadOnly(true);
record.getField('first_flag_n').setRequired(false);
}
// record.set('invoice_agent_id_n', '');
// record.getField('bp_class_n').setReadOnly(false);
// record.getField('invoice_agent_id_n').setRequired(true);
//
// } else if (name == 'lease_channel') {
// record.set('division', '');
// record.set('division_n', '');
// record.set('first_flag', '');
// record.set('first_flag_n', '');
// record.set('ka_prj_id', '');
// record.set('ka_prj_id_n', '');
//
// record.getField('first_flag_n').setReadOnly(true);
// record.getField('first_flag_n').setRequired(false);
//
// }
//
};
......
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