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
c1cc6289
Commit
c1cc6289
authored
Jun 08, 2023
by
zhanglt
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.yqdchina.com/huyi/warehouse
into zlt
parents
52009af7
fbd61e11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
68 additions
and
11 deletions
+68
-11
sysIndex-jp.jsp
src/main/webapp/webpage/modules/sys/login/sysIndex-jp.jsp
+0
-0
goodsDetail.jsp
...in/webapp/webpage/modules/warehouse/goods/goodsDetail.jsp
+8
-1
goodsForm.jsp
...main/webapp/webpage/modules/warehouse/goods/goodsForm.jsp
+5
-0
ledgerDetail.jsp
.../webapp/webpage/modules/warehouse/ledger/ledgerDetail.jsp
+1
-1
materialLossDetail.jsp
...age/modules/warehouse/materialloss/materialLossDetail.jsp
+1
-1
materialLossForm.jsp
...bpage/modules/warehouse/materialloss/materialLossForm.jsp
+5
-0
materialRequisitionDetail.jsp
...rehouse/materialrequisition/materialRequisitionDetail.jsp
+18
-5
materialRequisitionForm.jsp
...warehouse/materialrequisition/materialRequisitionForm.jsp
+12
-0
outboundDetail.jsp
...app/webpage/modules/warehouse/outbound/outboundDetail.jsp
+1
-1
outboundForm.jsp
...ebapp/webpage/modules/warehouse/outbound/outboundForm.jsp
+5
-0
profitWarehousingDetail.jsp
...s/warehouse/profitwarehousing/profitWarehousingDetail.jsp
+1
-1
profitWarehousingForm.jsp
...les/warehouse/profitwarehousing/profitWarehousingForm.jsp
+5
-0
storageDetail.jsp
...ebapp/webpage/modules/warehouse/storage/storageDetail.jsp
+1
-1
storageForm.jsp
.../webapp/webpage/modules/warehouse/storage/storageForm.jsp
+5
-0
No files found.
src/main/webapp/webpage/modules/sys/login/sysIndex-jp.jsp
View file @
c1cc6289
This diff is collapsed.
Click to expand it.
src/main/webapp/webpage/modules/warehouse/goods/goodsDetail.jsp
View file @
c1cc6289
...
...
@@ -105,6 +105,13 @@
]
})
}
/**
* 获取所有明细数据
* @returns {*|jQuery}
*/
function getTableData() {
return $(selector).bootstrapTable('getData');
}
function addDetail(selector){
var row = {
id: '',
...
...
@@ -126,7 +133,7 @@
}
function removeRow(index, rowId, rowDelFlag){
if(rowId){
var delFlag = rowDelFlag ==
=
1 ? 0 : 1
var delFlag = rowDelFlag == 1 ? 0 : 1
updateRow(index, {
delFlag: delFlag
})
...
...
src/main/webapp/webpage/modules/warehouse/goods/goodsForm.jsp
View file @
c1cc6289
...
...
@@ -99,6 +99,11 @@
if
(
!
isValidate
){
return
false
;
}
else
{
var
hasDetails
=
getTableData
().
length
==
0
;
if
(
hasDetails
){
jp
.
warning
(
'请填写明细!'
);
return
;
}
jp
.
loading
();
jp
.
post
(
$
(
"#inputForm"
).
attr
(
'action'
),
$
(
'#inputForm'
).
serialize
(),
function
(
data
){
if
(
data
.
success
){
...
...
src/main/webapp/webpage/modules/warehouse/ledger/ledgerDetail.jsp
View file @
c1cc6289
...
...
@@ -123,7 +123,7 @@
function removeRow(index, rowId, rowDelFlag) {
if (rowId) {
var delFlag = rowDelFlag ==
=
1 ? 0 : 1
var delFlag = rowDelFlag == 1 ? 0 : 1
updateRow(index, {
delFlag: delFlag
})
...
...
src/main/webapp/webpage/modules/warehouse/materialloss/materialLossDetail.jsp
View file @
c1cc6289
...
...
@@ -165,7 +165,7 @@
function removeRow(index, rowId, rowDelFlag) {
if (rowId) {
var delFlag = rowDelFlag ==
=
1 ? 0 : 1
var delFlag = rowDelFlag == 1 ? 0 : 1
updateRow(index, {
delFlag: delFlag
})
...
...
src/main/webapp/webpage/modules/warehouse/materialloss/materialLossForm.jsp
View file @
c1cc6289
...
...
@@ -74,6 +74,11 @@
if
(
!
isValidate
){
return
false
;
}
else
{
var
hasDetails
=
getTableData
().
length
==
0
;
if
(
hasDetails
){
jp
.
warning
(
'请填写明细!'
);
return
;
}
jp
.
loading
();
jp
.
post
(
$
(
"#inputForm"
).
attr
(
'action'
),
$
(
'#inputForm'
).
serialize
(),
function
(
data
){
if
(
data
.
success
){
...
...
src/main/webapp/webpage/modules/warehouse/materialrequisition/materialRequisitionDetail.jsp
View file @
c1cc6289
...
...
@@ -23,6 +23,12 @@
function initTable() {
var data = ${fns:toJson(materialRequisition.materialRequisitionInfoList)};
if(data.length){
data = data.map(function(item){
item.delFlag = 0;
return item;
})
}
$(selector).bootstrapTable({
data: data,
columns: [{checkbox: true},
...
...
@@ -116,7 +122,7 @@
field: '',
title: '操作',
formatter: function (value, row, index) {
var text = '删除';
var text =
row.delFlag == 1 ? '撤销删除' :
'删除';
var result = ["<a href='javascript:void(0);' onclick=\"removeRow(" + index + ", '" + row.id + "', '" + row.delFlag + "')\">" + text + "</a>"]
return result.join('');
}
...
...
@@ -177,10 +183,17 @@
}
function removeRow(index, rowId, rowDelFlag) {
$(selector).bootstrapTable("remove", {
field: '$index',
values: [index]
})
if (rowId && rowId != 'undefined') {
var delFlag = rowDelFlag == 1 ? 0 : 1
updateRow(index, {
delFlag: delFlag
})
} else {
$(selector).bootstrapTable("remove", {
field: '$index',
values: [index]
})
}
}
function updateRow(index, row) {
...
...
src/main/webapp/webpage/modules/warehouse/materialrequisition/materialRequisitionForm.jsp
View file @
c1cc6289
...
...
@@ -117,6 +117,18 @@
if
(
!
isValidate
){
return
false
;
}
else
{
var
hasDetails
=
getTableData
().
length
==
0
;
if
(
hasDetails
){
jp
.
warning
(
'请填写领用物资!'
);
return
;
}
var
hasReceiver
=
getTableData
().
every
(
function
(
item
){
return
item
.
receiver
})
if
(
!
hasReceiver
){
jp
.
warning
(
'领用人必填!'
);
return
;
}
jp
.
loading
();
jp
.
post
(
$
(
"#inputForm"
).
attr
(
'action'
),
$
(
'#inputForm'
).
serialize
(),
function
(
data
){
if
(
data
.
success
){
...
...
src/main/webapp/webpage/modules/warehouse/outbound/outboundDetail.jsp
View file @
c1cc6289
...
...
@@ -147,7 +147,7 @@
function removeRow(index, rowId, rowDelFlag) {
if (rowId) {
var delFlag = rowDelFlag ==
=
1 ? 0 : 1
var delFlag = rowDelFlag == 1 ? 0 : 1
updateRow(index, {
delFlag: delFlag
})
...
...
src/main/webapp/webpage/modules/warehouse/outbound/outboundForm.jsp
View file @
c1cc6289
...
...
@@ -82,6 +82,11 @@
if
(
!
isValidate
){
return
false
;
}
else
{
var
hasDetails
=
getTableData
().
length
==
0
;
if
(
hasDetails
){
jp
.
warning
(
'请填写明细!'
);
return
;
}
jp
.
loading
();
jp
.
post
(
$
(
"#inputForm"
).
attr
(
'action'
),
$
(
'#inputForm'
).
serialize
(),
function
(
data
){
if
(
data
.
success
){
...
...
src/main/webapp/webpage/modules/warehouse/profitwarehousing/profitWarehousingDetail.jsp
View file @
c1cc6289
...
...
@@ -126,7 +126,7 @@
*/
function removeRow(index, rowId, rowDelFlag){
if(rowId){
var delFlag = rowDelFlag ==
=
1 ? 0 : 1
var delFlag = rowDelFlag == 1 ? 0 : 1
updateRow(index, {
delFlag: delFlag
})
...
...
src/main/webapp/webpage/modules/warehouse/profitwarehousing/profitWarehousingForm.jsp
View file @
c1cc6289
...
...
@@ -85,6 +85,11 @@
if
(
!
isValidate
){
return
false
;
}
else
{
var
hasDetails
=
getTableData
().
length
==
0
;
if
(
hasDetails
){
jp
.
warning
(
'请填写明细!'
);
return
;
}
jp
.
loading
();
jp
.
post
(
$
(
"#inputForm"
).
attr
(
'action'
),
$
(
'#inputForm'
).
serialize
(),
function
(
data
){
if
(
data
.
success
){
...
...
src/main/webapp/webpage/modules/warehouse/storage/storageDetail.jsp
View file @
c1cc6289
...
...
@@ -169,7 +169,7 @@
*/
function removeRow(index, rowId, rowDelFlag){
if(rowId){
var delFlag = rowDelFlag ==
=
1 ? 0 : 1
var delFlag = rowDelFlag == 1 ? 0 : 1
updateRow(index, {
delFlag: delFlag
})
...
...
src/main/webapp/webpage/modules/warehouse/storage/storageForm.jsp
View file @
c1cc6289
...
...
@@ -133,6 +133,11 @@
if
(
!
isValidate
){
return
false
;
}
else
{
var
hasDetails
=
getTableData
().
length
==
0
;
if
(
hasDetails
){
jp
.
warning
(
'请填写明细!'
);
return
;
}
jp
.
loading
();
jp
.
post
(
$
(
"#inputForm"
).
attr
(
'action'
),
$
(
'#inputForm'
).
serialize
(),
function
(
data
){
if
(
data
.
success
){
...
...
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