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
ad44bdd3
Commit
ad44bdd3
authored
Apr 29, 2019
by
double
Browse files
报表-》结算账户添加当前总余额
parent
3e74e733
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/pages/reports/account_report.html
View file @
ad44bdd3
...
@@ -39,6 +39,10 @@
...
@@ -39,6 +39,10 @@
<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>
</td>
<td>
当前总余额:
<span
class=
"first-total"
>
0
</span>
</td>
</tr>
</tr>
</table>
</table>
</div>
</div>
...
@@ -182,6 +186,13 @@
...
@@ -182,6 +186,13 @@
if
(
res
&&
res
.
code
===
200
){
if
(
res
&&
res
.
code
===
200
){
if
(
res
.
data
&&
res
.
data
.
page
)
{
if
(
res
.
data
&&
res
.
data
.
page
)
{
$
(
"
#tableData
"
).
datagrid
(
'
loadData
'
,
res
.
data
.
page
);
$
(
"
#tableData
"
).
datagrid
(
'
loadData
'
,
res
.
data
.
page
);
var
total
=
0
;
res
.
data
.
page
.
rows
.
forEach
(
function
(
value
,
index
,
array
){
//执行某些操作
total
+=
value
.
currentamount
;
})
$
(
"
.first-total
"
).
text
(
total
);
//当前总余额
}
}
}
}
},
},
...
@@ -316,4 +327,4 @@
...
@@ -316,4 +327,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