Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
5b2c539a
Commit
5b2c539a
authored
Jun 14, 2019
by
double
Browse files
销售统计报表添加销售总额
parent
c6880e0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/pages/reports/sale_out_report.html
View file @
5b2c539a
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-print"
id=
"printBtn"
>
打印
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-print"
id=
"printBtn"
>
打印
</a>
</td>
</td>
<td><span
class=
"tip"
>
注:此处包含零售+批发销售
</span></td>
<td>
当前销售总额:
<span
class=
"first-total"
>
0
</span>
<span
class=
"tip"
>
注:此处包含零售+批发销售
</span></td>
</tr>
</tr>
</table>
</table>
</div>
</div>
...
@@ -110,14 +110,16 @@
...
@@ -110,14 +110,16 @@
pageSize
:
10
,
pageSize
:
10
,
pageList
:
[
10
,
50
,
100
],
pageList
:
[
10
,
50
,
100
],
columns
:
[[
columns
:
[[
{
title
:
'
名称
'
,
field
:
'
MaterialName
'
,
width
:
60
},
{
title
:
'
名称
'
,
field
:
'
MaterialName
'
,
width
:
60
,
align
:
"
center
"
},
{
title
:
'
型号
'
,
field
:
'
MaterialModel
'
,
width
:
80
},
{
title
:
'
型号
'
,
field
:
'
MaterialModel
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
扩展信息
'
,
field
:
'
MaterialOther
'
,
width
:
150
},
{
title
:
'
扩展信息
'
,
field
:
'
MaterialOther
'
,
width
:
150
,
align
:
"
center
"
},
{
title
:
'
单位
'
,
field
:
'
MaterialUnit
'
,
width
:
80
},
{
title
:
'
单位
'
,
field
:
'
MaterialUnit
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
销售数量
'
,
field
:
'
OutSum
'
,
width
:
60
},
{
title
:
'
销售数量
'
,
field
:
'
OutSum
'
,
width
:
60
,
align
:
"
center
"
},
{
title
:
'
销售金额
'
,
field
:
'
OutSumPrice
'
,
width
:
60
},
{
title
:
'
销售金额
'
,
field
:
'
OutSumPrice
'
,
width
:
60
,
align
:
"
center
"
},
{
title
:
'
退货数量
'
,
field
:
'
InSum
'
,
width
:
60
},
{
title
:
'
退货数量
'
,
field
:
'
InSum
'
,
width
:
60
,
align
:
"
center
"
},
{
title
:
'
退货金额
'
,
field
:
'
InSumPrice
'
,
width
:
60
}
{
title
:
'
退货金额
'
,
field
:
'
InSumPrice
'
,
width
:
60
,
align
:
"
center
"
},
{
title
:
'
实际销售金额
'
,
field
:
'
OutInSumPrice
'
,
width
:
80
,
align
:
"
center
"
}
]],
]],
onLoadError
:
function
()
{
onLoadError
:
function
()
{
$
.
messager
.
alert
(
'
页面加载提示
'
,
'
页面加载异常,请稍后再试!
'
,
'
error
'
);
$
.
messager
.
alert
(
'
页面加载提示
'
,
'
页面加载异常,请稍后再试!
'
,
'
error
'
);
...
@@ -219,6 +221,13 @@
...
@@ -219,6 +221,13 @@
if
(
res
&&
res
.
code
===
200
&&
res
.
data
)
{
if
(
res
&&
res
.
code
===
200
&&
res
.
data
)
{
$
(
"
#tableData
"
).
datagrid
(
'
loadData
'
,
res
.
data
.
rows
);
$
(
"
#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
()
{
error
:
function
()
{
...
@@ -260,4 +269,4 @@
...
@@ -260,4 +269,4 @@
}
}
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment