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
d9412d5f
Commit
d9412d5f
authored
Jun 23, 2020
by
季圣华
Browse files
优化账户中的单据明细页面
parent
57f1c5bf
Changes
4
Hide whitespace changes
Inline
Side-by-side
erp_web/js/pages/materials/bill_detail.js
View file @
d9412d5f
...
...
@@ -205,8 +205,8 @@
$
(
"
#bill .AccountIdShow
"
).
text
(
data
.
accountName
);
//结算账户
}
else
if
(
data
.
accountidlist
&&
data
.
accountmoneylist
)
{
var
accountArr
=
data
.
accountidlist
;
//账户id列表
var
accountMoneyArr
=
data
.
accountmoneylist
;
//账户金额列表
var
accountArr
=
data
.
accountidlist
.
split
(
"
,
"
)
;
//账户id列表
var
accountMoneyArr
=
data
.
accountmoneylist
.
split
(
"
,
"
)
;
//账户金额列表
var
accountIdShow
=
""
;
for
(
var
j
=
0
;
j
<
accountArr
.
length
;
j
++
)
{
if
(
accountList
!=
null
)
{
...
...
erp_web/pages/manage/account.html
View file @
d9412d5f
...
...
@@ -131,7 +131,7 @@
title
:
'
是否默认
'
,
field
:
'
isdefault
'
,
width
:
100
,
align
:
"
center
"
,
formatter
:
function
(
value
,
rec
)
{
if
(
rec
.
isdefault
)
{
return
"
<
b
style='color:green'>是</
b
>
"
;
return
"
<
span
style='color:green'>是</
span
>
"
;
}
else
{
return
"
否
"
;
...
...
@@ -569,7 +569,7 @@
//初始化表格数据
function
initAccountDetailData
(
accountId
)
{
$
(
'
#accountTableData
'
).
datagrid
({
height
:
heightInfo
,
height
:
435
,
nowrap
:
false
,
rownumbers
:
false
,
//动画效果
...
...
erp_web/pages/manage/depot.html
View file @
d9412d5f
...
...
@@ -180,7 +180,7 @@
title
:
'
是否默认
'
,
field
:
'
isDefault
'
,
width
:
100
,
align
:
"
center
"
,
formatter
:
function
(
value
,
rec
)
{
if
(
rec
.
isDefault
)
{
return
"
<
b
style='color:green'>是</
b
>
"
;
return
"
<
span
style='color:green'>是</
span
>
"
;
}
else
{
return
"
否
"
;
...
...
src/main/java/com/jsh/erp/service/depotHead/DepotHeadService.java
View file @
d9412d5f
...
...
@@ -422,6 +422,14 @@ public class DepotHeadService {
}
if
(
null
!=
list
)
{
for
(
DepotHeadVo4List
dh
:
list
)
{
if
(
dh
.
getAccountidlist
()
!=
null
)
{
String
accountidlistStr
=
dh
.
getAccountidlist
().
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replaceAll
(
"\""
,
""
);
dh
.
setAccountidlist
(
accountidlistStr
);
}
if
(
dh
.
getAccountmoneylist
()
!=
null
)
{
String
accountmoneylistStr
=
dh
.
getAccountmoneylist
().
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replaceAll
(
"\""
,
""
);
dh
.
setAccountmoneylist
(
accountmoneylistStr
);
}
if
(
dh
.
getOthermoneylist
()
!=
null
)
{
String
otherMoneyListStr
=
dh
.
getOthermoneylist
().
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replaceAll
(
"\""
,
""
);
dh
.
setOthermoneylist
(
otherMoneyListStr
);
...
...
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