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
a79bdb41
Commit
a79bdb41
authored
Aug 03, 2023
by
anxiaohe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
713298ff
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
106 additions
and
33 deletions
+106
-33
jeeplus.js
src/main/webapp/static/common/js/jeeplus.js
+8
-0
goodsDetail.jsp
...in/webapp/webpage/modules/warehouse/goods/goodsDetail.jsp
+1
-0
goodsForm.jsp
...main/webapp/webpage/modules/warehouse/goods/goodsForm.jsp
+4
-0
materialLossDetail.jsp
...age/modules/warehouse/materialloss/materialLossDetail.jsp
+30
-8
materialLossForm.jsp
...bpage/modules/warehouse/materialloss/materialLossForm.jsp
+5
-3
materialLossList.js
...ebpage/modules/warehouse/materialloss/materialLossList.js
+4
-2
materialRequisitionDetail.jsp
...rehouse/materialrequisition/materialRequisitionDetail.jsp
+7
-1
materialRequisitionForm.jsp
...warehouse/materialrequisition/materialRequisitionForm.jsp
+4
-2
outboundDetail.jsp
...app/webpage/modules/warehouse/outbound/outboundDetail.jsp
+1
-0
outboundForm.jsp
...ebapp/webpage/modules/warehouse/outbound/outboundForm.jsp
+4
-2
profitWarehousingDetail.jsp
...s/warehouse/profitwarehousing/profitWarehousingDetail.jsp
+1
-1
profitWarehousingForm.jsp
...les/warehouse/profitwarehousing/profitWarehousingForm.jsp
+5
-3
qrCodeForm.jsp
...in/webapp/webpage/modules/warehouse/qrcode/qrCodeForm.jsp
+8
-2
shelvesForm.jsp
.../webapp/webpage/modules/warehouse/shelves/shelvesForm.jsp
+7
-2
storageDetail.jsp
...ebapp/webpage/modules/warehouse/storage/storageDetail.jsp
+1
-0
storageForm.jsp
.../webapp/webpage/modules/warehouse/storage/storageForm.jsp
+4
-2
warehouseForm.jsp
...app/webpage/modules/warehouse/warehouse/warehouseForm.jsp
+4
-3
wzcodeForm.jsp
...in/webapp/webpage/modules/warehouse/wzcode/wzcodeForm.jsp
+8
-2
No files found.
src/main/webapp/static/common/js/jeeplus.js
View file @
a79bdb41
...
...
@@ -751,6 +751,14 @@ function delRow(obj, prefix){
getFrameWindow
:
function
(
URL
)
{
return
this
.
getFrame
(
URL
)[
0
].
contentWindow
},
escapeHtml
:
function
(
s
)
{
s
=
s
?
s
.
toString
()
:
''
;
return
s
.
replace
(
/&/g
,
'&'
)
.
replace
(
/</g
,
'<'
)
.
replace
(
/>/g
,
'>'
)
.
replace
(
/"/g
,
'"'
)
.
replace
(
/'/g
,
"'"
);
}
}
...
...
src/main/webapp/webpage/modules/warehouse/goods/goodsDetail.jsp
View file @
a79bdb41
...
...
@@ -20,6 +20,7 @@
if(data.length){
data = data.map(function(item){
item.delFlag = 0;
item.remarks = jp.escapeHtml(item.remarks);
return item;
})
}
...
...
src/main/webapp/webpage/modules/warehouse/goods/goodsForm.jsp
View file @
a79bdb41
...
...
@@ -93,6 +93,10 @@
$
(
'#time'
).
datetimepicker
({
format
:
"YYYY-MM-DD HH:mm:ss"
});
if
(
"${mode}"
!==
'add'
)
{
$
(
"#remarks"
).
val
(
jp
.
escapeHtml
(
$
(
"#remarks"
).
val
()));
}
});
function
save
()
{
var
isValidate
=
jp
.
validateForm
(
'#inputForm'
);
//校验表单
...
...
src/main/webapp/webpage/modules/warehouse/materialloss/materialLossDetail.jsp
View file @
a79bdb41
...
...
@@ -19,10 +19,12 @@
function initTable() {
var data = ${fns:toJson(materialLoss.materialLossInfoList)};
console.log(data)
if(data.length){
data = data.map(function(item){
item.delFlag = 0;
item.ledgerInfo.shelvesNames = item.ledgerInfo.shelvesList.map(function (e) { return e.name }).join(',') + ',';
item.ledgerInfo.warehouseNames = item.ledgerInfo.warehouseList.map(function (e) { return e.name }).join(',') + ',';
item.remarks = jp.escapeHtml(item.remarks);
return item;
})
}
...
...
@@ -115,7 +117,17 @@
}
},
{
field: 'ledgerInfo.shelves.name',
field: 'ledgerInfo.warehouseNames',
title: '仓库',
formatter: function (value, row, index) {
return Mustache.render($("#ledgerInfoWarehouseTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, ""), {
row: row,
idx: index
})
}
},
{
field: 'ledgerInfo.shelvesNames',
title: '货架',
formatter: function (value, row, index) {
return Mustache.render($("#ledgerInfoShelvesTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, ""), {
...
...
@@ -160,8 +172,8 @@
title: '选择物资台账明细',
isMultiSelect: true,
url: "${ctx}/warehouse/ledger/ledger/findByQrOrCode",
fieldLabels: "物资编码|
物资名称|品名代码|型号|批次号|单价
",
fieldKeys: "code|
name|type.name|model|batchNum|amoun
t",
fieldLabels: "物资编码|
品名|品名代码|型号|批次号|单价|数量|单位
",
fieldKeys: "code|
type.name|type.code|model|batchNum|amount|num|type.uni
t",
searchLabels: "物资编码",
searchKeys: "code",
}, function (items) {
...
...
@@ -186,10 +198,12 @@
id: '',
delFlag: 0,
remarks: '',
ledgerInfo: item
ledgerInfo: Object.assign({}, item, {
'shelvesNames': item.shelvesList.map(function (e) { return e.name }).join(',') + ',',
'warehouseNames': item.warehouseList.map(function (e) { return e.name }).join(',') + ',',
})
}
})
console.log(data)
$(selector).bootstrapTable('append', data)
}
})
...
...
@@ -278,11 +292,19 @@
name="materialLossInfoList[{{idx}}].ledgerInfo.amount" type="text" readonly class="form-control"
value="{{row.ledgerInfo.amount}}"/>
</script>
<script id="ledgerInfoWarehouseTpl" type="text/html">
<input id="materialLossInfoList{{idx}}_ledgerInfoWarehouse"
name="materialLossInfoList[{{idx}}].ledgerInfo.warehouseNames" type="text" readonly class="form-control"
value="{{row.ledgerInfo.warehouseNames}}"/>
<input type="hidden" name="materialLossInfoList[{{idx}}].ledgerInfo.warehouseIds" value="{{row.ledgerInfo.warehouseIds}}">
</script>
<script id="ledgerInfoShelvesTpl" type="text/html">
<input id="materialLossInfoList{{idx}}_ledgerInfoShelves"
name="materialLossInfoList[{{idx}}].ledgerInfo.shelves.name" type="text" readonly class="form-control"
value="{{row.ledgerInfo.shelves.name}}"/>
name="materialLossInfoList[{{idx}}].ledgerInfo.shelvesNames" type="text" readonly class="form-control"
value="{{row.ledgerInfo.shelvesNames}}"/>
<input type="hidden" name="materialLossInfoList[{{idx}}].ledgerInfo.shelvesIds" value="{{row.ledgerInfo.shelvesIds}}">
</script>
<%----%>
<script id="ledgerInfoBatchNumTpl" type="text/html">
<input id="materialLossInfoList{{idx}}_ledgerInfoBatchNum"
name="materialLossInfoList[{{idx}}].ledgerInfo.batchNum" type="text" readonly class="form-control"
...
...
src/main/webapp/webpage/modules/warehouse/materialloss/materialLossForm.jsp
View file @
a79bdb41
...
...
@@ -68,13 +68,16 @@
$
(
'#time'
).
datetimepicker
({
format
:
"YYYY-MM-DD HH:mm:ss"
});
if
(
"${mode}"
!==
'add'
)
{
$
(
"#remarks"
).
val
(
jp
.
escapeHtml
(
$
(
"#remarks"
).
val
()));
}
});
function
save
()
{
var
isValidate
=
jp
.
validateForm
(
'#inputForm'
);
//校验表单
if
(
!
isValidate
){
return
false
;
}
else
{
var
hasDetails
=
getTableData
().
length
==
0
;
var
hasDetails
=
getTableData
().
filter
(
function
(
e
)
{
return
e
.
delFlag
!=
1
}).
length
==
0
;
if
(
hasDetails
){
jp
.
warning
(
'请填写明细!'
);
return
;
...
...
@@ -96,4 +99,4 @@
}
</script>
</body>
</html>
\ No newline at end of file
</html>
src/main/webapp/webpage/modules/warehouse/materialloss/materialLossList.js
View file @
a79bdb41
...
...
@@ -273,6 +273,8 @@ $(document).ready(function() {
}
function
addRow
(
list
,
idx
,
tpl
,
row
){
row
.
ledgerInfo
.
shelvesNames
=
row
.
ledgerInfo
.
shelvesList
.
map
(
function
(
e
)
{
return
e
.
name
}).
join
(
','
)
+
','
;
row
.
ledgerInfo
.
warehouseNames
=
row
.
ledgerInfo
.
warehouseList
.
map
(
function
(
e
)
{
return
e
.
name
}).
join
(
','
)
+
','
;
$
(
list
).
append
(
Mustache
.
render
(
tpl
,
{
idx
:
idx
,
delBtn
:
true
,
row
:
row
}));
...
...
@@ -333,10 +335,10 @@ $(document).ready(function() {
{{
row
.
ledgerInfo
.
batchNum
}}
<
/td
>
<
td
>
{{
row
.
ledgerInfo
.
shelves
.
name
}}
{{
row
.
ledgerInfo
.
shelves
Names
}}
<
/td
>
<
td
>
{{
row
.
ledgerInfo
.
shelves
.
warehouse
.
name
}}
{{
row
.
ledgerInfo
.
warehouseNames
}}
<
/td
>
<
td
>
{{
row
.
remarks
}}
...
...
src/main/webapp/webpage/modules/warehouse/materialrequisition/materialRequisitionDetail.jsp
View file @
a79bdb41
...
...
@@ -26,6 +26,7 @@
if(data.length){
data = data.map(function(item){
item.delFlag = 0;
item.remarks = jp.escapeHtml(item.remarks);
item.infoSum = new Big(item.ledgerInfo.num).times(item.ledgerInfo.amount).toNumber();
return item;
})
...
...
@@ -428,6 +429,7 @@
btn: ['确定', '关闭'],
success: function () {
// $("#scanResult").focus();
debugger
scanStart();
renderScanTable();
},
...
...
@@ -443,10 +445,14 @@
jp.alert('选择的数据必须填写选择数量');
return false;
}
scanStop();
selectDetailHandle($(selector), selectTableData);
layer.close(index);
},
cancel () {
btn2: function () {
scanStop();
},
cancel: function () {
scanStop();
}
})
...
...
src/main/webapp/webpage/modules/warehouse/materialrequisition/materialRequisitionForm.jsp
View file @
a79bdb41
...
...
@@ -112,7 +112,9 @@
$
(
"#inputForm"
).
find
(
"button:submit"
).
button
(
"reset"
);
}
});
if
(
"${mode}"
!==
'add'
)
{
$
(
"#remarks"
).
val
(
jp
.
escapeHtml
(
$
(
"#remarks"
).
val
()));
}
$
(
'#time'
).
datetimepicker
({
format
:
"YYYY-MM-DD HH:mm:ss"
});
...
...
@@ -123,7 +125,7 @@
if
(
!
isValidate
){
return
false
;
}
else
{
var
hasDetails
=
getTableData
().
length
==
0
;
var
hasDetails
=
getTableData
().
filter
(
function
(
e
)
{
return
e
.
delFlag
!=
1
}).
length
==
0
;
if
(
hasDetails
){
jp
.
warning
(
'请填写领用物资!'
);
return
;
...
...
src/main/webapp/webpage/modules/warehouse/outbound/outboundDetail.jsp
View file @
a79bdb41
...
...
@@ -25,6 +25,7 @@
if(data.length){
data = data.map(function(item){
item.delFlag = 0;
item.remarks = jp.escapeHtml(item.remarks);
return item;
})
}
...
...
src/main/webapp/webpage/modules/warehouse/outbound/outboundForm.jsp
View file @
a79bdb41
...
...
@@ -76,6 +76,9 @@
$
(
'#outboundTime'
).
datetimepicker
({
format
:
"YYYY-MM-DD HH:mm:ss"
});
if
(
"${mode}"
!==
'add'
)
{
$
(
"#remarks"
).
val
(
jp
.
escapeHtml
(
$
(
"#remarks"
).
val
()));
}
});
function
save
()
{
var
isValidate
=
jp
.
validateForm
(
'#inputForm'
);
//校验表单
...
...
@@ -112,4 +115,4 @@
}
</script>
</body>
</html>
\ No newline at end of file
</html>
src/main/webapp/webpage/modules/warehouse/profitwarehousing/profitWarehousingDetail.jsp
View file @
a79bdb41
...
...
@@ -20,9 +20,9 @@
function initTable(){
var data = ${fns:toJson(profitWarehousing.profitWarehousingInfoList)};
if(data.length){
debugger
data = data.map(function(item){
item.delFlag = 0;
item.remarks = jp.escapeHtml(item.remarks);
item.readonly = item.qrCode && item.qrCode.state === '2'
return item;
})
...
...
src/main/webapp/webpage/modules/warehouse/profitwarehousing/profitWarehousingForm.jsp
View file @
a79bdb41
...
...
@@ -79,13 +79,16 @@
$
(
'#time'
).
datetimepicker
({
format
:
"YYYY-MM-DD HH:mm:ss"
});
if
(
"${mode}"
!==
'add'
)
{
$
(
"#remarks"
).
val
(
jp
.
escapeHtml
(
$
(
"#remarks"
).
val
()));
}
});
function
save
()
{
var
isValidate
=
jp
.
validateForm
(
'#inputForm'
);
//校验表单
if
(
!
isValidate
){
return
false
;
}
else
{
var
hasDetails
=
getTableData
().
length
==
0
;
var
hasDetails
=
getTableData
().
filter
(
function
(
e
)
{
return
e
.
delFlag
!=
1
}).
length
==
0
;
if
(
hasDetails
){
jp
.
warning
(
'请填写明细!'
);
return
;
...
...
@@ -107,4 +110,4 @@
}
</script>
</body>
</html>
\ No newline at end of file
</html>
src/main/webapp/webpage/modules/warehouse/qrcode/qrCodeForm.jsp
View file @
a79bdb41
...
...
@@ -73,5 +73,12 @@
</div>
</div>
</div>
<script>
$
(
document
).
ready
(
function
()
{
if
(
"${mode}"
!==
'add'
)
{
$
(
"#remarks"
).
val
(
jp
.
escapeHtml
(
$
(
"#remarks"
).
val
()));
}
})
</script>
</body>
</html>
\ No newline at end of file
</html>
src/main/webapp/webpage/modules/warehouse/shelves/shelvesForm.jsp
View file @
a79bdb41
...
...
@@ -46,6 +46,12 @@
</div>
</div>
<script>
$
(
document
).
ready
(
function
()
{
if
(
"${mode}"
!==
'add'
)
{
$
(
"#remarks"
).
val
(
jp
.
escapeHtml
(
$
(
"#remarks"
).
val
()));
}
})
function
save
()
{
var
isValidate
=
jp
.
validateForm
(
'#inputForm'
);
//校验表单
if
(
!
isValidate
){
...
...
@@ -68,4 +74,4 @@
}
</script>
</body>
</html>
\ No newline at end of file
</html>
src/main/webapp/webpage/modules/warehouse/storage/storageDetail.jsp
View file @
a79bdb41
...
...
@@ -25,6 +25,7 @@
if(data.length){
data = data.map(function(item){
item.delFlag = 0;
item.remarks = jp.escapeHtml(item.remarks);
item.readonly = item.qrCode && item.qrCode.state === '2';
item.infoSum = new Big(item.num).times(item.amount).toNumber();
item.shelvesNames = item.shelvesList.map(function (e) {
...
...
src/main/webapp/webpage/modules/warehouse/storage/storageForm.jsp
View file @
a79bdb41
...
...
@@ -129,7 +129,9 @@
$
(
"#inputForm"
).
find
(
"button:submit"
).
button
(
"reset"
);
}
});
if
(
"${mode}"
!==
'add'
)
{
$
(
"#remarks"
).
val
(
jp
.
escapeHtml
(
$
(
"#remarks"
).
val
()));
}
$
(
'#time'
).
datetimepicker
({
format
:
"YYYY-MM-DD HH:mm:ss"
});
...
...
@@ -140,7 +142,7 @@
if
(
!
isValidate
){
return
false
;
}
else
{
var
hasDetails
=
getTableData
().
length
==
0
;
var
hasDetails
=
getTableData
().
filter
(
function
(
e
)
{
return
e
.
delFlag
!=
1
}).
length
==
0
;
if
(
hasDetails
){
jp
.
warning
(
'请填写明细!'
);
return
;
...
...
src/main/webapp/webpage/modules/warehouse/warehouse/warehouseForm.jsp
View file @
a79bdb41
...
...
@@ -51,7 +51,9 @@
$
(
"#inputForm"
).
find
(
"button:submit"
).
button
(
"reset"
);
}
});
if
(
"${mode}"
!==
'add'
)
{
$
(
"#remarks"
).
val
(
jp
.
escapeHtml
(
$
(
"#remarks"
).
val
()));
}
$
(
'#time'
).
datetimepicker
({
format
:
"YYYY-MM-DD HH:mm:ss"
});
...
...
@@ -78,4 +80,4 @@
}
</script>
</body>
</html>
\ No newline at end of file
</html>
src/main/webapp/webpage/modules/warehouse/wzcode/wzcodeForm.jsp
View file @
a79bdb41
...
...
@@ -67,5 +67,12 @@
</div>
</div>
</div>
<script>
$
(
document
).
ready
(
function
()
{
if
(
"${mode}"
!==
'add'
)
{
$
(
"#remarks"
).
val
(
jp
.
escapeHtml
(
$
(
"#remarks"
).
val
()));
}
})
</script>
</body>
</html>
\ No newline at end of file
</html>
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