Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
warehouse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
胡懿
warehouse
Commits
e2f196a8
Commit
e2f196a8
authored
Jun 06, 2023
by
yyq1988
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物资领用增加出库功能
parent
5fecca16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
120 additions
and
87 deletions
+120
-87
materialRequisitionList.js
.../warehouse/materialrequisition/materialRequisitionList.js
+25
-1
materialRequisitionList.jsp
...warehouse/materialrequisition/materialRequisitionList.jsp
+95
-86
No files found.
src/main/webapp/webpage/modules/warehouse/materialrequisition/materialRequisitionList.js
View file @
e2f196a8
...
@@ -120,6 +120,16 @@ $(document).ready(function() {
...
@@ -120,6 +120,16 @@ $(document).ready(function() {
sortName
:
'time'
sortName
:
'time'
}
}
,{
field
:
'status'
,
title
:
'出库状态'
,
sortable
:
true
,
sortName
:
'status'
,
formatter
:
function
(
value
,
row
,
index
){
return
jp
.
getDictLabel
(
$
{
fns
:
toJson
(
fns
:
getDictList
(
'wh_delivery_status'
))},
value
,
"-"
);
}
}
,{
,{
field
:
'remarks'
,
field
:
'remarks'
,
title
:
'备注信息'
,
title
:
'备注信息'
,
...
@@ -142,6 +152,7 @@ $(document).ready(function() {
...
@@ -142,6 +152,7 @@ $(document).ready(function() {
'check-all.bs.table uncheck-all.bs.table'
,
function
()
{
'check-all.bs.table uncheck-all.bs.table'
,
function
()
{
$
(
'#remove'
).
prop
(
'disabled'
,
!
$
(
'#materialRequisitionTable'
).
bootstrapTable
(
'getSelections'
).
length
);
$
(
'#remove'
).
prop
(
'disabled'
,
!
$
(
'#materialRequisitionTable'
).
bootstrapTable
(
'getSelections'
).
length
);
$
(
'#view,#edit'
).
prop
(
'disabled'
,
$
(
'#materialRequisitionTable'
).
bootstrapTable
(
'getSelections'
).
length
!=
1
);
$
(
'#view,#edit'
).
prop
(
'disabled'
,
$
(
'#materialRequisitionTable'
).
bootstrapTable
(
'getSelections'
).
length
!=
1
);
$
(
'#delivery'
).
prop
(
'disabled'
,
!
(
$
(
'#materialRequisitionTable'
).
bootstrapTable
(
'getSelections'
).
length
==
1
&&
$
(
'#materialRequisitionTable'
).
bootstrapTable
(
'getSelections'
)[
0
].
status
==
'1'
));
});
});
$
(
"#btnImport"
).
click
(
function
(){
$
(
"#btnImport"
).
click
(
function
(){
...
@@ -278,7 +289,20 @@ $(document).ready(function() {
...
@@ -278,7 +289,20 @@ $(document).ready(function() {
idx
:
idx
,
delBtn
:
true
,
row
:
row
idx
:
idx
,
delBtn
:
true
,
row
:
row
}));
}));
}
}
/**
* 出库
*/
function
onDelivery
(){
jp
.
get
(
'${ctx}/warehouse/materialrequisition/materialRequisition/delivery?id='
+
getIdSelections
(),
function
(
res
){
if
(
res
.
success
){
jp
.
success
(
res
.
msg
);
refresh
();
}
else
{
jp
.
error
(
res
.
msg
);
}
})
}
<
/script
>
<
/script
>
<
script
type
=
"text/template"
id
=
"materialRequisitionChildrenTpl"
>
//<!--
<
script
type
=
"text/template"
id
=
"materialRequisitionChildrenTpl"
>
//<!--
<
div
class
=
"tabs-container"
>
<
div
class
=
"tabs-container"
>
...
...
src/main/webapp/webpage/modules/warehouse/materialrequisition/materialRequisitionList.jsp
View file @
e2f196a8
<
%@
page
contentType=
"text/html;charset=UTF-8"
%
>
<
%@
page
contentType=
"text/html;charset=UTF-8"
%
>
<
%@
include
file=
"/webpage/include/taglib.jsp"
%
>
<
%@
include
file=
"/webpage/include/taglib.jsp"
%
>
<html>
<html>
<head>
<head>
<title>
物资领用管理
</title>
<title>
物资领用管理
</title>
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
>
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
>
<meta
name=
"decorator"
content=
"ani"
/>
<meta
name=
"decorator"
content=
"ani"
/>
<
%@
include
file=
"/webpage/include/bootstraptable.jsp"
%
>
<
%@
include
file=
"/webpage/include/bootstraptable.jsp"
%
>
<
%@
include
file=
"/webpage/include/treeview.jsp"
%
>
<
%@
include
file=
"/webpage/include/treeview.jsp"
%
>
<
%@
include
file=
"materialRequisitionList.js"
%
>
<
%@
include
file=
"materialRequisitionList.js"
%
>
</head>
</head>
<body>
<body>
<div
class=
"wrapper wrapper-content"
>
<div
class=
"wrapper wrapper-content"
>
<div
class=
"panel panel-primary"
>
<div
class=
"panel panel-primary"
>
<div
class=
"panel-heading"
>
<div
class=
"panel-heading"
>
<h3
class=
"panel-title"
>
物资领用列表
</h3>
<h3
class=
"panel-title"
>
物资领用列表
</h3>
</div>
</div>
<div
class=
"panel-body"
>
<div
class=
"panel-body"
>
<!-- 搜索 -->
<div
id=
"search-collapse"
class=
"collapse"
>
<div
class=
"accordion-inner"
>
<form:form
id=
"searchForm"
modelAttribute=
"materialRequisition"
class=
"form form-horizontal well clearfix"
>
<div
class=
"col-xs-12 col-sm-6 col-md-4"
>
<label
class=
"label-item single-overflow pull-left"
title=
"领用单号:"
>
领用单号:
</label>
<form:input
path=
"number"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control"
/>
</div>
<div
class=
"col-xs-12 col-sm-6 col-md-4"
>
<label
class=
"label-item single-overflow pull-left"
title=
"操作人:"
>
操作人:
</label>
<form:input
path=
"operator"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control"
/>
</div>
<div
class=
"col-xs-12 col-sm-6 col-md-4"
>
<div
style=
"margin-top:26px"
>
<a
id=
"search"
class=
"btn btn-primary btn-rounded btn-bordered btn-sm"
><i
class=
"fa fa-search"
></i>
查询
</a>
<a
id=
"reset"
class=
"btn btn-primary btn-rounded btn-bordered btn-sm"
><i
class=
"fa fa-refresh"
></i>
重置
</a>
</div>
</div>
</form:form>
</div>
</div>
<!-- 工具栏 -->
<div
id=
"toolbar"
>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:add"
>
<button
id=
"add"
class=
"btn btn-primary"
onclick=
"add()"
>
<i
class=
"glyphicon glyphicon-plus"
></i>
新建
</button>
</shiro:hasPermission>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:edit"
>
<button
id=
"edit"
class=
"btn btn-success"
disabled
onclick=
"edit()"
>
<i
class=
"glyphicon glyphicon-edit"
></i>
修改
</button>
</shiro:hasPermission>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:del"
>
<button
id=
"remove"
class=
"btn btn-danger"
disabled
onclick=
"deleteAll()"
>
<i
class=
"glyphicon glyphicon-remove"
></i>
删除
</button>
</shiro:hasPermission>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:import"
>
<button
id=
"btnImport"
class=
"btn btn-info"
><i
class=
"fa fa-folder-open-o"
></i>
导入
</button>
</shiro:hasPermission>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:export"
>
<button
id=
"export"
class=
"btn btn-warning"
>
<i
class=
"fa fa-file-excel-o"
></i>
导出
</button>
</shiro:hasPermission>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:view"
>
<button
id=
"view"
class=
"btn btn-default"
disabled
onclick=
"view()"
>
<i
class=
"fa fa-search-plus"
></i>
查看
</button>
</shiro:hasPermission>
</div>
<!-- 表格 -->
<table
id=
"materialRequisitionTable"
data-toolbar=
"#toolbar"
></table>
<!-- context menu -->
<!-- 搜索 -->
<ul
id=
"context-menu"
class=
"dropdown-menu"
>
<div
id=
"search-collapse"
class=
"collapse"
>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:view"
>
<div
class=
"accordion-inner"
>
<li
data-item=
"view"
><a>
查看
</a></li>
<form:form
id=
"searchForm"
modelAttribute=
"materialRequisition"
</shiro:hasPermission>
class=
"form form-horizontal well clearfix"
>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:edit"
>
<div
class=
"col-xs-12 col-sm-6 col-md-4"
>
<li
data-item=
"edit"
><a>
编辑
</a></li>
<label
class=
"label-item single-overflow pull-left"
title=
"领用单号:"
>
领用单号:
</label>
</shiro:hasPermission>
<form:input
path=
"number"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control"
/>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:del"
>
</div>
<li
data-item=
"delete"
><a>
删除
</a></li>
<div
class=
"col-xs-12 col-sm-6 col-md-4"
>
</shiro:hasPermission>
<label
class=
"label-item single-overflow pull-left"
title=
"操作人:"
>
操作人:
</label>
<li
data-item=
"action1"
><a>
取消
</a></li>
<form:input
path=
"operator"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control"
/>
</ul>
</div>
</div>
<div
class=
"col-xs-12 col-sm-6 col-md-4"
>
</div>
<div
style=
"margin-top:26px"
>
</div>
<a
id=
"search"
class=
"btn btn-primary btn-rounded btn-bordered btn-sm"
><i
class=
"fa fa-search"
></i>
查询
</a>
<a
id=
"reset"
class=
"btn btn-primary btn-rounded btn-bordered btn-sm"
><i
class=
"fa fa-refresh"
></i>
重置
</a>
</div>
</div>
</form:form>
</div>
</div>
<!-- 工具栏 -->
<div
id=
"toolbar"
>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:add"
>
<button
id=
"add"
class=
"btn btn-primary"
onclick=
"add()"
>
<i
class=
"glyphicon glyphicon-plus"
></i>
新建
</button>
</shiro:hasPermission>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:edit"
>
<button
id=
"edit"
class=
"btn btn-success"
disabled
onclick=
"edit()"
>
<i
class=
"glyphicon glyphicon-edit"
></i>
修改
</button>
</shiro:hasPermission>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:del"
>
<button
id=
"remove"
class=
"btn btn-danger"
disabled
onclick=
"deleteAll()"
>
<i
class=
"glyphicon glyphicon-remove"
></i>
删除
</button>
</shiro:hasPermission>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:import"
>
<button
id=
"btnImport"
class=
"btn btn-info"
><i
class=
"fa fa-folder-open-o"
></i>
导入
</button>
</shiro:hasPermission>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:export"
>
<button
id=
"export"
class=
"btn btn-warning"
>
<i
class=
"fa fa-file-excel-o"
></i>
导出
</button>
</shiro:hasPermission>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:view"
>
<button
id=
"view"
class=
"btn btn-default"
disabled
onclick=
"view()"
>
<i
class=
"fa fa-search-plus"
></i>
查看
</button>
</shiro:hasPermission>
<shiro:hasPermission
name=
"warehouse:outbound:outbound:add"
>
<button
id=
"delivery"
class=
"btn btn-primary"
disabled
onclick=
"onDelivery()"
>
<i
class=
"glyphicon glyphicon-plus"
></i>
出库
</button>
</shiro:hasPermission>
</div>
<!-- 表格 -->
<table
id=
"materialRequisitionTable"
data-toolbar=
"#toolbar"
></table>
<!-- context menu -->
<ul
id=
"context-menu"
class=
"dropdown-menu"
>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:view"
>
<li
data-item=
"view"
><a>
查看
</a></li>
</shiro:hasPermission>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:edit"
>
<li
data-item=
"edit"
><a>
编辑
</a></li>
</shiro:hasPermission>
<shiro:hasPermission
name=
"warehouse:materialrequisition:materialRequisition:del"
>
<li
data-item=
"delete"
><a>
删除
</a></li>
</shiro:hasPermission>
<li
data-item=
"action1"
><a>
取消
</a></li>
</ul>
</div>
</div>
</div>
</body>
</body>
</html>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
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