|
@@ -4389,9 +4389,10 @@ $(document).ready(() => {
|
|
|
// 定位到对应的清单或计量单元
|
|
|
$('body').on('click', '.show-shoufang-report', function () {
|
|
|
const id = parseInt($(this).attr('data-id'));
|
|
|
- const [qrCodePath, replace_key_params] = makeReportData(id);
|
|
|
+ const [qrCodePath, replace_key_params, req_params] = makeReportData(id);
|
|
|
sessionStorage.qrCodePath = qrCodePath;
|
|
|
sessionStorage.replace_key_params = JSON.stringify(replace_key_params);
|
|
|
+ sessionStorage.req_params = JSON.stringify(req_params);
|
|
|
window.open('/individualReport/A4');
|
|
|
});
|
|
|
});
|
|
@@ -4462,6 +4463,13 @@ function makeReportData(sfid) {
|
|
|
const lData = _.find(ledgerData, { id: sfInfo.lid });
|
|
|
replace_key_params['KEY_设计工程数量'] = lData.quantity;
|
|
|
}
|
|
|
+ const req_params = {
|
|
|
+ rpt_tpl_id: 1784,
|
|
|
+ pageSize: 'A4',
|
|
|
+ project_id: tender.project_id,
|
|
|
+ tender_id: tender.id,
|
|
|
+ stage_id: stage.id,
|
|
|
+ };
|
|
|
const qrCodePath = sfInfo.qrcode;
|
|
|
- return [qrCodePath, replace_key_params];
|
|
|
+ return [qrCodePath, replace_key_params, req_params];
|
|
|
}
|