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
e6ec36e3
Commit
e6ec36e3
authored
Jun 09, 2023
by
胡懿
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of 47.92.228.5:huyi/warehouse into hy
parents
8c7ba4c9
222f85f9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
1 deletion
+49
-1
ProfitWarehousingInfoMapper.xml
...fitwarehousing/mapper/xml/ProfitWarehousingInfoMapper.xml
+1
-0
ProfitWarehousingService.java
...e/profitwarehousing/service/ProfitWarehousingService.java
+3
-0
ProfitWarehousingController.java
...se/profitwarehousing/web/ProfitWarehousingController.java
+7
-0
profitWarehousingList.js
...ules/warehouse/profitwarehousing/profitWarehousingList.js
+38
-1
No files found.
src/main/java/com/jeeplus/modules/warehouse/profitwarehousing/mapper/xml/ProfitWarehousingInfoMapper.xml
View file @
e6ec36e3
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
a.name AS "name",
a.name AS "name",
a.type AS "type.id",
a.type AS "type.id",
type.name AS "type.name",
type.name AS "type.name",
type.code AS "type.code",
a.marking AS "marking",
a.marking AS "marking",
a.shelves_id AS "shelves.id",
a.shelves_id AS "shelves.id",
shelves.name AS "shelves.name",
shelves.name AS "shelves.name",
...
...
src/main/java/com/jeeplus/modules/warehouse/profitwarehousing/service/ProfitWarehousingService.java
View file @
e6ec36e3
...
@@ -93,6 +93,9 @@ public class ProfitWarehousingService extends CrudService<ProfitWarehousingMappe
...
@@ -93,6 +93,9 @@ public class ProfitWarehousingService extends CrudService<ProfitWarehousingMappe
ProfitWarehousingInfo
profitWarehousingInfo
=
profitWarehousingInfoMapper
.
get
(
infoId
);
ProfitWarehousingInfo
profitWarehousingInfo
=
profitWarehousingInfoMapper
.
get
(
infoId
);
// String numSeq = CodeUtil.code("WZBM", StaticNumSeq.WZBM);
// String numSeq = CodeUtil.code("WZBM", StaticNumSeq.WZBM);
Wzcode
wzcode
=
wzcodeService
.
findByCode
(
profitWarehousingInfo
.
getType
().
getCode
());
Wzcode
wzcode
=
wzcodeService
.
findByCode
(
profitWarehousingInfo
.
getType
().
getCode
());
int
intNum
=
wzcode
.
getIntNum
();
intNum
=
intNum
+
1
;
wzcode
.
setIntNum
(
intNum
);
QrCode
qrCode
=
new
QrCode
();
QrCode
qrCode
=
new
QrCode
();
qrCode
.
setProfitWarehousingInfo
(
profitWarehousingInfo
);
qrCode
.
setProfitWarehousingInfo
(
profitWarehousingInfo
);
qrCode
.
setComeFlag
(
"1"
);
qrCode
.
setComeFlag
(
"1"
);
...
...
src/main/java/com/jeeplus/modules/warehouse/profitwarehousing/web/ProfitWarehousingController.java
View file @
e6ec36e3
...
@@ -287,7 +287,14 @@ public class ProfitWarehousingController extends BaseController {
...
@@ -287,7 +287,14 @@ public class ProfitWarehousingController extends BaseController {
j
.
setMsg
(
"二维码不存在"
);
j
.
setMsg
(
"二维码不存在"
);
return
j
;
return
j
;
}
}
if
(
Objects
.
equals
(
profitWarehousingInfo1
.
getQrCode
().
getState
(),
"0"
)){
profitWarehousingService
.
cleanQr
(
profitWarehousingInfoId
);
//保存
profitWarehousingService
.
cleanQr
(
profitWarehousingInfoId
);
//保存
}
else
{
j
.
setSuccess
(
false
);
j
.
setMsg
(
"该物资已入账不能清除二维码"
);
return
j
;
}
j
.
setSuccess
(
true
);
j
.
setSuccess
(
true
);
j
.
setMsg
(
"清除二维码成功"
);
j
.
setMsg
(
"清除二维码成功"
);
return
j
;
return
j
;
...
...
src/main/webapp/webpage/modules/warehouse/profitwarehousing/profitWarehousingList.js
View file @
e6ec36e3
...
@@ -270,6 +270,9 @@ $(document).ready(function() {
...
@@ -270,6 +270,9 @@ $(document).ready(function() {
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
[
i
].
qrCode
&&
JSON
.
stringify
(
data1
[
i
].
qrCode
);
data1
[
i
].
qrCodeStr
=
data1
[
i
].
qrCode
&&
JSON
.
stringify
(
data1
[
i
].
qrCode
);
data1
[
i
].
status
=
data1
[
i
].
qrCode
&&
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
]);
addRow
(
'#profitWarehousingChild-'
+
row
.
id
+
'-1-List'
,
profitWarehousingChild1RowIdx
,
profitWarehousingChild1Tpl
,
data1
[
i
]);
profitWarehousingChild1RowIdx
=
profitWarehousingChild1RowIdx
+
1
;
profitWarehousingChild1RowIdx
=
profitWarehousingChild1RowIdx
+
1
;
}
}
...
@@ -289,12 +292,12 @@ $(document).ready(function() {
...
@@ -289,12 +292,12 @@ $(document).ready(function() {
}
}
function
printQr
(
id
,
qrCodeStr
)
{
function
printQr
(
id
,
qrCodeStr
)
{
jp
.
loading
(
'loading...'
);
try
{
try
{
if
(
!
LODOP
){
if
(
!
LODOP
){
initLodop
();
initLodop
();
}
}
if
(
LODOP
){
if
(
LODOP
){
jp
.
loading
(
'loading...'
);
if
(
qrCodeStr
){
if
(
qrCodeStr
){
var
qrCode
=
JSON
.
parse
(
qrCodeStr
);
var
qrCode
=
JSON
.
parse
(
qrCodeStr
);
preview_LODOP
(
qrCode
);
preview_LODOP
(
qrCode
);
...
@@ -329,6 +332,11 @@ $(document).ready(function() {
...
@@ -329,6 +332,11 @@ $(document).ready(function() {
jp
.
error
(
'二维码不存在!'
)
jp
.
error
(
'二维码不存在!'
)
}
}
}
}
/**
* 清除二维码
* @param id 明细id
*/
function
cleanQr
(
id
)
{
function
cleanQr
(
id
)
{
jp
.
confirm
(
'确认清除二维码吗?'
,
function
(){
jp
.
confirm
(
'确认清除二维码吗?'
,
function
(){
jp
.
get
(
"${ctx}/warehouse/profitwarehousing/profitWarehousing/cleanQr?profitWarehousingInfoId="
+
id
,
function
(
res
)
{
jp
.
get
(
"${ctx}/warehouse/profitwarehousing/profitWarehousing/cleanQr?profitWarehousingInfoId="
+
id
,
function
(
res
)
{
...
@@ -336,6 +344,25 @@ $(document).ready(function() {
...
@@ -336,6 +344,25 @@ $(document).ready(function() {
})
})
})
})
}
}
/**
* 入库
* @param id 明细id
* @param rowIndex 主表下标
*/
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
>
<
script
type
=
"text/template"
id
=
"profitWarehousingChildrenTpl"
>
//<!--
<
script
type
=
"text/template"
id
=
"profitWarehousingChildrenTpl"
>
//<!--
<
div
class
=
"tabs-container"
>
<
div
class
=
"tabs-container"
>
...
@@ -393,6 +420,16 @@ $(document).ready(function() {
...
@@ -393,6 +420,16 @@ $(document).ready(function() {
<
button
class
=
"btn btn-danger btn-sm"
onclick
=
"cleanQr('{{row.id}}')"
>
<
button
class
=
"btn btn-danger btn-sm"
onclick
=
"cleanQr('{{row.id}}')"
>
清除二维码
清除二维码
<
/button
>
<
/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
>
<
/td
>
<
/tr>/
/-->
<
/tr>/
/-->
<
/script
>
<
/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