From fc46f2a7c6680df278f4c68c5e91a0ce544a2de4 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 18 Jan 2021 17:00:41 +0800
Subject: [PATCH] modify

---
 zq-erp/src/main/resources/templates/views/admin/hive/statistics/daily-sale-list.html |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 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..a9c2d1b 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);
 		//限制结束时间不小于开始时间
@@ -111,6 +111,14 @@
 
 		});
 
+		function shouldPayFormat(value, row, index) {
+			return row.shouldPay + row.refund;
+		}
+
+		function zkAmountFormat(value, row, index) {
+			return row.shouldPay + row.refund - row.arrears - row.totalPay;
+		}
+
 		function footCountTitle(data) {
 			return "<b>合计</b>";
 		};

--
Gitblit v1.9.1