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
883890eb
Commit
883890eb
authored
Jul 15, 2017
by
季圣华
Browse files
礼品卡管理模块
parent
8f4cac02
Changes
21
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/pages/reports/in_out_stock_report.jsp
View file @
883890eb
...
@@ -20,19 +20,25 @@
...
@@ -20,19 +20,25 @@
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/My97DatePicker/WdatePicker.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/My97DatePicker/WdatePicker.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<script
type=
"text/javascript"
src=
"
<%=
path
%>
/js/common/common.js"
></script>
<script>
var
kid
=
$
{
sessionScope
.
user
.
id
};
</script>
</head>
</head>
<body>
<body>
<!-- 查询 -->
<!-- 查询 -->
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:10px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<div
id =
"searchPanel"
class=
"easyui-panel"
style=
"padding:10px;"
title=
"查询窗口"
iconCls=
"icon-search"
collapsible=
"true"
closable=
"false"
>
<table
id=
"searchTable"
>
<table
id=
"searchTable"
>
<tr>
<tr>
<td>
仓库:
</td>
<td>
<select
name=
"searchProjectId"
id=
"searchProjectId"
style=
"width:80px;"
></select>
</td>
<td>
</td>
<td>
月份:
</td>
<td>
月份:
</td>
<td>
<td>
<input
type=
"text"
name=
"searchMonth"
id=
"searchMonth"
onClick=
"WdatePicker({dateFmt:'yyyy-MM'})"
class=
"txt Wdate"
style=
"width:180px;"
/>
<input
type=
"text"
name=
"searchMonth"
id=
"searchMonth"
onClick=
"WdatePicker({dateFmt:'yyyy-MM'})"
class=
"txt Wdate"
style=
"width:180px;"
/>
</td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<td>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-redo"
id=
"exprotBtn"
>
导出
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-redo"
id=
"exprotBtn"
>
导出
</a>
...
@@ -55,6 +61,12 @@
...
@@ -55,6 +61,12 @@
{
{
var
thisDate
=
getNowFormatMonth
();
//当前月份
var
thisDate
=
getNowFormatMonth
();
//当前月份
$
(
"
#searchMonth
"
).
val
(
thisDate
);
$
(
"
#searchMonth
"
).
val
(
thisDate
);
var
userBusinessList
=
null
;
var
userdepot
=
null
;
initSystemData_UB
();
initSelectInfo_UB
();
initSystemData_depot
();
initSelectInfo_depot
();
initTableData
();
initTableData
();
ininPager
();
ininPager
();
search
();
search
();
...
@@ -74,6 +86,95 @@
...
@@ -74,6 +86,95 @@
}
}
});
});
}
}
//初始化系统基础信息
function initSystemData_UB(){
$.ajax({
type:
"
post
"
,
url:
"
<%=
path
%>
/
userBusiness
/
getBasicData
.
action
"
,
data: ({
KeyId:kid,
Type:
"
UserDepot
"
}),
//设置为同步
async:false,
dataType:
"
json
"
,
success: function (systemInfo)
{
if(systemInfo)
{
userBusinessList = systemInfo.showModel.map.userBusinessList;
var msgTip = systemInfo.showModel.msgTip;
if(msgTip ==
"
exceptoin
"
)
{
$.messager.alert('提示','查找UserBusiness异常,请与管理员联系!','error');
return;
}
}
else
{
userBusinessList=null;
}
}
});
}
//初始化页面选项卡
function initSelectInfo_UB(){
if(userBusinessList !=null)
{
if(userBusinessList.length>0)
{
//用户对应的仓库列表 [1][2][3]...
userdepot =userBusinessList[0].value;
}
}
}
//初始化系统基础信息
function initSystemData_depot(){
$.ajax({
type:
"
post
"
,
url:
"
<%=
path
%>
/
depot
/
getBasicData
.
action
"
,
//设置为同步
async:false,
dataType:
"
json
"
,
success: function (systemInfo)
{
depotList = systemInfo.showModel.map.depotList;
var msgTip = systemInfo.showModel.msgTip;
if(msgTip ==
"
exceptoin
"
)
{
$.messager.alert('提示','查找系统基础信息异常,请与管理员联系!','error');
return;
}
}
});
}
//初始化页面选项卡
function initSelectInfo_depot(){
var options =
""
;
if(depotList !=null)
{
options =
""
;
for(var i = 0 ;i < depotList.length;i++)
{
var depot = depotList[i];
if(userdepot!=null)
{
if(userdepot.indexOf(
"
[
"
+depot.id+
"
]
"
)!=-1)
{
options += '<option value=
"'
+ depot.id +
'"
>' + depot.name + '</option>';
}
}
}
$(
"
#
searchProjectId
"
).empty().append('<option value=
""
>全部</option>').append(options);
}
}
//初始化表格数据
//初始化表格数据
function initTableData()
function initTableData()
...
@@ -203,6 +304,7 @@
...
@@ -203,6 +304,7 @@
url:
"
<%=
path
%>
/
depotHead
/
findByMonth
.
action
"
,
url:
"
<%=
path
%>
/
depotHead
/
findByMonth
.
action
"
,
dataType:
"
json
"
,
dataType:
"
json
"
,
data: ({
data: ({
ProjectId: $.trim($(
"
#
searchProjectId
"
).val()),
MonthTime:$(
"
#
searchMonth
"
).val()
MonthTime:$(
"
#
searchMonth
"
).val()
}),
}),
success: function (res)
success: function (res)
...
@@ -219,7 +321,7 @@
...
@@ -219,7 +321,7 @@
var MIds = resNew.mIds;
var MIds = resNew.mIds;
if(MIds) {
if(MIds) {
if(pageSize === 3000) {
if(pageSize === 3000) {
window.location.href =
"
<%=
path
%>
/
depotItem
/
exportExcel
.
action
?
browserType
=
"
+ getOs() +
"
&
pageNo
=
"
+ pageNo +
"
&
pageSize
=
"
+ pageSize +
"
&
MonthTime
=
"
+ $(
"
#
searchMonth
"
).val() +
"
&
HeadIds
=
"
+ HeadIds +
"
&
MaterialIds
=
"
+ MIds;
window.location.href =
"
<%=
path
%>
/
depotItem
/
exportExcel
.
action
?
browserType
=
"
+ getOs() +
"
&
pageNo
=
"
+ pageNo +
"
&
pageSize
=
"
+ pageSize +
"
&
ProjectId
=
"
+ $.trim($(
"
#
searchProjectId
"
).val()) +
"
&
MonthTime
=
"
+ $(
"
#
searchMonth
"
).val() +
"
&
HeadIds
=
"
+ HeadIds +
"
&
MaterialIds
=
"
+ MIds;
}
}
else {
else {
$.ajax({
$.ajax({
...
@@ -229,6 +331,7 @@
...
@@ -229,6 +331,7 @@
data: ({
data: ({
pageNo:pageNo,
pageNo:pageNo,
pageSize:pageSize,
pageSize:pageSize,
ProjectId: $.trim($(
"
#
searchProjectId
"
).val()),
MonthTime:$(
"
#
searchMonth
"
).val(),
MonthTime:$(
"
#
searchMonth
"
).val(),
HeadIds:HeadIds,
HeadIds:HeadIds,
MaterialIds:MIds
MaterialIds:MIds
...
@@ -252,6 +355,7 @@
...
@@ -252,6 +355,7 @@
url:
"
<%=
path
%>
/
depotItem
/
totalCountMoney
.
action
"
,
url:
"
<%=
path
%>
/
depotItem
/
totalCountMoney
.
action
"
,
dataType:
"
json
"
,
dataType:
"
json
"
,
data: ({
data: ({
ProjectId: $.trim($(
"
#
searchProjectId
"
).val()),
MonthTime:$(
"
#
searchMonth
"
).val(),
MonthTime:$(
"
#
searchMonth
"
).val(),
HeadIds:HeadIds,
HeadIds:HeadIds,
MaterialIds:MIds
MaterialIds:MIds
...
...
Prev
1
2
Next
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