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
6f19ca5c
Commit
6f19ca5c
authored
May 06, 2019
by
qiankunpingtai
Browse files
修改结算账户查询js效率低下的问题
parent
5c0b496b
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/pages/reports/account_report.html
View file @
6f19ca5c
...
...
@@ -98,10 +98,17 @@
{
title
:
'
本月发生额
'
,
field
:
'
thismonthamount
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
当前余额
'
,
field
:
'
currentamount
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
操作
'
,
field
:
'
op
'
,
width
:
100
,
align
:
"
center
"
,
formatter
:
function
(
value
,
rec
)
{
title
:
'
操作
'
,
field
:
'
op
'
,
width
:
100
,
align
:
"
center
"
,
formatter
:
function
(
value
,
rec
,
index
)
{
/**
* create by: qiankunpingtai
* create time: 2019/5/6 9:33
* website:https://qiankunpingtai.cn
* description:
* 修改效率低下的js实现
*/
var
str
=
''
;
var
rowInfo
=
rec
.
id
+
'
AaBb
'
+
rec
.
name
+
'
AaBb
'
+
rec
.
serialno
+
'
AaBb
'
+
rec
.
initialamount
+
'
AaBb
'
+
rec
.
currentamount
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/list.png" style="cursor: pointer;" onclick="showAccountInOutList(
\'
'
+
rowInfo
+
'
\'
);"/> <a onclick="showAccountInOutList(
\'
'
+
rowInfo
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">流水</a>
'
;
//
var rowInfo = rec.id + 'AaBb' + rec.name + 'AaBb' + rec.serialno + 'AaBb' + rec.initialamount + 'AaBb' + rec.currentamount;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/list.png" style="cursor: pointer;" onclick="showAccountInOutList(
\'
'
+
index
+
'
\'
);"/> <a onclick="showAccountInOutList(
\'
'
+
index
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">流水</a>
'
;
return
str
;
}
}
...
...
@@ -204,10 +211,12 @@
});
}
function
showAccountInOutList
(
accountInfo
)
{
var
info
=
accountInfo
.
split
(
"
AaBb
"
);
var
accountId
=
info
[
0
];
var
initialAmount
=
info
[
3
];
function
showAccountInOutList
(
index
)
{
// var info = accountInfo.split("AaBb");
//获取当前行
var
rowsdata
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
var
accountId
=
rowsdata
.
id
;
var
initialAmount
=
rowsdata
.
initialamount
;
$
(
'
#accountDetailListDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png"/> 查看账户流水
'
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
initAccountDetailData
(
accountId
);
...
...
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