加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
invoice-detail.html 6.28 KB
一键复制 编辑 原始数据 按行查看 历史
风原 提交于 2022-04-03 14:12 . 初始化
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
<link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon.ico">
<title>Preclinic - Medical & Hospital - Bootstrap 4 Admin Template</title>
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<!--[if lt IE 9]>
<script src="assets/js/html5shiv.min.js"></script>
<script src="assets/js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="content">
<div class="row">
<div class="col-sm-5 col-4">
<h4 class="invoiceTitle page-title"></h4>
</div>
<div class="col-sm-7 col-8 text-right m-b-30">
<div class="btn-group btn-group-sm">
<button class="btn btn-white">CSV</button>
<button class="btn btn-white">PDF</button>
<button class="btn btn-white"><i class="fa fa-print fa-lg"></i> Print</button>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="card-box">
<h4 class="payslip-title"><span class="invoiceTitle"></span></h4>
<div class="row">
<div class="col-sm-6 m-b-20">
<img src="assets/img/logo-dark.png" class="inv-logo" alt="">
<ul class="list-unstyled mb-0">
<li>交款人:<span class="patientName"></span></li>
</ul>
</div>
<div class="col-sm-6 m-b-20">
<div class="invoice-details">
<h3 class="text-uppercase">票据代码: <span class="invoiceNum"></span></h3>
<ul class="list-unstyled">
<li>票据号码: <span class="invoiceCode"></span></li>
</ul>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12 m-b-20">
<ul class="list-unstyled">
<li>
<h5 class="mb-0"><strong class="employeeName"></strong></h5></li>
<li><span class="employeeRole"></span></li>
<li>开票日期: <span class="createDate"></span></li>
<li>收款人: <span class="payee"></span></li>
<li>复核人: <span class="recheck"></span></li>
</ul>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div>
<h4 class="m-b-10"><strong>费用详情</strong></h4>
<ul id="invoiceDetailItems"></ul>
</div>
</div>
<div class="col-sm-6">
<div>
<h4 class="m-b-10"><strong>扣减</strong></h4>
<table class="table table-bordered">
<tbody>
<tr>
<td><strong>基本扣税</strong> <span class="float-right"><span class="sourceded"></span></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-sm-12">
<p><strong>金额: <span class="amountch"></span></strong><strong><span class="amount"></span></strong></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="sidebar-overlay" data-reff=""></div>
<script src="assets/js/jquery-3.2.1.min.js"></script>
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/jquery.slimscroll.js"></script>
<script src="assets/js/app.js"></script>
<!--json data-->
<script type="text/javascript" src="json/invoice_detail.json"></script>
<script type="text/javascript" src="json/invoice_detail_items.json"></script>
<script type="text/javascript">
$(document).ready(function () {
for(key in invoiceDetail){
$("." + key).html(invoiceDetail[key]);
}
var invoiceDetailItemsStr = "";
for(var i = 0; i < invoiceDetailItems.length; i++){
invoiceDetailItemsStr = invoiceDetailItemsStr + '<li><strong>'+invoiceDetailItems[i].name+'<span class="float-right">¥<span class="base">'+invoiceDetailItems[i].amount+'</span></span></strong></ul>';
var items2 = invoiceDetailItems[i].items;
for(var j = 0; j < items2.length; j++){
invoiceDetailItemsStr = invoiceDetailItemsStr + '<li>['+items2[j].code+']'+items2[j].name+' '+items2[j].num+'/'+items2[j].unit+'<span class="float-right">'+items2[j].amount+'</span></li>';
}
invoiceDetailItemsStr = invoiceDetailItemsStr + '</ul></li>';
}
invoiceDetailItemsStr = invoiceDetailItemsStr + '</ul></li></ul>';
$("#invoiceDetailItems").html(invoiceDetailItemsStr);
});
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化