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
9ff32c97
Commit
9ff32c97
authored
Aug 03, 2023
by
anxiaohe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
9da7e783
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
48 additions
and
43 deletions
+48
-43
shelvesselectNotName.tag
src/main/webapp/WEB-INF/tags/sys/shelvesselectNotName.tag
+2
-1
logic.js
src/main/webapp/webpage/modules/warehouse/goods/logic.js
+13
-13
materialLossDetail.jsp
...age/modules/warehouse/materialloss/materialLossDetail.jsp
+2
-0
materialRequisitionDetail.jsp
...rehouse/materialrequisition/materialRequisitionDetail.jsp
+1
-1
outboundDetail.jsp
...app/webpage/modules/warehouse/outbound/outboundDetail.jsp
+1
-0
profitWarehousingList.js
...ules/warehouse/profitwarehousing/profitWarehousingList.js
+2
-2
storageDetail.jsp
...ebapp/webpage/modules/warehouse/storage/storageDetail.jsp
+3
-3
storageForm.jsp
.../webapp/webpage/modules/warehouse/storage/storageForm.jsp
+24
-23
No files found.
src/main/webapp/WEB-INF/tags/sys/shelvesselectNotName.tag
View file @
9ff32c97
...
...
@@ -14,9 +14,10 @@
<%@ attribute name="callback" type="java.lang.String" required="false" description="回调"%>
<%@ attribute name="iframeUrl" type="java.lang.String" required="false" description="iframe窗口"%>
<%@ attribute name="allowClear" type="java.lang.Boolean" required="false" description="是否允许清除"%>
<%@ attribute name="hasLabelName" type="java.lang.Boolean" required="false" description="是否有lableName"%>
<input id="${id}Id" class="${cssClass} form-control" type="hidden" value="${value}"/>
<div class="input-group" style="width:100%">
<input id="${id}Name" ${allowInput?'':'readonly="readonly"'} type="text" value="${labelValue}" data-msg-required="${dataMsgRequired}"
<input id="${id}Name"
name="${hasLabelName ? labelName : ''}"
${allowInput?'':'readonly="readonly"'} type="text" value="${labelValue}" data-msg-required="${dataMsgRequired}"
class="${cssClass}" style="${cssStyle}"/>
<span class="input-group-btn">
<button type="button" id="${id}Button" class="btn <c:if test="${fn:contains(cssClass, 'input-sm')}"> btn-sm </c:if><c:if test="${fn:contains(cssClass, 'input-lg')}"> btn-lg </c:if> btn-primary ${disabled} ${hideBtn ? 'hide' : ''}"><i class="fa fa-search"></i>
...
...
src/main/webapp/webpage/modules/warehouse/goods/logic.js
View file @
9ff32c97
...
...
@@ -85,7 +85,7 @@ var pageConfig = {
// 图片高度
Image_h
:
63
,
// 图片阈值
Image_Threshold
:
2
2
0
,
Image_Threshold
:
2
3
0
,
// 图片打印模式
Image_style_let
:
3
,
}
...
...
@@ -153,18 +153,18 @@ function printImage (url) {
},
]
}
console
.
log
(
pack
)
var
str
=
JSON
.
stringify
(
pack
,
null
,
2
);
var
blob
=
new
Blob
([
str
],
{
type
:
"application/json"
});
var
url
=
URL
.
createObjectURL
(
blob
);
var
a
=
document
.
createElement
(
'a'
);
a
.
href
=
url
;
a
.
download
=
'a.json'
;
a
.
click
();
a
.
remove
();
//
console.log(pack)
//
var str = JSON.stringify(pack, null, 2);
//
var blob = new Blob([str], {
//
type: "application/json"
//
});
//
var url = URL.createObjectURL(blob);
//
//
var a = document.createElement('a');
//
a.href = url;
//
a.download = 'a.json';
//
a.click();
//
a.remove();
on_link_device
(
pack
,
onBack
);
})
...
...
src/main/webapp/webpage/modules/warehouse/materialloss/materialLossDetail.jsp
View file @
9ff32c97
...
...
@@ -19,6 +19,7 @@
function initTable() {
var data = ${fns:toJson(materialLoss.materialLossInfoList)};
console.log(data)
if(data.length){
data = data.map(function(item){
item.delFlag = 0;
...
...
@@ -188,6 +189,7 @@
ledgerInfo: item
}
})
console.log(data)
$(selector).bootstrapTable('append', data)
}
})
...
...
src/main/webapp/webpage/modules/warehouse/materialrequisition/materialRequisitionDetail.jsp
View file @
9ff32c97
...
...
@@ -26,7 +26,7 @@
if(data.length){
data = data.map(function(item){
item.delFlag = 0;
item.infoSum = new Big(item.
num).times(item
.amount).toNumber();
item.infoSum = new Big(item.
ledgerInfo.num).times(item.ledgerInfo
.amount).toNumber();
return item;
})
}
...
...
src/main/webapp/webpage/modules/warehouse/outbound/outboundDetail.jsp
View file @
9ff32c97
...
...
@@ -21,6 +21,7 @@
function initTable() {
var data = ${fns:toJson(outbound.outboundInfoList)};
console.log(data)
if(data.length){
data = data.map(function(item){
item.delFlag = 0;
...
...
src/main/webapp/webpage/modules/warehouse/profitwarehousing/profitWarehousingList.js
View file @
9ff32c97
...
...
@@ -331,7 +331,7 @@ function printQr (id) {
jp
.
loading
(
'loading...'
);
jp
.
get
(
"${ctx}/warehouse/profitwarehousing/profitWarehousing/printQr?profitWarehousingInfoId="
+
id
,
function
(
res
)
{
if
(
res
.
success
)
{
var
row
=
res
.
body
.
goods
Info
.
qrCode
;
var
row
=
res
.
body
.
profitWarehousing
Info
.
qrCode
;
var
imgUrl
=
"${ctxPath}/"
+
row
.
url
;
// jp.showPic(imgUrl);
_thermal_Image_print_
(
imgUrl
);
...
...
@@ -424,7 +424,7 @@ function inLedgerInfo(id, rowIndex ){
{{
row
.
type
.
code
}}
<
/td
>
<
td
>
{{
row
.
m
odel
}}
{{
row
.
m
arking
}}
<
/td
>
<
td
>
{{
row
.
num
}}
...
...
src/main/webapp/webpage/modules/warehouse/storage/storageDetail.jsp
View file @
9ff32c97
...
...
@@ -555,11 +555,11 @@
<script id="shelvesTpl" type="text/html">//<!--
{{#row.readonly}}
<sys:shelvesselectNotName id="storageInfoList{{idx}}_shelves" name="storageInfoList[{{idx}}].shelvesIds" value="{{row.shelvesIds}}" labelName="storageInfoList[{{idx}}].shelvesNames" labelValue="{{row.shelvesNames}}"
cssClass="form-control required" iframeUrl="/warehouse/storage/storage/form" disabled="disabled" isMultiSelected="true" allowClear="false" />
cssClass="form-control required" iframeUrl="/warehouse/storage/storage/form" disabled="disabled" isMultiSelected="true" allowClear="false"
hasLabelName="true"
/>
{{/row.readonly}}
{{^row.readonly}}
<sys:shelvesselectNotName id="storageInfoList{{idx}}_shelves" name="storageInfoList[{{idx}}].shelvesIds" value="{{row.shelvesIds}}" labelName="storageInfoList[{{idx}}].shelvesNames" labelValue="{{row.shelvesNames}}"
cssClass="form-control required" iframeUrl="/warehouse/storage/storage/form" callback="onSelectShelves" isMultiSelected="true" allowClear="false" />//-->
cssClass="form-control required" iframeUrl="/warehouse/storage/storage/form" callback="onSelectShelves" isMultiSelected="true" allowClear="false"
hasLabelName="true"
/>//-->
{{/row.readonly}}
</script>
<script id="remarksTpl" type="text/html">
...
...
@@ -571,7 +571,7 @@
{{/row.readonly}}
</script>
<script id="warehouseTpl" type="text/html">
<input id="storageInfoList{{idx}}_warehouseName"
type="text" value="{{row.warehouseNames}}" readonly class="form-control
"/>
<input id="storageInfoList{{idx}}_warehouseName"
name="storageInfoList[{{idx}}].warehouseNames" type="text" value="{{row.warehouseNames}}" readonly class="form-control required
"/>
<input id="storageInfoList{{idx}}_warehouseIds" name="storageInfoList[{{idx}}].warehouseIds" type="hidden" value="{{row.warehouseIds}}" readonly class="form-control "/>
<input type="hidden" id="storageInfoList{{idx}}_shelvesIds" name="storageInfoList[{{idx}}].shelvesIds" value="{{row.shelvesIds}}">
</script>
...
...
src/main/webapp/webpage/modules/warehouse/storage/storageForm.jsp
View file @
9ff32c97
...
...
@@ -135,6 +135,7 @@
});
});
function
save
()
{
debugger
var
isValidate
=
jp
.
validateForm
(
'#inputForm'
);
//校验表单
if
(
!
isValidate
){
return
false
;
...
...
@@ -145,29 +146,29 @@
return
;
}
/**处理明细隐藏input元素*/
jp
.
loading
();
getTableData
().
forEach
(
function
(
item
,
index
){
$
(
"#inputForm"
).
append
(
"<div class='inputForm-hide-content'>"
+
Mustache
.
render
(
$
(
"#hideTpl"
).
html
(),{
row
:
item
,
idx
:
index
})
+
"</div>"
)
})
try
{
jp
.
post
(
$
(
"#inputForm"
).
attr
(
'action'
),
$
(
'#inputForm'
).
serialize
(),
function
(
data
){
if
(
data
.
success
){
jp
.
getParent
().
refresh
();
var
dialogIndex
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
// 获取窗口索引
parent
.
layer
.
close
(
dialogIndex
);
jp
.
success
(
data
.
msg
)
}
else
{
jp
.
error
(
data
.
msg
);
$
(
".inputForm-hide-content"
).
remove
();
}
})
}
catch
(
e
)
{
$
(
".inputForm-hide-content"
).
remove
();
}
//
jp.loading();
//
getTableData().forEach(function(item,index){
//
$("#inputForm").append("
<
div
class
=
'inputForm-hide-content'
>
" + Mustache.render($("
#
hideTpl
").html(),{
//
row: item,
//
idx: index
//
}) + "
<
/div>"
)
//
})
//
try {
//
jp.post($("#inputForm").attr('action'),$('#inputForm').serialize(),function(data){
//
if(data.success){
//
jp.getParent().refresh();
//
var dialogIndex = parent.layer.getFrameIndex(window.name); // 获取窗口索引
//
parent.layer.close(dialogIndex);
//
jp.success(data.msg)
//
//
}else{
//
jp.error(data.msg);
//
$(".inputForm-hide-content").remove();
//
}
//
})
//
} catch (e) {
//
$(".inputForm-hide-content").remove();
//
}
}
...
...
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