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
aa540163
Commit
aa540163
authored
Jun 09, 2023
by
胡懿
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'hy' and 'master' of 47.92.228.5:huyi/warehouse into hy
parents
f4d655dc
d1e88404
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
28 deletions
+63
-28
goodsList.jsp
...main/webapp/webpage/modules/warehouse/goods/goodsList.jsp
+8
-8
materialRequisitionForm.jsp
...warehouse/materialrequisition/materialRequisitionForm.jsp
+2
-2
materialTypeForm.jsp
...bpage/modules/warehouse/materialtype/materialTypeForm.jsp
+3
-3
storageDetail.jsp
...ebapp/webpage/modules/warehouse/storage/storageDetail.jsp
+50
-15
No files found.
src/main/webapp/webpage/modules/warehouse/goods/goodsList.jsp
View file @
aa540163
...
...
@@ -86,14 +86,14 @@
<i
class=
"glyphicon glyphicon-remove"
></i>
删除
</button>
</shiro:hasPermission>
<shiro:hasPermission
name=
"warehouse:goods:goods:import"
>
<button
id=
"btnImport"
class=
"btn btn-info"
><i
class=
"fa fa-folder-open-o"
></i>
导入
</button
>
</shiro:hasPermission
>
<shiro:hasPermission
name=
"warehouse:goods:goods:export"
>
<button
id=
"export"
class=
"btn btn-warning"
>
<i
class=
"fa fa-file-excel-o"
></i>
导出
</button
>
</shiro:hasPermission
>
<
%
--
<
shiro:hasPermission
name=
"warehouse:goods:goods:import"
>
--%
>
<
%
--
<
button
id=
"btnImport"
class=
"btn btn-info"
><i
class=
"fa fa-folder-open-o"
></i>
导入
</button>
--%
>
<
%
--
</
shiro:hasPermission
>
--%
>
<
%
--
<
shiro:hasPermission
name=
"warehouse:goods:goods:export"
>
--%
>
<
%
--
<
button
id=
"export"
class=
"btn btn-warning"
>
--%
>
<
%
--
<
i
class=
"fa fa-file-excel-o"
></i>
导出--%>
<
%
--
</
button
>
--%
>
<
%
--
</
shiro:hasPermission
>
--%
>
<shiro:hasPermission
name=
"warehouse:goods:goods:view"
>
<button
id=
"view"
class=
"btn btn-default"
disabled
onclick=
"view()"
>
<i
class=
"fa fa-search-plus"
></i>
查看
...
...
src/main/webapp/webpage/modules/warehouse/materialrequisition/materialRequisitionForm.jsp
View file @
aa540163
...
...
@@ -64,10 +64,10 @@
title=
"部门"
url=
"/sys/office/treeData?type=2"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
</td>
<td>
领用时间
</td>
<td>
<font
color=
"red"
>
*
</font>
领用时间
</td>
<td>
<div
class=
'input-group form_datetime'
id=
'time'
>
<input
type=
'text'
name=
"time"
class=
"form-control"
<input
type=
'text'
name=
"time"
class=
"form-control
required
"
value=
"<fmt:formatDate value="
${
materialRequisition
.
time
}"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"/>
<span
class=
"input-group-addon"
>
<span
class=
"glyphicon glyphicon-calendar"
></span>
...
...
src/main/webapp/webpage/modules/warehouse/materialtype/materialTypeForm.jsp
View file @
aa540163
...
...
@@ -16,7 +16,7 @@
action=
"${ctx}/warehouse/materialtype/materialType/save"
method=
"post"
class=
"form-horizontal"
>
<form:hidden
path=
"id"
/>
<h3
class=
"text-center"
>
物资
类型
表
</h3>
<h3
class=
"text-center"
>
物资
品名代码
表
</h3>
<table
class=
"table table-bordered main-table"
>
<tr>
<td><font
color=
"red"
>
*
</font>
名称
</td>
...
...
@@ -31,12 +31,12 @@
</tr>
<tr>
<td><font
color=
"red"
>
*
</font>
物资类型
编码
</td>
<td><font
color=
"red"
>
*
</font>
编码
</td>
<td>
<form:input
path=
"code"
htmlEscape=
"false"
class=
"form-control required"
/>
</td>
<td><font
color=
"red"
>
*
</font>
父级编号
</td>
<td><font
color=
"red"
>
*
</font>
上级
</td>
<td>
<sys:treeselect
id=
"parent"
name=
"parent.id"
value=
"${materialType.parent.id}"
labelName=
"parent.name"
labelValue=
"${materialType.parent.name}"
...
...
src/main/webapp/webpage/modules/warehouse/storage/storageDetail.jsp
View file @
aa540163
...
...
@@ -27,6 +27,15 @@
}
$(selector).bootstrapTable({
data: data,
//是否显示分页(*)
pagination: true,
//排序方式
sortOrder: "asc",
//初始化加载第一页,默认第一页
pageNumber:1,
//每页的记录行数(*)
pageSize: 10,
sidePagination: "client",
columns:[{checkbox: true},
{
field: 'no',
...
...
@@ -74,7 +83,7 @@
}
},
{
field: '
num
',
field: '
shelves
',
title: '货架',
formatter: function (value,row,index){
return Mustache.render($("#shelvesTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, ""),{
...
...
@@ -260,23 +269,49 @@
*/
function addShelve(){
jp.openShelvesSelectDialog(function (items){
var Shelve = items[0]; // 货架对象
getSelections().forEach(function (item){
var index = getTableData().findIndex(function (current){
return current.qrCode.id === item.qrCode.id;
}); // 需更新的行的下标
updateRow(index,{
shelves: {
id: Shelve.id,
name: Shelve.name
},
warehouse: Shelve.warehouse
})
})
setTimeout(function(){
var Shelve = items[0]; // 货架对象
updateTask(getSelections(), 10, function(index){
updateRow(index,{
shelves: {
id: Shelve.id,
name: Shelve.name
},
warehouse: Shelve.warehouse
});
});
},200)
// getSelections().forEach(function (item){
// var index = getTableData().findIndex(function (current){
// return current.qrCode.id === item.qrCode.id;
// }); // 需更新的行的下标
// // updateRow(index,{
// // shelves: {
// // id: Shelve.id,
// // name: Shelve.name
// // },
// // warehouse: Shelve.warehouse
// // })
// })
})
}
function updateTask(allList, count, updateCallback){
var list = allList.slice(0, count);
list.forEach(function (item){
var index = getTableData().findIndex(function (current){
return current.qrCode.id === item.qrCode.id;
}); // 需更新的行的下标
updateCallback(index);
});
setTimeout(function(){
var newList = allList.slice(count);
if(newList.length > 0){
updateTask(newList,count,updateCallback);
}
},300)
}
/**
* 点击扫码显示扫码窗口
*/
...
...
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