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
e75597c5
Commit
e75597c5
authored
Aug 08, 2023
by
anxiaohe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
各明细修改
parent
3cdab698
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
11 deletions
+55
-11
goodsDetail.jsp
...in/webapp/webpage/modules/warehouse/goods/goodsDetail.jsp
+16
-2
profitWarehousingDetail.jsp
...s/warehouse/profitwarehousing/profitWarehousingDetail.jsp
+14
-2
storageDetail.jsp
...ebapp/webpage/modules/warehouse/storage/storageDetail.jsp
+7
-4
storageForm.jsp
.../webapp/webpage/modules/warehouse/storage/storageForm.jsp
+4
-2
storageList.js
...n/webapp/webpage/modules/warehouse/storage/storageList.js
+14
-1
No files found.
src/main/webapp/webpage/modules/warehouse/goods/goodsDetail.jsp
View file @
e75597c5
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
data = data.map(function(item){
data = data.map(function(item){
item.delFlag = 0;
item.delFlag = 0;
item.remarks = jp.escapeHtml(item.remarks);
item.remarks = jp.escapeHtml(item.remarks);
item.canUse = item.qrCode.state == 0;
return item;
return item;
})
})
}
}
...
@@ -170,7 +171,8 @@
...
@@ -170,7 +171,8 @@
num: null,
num: null,
amount: null,
amount: null,
remarks: '',
remarks: '',
infoSum: ''
infoSum: '',
canUse: true
}
}
$(selector).bootstrapTable('append', [
$(selector).bootstrapTable('append', [
...
@@ -326,11 +328,23 @@
...
@@ -326,11 +328,23 @@
<input id="goodsInfoList{{idx}}_unit" name="goodsInfoList[{{idx}}].type.unit" type="text" value="{{row.type.unit}}" readonly onchange="onInputChange('{{idx}}', this, 'type.unit')" class="form-control required"/>
<input id="goodsInfoList{{idx}}_unit" name="goodsInfoList[{{idx}}].type.unit" type="text" value="{{row.type.unit}}" readonly onchange="onInputChange('{{idx}}', this, 'type.unit')" class="form-control required"/>
</script>
</script>
<script id="modelTpl" type="text/html">
<script id="modelTpl" type="text/html">
{{#row.canUse}}
<input id="goodsInfoList{{idx}}_model" name="goodsInfoList[{{idx}}].model" type="text" value="{{row.model}}" onchange="onInputChange('{{idx}}', this, 'model')" class="form-control required"/>
<input id="goodsInfoList{{idx}}_model" name="goodsInfoList[{{idx}}].model" type="text" value="{{row.model}}" onchange="onInputChange('{{idx}}', this, 'model')" class="form-control required"/>
{{/row.canUse}}
{{^row.canUse}}
<input id="goodsInfoList{{idx}}_model" name="goodsInfoList[{{idx}}].model" type="text" value="{{row.model}}" readonly onchange="onInputChange('{{idx}}', this, 'model')" class="form-control required"/>
{{/row.canUse}}
</script>
</script>
<script id="numTpl" type="text/html">
<script id="numTpl" type="text/html">
<input id="goodsInfoList{{idx}}_num" name="goodsInfoList[{{idx}}].num" type="text" value="{{row.num}}" onchange="onInputChange('{{idx}}', this, 'num')" class="form-control required"/>
{{#row.canUse}}
<input id="goodsInfoList{{idx}}_num" name="goodsInfoList[{{idx}}].num" type="text" value="{{row.num}}"
onchange="onInputChange('{{idx}}', this, 'num')" class="form-control required"/>
{{/row.canUse}}
{{^row.canUse}}
<input id="goodsInfoList{{idx}}_num" name="goodsInfoList[{{idx}}].num" readonly type="text" value="{{row.num}}"
onchange="onInputChange('{{idx}}', this, 'num')" class="form-control required"/>
{{/row.canUse}}
</script>
</script>
<script id="infoSumTpl" type="text/html">
<script id="infoSumTpl" type="text/html">
...
...
src/main/webapp/webpage/modules/warehouse/profitwarehousing/profitWarehousingDetail.jsp
View file @
e75597c5
...
@@ -19,13 +19,14 @@
...
@@ -19,13 +19,14 @@
var selector = "#detail_table";
var selector = "#detail_table";
function initTable(){
function initTable(){
var data = ${fns:toJson(profitWarehousing.profitWarehousingInfoList)};
var data = ${fns:toJson(profitWarehousing.profitWarehousingInfoList)};
console.log(data)
if(data.length){
if(data.length){
data = data.map(function(item){
data = data.map(function(item){
item.delFlag = 0;
item.delFlag = 0;
item.shelvesNames = item.shelvesList.map(function (e) { return e.name }).join(',') + ',';
item.shelvesNames = item.shelvesList.map(function (e) { return e.name }).join(',') + ',';
item.warehouseNames = item.warehouseList.map(function (e) { return e.name }).join(',') + ',';
item.warehouseNames = item.warehouseList.map(function (e) { return e.name }).join(',') + ',';
item.remarks = jp.escapeHtml(item.remarks);
item.remarks = jp.escapeHtml(item.remarks);
item.readonly = item.qrCode &&
item.qrCode.state === '2'
item.readonly = item.qrCode &&
Number(item.qrCode.state) >= 2
return item;
return item;
})
})
}
}
...
@@ -162,6 +163,7 @@
...
@@ -162,6 +163,7 @@
field: '',
field: '',
title: '操作',
title: '操作',
formatter: function (value,row,index){
formatter: function (value,row,index){
if (row.qrCode && Number(row.qrCode.state) >= 2) return '';
var text = row.delFlag == 1 ? '撤销删除' : '删除';
var text = row.delFlag == 1 ? '撤销删除' : '删除';
var result = ["<a href='javascript:void(0);' onclick=\"removeRow(" + index + ", '" + row.id + "', '" + row.delFlag + "')\">"+text+"</a>" ]
var result = ["<a href='javascript:void(0);' onclick=\"removeRow(" + index + ", '" + row.id + "', '" + row.delFlag + "')\">"+text+"</a>" ]
return result.join('');
return result.join('');
...
@@ -506,6 +508,9 @@
...
@@ -506,6 +508,9 @@
<script id="hideTpl" type="text/html">
<script id="hideTpl" type="text/html">
<input id="profitWarehousingInfoList{{idx}}_id" name="profitWarehousingInfoList[{{idx}}].id" type="hidden" value="{{row.id}}"/>
<input id="profitWarehousingInfoList{{idx}}_id" name="profitWarehousingInfoList[{{idx}}].id" type="hidden" value="{{row.id}}"/>
<input id="profitWarehousingInfoList{{idx}}_delFlag" name="profitWarehousingInfoList[{{idx}}].delFlag" type="hidden" value="{{row.delFlag}}"/>
<input id="profitWarehousingInfoList{{idx}}_delFlag" name="profitWarehousingInfoList[{{idx}}].delFlag" type="hidden" value="{{row.delFlag}}"/>
{{#row.qrCode}}
<input id="profitWarehousingInfoList{{idx}}_qrCodeId" name="profitWarehousingInfoList[{{idx}}].qrCode.id" type="hidden" value="{{row.qrCode.id}}" readonly class="form-control" />
{{/row.qrCode}}
<input id="profitWarehousingInfoList{{idx}}_warehouseId" name="profitWarehousingInfoList[{{idx}}].warehouse.id" type="hidden" value="{{row.warehouse.id}}" readonly class="form-control" />
<input id="profitWarehousingInfoList{{idx}}_warehouseId" name="profitWarehousingInfoList[{{idx}}].warehouse.id" type="hidden" value="{{row.warehouse.id}}" readonly class="form-control" />
</script>
</script>
...
@@ -546,7 +551,14 @@
...
@@ -546,7 +551,14 @@
<input id="profitWarehousingInfoList{{idx}}_unit" name="profitWarehousingInfoList[{{idx}}].type.unit" type="text" value="{{row.type.unit}}" readonly onchange="onInputChange('{{idx}}', this, 'type.unit')" class="form-control required"/>
<input id="profitWarehousingInfoList{{idx}}_unit" name="profitWarehousingInfoList[{{idx}}].type.unit" type="text" value="{{row.type.unit}}" readonly onchange="onInputChange('{{idx}}', this, 'type.unit')" class="form-control required"/>
</script>
</script>
<script id="numTpl" type="text/html">
<script id="numTpl" type="text/html">
<input id="profitWarehousingInfoList{{idx}}_num" name="profitWarehousingInfoList[{{idx}}].num" type="text" value="{{row.num}}" onchange="onInputChange('{{idx}}', this, 'num')" class="form-control required"/>
{{#row.readonly}}
<input id="profitWarehousingInfoList{{idx}}_num" readonly name="profitWarehousingInfoList[{{idx}}].num" type="text"
value="{{row.num}}" onchange="onInputChange('{{idx}}', this, 'num')" class="form-control required"/>
{{/row.readonly}}
{{^row.readonly}}
<input id="profitWarehousingInfoList{{idx}}_num" name="profitWarehousingInfoList[{{idx}}].num" type="text"
value="{{row.num}}" onchange="onInputChange('{{idx}}', this, 'num')" class="form-control required"/>
{{/row.readonly}}
</script>
</script>
<script id="warehouseTpl" type="text/html">
<script id="warehouseTpl" type="text/html">
<input id="profitWarehousingInfoList{{idx}}_warehouseName" type="text" value="{{row.warehouseNames}}" readonly class="form-control "/>
<input id="profitWarehousingInfoList{{idx}}_warehouseName" type="text" value="{{row.warehouseNames}}" readonly class="form-control "/>
...
...
src/main/webapp/webpage/modules/warehouse/storage/storageDetail.jsp
View file @
e75597c5
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
data = data.map(function(item){
data = data.map(function(item){
item.delFlag = 0;
item.delFlag = 0;
item.remarks = jp.escapeHtml(item.remarks);
item.remarks = jp.escapeHtml(item.remarks);
item.readonly = item.qrCode &&
item.qrCode.state === '2'
;
item.readonly = item.qrCode &&
Number(item.qrCode.state) >= 2
;
item.infoSum = new Big(item.num).times(item.amount).toNumber();
item.infoSum = new Big(item.num).times(item.amount).toNumber();
item.shelvesNames = item.shelvesList.map(function (e) {
item.shelvesNames = item.shelvesList.map(function (e) {
return e.name;
return e.name;
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
item.warehouseNames = item.warehouseList.map(function (e) {
item.warehouseNames = item.warehouseList.map(function (e) {
return e.name;
return e.name;
}).join(',');
}).join(',');
// item.canUse = Number(item.qrCode.state) >= 2;
return item;
return item;
})
})
}
}
...
@@ -48,7 +49,7 @@
...
@@ -48,7 +49,7 @@
//每页的记录行数(*)
//每页的记录行数(*)
pageSize: 10,
pageSize: 10,
sidePagination: "client",
sidePagination: "client",
columns:[{checkbox: true, formatter: function(vlaue,row){return {disabled: row.qrCode &&
row.qrCode.state === '2'
}}},
columns:[{checkbox: true, formatter: function(vlaue,row){return {disabled: row.qrCode &&
Number(row.qrCode.state) >= 2
}}},
{
{
field: 'no',
field: 'no',
title: '序号',
title: '序号',
...
@@ -177,7 +178,7 @@
...
@@ -177,7 +178,7 @@
field: '',
field: '',
title: '操作',
title: '操作',
formatter: function (value,row,index){
formatter: function (value,row,index){
if(row.qrCode &&
row.qrCode.state === '2'
) return ' ';
if(row.qrCode &&
Number(row.qrCode.state) >= 2
) return ' ';
var text = row.delFlag == 1 ? '撤销删除' : '删除';
var text = row.delFlag == 1 ? '撤销删除' : '删除';
var result = ["<a href='javascript:void(0);' onclick=\"removeRow(" + index + ", '" + row.id + "', '" + row.delFlag + "')\">"+text+"</a>" ]
var result = ["<a href='javascript:void(0);' onclick=\"removeRow(" + index + ", '" + row.id + "', '" + row.delFlag + "')\">"+text+"</a>" ]
return result.join('');
return result.join('');
...
@@ -245,6 +246,7 @@
...
@@ -245,6 +246,7 @@
delFlag: 0,
delFlag: 0,
remarks: '',
remarks: '',
...item,
...item,
canUse: true,
infoSum: new Big(item.num).times(item.amount).toNumber()
infoSum: new Big(item.num).times(item.amount).toNumber()
}
}
});
});
...
@@ -501,7 +503,8 @@
...
@@ -501,7 +503,8 @@
...qrCode.goodsInfo,
...qrCode.goodsInfo,
id: '',
id: '',
delFlag: 0,
delFlag: 0,
remarks: ''
remarks: '',
canUse: true,
}
}
]);
]);
} else {
} else {
...
...
src/main/webapp/webpage/modules/warehouse/storage/storageForm.jsp
View file @
e75597c5
...
@@ -82,8 +82,10 @@
...
@@ -82,8 +82,10 @@
</td>
</td>
<td>
<td>
<form:hidden
path=
"batchNum"
/>
<form:hidden
path=
"batchNum"
/>
<sys:gridselect
url=
"${ctx}/warehouse/goods/goods/data"
id=
"goods"
name=
"goods.id"
value=
"${storage.batchNum}"
labelName=
"goods.name"
labelValue=
"${storage.batchNum}"
<sys:gridselect
url=
"${ctx}/warehouse/goods/goods/data"
id=
"goods"
name=
"goods.id"
title=
"选择货品批次"
cssClass=
"form-control required"
fieldLabels=
"批次号"
fieldKeys=
"batchNum"
searchLabels=
"批次号"
searchKeys=
"batchNum"
callback=
"onSelectGoods"
></sys:gridselect>
value=
"${storage.batchNum}"
labelName=
"goods.name"
labelValue=
"${storage.batchNum}"
title=
"选择货品批次"
cssClass=
"form-control required"
fieldLabels=
"批次号"
fieldKeys=
"batchNum"
searchLabels=
"批次号"
searchKeys=
"batchNum"
callback=
"onSelectGoods"
disabled=
"${mode == 'add' ? '' : 'disabled'}"
/>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
...
src/main/webapp/webpage/modules/warehouse/storage/storageList.js
View file @
e75597c5
...
@@ -283,6 +283,19 @@ function detailFormatter(index, row) {
...
@@ -283,6 +283,19 @@ function detailFormatter(index, row) {
item
.
warehouseNames
=
item
.
warehouseList
.
map
(
function
(
e
)
{
item
.
warehouseNames
=
item
.
warehouseList
.
map
(
function
(
e
)
{
return
e
.
name
return
e
.
name
}).
join
(
','
);
}).
join
(
','
);
var
str
=
''
;
if
(
item
.
qrCode
.
state
===
'1'
)
{
str
=
'已入库未入账'
}
else
if
(
item
.
qrCode
.
state
===
'2'
)
{
str
=
'已入账未下账'
}
else
if
(
item
.
qrCode
.
state
===
'3'
){
str
=
'已下账'
}
else
{
str
=
'未入库'
}
item
.
stateStr
=
str
;
addRow
(
'#storageChild-'
+
row
.
id
+
'-1-List'
,
storageChild1RowIdx
,
storageChild1Tpl
,
data1
[
i
]);
addRow
(
'#storageChild-'
+
row
.
id
+
'-1-List'
,
storageChild1RowIdx
,
storageChild1Tpl
,
data1
[
i
]);
storageChild1RowIdx
=
storageChild1RowIdx
+
1
;
storageChild1RowIdx
=
storageChild1RowIdx
+
1
;
}
}
...
@@ -425,7 +438,7 @@ function onStorage(countStorage, goodsInfoId, rowIndex){
...
@@ -425,7 +438,7 @@ function onStorage(countStorage, goodsInfoId, rowIndex){
{{
/
row
.
isNotStorage
}}
{{
/
row
.
isNotStorage
}}
{{
#
row
.
isStorage
}}
{{
#
row
.
isStorage
}}
<
td
>
<
td
>
已入库
{{
row
.
stateStr
}}
<
/td
>
<
/td
>
{{
/
row
.
isStorage
}}
{{
/
row
.
isStorage
}}
<
/tr>/
/-->
<
/tr>/
/-->
...
...
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