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
72330993
Commit
72330993
authored
Jun 09, 2023
by
yyq1988
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节调整
parent
037e5c5e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
profitWarehousingList.js
...ules/warehouse/profitwarehousing/profitWarehousingList.js
+28
-1
No files found.
src/main/webapp/webpage/modules/warehouse/profitwarehousing/profitWarehousingList.js
View file @
72330993
...
...
@@ -270,6 +270,9 @@ $(document).ready(function() {
for
(
var
i
=
0
;
i
<
data1
.
length
;
i
++
){
data1
[
i
].
dict
=
{};
data1
[
i
].
qrCodeStr
=
data1
[
i
].
qrCode
&&
JSON
.
stringify
(
data1
[
i
].
qrCode
);
data1
[
i
].
status
=
data1
[
i
].
qrCode
.
state
===
'2'
;
data1
[
i
].
hasQr
=
data1
[
i
].
qrCode
;
data1
[
i
].
mainRowIndex
=
index
;
addRow
(
'#profitWarehousingChild-'
+
row
.
id
+
'-1-List'
,
profitWarehousingChild1RowIdx
,
profitWarehousingChild1Tpl
,
data1
[
i
]);
profitWarehousingChild1RowIdx
=
profitWarehousingChild1RowIdx
+
1
;
}
...
...
@@ -289,12 +292,12 @@ $(document).ready(function() {
}
function
printQr
(
id
,
qrCodeStr
)
{
jp
.
loading
(
'loading...'
);
try
{
if
(
!
LODOP
){
initLodop
();
}
if
(
LODOP
){
jp
.
loading
(
'loading...'
);
if
(
qrCodeStr
){
var
qrCode
=
JSON
.
parse
(
qrCodeStr
);
preview_LODOP
(
qrCode
);
...
...
@@ -336,6 +339,20 @@ $(document).ready(function() {
})
})
}
function
inLedgerInfo
(
id
,
rowIndex
){
jp
.
get
(
"${ctx}/warehouse/profitwarehousing/profitWarehousing/inLedgerInfo?profitWarehousingInfoId="
+
id
,
function
(
res
){
if
(
res
.
success
){
jp
.
success
(
res
.
msg
);
$
(
'#profitWarehousingTable'
).
bootstrapTable
(
'collapseRow'
,
rowIndex
);
setTimeout
(
function
(){
$
(
'#profitWarehousingTable'
).
bootstrapTable
(
'expandRow'
,
rowIndex
);
},
0
)
}
else
{
jp
.
error
(
res
.
msg
);
}
})
}
<
/script
>
<
script
type
=
"text/template"
id
=
"profitWarehousingChildrenTpl"
>
//<!--
<
div
class
=
"tabs-container"
>
...
...
@@ -393,6 +410,16 @@ $(document).ready(function() {
<
button
class
=
"btn btn-danger btn-sm"
onclick
=
"cleanQr('{{row.id}}')"
>
清除二维码
<
/button
>
{{
#
row
.
hasQr
}}
{{
#
row
.
status
}}
已入库
{{
/
row
.
status
}}
{{
^
row
.
status
}}
<
button
onclick
=
"inLedgerInfo('{{row.id}}')"
class
=
"btn btn-primary btn-sm"
onclick
=
"cleanQr('{{row.id}}',{{row.mainRowIndex}})"
>
入库
<
/button
>
{{
/
row
.
status
}}
{{
/row.hasQr}
}
<
/td
>
<
/tr>/
/-->
<
/script
>
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