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
783bac55
Commit
783bac55
authored
Oct 23, 2017
by
码农的春天
Browse files
商品列表增加库存显示
parent
c3a0c89e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/pages/materials/material.jsp
View file @
783bac55
...
...
@@ -604,7 +604,32 @@
{
title
:
'
型号
'
,
field
:
'
Model
'
,
width
:
80
},
{
title
:
'
扩展信息
'
,
field
:
'
MaterialOther
'
,
width
:
150
},
{
title
:
'
单位
'
,
field
:
'
Unit
'
,
width
:
60
},
{
title
:
'
安全存量
'
,
field
:
'
SafetyStock
'
,
width
:
90
},
{
title
:
'
安全存量
'
,
field
:
'
SafetyStock
'
,
width
:
70
},
{
title
:
'
库存
'
,
field
:
'
abc
'
,
width
:
70
,
formatter
:
function
(
value
,
rec
){
var
monthTime
=
getNowFormatMonth
();
var
mId
=
rec
.
Id
;
//商品id
var
thisStock
=
0
;
//查询库存
$
.
ajax
({
type
:
"
get
"
,
url
:
'
<%=
path
%>
/depotItem/findStockNumById.action
'
,
data
:
{
MaterialId
:
mId
,
MonthTime
:
monthTime
},
async
:
false
,
dataType
:
"
json
"
,
success
:
function
(
res
)
{
if
(
res
&&
res
.
rows
&&
res
.
rows
[
0
])
{
thisStock
=
res
.
rows
[
0
].
thisSum
;
}
},
error
:
function
()
{
$
.
messager
.
alert
(
'
查询提示
'
,
'
查询数据后台异常,请稍后再试!
'
,
'
error
'
);
}
});
return
thisStock
;
}},
{
title
:
'
零售价
'
,
field
:
'
RetailPrice
'
,
width
:
60
},
{
title
:
'
最低售价
'
,
field
:
'
LowPrice
'
,
width
:
70
},
{
title
:
'
预计采购价
'
,
field
:
'
PresetPriceOne
'
,
width
:
70
},
...
...
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