csh_payment_asset_req.lview 25.5 KB
Newer Older
18083's avatar
18083 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: trd
    $Date: 2024-1-18 上午09:27:36
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script"
          customizationEnabled="true" dynamiccreateenabled="true" trace="true">
    <a:init-procedure>
        <s:server-script import="contract_print_path.js"><![CDATA[
            $ctx.parameter.file_path = con_print_path['con_print_path'];
            $ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
            ]]>
        </s:server-script>
          <a:model-query fetchAll="true" model="csh.CSH501.get_loan_flag" rootPath="loan_flag_path"/>
          <a:model-query defaultWhereClause="t1.user_id=${/session/@user_id}" model="basic.sys_session_info"
                                 rootPath="user_name_path"/>
    </a:init-procedure>
    <a:view>
        <a:link id="csh_payment_req_word_print_link_id"
22
                url="${/request/@context_path}/modules/csh/CSH501C/csh_payment_asset_pdf.lsc"/>
18083's avatar
18083 committed
23 24 25 26 27 28 29 30 31
        <a:link id="csh501d_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
                modelaction="update"/>
        <a:link id="con_rd_wfl_link" url="${/request/@context_path}/modules/cont/CON505/con_contract_modify.lview"/>
        <link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/>
        <script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/>
        <script src="${/request/@context_path}/javascripts/calculate.js" type="text/javascript"/>
        <script src="${/request/@context_path}/javascripts/jquery-1.6.4.min.js" type="text/javascript"/>
         <a:link id="csh_uploadFile_id" url="${/request/@context_path}/uploadFile.lview"/>
        <a:link id="csh_downloadFile_id" url="${/request/@context_path}/downloadFile.lview"/>
32 33
        <a:link id="csh_invoice_inf_import_link" model="csh.CSH501C.req_acp_inf_import" modelaction="update"/>
        <a:link id="csh_invoice_inf_import_total_link" model="csh.CSH501C.req_acp_inf_import_total" modelaction="update"/>
18083's avatar
18083 committed
34 35
        <script type="text/javascript"><![CDATA[
        jQuery.noConflict();
36
           function get_current_amount(amt) {
18083's avatar
18083 committed
37 38 39 40 41 42
            if (!Ext.isEmpty(amt)) {
                return parseFloat(amt).toFixed(2);
            } else {
                return 0;
            }
        }
43

18083's avatar
18083 committed
44
        Leaf.onReady(function () {
45
         if ('${/parameter/@source_type}' == 'WFL'||'${/parameter/@source_type}' == 'WFL_N'||'${/parameter/@source_type}' == 'WFL_ACCT') {
46 47
            if(document.getElementById('${/parameter/@layout_code}_save')){
            document.getElementById('${/parameter/@layout_code}_save').style.display = "none";
18083's avatar
18083 committed
48
            }
49
           }
50 51 52 53 54 55 56 57 58 59 60
         if('${/parameter/@approval_status}' == 'APPROVED'){
                if(document.getElementById('${/parameter/@layout_code}_save')){
                    document.getElementById('${/parameter/@layout_code}_save').style.display = "none";
                }
                if(document.getElementById('${/parameter/@layout_code}_exit')){
                 document.getElementById('${/parameter/@layout_code}_exit').style.display = "none";
                }
                if(document.getElementById('${/parameter/@layout_code}_submit_approval')){
                 document.getElementById('${/parameter/@layout_code}_submit_approval').style.display = "none";
             }
            }
18083's avatar
18083 committed
61 62 63 64 65 66 67 68
         if('${/parameter/@function_usage}' == 'QUERY'){
            if($jq('#${/parameter/@layout_code}_AP_INVOICE_DETAIL_G_ADD_layout_dynamic_button_id')){
                $jq('#${/parameter/@layout_code}_AP_INVOICE_DETAIL_G_ADD_layout_dynamic_button_id').hide();
               }
            if($jq('#${/parameter/@layout_code}_AP_INVOICE_DETAIL_G_DELETE_layout_dynamic_button_id')){
               $jq('#${/parameter/@layout_code}_AP_INVOICE_DETAIL_G_DELETE_layout_dynamic_button_id').hide();
              }
         }
18083's avatar
18083 committed
69

70 71 72 73 74 75 76
          //进项发票信息
        var first = document.getElementsByClassName("item-input-wrap");
        var second = first[5].getElementsByClassName('item-textField');
        var third = second[0];
        third.setAttribute('placeholder', '注:扫描时请将鼠标光标放在此处。。。');
        third.style.backgroundColor = '#FF7744';
         });
18083's avatar
18083 committed
77

18083's avatar
18083 committed
78 79 80 81 82 83 84 85
        //form加载
        window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
            var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
            if (ds_id == ds.id && ds_id) {
                if ('${/parameter/@source_type}' == 'WFL_N') {
                       record.getField('bp_bank_account_num').setReadOnly(true);
                       record.getField('bp_bank_account_num_n').setReadOnly(true);
                       record.getField('req_date').setReadOnly(true);
86
                }
18083's avatar
18083 committed
87 88 89 90 91 92 93 94 95 96 97
            }
        }

        //grid加载
        window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, record, config_records, bp_seq) {
         var lnds_id_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
         if(lnds_id_ds_id == ds.id &&lnds_id_ds_id){
           //代理店节点只能上传附件,不能编辑
           if ('${/parameter/@source_type}' == 'WFL_N') {
                record.getField('apply_pay_date').setReadOnly(true);
            }
98 99 100 101 102 103
           if ('${/parameter/@source_type}' != 'WFL_ACCT') {
              var gridId= ds.bindname+'_layout_grid_id';
              $(gridId).hideColumn('sbo_num');
             $(gridId).hideColumn('journal_date');
           }

18083's avatar
18083 committed
104 105 106
         }
        }

18083's avatar
18083 committed
107
         var dirty_flag = 'N';
18083's avatar
18083 committed
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
        window['${/parameter/@layout_code}_on_layout_dynamic_update'] = function (ds, record, name, value, old_value, bp_seq) {
            dirty_flag = 'Y';
            var hdds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
            var lnds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
            hd_ds = $(hdds_id);
            var  hdrecord = hd_ds.getCurrentRecord();
            var bp_bank_account_name = hdrecord.get('bp_bank_account_name');
            var bp_bank_account_id = hdrecord.get('bp_bank_account_id');
            var bp_bank_account_num = hdrecord.get('bp_bank_account_num');
            var bp_bank_full_name = hdrecord.get('bp_bank_full_name')
            var hd_ds, ln_ds, lineRecords, currency_code, currency_name;
            if (hdds_id) {
                if((name == 'bp_bank_account_num'||name == 'bp_bank_account_name') && !Ext.isEmpty(hdrecord.get('bp_bank_account_num')) && !Ext.isEmpty(hdrecord.get('bp_bank_account_name'))){
                    var records = $(lnds_id).getAll();
                    for (var i = 0; i < records.length; i++) {
18083's avatar
18083 committed
123
                        records[i].set('bp_bank_account_num', bp_bank_account_num);
18083's avatar
18083 committed
124 125 126 127 128 129
                        records[i].set('bp_bank_full_name', bp_bank_full_name);
                        records[i].set('bp_bank_account_name', bp_bank_account_name);
                        records[i].set('bp_bank_account_id', bp_bank_account_id);

                    }
                }
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
                 //进项票
                 var acp_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hl_req_payment_acp');
                  if (name == 'invoice' && value) {
                     var payment_req_id = hdrecord.get('payment_req_id');
                     var strs = value.split(',');
                     var invoice_type = strs[1];
                     var invoice_code = strs[2];
                     var invoice_number = strs[3];
                     var net_amount = strs[4];
                     var invoice_date = strs[5];
                     var total_amount =strs[4];
                      if (strs.length == 9) {
                         //校验重复发票号码 add by 26887cz 2021-09-07
                         var acr_records = $(acp_ds_id).getAll();
                         for (var i = 0; i < acr_records.length; i++) {
                             if (acr_records[i].get("invoice_number") == invoice_number) {
                                 Leaf.showMessage('提示', '发票号码重复,请重新扫描!');
                                 setTimeout(function () {
                                     record.set('invoice', '');
                                 }, 50);
                                 return;
                             }
18083's avatar
18083 committed
152
                         }
153 154 155 156 157 158 159 160 161
                         Leaf.request({
                             url: $('csh_invoice_inf_import_link').getUrl(),
                             para: {
                                 invoice_type: invoice_type,
                                 invoice_code: invoice_code,
                                 invoice_number: invoice_number,
                                 net_amount: net_amount,
                                 invoice_date: invoice_date,
                                 payment_req_id:payment_req_id
18083's avatar
18083 committed
162

163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
                             },

                             success: function () {
                                 Leaf.SideBar.show({
                                         msg: '导入成功',
                                         duration: 2000
                                     }
                                 );
                                 setTimeout(function () {
                                     record.set('invoice', '');
                                 }, 50);
                                  $(acp_ds_id).query();
                             }, failure: function () {
                                 setTimeout(function () {
                                     record.set('invoice', '');
                                 }, 50);
                             },
                             error: function () {
                                 setTimeout(function () {
                                     record.set('invoice', '');
                                 }, 50);
                             },
                             scope: this
                         });
                     } else if (strs.length == 8) {
                         //校验重复发票号码 add by 26887cz 2021-09-07
                         var acr_records = $(acp_ds_id).getAll();
                         for (var i = 0; i < acr_records.length; i++) {
                             if (acr_records[i].get("invoice_number") == invoice_number) {
                                 Leaf.showMessage('提示', '发票号码重复,请重新扫描!');
                                 setTimeout(function () {
                                     record.set('invoice', '');
                                 }, 50);
                                 return;
                             }
18083's avatar
18083 committed
198
                         }
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
                         Leaf.request({
                             url: $('csh_invoice_inf_import_total_link').getUrl(),
                             para: {
                                 invoice_type: invoice_type,
                                 invoice_code: invoice_code,
                                 invoice_number: invoice_number,
                                 total_amount: total_amount,
                                 invoice_date: invoice_date,
                                 payment_req_id:payment_req_id
                              },
                             success: function () {
                                 Leaf.SideBar.show({
                                         msg: '导入成功',
                                         duration: 2000
                                     }
                                 );
                                 setTimeout(function () {
                                     record.set('invoice', '');
                                 }, 50);
                                  $(acp_ds_id).query();
                             }, failure: function () {
                                 setTimeout(function () {
                                     record.set('invoice', '');
                                 }, 50);
                             },
                             error: function () {
                                 setTimeout(function () {
                                     record.set('invoice', '');
                                 }, 50);
                             },
                             scope: this
                         });
                     } else if (strs.length == 7) {
                         //校验重复发票号码 add by 26887cz 2021-09-07
                         var acr_records = $(acp_ds_id).getAll();
                         for (var i = 0; i < acr_records.length; i++) {
                             if (acr_records[i].get("invoice_number") == invoice_number) {
                                 Leaf.showMessage('提示', '发票号码重复,请重新扫描!');
                                 setTimeout(function () {
                                     record.set('invoice', '');
                                 }, 50);
                                 return;
                             }
18083's avatar
18083 committed
242
                         }
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279
                         Leaf.request({
                             url: $('csh_invoice_inf_import_link').getUrl(),
                             para: {
                                 invoice_type: invoice_type,
                                 invoice_code: invoice_code,
                                 invoice_number: invoice_number,
                                 net_amount: net_amount,
                                 invoice_date: invoice_date,
                                 payment_req_id:payment_req_id
                              },
                             success: function () {
                                 Leaf.SideBar.show({
                                         msg: '导入成功',
                                         duration: 2000
                                     }
                                 );
                                 setTimeout(function () {
                                     record.set('invoice', '');
                                 }, 50);
                                  $(acp_ds_id).query();
                             }, failure: function () {
                                 setTimeout(function () {
                                     record.set('invoice', '');
                                 }, 50);
                             },
                             error: function () {
                                 setTimeout(function () {
                                     record.set('invoice', '');
                                 }, 50);
                             },
                             scope: this
                         });
                     }else {
                         Leaf.showMessage('提示', '发票信息有错误,请重新扫描!');
                         setTimeout(function () {
                             record.set('invoice', '');
                         }, 50);
18083's avatar
18083 committed
280 281
                     }
                 }
282 283 284

            }

18083's avatar
18083 committed
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
        };


        //新增时调用(grid,table,gridBox)
        window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function (ds, record, config_records, bp_seq) {
            record.set("created_by_n", '${/model/user_name_path/record/@user_desc}');
            record.set("created_by", '${/session/@user_id}');
            record.set("update_date", new Date());
        };

        function csh_payment_req_submit_finally() {
            Leaf.showConfirm('${l:HLS.PROMPT}', '${l:HLS.ARE_YOU_SURE_TO_SUBMIT}', function okFun() {
                window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
                var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
                var hd_record = $(ds_id).getCurrentRecord();
                var payment_req_id = hd_record.get('payment_req_id');
                var line_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
                var line_record = $(line_ds_id).getAt(0);
                Leaf.request({
                    url: '${/request/@context_path}/autocrud/csh.CSH501C.upd_csh_payment_asset_flag/execute',
                    para: {
                        payment_req_id: payment_req_id,
                        _status: 'execute'
                    },
                    success: function (res) {
                        Leaf.SideBar.enable = true;
                        Leaf.SideBar.show({
                            msg: '${l:HLS.SUBMIT_SUCCESS}',
                            duration: 2000
                        });
                        window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                        $('${/parameter/@winid}').close();
                    },
                    failure: function () {
                        Leaf.SideBar.enable = true;
                        window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                    },
                    error: function () {
                        Leaf.SideBar.enable = true;
                        window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                    },
                    scope: this
                });
            }, function cancelFun() {
                Leaf.SideBar.enable = true;
                window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
            });
        }

18083's avatar
18083 committed
334
        //打印:待确认是否有打印文件,先预留
18083's avatar
18083 committed
335 336 337 338
        function csh501_print() {
            var hdds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
            var hd_record = $(hdds_id).getCurrentRecord();

38823's avatar
38823 committed
339
            var url_l = $('csh_payment_req_word_print_link_id').getUrl() + '?document_id=' + hd_record.get('payment_req_id') + '&document_table=CSH_PAYMENT_REQ_ASSET_HD&file_path=${/parameter/@file_path}&batch_flag=Y&source_type=COMMON';
18083's avatar
18083 committed
340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430
            window.open(href = url_l, target = "_self");
        }

        window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function () {
            Leaf.SideBar.enable = false;
            window['${/parameter/@layout_code}_SAVE_LAYOUT_DYNAMIC_CLICK'](csh_payment_req_submit_finally);
        };


        window['${/parameter/@layout_code}_print_layout_dynamic_click'] = function () {
            var hdds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
            var lnds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
            var hd_ds = $(hdds_id),
                ln_ds = $(lnds_id);
            var hd_record = hd_ds.getCurrentRecord(),
                ln_records = ln_ds.getAll();
            if (ln_records.length > 0 && !ln_records[0].get('payment_req_ln_id')) {
                Leaf.showMessage('${HLS.PROMPT}', '请先保存!');
            } else {
                csh501_print();
            }
        };
        //保存前调用
        window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) {
            window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
            var check_flag = false;
            var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
            var ds_line_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
            if ($(ds_line_id).data.length <= 0) {
                $L.showErrorMessage("错误", '无付款记录,不可提交审批!');
                window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                check_flag = false;
                return;
            }

            //确认保存
            var hd_record = $(ds_id).getCurrentRecord();
            var payment_req_id = hd_record.get('payment_req_id');
            if (payment_req_id) {
                Leaf.request({
                    url: $('${/parameter/@layout_code}csh511_csh_payment_req_hd_query').getUrl(),
                    para: {
                        payment_req_id: payment_req_id,
                    },
                    success: function (res) {
                        window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                        if (res.result.record.submitted_flag == 'Y' && '${/parameter/@source_type}' != 'WFL_Y') {
                            Leaf.showMessage('${l:PROMPT}', '该单据已经提交');
                            check_flag = false;
                        } else {
                            check_flag = true;
                        }

                    },
                    error: function () {
                        window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                        check_flag = false;
                    },
                    failure: function () {
                        window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
                        check_flag = false;
                    },
                    sync: true,
                    scope: this
                });
                window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
            } else {
                check_flag = true;
            }
            return check_flag || false;
        };


        //合同编号超链接
        function open_con_contract_readonly_win(record_id, ds_id) {
             //创建明细页面根据条件表TBL_LA11字段 function_code、bp_class匹配布局代码layout_code BCML_CONTRACT_NP_MAINTAIN、BCML_CONTRACT_ORG_MAINTAIN
            var record = $(ds_id).findById(record_id);
            var division = record.get('division');
            if (!division) {
                division = '${/parameter/@division}';
            }
            var param = record.data;
            param.function_code = 'CON3200Q';
            param.division = division;
            param.function_usage = 'QUERY';
            param.maintain_type = 'QUERY';
            param.url_title = '${l:CON301.CONTRACT_DETAIL}';
            param.winid = 'con_rd_wfl_link_winid';
            hls_doc_get_layout_code('csh501d_get_layout_code_link_id', param, 'con_rd_wfl_link', '', '${/parameter/@layout_code}');
        }

18083's avatar
18083 committed
431 432
        //上传附件
        function upload_csh_file(id,name,record_id,query_only) {
18083's avatar
18083 committed
433
         var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
18083's avatar
18083 committed
434
         if (query_only == 'Y' || '${/parameter/@function_usage}' == 'QUERY'){
18083's avatar
18083 committed
435
         var url = $('csh_downloadFile_id').getUrl() + '?table_name=CSH_PAYMENT_REQ_ASSET_HD&header_id=' + record_id;
18083's avatar
18083 committed
436 437
        }else{
          var url = $('csh_uploadFile_id').getUrl() + '?table_name=CSH_PAYMENT_REQ_ASSET_HD&header_id=' + record_id;
18083's avatar
18083 committed
438 439 440 441 442 443 444 445 446
         }
          var win = new Leaf.Window({
            url: url,
            title: '${l:HLS.SUPPORTING_DOCUMENT}',
            id: 'csh_attachment_uploadFile_id',
            width: 850,
            height: 400
            });
          win.on('close', function () {
18083's avatar
18083 committed
447
            //record.ds.query();
18083's avatar
18083 committed
448 449 450 451
        });

    }

18083's avatar
18083 committed
452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472
           //上传发票附件:用于电子档案
            function upload_invoice_file(id,name,record_id,query_only) {
             var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
             if (query_only == 'Y' || '${/parameter/@function_usage}' == 'QUERY'){
             var url = $('csh_downloadFile_id').getUrl() + '?table_name=HL_REQ_PAYMENT_ACP&header_id=' + record_id;
             }else{
             var url = $('csh_uploadFile_id').getUrl() + '?table_name=HL_REQ_PAYMENT_ACP&header_id=' + record_id;
            }
              var win = new Leaf.Window({
                url: url,
                title: '${l:HLS.SUPPORTING_DOCUMENT}',
                id: 'invoice_attachment_uploadFile_id',
                width: 850,
                height: 400
                });
              win.on('close', function () {
                //record.ds.query();
            });

        }

18083's avatar
18083 committed
473 474 475 476 477
         window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record, bp_seq) {
           window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
            if (name == 'contract_number'&& value) {
                return '<a href="javascript:open_con_contract_readonly_win(\'' + record.id + '\',\'' + record.ds.id + '\')">' + value  + '</a>';
           }else if (name == 'attach_link'){
18083's avatar
18083 committed
478 479 480
               return '<a href=javascript:upload_csh_file(\''+record.id+'\',\''+ name + '\',\'' +record.get('payment_req_id')+'\',\'' + config_record.get('query_only')+'\')>附件上传</a>';
            }else if (name == 'invoice_link'){
             return '<a href=javascript:upload_invoice_file(\''+record.id+'\',\''+ name + '\',\'' +record.get('payment_req_id')+'\',\'' + config_record.get('query_only')+'\')>发票附件上传</a>';
18083's avatar
18083 committed
481 482 483 484

             }
        };

18083's avatar
18083 committed
485 486 487 488
       ]]></script>
         <a:link id="${/parameter/@layout_code}csh511_csh_payment_req_hd_query" model="csh.CSH511.csh_payment_req_hd"
                        modelaction="query"/>
          <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
18083's avatar
18083 committed
489 490 491

    </a:view>
</a:screen>