generated from zhaoxingchang/i-tax-management-front-lxzy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
2.2 KiB
67 lines
2.2 KiB
10 months ago
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
|
||
|
<link rel="stylesheet" type="text/css" href="../../css/base.css?v=1.0.7" />
|
||
|
<title>发票预览</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="" id="imgBox">
|
||
|
</div>
|
||
|
</body>
|
||
|
<script src="../../js/lib/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
|
||
|
<script src="../../js/common/base.js?v=1.0.7" type="text/javascript" charset="utf-8"></script>
|
||
|
<script>
|
||
|
const tqm = getUrlArgumentValue('tqm');
|
||
|
$(function () {
|
||
|
$.ajax({
|
||
|
url: config.projectUrl + '/invoiceDetails/queryInvoiceDateilInfoPdfByTqm',
|
||
|
type: "post",
|
||
|
contentType:'application/json',
|
||
|
data: JSON.stringify({
|
||
|
'tqm': tqm
|
||
|
}),
|
||
|
async: false,
|
||
|
success: function (data) {
|
||
|
if (data.code === '0000') {
|
||
|
$.ajax({
|
||
|
url: config.projectUrl + '/invoiceDetails/previewInvoicePngMore',
|
||
|
type: "post",
|
||
|
data:JSON.stringify([{
|
||
|
"invoiceCode": data.data.orderInvoiceInfo.fpdm,
|
||
|
"invoiceNo": data.data.orderInvoiceInfo.fphm,
|
||
|
"sdInvoiceNo": data.data.orderInvoiceInfo.sdfphm,
|
||
|
"invoiceType": data.data.orderInvoiceInfo.fpzlDm,
|
||
|
"xhfNsrsbh": data.data.orderInvoiceInfo.xhfNsrsbh,
|
||
|
}]),
|
||
|
async: false,
|
||
|
contentType:'application/json',
|
||
|
success: function (data) {
|
||
|
if(data.code==="0000"){
|
||
|
let imgs = "";
|
||
|
for(let i=0; i<data.data.length; i++){
|
||
|
const imgSrc = 'data:image/png;base64,' + data.data[i];
|
||
|
const img = '<img src=' + imgSrc + ' style="width:100%"/>';
|
||
|
imgs += img;
|
||
|
}
|
||
|
$("#imgBox").html(imgs);
|
||
|
}else{
|
||
|
alert_prompt_open("提示", '发票预览失败', 1);
|
||
|
}
|
||
|
}
|
||
|
})
|
||
|
} else {
|
||
|
alert_prompt_open("提示", '发票预览失败', 1);
|
||
|
}
|
||
|
},
|
||
|
error: function () {
|
||
|
alert_prompt_open("提示", "当前网络正忙,请稍后重试", 1);
|
||
|
}
|
||
|
});
|
||
|
})
|
||
|
</script>
|
||
|
|
||
|
</html>
|