From 5b2c539acc75a067e7b3c714011b6140e67a4017 Mon Sep 17 00:00:00 2001
From: double <768903061@qq.com>
Date: Fri, 14 Jun 2019 10:49:56 +0800
Subject: [PATCH] =?UTF-8?q?=E9=94=80=E5=94=AE=E7=BB=9F=E8=AE=A1=E6=8A=A5?=
=?UTF-8?q?=E8=A1=A8=E6=B7=BB=E5=8A=A0=E9=94=80=E5=94=AE=E6=80=BB=E9=A2=9D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
erp_web/pages/reports/sale_out_report.html | 29 ++++++++++++++--------
1 file changed, 19 insertions(+), 10 deletions(-)
diff --git a/erp_web/pages/reports/sale_out_report.html b/erp_web/pages/reports/sale_out_report.html
index f3bcb9ae..e7d8039f 100644
--- a/erp_web/pages/reports/sale_out_report.html
+++ b/erp_web/pages/reports/sale_out_report.html
@@ -34,7 +34,7 @@
打印
-
注:此处包含零售+批发销售 |
+ 当前销售总额:0 注:此处包含零售+批发销售 |
@@ -110,14 +110,16 @@
pageSize: 10,
pageList: [10, 50, 100],
columns: [[
- {title: '名称', field: 'MaterialName', width: 60},
- {title: '型号', field: 'MaterialModel', width: 80},
- {title: '扩展信息', field: 'MaterialOther', width: 150},
- {title: '单位', field: 'MaterialUnit', width: 80},
- {title: '销售数量', field: 'OutSum', width: 60},
- {title: '销售金额', field: 'OutSumPrice', width: 60},
- {title: '退货数量', field: 'InSum', width: 60},
- {title: '退货金额', field: 'InSumPrice', width: 60}
+ {title: '名称', field: 'MaterialName', width: 60, align: "center"},
+ {title: '型号', field: 'MaterialModel', width: 80, align: "center"},
+ {title: '扩展信息', field: 'MaterialOther', width: 150, align: "center"},
+ {title: '单位', field: 'MaterialUnit', width: 80, align: "center"},
+ {title: '销售数量', field: 'OutSum', width: 60, align: "center"},
+ {title: '销售金额', field: 'OutSumPrice', width: 60, align: "center"},
+ {title: '退货数量', field: 'InSum', width: 60, align: "center"},
+ {title: '退货金额', field: 'InSumPrice', width: 60, align: "center"},
+ {title: '实际销售金额', field: 'OutInSumPrice', width: 80, align: "center"}
+
]],
onLoadError: function () {
$.messager.alert('页面加载提示', '页面加载异常,请稍后再试!', 'error');
@@ -219,6 +221,13 @@
if (res && res.code === 200 && res.data) {
$("#tableData").datagrid('loadData', res.data.rows);
}
+ var total = 0;
+ res.data.rows.forEach(function(value, index, array){
+ //执行某些操作
+ total += value.OutInSumPrice;
+ })
+
+ $(".first-total").text(total); //当前总余额
},
//此处添加错误处理
error: function () {
@@ -260,4 +269,4 @@
}