Commit 26c14485 authored by stone's avatar stone

【fix】根据不同的厂商打印不同的文本

parent 8a5a33bc
......@@ -452,9 +452,13 @@
window.open(href = url);*/
var templet_code = 'CSH_PAYMENT_REQ';
// var document_id = record.get('ast_car_insurance_records_id');
console.log("${/parameter/@file_path}");
// 根据不同的厂商调用不用的模板
if(hd_record.get('vender_name').indexOf('永立')>0){
var url_l = $('csh_payment_req_word_print_link_id').getUrl() + '?document_id=' + hd_record.get('payment_req_id') + '&document_table=CSH_PAYMENT_REQ_YL&file_path=${/parameter/@file_path}&batch_flag=Y&source_type=COMMON';
}else{
var url_l = $('csh_payment_req_word_print_link_id').getUrl() + '?document_id=' + hd_record.get('payment_req_id') + '&document_table=CSH_PAYMENT_REQ&file_path=${/parameter/@file_path}&batch_flag=Y&source_type=COMMON';
}
window.open(href = url_l, target = "_self");
......
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