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
ddacd9b7
Commit
ddacd9b7
authored
Mar 02, 2023
by
yyq1988
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接物资盘亏
parent
cba7bb77
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
8 deletions
+34
-8
materialLossForm.jsp
...bpage/modules/warehouse/materialloss/materialLossForm.jsp
+21
-0
profitWarehousingList.js
...ules/warehouse/profitwarehousing/profitWarehousingList.js
+13
-8
No files found.
src/main/webapp/webpage/modules/warehouse/materialloss/materialLossForm.jsp
View file @
ddacd9b7
...
@@ -69,6 +69,26 @@
...
@@ -69,6 +69,26 @@
format
:
"YYYY-MM-DD HH:mm:ss"
format
:
"YYYY-MM-DD HH:mm:ss"
});
});
});
});
function
save
()
{
var
isValidate
=
jp
.
validateForm
(
'#inputForm'
);
//校验表单
if
(
!
isValidate
){
return
false
;
}
else
{
jp
.
loading
();
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
);
}
})
}
}
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/main/webapp/webpage/modules/warehouse/profitwarehousing/profitWarehousingList.js
View file @
ddacd9b7
...
@@ -279,12 +279,10 @@ $(document).ready(function() {
...
@@ -279,12 +279,10 @@ $(document).ready(function() {
var
data1
=
profitWarehousing
.
profitWarehousingInfoList
;
var
data1
=
profitWarehousing
.
profitWarehousingInfoList
;
for
(
var
i
=
0
;
i
<
data1
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
data1
.
length
;
i
++
){
data1
[
i
].
dict
=
{};
data1
[
i
].
dict
=
{};
data1
[
i
].
qrCodeStr
=
data1
[
1
].
qrCode
&&
JSON
.
stringify
(
data1
[
1
].
qrCode
);
data1
[
i
].
qrCodeStr
=
data1
[
i
].
qrCode
&&
JSON
.
stringify
(
data1
[
i
].
qrCode
);
addRow
(
'#profitWarehousingChild-'
+
row
.
id
+
'-1-List'
,
profitWarehousingChild1RowIdx
,
profitWarehousingChild1Tpl
,
data1
[
i
]);
addRow
(
'#profitWarehousingChild-'
+
row
.
id
+
'-1-List'
,
profitWarehousingChild1RowIdx
,
profitWarehousingChild1Tpl
,
data1
[
i
]);
profitWarehousingChild1RowIdx
=
profitWarehousingChild1RowIdx
+
1
;
profitWarehousingChild1RowIdx
=
profitWarehousingChild1RowIdx
+
1
;
}
}
})
})
return
html
;
return
html
;
...
@@ -313,8 +311,12 @@ $(document).ready(function() {
...
@@ -313,8 +311,12 @@ $(document).ready(function() {
jp
.
close
();
jp
.
close
();
}
else
{
}
else
{
jp
.
get
(
"${ctx}/warehouse/profitwarehousing/profitWarehousing/printQr?profitWarehousingInfoId="
+
id
,
function
(
res
)
{
jp
.
get
(
"${ctx}/warehouse/profitwarehousing/profitWarehousing/printQr?profitWarehousingInfoId="
+
id
,
function
(
res
)
{
if
(
res
.
success
){
var
profitWarehousingInfo
=
res
.
body
.
profitWarehousingInfo
;
var
profitWarehousingInfo
=
res
.
body
.
profitWarehousingInfo
;
preview_LODOP
(
profitWarehousingInfo
.
qrCode
);
preview_LODOP
(
profitWarehousingInfo
.
qrCode
);
}
else
{
jp
.
warning
(
res
.
msg
);
}
jp
.
close
();
jp
.
close
();
})
})
}
}
...
@@ -322,10 +324,7 @@ $(document).ready(function() {
...
@@ -322,10 +324,7 @@ $(document).ready(function() {
jp
.
close
();
jp
.
close
();
}
}
}
catch
(
e
){
}
catch
(
e
){
jp
.
get
(
"${ctx}/warehouse/goods/goods/printQr?goodsInfoId="
+
id
,
function
(
res
)
{
console
.
error
(
'异常!'
)
var
list
=
res
.
body
.
goodsInfo
.
qrCodeList
;
jp
.
close
();
})
}
}
}
}
...
@@ -340,7 +339,13 @@ $(document).ready(function() {
...
@@ -340,7 +339,13 @@ $(document).ready(function() {
jp
.
error
(
'二维码不存在!'
)
jp
.
error
(
'二维码不存在!'
)
}
}
}
}
function
cleanQr
(
id
)
{
jp
.
confirm
(
'确认清除二维码吗?'
,
function
(){
jp
.
get
(
"${ctx}/warehouse/profitwarehousing/profitWarehousing/cleanQr?profitWarehousingInfoId="
+
id
,
function
(
res
)
{
res
.
success
&&
jp
.
success
(
'清除二维码成功!'
);
})
})
}
<
/script
>
<
/script
>
<
script
type
=
"text/template"
id
=
"profitWarehousingChildrenTpl"
>
//<!--
<
script
type
=
"text/template"
id
=
"profitWarehousingChildrenTpl"
>
//<!--
<
div
class
=
"tabs-container"
>
<
div
class
=
"tabs-container"
>
...
...
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