|
@@ -0,0 +1,142 @@
|
|
|
+<html xmlns:th="http://www.thymeleaf.org">
|
|
|
+<head>
|
|
|
+<title>私塾家</title>
|
|
|
+<script th:include="sys/common/metaCSS" th:remove="tag"></script>
|
|
|
+<script th:include="sys/common/metaJS" th:remove="tag"></script>
|
|
|
+<script src="sys/js/My97DatePicker/WdatePicker.js" th:src="@{/static/sys/js/My97DatePicker/WdatePicker.js}"></script>
|
|
|
+</head>
|
|
|
+<style>
|
|
|
+ .tablelink{margin-right:10px;}
|
|
|
+ .stylecss{
|
|
|
+ color: red;
|
|
|
+ }
|
|
|
+ .select_width{
|
|
|
+ width: 220px;
|
|
|
+ }
|
|
|
+ .date_width{
|
|
|
+ width: 150px;
|
|
|
+ }
|
|
|
+</style>
|
|
|
+<body>
|
|
|
+<div class="place">
|
|
|
+ <span>位置:</span>
|
|
|
+ <ul class="placeul">
|
|
|
+ <li><a href="#">财务管理</a></li>
|
|
|
+ <li><a href="#">小塾系统服务费销售订单开票数据</a></li>
|
|
|
+ </ul>
|
|
|
+</div>
|
|
|
+<div class="rightinfo">
|
|
|
+ <form id="seachform" th:action="@{/sys/order/invoiceOrderList.html}" method="post">
|
|
|
+ <input type="hidden" name="reportType" id="reportType" />
|
|
|
+ <ul class="seachform">
|
|
|
+ <li>
|
|
|
+ <label>开始时间</label>
|
|
|
+ <input type="text" id="beginDate" name="beginDate" onclick="WdatePicker({readOnly:true,maxDate:'#F{$dp.$D(\'endDate\')}'})" th:value="${search.beginDate }" class="scinput date_width " placeholder="开始时间">
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <label>结束时间</label>
|
|
|
+ <input type="text" id="endDate" name="endDate" onclick="WdatePicker({minDate:'#F{$dp.$D(\'beginDate\')}',maxDate:'%y-%M-%d'})" th:value="${search.endDate }" class="scinput date_width" placeholder="结束时间">
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <label>订单编号</label>
|
|
|
+ <input name="order_no" type="text" class="scinput" th:value="${search.get('order_no')}"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <label>图书馆</label>
|
|
|
+ <select class="scinput select_width" name="libId" style="width: 220px;" >
|
|
|
+ <option value="" >全部</option>
|
|
|
+ <option th:each="item:${libList}" th:value="${item.id}" th:selected="${ search.get('libId') eq item.id }" th:text="${item.leagueName}"></option>
|
|
|
+ </select>
|
|
|
+ </li>
|
|
|
+
|
|
|
+ <li>
|
|
|
+ <input type="button" class="scbtn" value="查询" />
|
|
|
+ </li>
|
|
|
+
|
|
|
+
|
|
|
+ </ul>
|
|
|
+
|
|
|
+ </form>
|
|
|
+ <table class="tablelist">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th style="width: 50px;">序号</th>
|
|
|
+ <th>机构</th>
|
|
|
+ <th>订单编号</th>
|
|
|
+ <th>微信支付业务单号</th>
|
|
|
+ <th>产品明细</th>
|
|
|
+ <th>金额</th>
|
|
|
+ <th>支付时间</th>
|
|
|
+ <th>订单状态</th>
|
|
|
+ <th>抬头类型</th>
|
|
|
+ <th>发票抬头</th>
|
|
|
+ <th>纳税人识别号</th>
|
|
|
+ <th>email</th>
|
|
|
+ <th>是否已开票</th>
|
|
|
+ <th>申请开票时间</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr th:each="item:${list}" >
|
|
|
+ <td th:text="${itemStat.count}" ></td>
|
|
|
+ <td th:text="${item.get('league_name')}"></td>
|
|
|
+ <td th:text="${item.get('order_no')}"></td>
|
|
|
+ <td th:text="${item.get('transaction_id')}"></td>
|
|
|
+ <td th:text="${item.get('details')}"></td>
|
|
|
+ <td th:text=" ${#strings.contains(item.get('price'),'.00')} ? ${#numbers.formatDecimal(item.get('price'),1,0)} : ${#numbers.formatDecimal(item.get('price'),1,2)} " style="color: red;"></td>
|
|
|
+ <td th:text="${#calendars.format(item.get('zf_time'),'yyyy-MM-dd HH:mm')}" ></td>
|
|
|
+ <td th:switch="${item.get('order_status')}">
|
|
|
+ <span th:case="1">已支付</span>
|
|
|
+ <span th:case="2" style="color: red;">已退款</span>
|
|
|
+ <span th:case="3" style="color: red;">财务手动</span>
|
|
|
+ <span th:case="*">其他</span>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <td th:switch="${item.get('type')}">
|
|
|
+ <span th:case="1">个人</span>
|
|
|
+ <span th:case="2">企业</span>
|
|
|
+ </td>
|
|
|
+ <td th:text="${item.get('invoice_title')}"></td>
|
|
|
+ <td th:text="${item.get('taxpayer_id')}"></td>
|
|
|
+ <td th:text="${item.get('email')}"></td>
|
|
|
+ <td th:switch="${item.get('invoice_state')}">
|
|
|
+ <span th:case="1">已开票</span>
|
|
|
+ <span style="color: green;" th:case="2" th:onclick="'updateCourseNum(\''+${item.id}+'\',this)'">申请中</span>
|
|
|
+ <span th:case="*">未开票</span>
|
|
|
+ </td>
|
|
|
+ <td th:text="${#calendars.format(item.get('create_time'),'yyyy-MM-dd HH:mm')}"></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <!-- 分页 -->
|
|
|
+ <div class="pagin">
|
|
|
+ <div class="message">共<i class="blue">[[${page.rowCnt}]]</i>条记录,当前显示第 <i class="blue">[[${page.pageNo }]] </i>页</div>
|
|
|
+ <div th:utext='${listNavigatHtml}' th:remove="tag" ></div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+</body>
|
|
|
+<script type="text/javascript">
|
|
|
+function updateCourseNum(id,_this){
|
|
|
+ $(_this).removeAttr("onBlur");
|
|
|
+ $.ajax({
|
|
|
+ url : "[[${sysUrl}]]/sys/order/updateOrderInvoice",
|
|
|
+ type : "post",
|
|
|
+ data : {
|
|
|
+ id : id
|
|
|
+ },
|
|
|
+ dataType : "json",
|
|
|
+ success : function(data) {
|
|
|
+ if(data.code=='999'){
|
|
|
+ parent.layer.msg('操作成功',{icon:1});
|
|
|
+ location.reload();
|
|
|
+ }else{
|
|
|
+ parent.layer.msg('操作失败',{icon: 9})
|
|
|
+ $(_this).attr("onclick","updateCourseNum("+id+","+"this)");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+</script>
|
|
|
+
|
|
|
+</html>
|