Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dakong-digital-management
Project
Project
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
耿迪迪
dakong-digital-management
Commits
d7658991
Commit
d7658991
authored
Aug 23, 2024
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出入库记录
parent
e0a86769
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
156 additions
and
4 deletions
+156
-4
TProductStoreLog.java
...java/com/zehong/system/domain/track/TProductStoreLog.java
+10
-0
TProductStoreLogMapper.xml
...rc/main/resources/mapper/track/TProductStoreLogMapper.xml
+1
-1
House.vue
...management-web/src/views/track/store/components/House.vue
+1
-1
Record.vue
...anagement-web/src/views/track/store/components/Record.vue
+49
-0
RecordInfo.vue
...ement-web/src/views/track/store/components/RecordInfo.vue
+78
-0
index.vue
digital-management-web/src/views/track/store/index.vue
+17
-2
No files found.
digital-management-system/src/main/java/com/zehong/system/domain/track/TProductStoreLog.java
View file @
d7658991
...
...
@@ -28,6 +28,8 @@ public class TProductStoreLog extends BaseEntity
/** $column.columnComment */
private
Long
createId
;
private
String
nickName
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
...
...
@@ -65,6 +67,14 @@ public class TProductStoreLog extends BaseEntity
return
createId
;
}
public
String
getNickName
()
{
return
nickName
;
}
public
void
setNickName
(
String
nickName
)
{
this
.
nickName
=
nickName
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
...
...
digital-management-system/src/main/resources/mapper/track/TProductStoreLogMapper.xml
View file @
d7658991
...
...
@@ -13,7 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql
id=
"selectTProductStoreLogVo"
>
select id, store_id, `number`, create_time, create_id from t_product_store_log
select id, store_id, `number`, create_time, create_id
, (select nick_name from sys_user where user_id = create_id)as nickName
from t_product_store_log
</sql>
<select
id=
"selectTProductStoreLogList"
parameterType=
"TProductStoreLog"
resultMap=
"TProductStoreLogResult"
>
...
...
digital-management-web/src/views/track/store/components/House.vue
View file @
d7658991
...
...
@@ -20,7 +20,7 @@
</div>
<div
class=
"store-operate"
>
<i
style=
"color:#1890ff"
class=
"el-icon-circle-plus-outline"
v-if=
"in
dex == 0
"
@
click=
"addStore"
></i>
<i
style=
"color:#1890ff"
class=
"el-icon-circle-plus-outline"
v-if=
"in
HouseStore.length -1 == index
"
@
click=
"addStore"
></i>
<i
style=
"color: #ff9292"
class=
"el-icon-remove-outline"
v-else
@
click=
"delStore(index)"
></i>
</div>
</div>
...
...
digital-management-web/src/views/track/store/components/Record.vue
0 → 100644
View file @
d7658991
<
template
>
<el-dialog
:title=
"storeInfo.title + '出入库记录'"
:visible
.
sync=
"recordOpen"
width=
"800px"
append-to-body
:close-on-click-modal=
"false"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
v-if=
"recordOpen"
>
<el-tab-pane
label=
"入库记录"
name=
"import"
>
<RecordInfo
tab=
"import"
:id=
"storeInfo.id"
v-if=
"activeName == 'import'"
/>
</el-tab-pane>
<el-tab-pane
label=
"出库记录"
name=
"export"
>
出库记录
</el-tab-pane>
</el-tabs>
</el-dialog>
</
template
>
<
script
>
import
RecordInfo
from
"./RecordInfo"
;
export
default
{
name
:
"record"
,
components
:{
RecordInfo
},
data
(){
return
{
recordOpen
:
false
,
activeName
:
"import"
,
storeInfo
:
{}
}
},
watch
:{
recordOpen
(){
if
(
this
.
recordOpen
){
this
.
activeName
=
'import'
;
}
}
},
methods
:{
initRecordInfo
(
row
){
this
.
storeInfo
=
row
;
this
.
recordOpen
=
true
;
},
handleClick
(
tab
,
event
){
this
.
activeName
=
tab
.
name
;
}
}
}
</
script
>
<
style
scoped
>
</
style
>
digital-management-web/src/views/track/store/components/RecordInfo.vue
0 → 100644
View file @
d7658991
<
template
>
<div
style=
"margin-bottom: 20px"
>
<el-table
v-loading=
"loading"
:data=
"recordList"
>
<el-table-column
label=
"操作人"
align=
"center"
prop=
"nickName"
/>
<el-table-column
label=
"数量"
align=
"center"
prop=
"number"
/>
<el-table-column
label=
"操作时间"
align=
"center"
prop=
"createTime"
/>
</el-table>
<pagination
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
</div>
</
template
>
<
script
>
import
{
listLog
}
from
"@/api/track/storeLog.js"
;
export
default
{
name
:
"record-info"
,
props
:{
tab
:
{
type
:
String
,
default
:
"import"
},
id
:
{
type
:
Number
}
},
data
(){
return
{
loading
:
false
,
recordList
:
[],
total
:
0
,
queryParams
:{
pageNum
:
1
,
pageSize
:
10
,
storeId
:
null
}
}
},
created
(){
this
.
queryParams
.
storeId
=
this
.
id
;
this
.
getList
();
},
methods
:{
getList
(){
if
(
this
.
tab
==
'import'
){
this
.
getImportRecord
();
}
else
{
}
},
//入库信息
getImportRecord
(){
this
.
loading
=
true
;
listLog
(
this
.
queryParams
).
then
(
res
=>
{
this
.
loading
=
false
;
if
(
res
.
code
==
200
){
this
.
total
=
res
.
total
;
this
.
recordList
=
res
.
rows
;
}
})
},
//出库记录
getExportRecord
(){
}
}
}
</
script
>
<
style
scoped
>
</
style
>
digital-management-web/src/views/track/store/index.vue
View file @
d7658991
...
...
@@ -129,6 +129,12 @@
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-s-order"
@
click=
"handleRecord(scope.row)"
>
出入库记录
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -212,6 +218,9 @@
<!-- 入库 -->
<House
ref=
"house"
/>
<!-- 出入库记录 -->
<Record
ref=
"record"
/>
</div>
</template>
...
...
@@ -219,11 +228,13 @@
import
{
listStore
,
getStore
,
delStore
,
addStore
,
updateStore
,
exportStore
}
from
"@/api/track/store"
;
import
DetailInfo
from
"./components/DetailInfo"
;
import
House
from
"./components/House"
;
import
Record
from
"./components/Record"
;
export
default
{
name
:
"Store"
,
components
:
{
DetailInfo
,
House
House
,
Record
},
data
()
{
return
{
...
...
@@ -286,7 +297,7 @@ export default {
}
}
],
}
}
,
};
},
created
()
{
...
...
@@ -415,6 +426,10 @@ export default {
//入库英文
handleHouse
(){
this
.
$refs
.
house
.
openHouse
();
},
//出入库记录
handleRecord
(
row
){
this
.
$refs
.
record
.
initRecordInfo
(
row
);
}
}
};
...
...
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