From eee12698214d01e69c438dc6ab777a225a43a82a Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 28 Apr 2021 15:58:41 +0800
Subject: [PATCH] 20210428 抽奖
---
zq-erp/src/main/resources/templates/views/admin/hive/statistics/daily-sale-list.html | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/zq-erp/src/main/resources/templates/views/admin/hive/statistics/daily-sale-list.html b/zq-erp/src/main/resources/templates/views/admin/hive/statistics/daily-sale-list.html
index 4d459b9..7541632 100644
--- a/zq-erp/src/main/resources/templates/views/admin/hive/statistics/daily-sale-list.html
+++ b/zq-erp/src/main/resources/templates/views/admin/hive/statistics/daily-sale-list.html
@@ -53,9 +53,9 @@
data-width="30px">序号</th>
<th data-field="dataTime">日期</th>
<th data-field="shopName">门店名称</th>
- <th data-field="totalPay">应收金额</th>
+ <th data-field="shouldPay" data-formatter="shouldPayFormat">应收金额</th>
<th data-field="totalPay">实收金额</th>
- <th data-field="hisConsume">折扣金额</th>
+ <th data-field="shouldPay" data-formatter="zkAmountFormat">折扣金额</th>
<th data-field="perCustomCnt">客单数</th>
<th data-field="customGoodsCnt">客品数</th>
<th data-field="cost">成本</th>
@@ -79,8 +79,8 @@
<script type="text/javascript">
var myGrid;
var initParam = {
- format : "yyyy-mm-dd hh:ii", //默认显示年与日,如果想显示十分秒:"yyyy-mm-dd hh:ii:ss"
- minView: "hour", //"month",只显示年月日的选择,不会再跳转去选择时分秒;如果想要选择时分秒的:"hour"
+ format : "yyyy-mm-dd", //默认显示年与日,如果想显示十分秒:"yyyy-mm-dd hh:ii:ss"
+ minView: "month", //"month",只显示年月日的选择,不会再跳转去选择时分秒;如果想要选择时分秒的:"hour"
}
MTools.ininDatetimepicker(initParam);
//限制结束时间不小于开始时间
@@ -93,8 +93,6 @@
url : basePath+"/admin/sysBusinessData/findDailySaleData",
showExport : true,
showFooter : false,
- height:'auto',
- width:'auto',
exportDataType : "basic", //basic', 'all', 'selected'.
exportTypes : [ 'excel', 'xlsx' ], //导出类型
exportOptions : {
@@ -111,6 +109,15 @@
});
+ function shouldPayFormat(value, row, index) {
+ return row.shouldPay + row.refund;
+ }
+
+ function zkAmountFormat(value, row, index) {
+ var result = row.shouldPay + row.refund - row.arrears - row.totalPay;
+ return result.toFixed(2);
+ }
+
function footCountTitle(data) {
return "<b>合计</b>";
};
--
Gitblit v1.9.1