Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jilinzhongdianrenqun-web
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
吴超
jilinzhongdianrenqun-web
Commits
29b22942
Commit
29b22942
authored
Dec 22, 2025
by
wangchunyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日常管理功能菜单添加
parent
18656f01
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
131 行增加
和
82 行删除
+131
-82
src/api/key-dm-inbound.js
+0
-2
src/api/key-dm-inventory.js
+0
-2
src/api/key-dm-leave.js
+0
-2
src/api/key-dm-stats.js
+0
-2
src/api/key-dm-user.js
+0
-2
src/api/key-dm.js
+0
-1
src/router/group/key-person.js
+48
-0
src/view/key-person/key_dm_conf/index.vue
+8
-5
src/view/key-person/key_dm_inventory/inbound.vue
+21
-23
src/view/key-person/key_dm_inventory/index.vue
+27
-27
src/view/key-person/key_dm_inventory/stats.vue
+0
-2
src/view/key-person/key_dm_leave/index.vue
+27
-12
src/view/key-person/key_dm_user/index.vue
+0
-2
没有找到文件。
src/api/key-dm-inbound.js
View file @
29b22942
...
@@ -71,5 +71,3 @@ export const getInboundById = (param) => {
...
@@ -71,5 +71,3 @@ export const getInboundById = (param) => {
data
:
param
data
:
param
})
})
}
}
src/api/key-dm-inventory.js
View file @
29b22942
...
@@ -71,5 +71,3 @@ export const getBorrowById = (param) => {
...
@@ -71,5 +71,3 @@ export const getBorrowById = (param) => {
data
:
param
data
:
param
})
})
}
}
src/api/key-dm-leave.js
View file @
29b22942
...
@@ -89,5 +89,3 @@ export const getLeaveStats = (param) => {
...
@@ -89,5 +89,3 @@ export const getLeaveStats = (param) => {
data
:
param
data
:
param
})
})
}
}
src/api/key-dm-stats.js
View file @
29b22942
...
@@ -33,5 +33,3 @@ export const getWorkloadDetails = (param) => {
...
@@ -33,5 +33,3 @@ export const getWorkloadDetails = (param) => {
data
:
param
data
:
param
})
})
}
}
src/api/key-dm-user.js
View file @
29b22942
...
@@ -26,5 +26,3 @@ export const saveDmUser = (param) => {
...
@@ -26,5 +26,3 @@ export const saveDmUser = (param) => {
data
:
param
data
:
param
})
})
}
}
src/api/key-dm.js
View file @
29b22942
...
@@ -116,4 +116,3 @@ export const deleteMaterial = (param) => {
...
@@ -116,4 +116,3 @@ export const deleteMaterial = (param) => {
data
:
param
data
:
param
})
})
}
}
src/router/group/key-person.js
View file @
29b22942
...
@@ -206,5 +206,53 @@ export default [
...
@@ -206,5 +206,53 @@ export default [
title
:
'居住外地人员管理'
title
:
'居住外地人员管理'
},
},
component
:
()
=>
import
(
'@/view/people-info/personManageTabs'
)
component
:
()
=>
import
(
'@/view/people-info/personManageTabs'
)
},
{
path
:
'/key-person/dmConf'
,
name
:
'dmConf'
,
meta
:
{
title
:
'日常管理配置'
},
component
:
()
=>
import
(
'@/view/key-person/key_dm_conf/index'
)
},
{
path
:
'/key-person/dmUser'
,
name
:
'dmUser'
,
meta
:
{
title
:
'日常管理用户信息'
},
component
:
()
=>
import
(
'@/view/key-person/key_dm_user/index'
)
},
{
path
:
'/key-person/dmLeave'
,
name
:
'dmLeave'
,
meta
:
{
title
:
'日常管理请假'
},
component
:
()
=>
import
(
'@/view/key-person/key_dm_leave/index'
)
},
{
path
:
'/key-person/dmInventoryApply'
,
name
:
'dmInventoryApply'
,
meta
:
{
title
:
'日常管理用品管理'
},
component
:
()
=>
import
(
'@/view/key-person/key_dm_inventory/index'
)
},
{
path
:
'/key-person/dmInventoryInbound'
,
name
:
'dmInventoryInbound'
,
meta
:
{
title
:
'日常管理用品入库'
},
component
:
()
=>
import
(
'@/view/key-person/key_dm_inventory/inbound'
)
},
{
path
:
'/key-person/dmInventoryStats'
,
name
:
'dmInventoryStats'
,
meta
:
{
title
:
'日常管理统计'
},
component
:
()
=>
import
(
'@/view/key-person/key_dm_inventory/stats'
)
}
}
]
]
src/view/key-person/key_dm_conf/index.vue
View file @
29b22942
...
@@ -533,10 +533,14 @@ export default {
...
@@ -533,10 +533,14 @@ export default {
{
title
:
'规格型号'
,
key
:
'material_spec'
,
align
:
'center'
},
{
title
:
'规格型号'
,
key
:
'material_spec'
,
align
:
'center'
},
{
title
:
'单位'
,
key
:
'unit'
,
align
:
'center'
,
width
:
80
},
{
title
:
'单位'
,
key
:
'unit'
,
align
:
'center'
,
width
:
80
},
{
title
:
'单价'
,
key
:
'unit_price'
,
align
:
'center'
,
width
:
100
},
{
title
:
'单价'
,
key
:
'unit_price'
,
align
:
'center'
,
width
:
100
},
{
title
:
'物料状态'
,
key
:
'status'
,
align
:
'center'
,
width
:
100
,
render
:
(
h
,
{
row
})
=>
{
{
title
:
'物料状态'
,
const
statusMap
=
{
0
:
'报废'
,
1
:
'使用'
,
2
:
'待修'
}
key
:
'status'
,
return
h
(
'span'
,
statusMap
[
row
.
status
]
||
'-'
)
align
:
'center'
,
}},
width
:
100
,
render
:
(
h
,
{
row
})
=>
{
const
statusMap
=
{
0
:
'报废'
,
1
:
'使用'
,
2
:
'待修'
}
return
h
(
'span'
,
statusMap
[
row
.
status
]
||
'-'
)
}
},
{
title
:
'操作'
,
slot
:
'action'
,
align
:
'center'
,
width
:
180
,
fixed
:
'right'
}
{
title
:
'操作'
,
slot
:
'action'
,
align
:
'center'
,
width
:
180
,
fixed
:
'right'
}
]
]
}
}
...
@@ -793,4 +797,3 @@ export default {
...
@@ -793,4 +797,3 @@ export default {
text-align
:
right
;
text-align
:
right
;
}
}
</
style
>
</
style
>
src/view/key-person/key_dm_inventory/inbound.vue
View file @
29b22942
...
@@ -181,11 +181,11 @@ export default {
...
@@ -181,11 +181,11 @@ export default {
activeTab
:
'inbound'
,
activeTab
:
'inbound'
,
filters
:
{
inbound
:
{
inbound_no
:
''
},
return
:
{
key
:
''
},
inventory
:
{
material_name
:
''
}
},
filters
:
{
inbound
:
{
inbound_no
:
''
},
return
:
{
key
:
''
},
inventory
:
{
material_name
:
''
}
},
tables
:
{
inbound
:
[],
return
:
[],
inventory
:
[]
},
tables
:
{
inbound
:
[],
return
:
[],
inventory
:
[]
},
pagers
:
{
inbound
:
{
pageNo
:
1
,
pageSize
:
10
,
totalRecord
:
0
},
return
:
{
pageNo
:
1
,
pageSize
:
10
,
totalRecord
:
0
},
inventory
:
{
pageNo
:
1
,
pageSize
:
10
,
totalRecord
:
0
}
},
pagers
:
{
inbound
:
{
pageNo
:
1
,
pageSize
:
10
,
totalRecord
:
0
},
return
:
{
pageNo
:
1
,
pageSize
:
10
,
totalRecord
:
0
},
inventory
:
{
pageNo
:
1
,
pageSize
:
10
,
totalRecord
:
0
}
},
loading
:
{
inbound
:
false
,
return
:
false
,
inventory
:
false
},
loading
:
{
inbound
:
false
,
return
:
false
,
inventory
:
false
},
inboundModal
:
{
visible
:
false
,
isEdit
:
false
,
saving
:
false
,
form
:{},
details
:
[]
},
inboundModal
:
{
visible
:
false
,
isEdit
:
false
,
saving
:
false
,
form
:
{},
details
:
[]
},
returnModal
:
{
visible
:
false
,
record
:{},
details
:[],
saving
:
false
},
returnModal
:
{
visible
:
false
,
record
:
{},
details
:
[],
saving
:
false
},
detailModal
:
{
visible
:
false
,
loading
:
false
,
data
:{},
details
:[],
logs
:
[]
}
detailModal
:
{
visible
:
false
,
loading
:
false
,
data
:
{},
details
:
[],
logs
:
[]
}
}
}
},
},
created
()
{
this
.
fetchList
(
'inbound'
)
},
created
()
{
this
.
fetchList
(
'inbound'
)
},
...
@@ -204,18 +204,18 @@ export default {
...
@@ -204,18 +204,18 @@ export default {
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
const
data
=
ret
.
data
.
data
||
{}
const
data
=
ret
.
data
.
data
||
{}
this
.
tables
[
tab
]
=
data
.
results
||
[]
this
.
tables
[
tab
]
=
data
.
results
||
[]
if
(
data
.
totalRecord
!==
undefined
)
(
this
.
pagers
[
tab
]
||
{}).
totalRecord
=
data
.
totalRecord
if
(
data
.
totalRecord
!==
undefined
)
(
this
.
pagers
[
tab
]
||
{}).
totalRecord
=
data
.
totalRecord
}
else
this
.
$Notice
.
error
({
title
:
'查询失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
}
else
this
.
$Notice
.
error
({
title
:
'查询失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
}).
finally
(()
=>
{
this
.
loading
[
tab
]
=
false
})
}).
finally
(()
=>
{
this
.
loading
[
tab
]
=
false
})
},
},
handleSearch
(
tab
)
{
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
1
;
this
.
fetchList
(
tab
)
},
handleSearch
(
tab
)
{
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
1
;
this
.
fetchList
(
tab
)
},
handleReset
(
tab
)
{
this
.
filters
[
tab
]
=
{};
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
1
;
this
.
fetchList
(
tab
)
},
handleReset
(
tab
)
{
this
.
filters
[
tab
]
=
{};
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
1
;
this
.
fetchList
(
tab
)
},
pageChange
(
tab
,
pageNo
)
{
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
pageNo
;
this
.
fetchList
(
tab
)
},
pageChange
(
tab
,
pageNo
)
{
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
pageNo
;
this
.
fetchList
(
tab
)
},
sizeChange
(
tab
,
size
)
{
(
this
.
pagers
[
tab
]
||
{}).
pageSize
=
size
;
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
1
;
this
.
fetchList
(
tab
)
},
sizeChange
(
tab
,
size
)
{
(
this
.
pagers
[
tab
]
||
{}).
pageSize
=
size
;
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
1
;
this
.
fetchList
(
tab
)
},
openInboundModal
()
{
openInboundModal
()
{
this
.
inboundModal
.
isEdit
=
false
this
.
inboundModal
.
isEdit
=
false
this
.
inboundModal
.
form
=
{
inbound_no
:
''
,
batch_no
:
''
,
inbound_date
:
''
,
inbound_type
:
1
,
storage_location
:
''
,
remark
:
''
}
this
.
inboundModal
.
form
=
{
inbound_no
:
''
,
batch_no
:
''
,
inbound_date
:
''
,
inbound_type
:
1
,
storage_location
:
''
,
remark
:
''
}
this
.
inboundModal
.
details
=
[]
this
.
inboundModal
.
details
=
[]
this
.
inboundModal
.
visible
=
true
this
.
inboundModal
.
visible
=
true
},
},
...
@@ -232,12 +232,12 @@ export default {
...
@@ -232,12 +232,12 @@ export default {
saveInbound
()
{
saveInbound
()
{
this
.
inboundModal
.
saving
=
true
this
.
inboundModal
.
saving
=
true
saveInbound
(
Object
.
assign
({},
this
.
inboundModal
.
form
,
{
details
:
this
.
inboundModal
.
details
})).
then
(
ret
=>
{
saveInbound
(
Object
.
assign
({},
this
.
inboundModal
.
form
,
{
details
:
this
.
inboundModal
.
details
})).
then
(
ret
=>
{
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'保存成功'
);
this
.
inboundModal
.
visible
=
false
;
this
.
fetchList
(
'inbound'
)
}
else
this
.
$Notice
.
error
({
title
:
'保存失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'保存成功'
);
this
.
inboundModal
.
visible
=
false
;
this
.
fetchList
(
'inbound'
)
}
else
this
.
$Notice
.
error
({
title
:
'保存失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
}).
finally
(()
=>
{
this
.
inboundModal
.
saving
=
false
})
}).
finally
(()
=>
{
this
.
inboundModal
.
saving
=
false
})
},
},
canEdit
(
row
)
{
return
row
.
inbound_status
===
0
},
canEdit
(
row
)
{
return
row
.
inbound_status
===
0
},
deleteInbound
(
row
)
{
deleteInbound
({
id
:
row
.
id
}).
then
(
ret
=>
{
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'删除成功'
);
this
.
fetchList
(
'inbound'
)
}
else
this
.
$Notice
.
error
({
title
:
'删除失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
})
},
deleteInbound
(
row
)
{
deleteInbound
({
id
:
row
.
id
}).
then
(
ret
=>
{
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'删除成功'
);
this
.
fetchList
(
'inbound'
)
}
else
this
.
$Notice
.
error
({
title
:
'删除失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
})
},
doInbound
(
row
)
{
doInbound
({
id
:
row
.
id
}).
then
(
ret
=>
{
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'入库成功'
);
this
.
fetchList
(
'inbound'
);
this
.
fetchList
(
'inventory'
)
}
else
this
.
$Notice
.
error
({
title
:
'入库失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
})
},
doInbound
(
row
)
{
doInbound
({
id
:
row
.
id
}).
then
(
ret
=>
{
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'入库成功'
);
this
.
fetchList
(
'inbound'
);
this
.
fetchList
(
'inventory'
)
}
else
this
.
$Notice
.
error
({
title
:
'入库失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
})
},
openReturnModal
(
row
)
{
openReturnModal
(
row
)
{
this
.
returnModal
.
record
=
Object
.
assign
({},
row
)
this
.
returnModal
.
record
=
Object
.
assign
({},
row
)
...
@@ -250,8 +250,8 @@ export default {
...
@@ -250,8 +250,8 @@ export default {
confirmReturn
()
{
confirmReturn
()
{
this
.
returnModal
.
saving
=
true
this
.
returnModal
.
saving
=
true
processReturn
({
id
:
this
.
returnModal
.
record
.
id
}).
then
(
ret
=>
{
processReturn
({
id
:
this
.
returnModal
.
record
.
id
}).
then
(
ret
=>
{
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'归还已入库并更新库存'
);
this
.
returnModal
.
visible
=
false
;
this
.
fetchList
(
'return'
);
this
.
fetchList
(
'inventory'
)
}
else
this
.
$Notice
.
error
({
title
:
'归还失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'归还已入库并更新库存'
);
this
.
returnModal
.
visible
=
false
;
this
.
fetchList
(
'return'
);
this
.
fetchList
(
'inventory'
)
}
else
this
.
$Notice
.
error
({
title
:
'归还失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
}).
finally
(()
=>
{
this
.
returnModal
.
saving
=
false
})
}).
finally
(()
=>
{
this
.
returnModal
.
saving
=
false
})
},
},
openDetail
(
row
)
{
openDetail
(
row
)
{
...
@@ -262,8 +262,8 @@ export default {
...
@@ -262,8 +262,8 @@ export default {
this
.
detailModal
.
data
=
ret
.
data
.
data
||
{}
this
.
detailModal
.
data
=
ret
.
data
.
data
||
{}
this
.
detailModal
.
details
=
ret
.
data
.
data
.
details
||
[]
this
.
detailModal
.
details
=
ret
.
data
.
data
.
details
||
[]
this
.
detailModal
.
logs
=
ret
.
data
.
data
.
logs
||
[]
this
.
detailModal
.
logs
=
ret
.
data
.
data
.
logs
||
[]
}
else
this
.
$Notice
.
error
({
title
:
'查询失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
}
else
this
.
$Notice
.
error
({
title
:
'查询失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
}).
finally
(()
=>
{
this
.
detailModal
.
loading
=
false
})
}).
finally
(()
=>
{
this
.
detailModal
.
loading
=
false
})
}
}
}
}
}
}
...
@@ -277,5 +277,3 @@ export default {
...
@@ -277,5 +277,3 @@ export default {
.page_style
{
margin-top
:
12px
;
text-align
:
right
;
}
.page_style
{
margin-top
:
12px
;
text-align
:
right
;
}
.mt8
{
margin-top
:
8px
;
}
.mt8
{
margin-top
:
8px
;
}
</
style
>
</
style
>
src/view/key-person/key_dm_inventory/index.vue
View file @
29b22942
...
@@ -173,11 +173,11 @@ export default {
...
@@ -173,11 +173,11 @@ export default {
activeTab
:
'apply'
,
activeTab
:
'apply'
,
filters
:
{
apply
:
{
applicant_name
:
''
}
},
filters
:
{
apply
:
{
applicant_name
:
''
}
},
tables
:
{
apply
:
[],
pending
:
[],
history
:
[]
},
tables
:
{
apply
:
[],
pending
:
[],
history
:
[]
},
pagers
:
{
apply
:
{
pageNo
:
1
,
pageSize
:
10
,
totalRecord
:
0
},
pending
:
{
pageNo
:
1
,
pageSize
:
10
,
totalRecord
:
0
},
history
:
{
pageNo
:
1
,
pageSize
:
10
,
totalRecord
:
0
}
},
pagers
:
{
apply
:
{
pageNo
:
1
,
pageSize
:
10
,
totalRecord
:
0
},
pending
:
{
pageNo
:
1
,
pageSize
:
10
,
totalRecord
:
0
},
history
:
{
pageNo
:
1
,
pageSize
:
10
,
totalRecord
:
0
}
},
loading
:
{
apply
:
false
,
pending
:
false
,
history
:
false
},
loading
:
{
apply
:
false
,
pending
:
false
,
history
:
false
},
applyModal
:
{
visible
:
false
,
isEdit
:
false
,
saving
:
false
,
form
:{},
details
:
[]
},
applyModal
:
{
visible
:
false
,
isEdit
:
false
,
saving
:
false
,
form
:
{},
details
:
[]
},
approveModal
:
{
visible
:
false
,
record
:{},
details
:[],
opinion
:
''
,
submitting
:
false
},
approveModal
:
{
visible
:
false
,
record
:
{},
details
:
[],
opinion
:
''
,
submitting
:
false
},
detailModal
:
{
visible
:
false
,
loading
:
false
,
data
:{},
details
:[],
logs
:
[]
}
detailModal
:
{
visible
:
false
,
loading
:
false
,
data
:
{},
details
:
[],
logs
:
[]
}
}
}
},
},
created
()
{
this
.
fetchList
(
'apply'
)
},
created
()
{
this
.
fetchList
(
'apply'
)
},
...
@@ -196,18 +196,18 @@ export default {
...
@@ -196,18 +196,18 @@ export default {
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
const
data
=
ret
.
data
.
data
||
{}
const
data
=
ret
.
data
.
data
||
{}
this
.
tables
[
tab
]
=
data
.
results
||
[]
this
.
tables
[
tab
]
=
data
.
results
||
[]
if
(
data
.
totalRecord
!==
undefined
)
(
this
.
pagers
[
tab
]
||
{}).
totalRecord
=
data
.
totalRecord
if
(
data
.
totalRecord
!==
undefined
)
(
this
.
pagers
[
tab
]
||
{}).
totalRecord
=
data
.
totalRecord
}
else
this
.
$Notice
.
error
({
title
:
'查询失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
}
else
this
.
$Notice
.
error
({
title
:
'查询失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
}).
finally
(()
=>
{
this
.
loading
[
tab
]
=
false
})
}).
finally
(()
=>
{
this
.
loading
[
tab
]
=
false
})
},
},
handleSearch
(
tab
)
{
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
1
;
this
.
fetchList
(
tab
)
},
handleSearch
(
tab
)
{
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
1
;
this
.
fetchList
(
tab
)
},
handleReset
(
tab
)
{
this
.
filters
[
tab
]
=
{};
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
1
;
this
.
fetchList
(
tab
)
},
handleReset
(
tab
)
{
this
.
filters
[
tab
]
=
{};
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
1
;
this
.
fetchList
(
tab
)
},
pageChange
(
tab
,
pageNo
)
{
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
pageNo
;
this
.
fetchList
(
tab
)
},
pageChange
(
tab
,
pageNo
)
{
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
pageNo
;
this
.
fetchList
(
tab
)
},
sizeChange
(
tab
,
size
)
{
(
this
.
pagers
[
tab
]
||
{}).
pageSize
=
size
;
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
1
;
this
.
fetchList
(
tab
)
},
sizeChange
(
tab
,
size
)
{
(
this
.
pagers
[
tab
]
||
{}).
pageSize
=
size
;
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
1
;
this
.
fetchList
(
tab
)
},
openApplyModal
()
{
openApplyModal
()
{
this
.
applyModal
.
isEdit
=
false
this
.
applyModal
.
isEdit
=
false
this
.
applyModal
.
form
=
{
applicant_id
:
''
,
applicant_name
:
''
,
department_id
:
''
,
department_name
:
''
,
borrow_purpose
:
''
,
expected_return_date
:
''
,
approval_status
:
0
}
this
.
applyModal
.
form
=
{
applicant_id
:
''
,
applicant_name
:
''
,
department_id
:
''
,
department_name
:
''
,
borrow_purpose
:
''
,
expected_return_date
:
''
,
approval_status
:
0
}
this
.
applyModal
.
details
=
[]
this
.
applyModal
.
details
=
[]
this
.
applyModal
.
visible
=
true
this
.
applyModal
.
visible
=
true
},
},
...
@@ -226,18 +226,20 @@ export default {
...
@@ -226,18 +226,20 @@ export default {
this
.
applyModal
.
saving
=
true
this
.
applyModal
.
saving
=
true
const
payload
=
Object
.
assign
({},
this
.
applyModal
.
form
,
{
details
:
this
.
applyModal
.
details
})
const
payload
=
Object
.
assign
({},
this
.
applyModal
.
form
,
{
details
:
this
.
applyModal
.
details
})
saveBorrowApplication
(
payload
).
then
(
ret
=>
{
saveBorrowApplication
(
payload
).
then
(
ret
=>
{
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'保存成功'
);
this
.
applyModal
.
visible
=
false
;
this
.
fetchList
(
'apply'
)
}
else
this
.
$Notice
.
error
({
title
:
'保存失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'保存成功'
);
this
.
applyModal
.
visible
=
false
;
this
.
fetchList
(
'apply'
)
}
else
this
.
$Notice
.
error
({
title
:
'保存失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
}).
finally
(()
=>
{
this
.
applyModal
.
saving
=
false
})
}).
finally
(()
=>
{
this
.
applyModal
.
saving
=
false
})
},
},
canEdit
(
row
)
{
return
row
.
approval_status
===
0
||
row
.
approval_status
===
-
1
},
canEdit
(
row
)
{
return
row
.
approval_status
===
0
||
row
.
approval_status
===
-
1
},
canSubmit
(
row
)
{
return
row
.
approval_status
===
0
||
row
.
approval_status
===
-
1
},
canSubmit
(
row
)
{
return
row
.
approval_status
===
0
||
row
.
approval_status
===
-
1
},
canRevoke
(
row
)
{
return
row
.
approval_status
===
1
},
canRevoke
(
row
)
{
return
row
.
approval_status
===
1
},
submit
(
row
)
{
submit
(
row
)
{
this
.
$Modal
.
confirm
({
title
:
'确认提交'
,
content
:
'提交后进入审批流程,是否继续?'
,
onOk
:
()
=>
{
this
.
$Modal
.
confirm
({
title
:
'确认提交'
,
submitBorrow
({
id
:
row
.
id
}).
then
(
ret
=>
{
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'提交成功'
);
this
.
fetchList
(
'apply'
)
}
else
this
.
$Notice
.
error
({
title
:
'提交失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
})
content
:
'提交后进入审批流程,是否继续?'
,
}})
onOk
:
()
=>
{
submitBorrow
({
id
:
row
.
id
}).
then
(
ret
=>
{
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'提交成功'
);
this
.
fetchList
(
'apply'
)
}
else
this
.
$Notice
.
error
({
title
:
'提交失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
})
}
})
},
},
revoke
(
row
)
{
revokeBorrow
({
id
:
row
.
id
}).
then
(
ret
=>
{
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
){
this
.
$Message
.
success
(
'撤回成功'
);
this
.
fetchList
(
'apply'
)
}
else
this
.
$Notice
.
error
({
title
:
'撤回失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
})
},
revoke
(
row
)
{
revokeBorrow
({
id
:
row
.
id
}).
then
(
ret
=>
{
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'撤回成功'
);
this
.
fetchList
(
'apply'
)
}
else
this
.
$Notice
.
error
({
title
:
'撤回失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
})
},
openApproveModal
(
row
)
{
openApproveModal
(
row
)
{
this
.
approveModal
.
record
=
Object
.
assign
({},
row
)
this
.
approveModal
.
record
=
Object
.
assign
({},
row
)
...
@@ -253,15 +255,15 @@ export default {
...
@@ -253,15 +255,15 @@ export default {
confirmApprove
()
{
confirmApprove
()
{
this
.
approveModal
.
submitting
=
true
this
.
approveModal
.
submitting
=
true
approveBorrow
({
id
:
this
.
approveModal
.
record
.
id
}).
then
(
ret
=>
{
approveBorrow
({
id
:
this
.
approveModal
.
record
.
id
}).
then
(
ret
=>
{
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'已通过,已生成出库并更新库存'
);
this
.
approveModal
.
visible
=
false
;
this
.
fetchList
(
'pending'
);
this
.
fetchList
(
'apply'
)
}
else
this
.
$Notice
.
error
({
title
:
'操作失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'已通过,已生成出库并更新库存'
);
this
.
approveModal
.
visible
=
false
;
this
.
fetchList
(
'pending'
);
this
.
fetchList
(
'apply'
)
}
else
this
.
$Notice
.
error
({
title
:
'操作失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
}).
finally
(()
=>
{
this
.
approveModal
.
submitting
=
false
})
}).
finally
(()
=>
{
this
.
approveModal
.
submitting
=
false
})
},
},
confirmReject
()
{
confirmReject
()
{
if
(
!
this
.
approveModal
.
opinion
||
!
this
.
approveModal
.
opinion
.
trim
())
{
this
.
$Message
.
warning
(
'请输入驳回原因'
);
return
}
if
(
!
this
.
approveModal
.
opinion
||
!
this
.
approveModal
.
opinion
.
trim
())
{
this
.
$Message
.
warning
(
'请输入驳回原因'
);
return
}
this
.
approveModal
.
submitting
=
true
this
.
approveModal
.
submitting
=
true
rejectBorrow
({
id
:
this
.
approveModal
.
record
.
id
,
comment
:
this
.
approveModal
.
opinion
}).
then
(
ret
=>
{
rejectBorrow
({
id
:
this
.
approveModal
.
record
.
id
,
comment
:
this
.
approveModal
.
opinion
}).
then
(
ret
=>
{
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'已驳回'
);
this
.
approveModal
.
visible
=
false
;
this
.
fetchList
(
'pending'
)
}
else
this
.
$Notice
.
error
({
title
:
'驳回失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'已驳回'
);
this
.
approveModal
.
visible
=
false
;
this
.
fetchList
(
'pending'
)
}
else
this
.
$Notice
.
error
({
title
:
'驳回失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
}).
finally
(()
=>
{
this
.
approveModal
.
submitting
=
false
})
}).
finally
(()
=>
{
this
.
approveModal
.
submitting
=
false
})
},
},
openDetail
(
row
)
{
openDetail
(
row
)
{
...
@@ -272,8 +274,8 @@ export default {
...
@@ -272,8 +274,8 @@ export default {
this
.
detailModal
.
data
=
ret
.
data
.
data
||
{}
this
.
detailModal
.
data
=
ret
.
data
.
data
||
{}
this
.
detailModal
.
details
=
ret
.
data
.
data
.
details
||
[]
this
.
detailModal
.
details
=
ret
.
data
.
data
.
details
||
[]
this
.
detailModal
.
logs
=
ret
.
data
.
data
.
logs
||
[]
this
.
detailModal
.
logs
=
ret
.
data
.
data
.
logs
||
[]
}
else
this
.
$Notice
.
error
({
title
:
'查询失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
}
else
this
.
$Notice
.
error
({
title
:
'查询失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
}).
finally
(()
=>
{
this
.
detailModal
.
loading
=
false
})
}).
finally
(()
=>
{
this
.
detailModal
.
loading
=
false
})
}
}
}
}
}
}
...
@@ -287,5 +289,3 @@ export default {
...
@@ -287,5 +289,3 @@ export default {
.page_style
{
margin-top
:
12px
;
text-align
:
right
;
}
.page_style
{
margin-top
:
12px
;
text-align
:
right
;
}
.mt8
{
margin-top
:
8px
;
}
.mt8
{
margin-top
:
8px
;
}
</
style
>
</
style
>
src/view/key-person/key_dm_inventory/stats.vue
View file @
29b22942
...
@@ -143,5 +143,3 @@ export default {
...
@@ -143,5 +143,3 @@ export default {
.page_style
{
margin-top
:
12px
;
text-align
:
right
;
}
.page_style
{
margin-top
:
12px
;
text-align
:
right
;
}
.mt8
{
margin-top
:
8px
;
}
.mt8
{
margin-top
:
8px
;
}
</
style
>
</
style
>
src/view/key-person/key_dm_leave/index.vue
View file @
29b22942
...
@@ -268,7 +268,10 @@ export default {
...
@@ -268,7 +268,10 @@ export default {
sizeChange
(
tab
,
size
)
{
(
this
.
pagers
[
tab
]
||
{}).
pageSize
=
size
;
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
1
;
this
.
fetchList
(
tab
)
},
sizeChange
(
tab
,
size
)
{
(
this
.
pagers
[
tab
]
||
{}).
pageSize
=
size
;
(
this
.
pagers
[
tab
]
||
{}).
pageNo
=
1
;
this
.
fetchList
(
tab
)
},
loadLeaveTypes
()
{
loadLeaveTypes
()
{
getDictList
({
type
:
'leave_type'
}).
then
(
res
=>
{
getDictList
({
type
:
'leave_type'
}).
then
(
res
=>
{
const
list
=
res
.
data
&&
(
res
.
data
.
data
||
res
.
data
.
results
)
||
[]
let
list
=
res
.
data
if
(
list
)
{
list
=
(
res
.
data
.
data
||
res
.
data
.
results
)
||
[]
}
this
.
leaveTypes
=
Array
.
isArray
(
list
)
?
list
.
map
(
it
=>
({
id
:
it
.
value
||
it
.
dictValue
,
type_name
:
it
.
label
||
it
.
name
}))
:
[]
this
.
leaveTypes
=
Array
.
isArray
(
list
)
?
list
.
map
(
it
=>
({
id
:
it
.
value
||
it
.
dictValue
,
type_name
:
it
.
label
||
it
.
name
}))
:
[]
})
})
},
},
...
@@ -296,11 +299,13 @@ export default {
...
@@ -296,11 +299,13 @@ export default {
canSubmit
(
row
)
{
return
row
.
status
===
0
||
row
.
status
===
-
1
},
canSubmit
(
row
)
{
return
row
.
status
===
0
||
row
.
status
===
-
1
},
canRevoke
(
row
)
{
return
row
.
status
===
1
},
canRevoke
(
row
)
{
return
row
.
status
===
1
},
submit
(
row
)
{
submit
(
row
)
{
this
.
$Modal
.
confirm
({
title
:
'确认提交'
,
content
:
'确认提交此请假申请进入审批流程?'
,
onOk
:
()
=>
{
this
.
$Modal
.
confirm
({
title
:
'确认提交'
,
submitLeaveApplication
({
id
:
row
.
id
}).
then
(
ret
=>
{
content
:
'确认提交此请假申请进入审批流程?'
,
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'提交成功'
);
this
.
fetchList
(
'apply'
)
}
else
this
.
$Notice
.
error
({
title
:
'提交失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
onOk
:
()
=>
{
})
submitLeaveApplication
({
id
:
row
.
id
}).
then
(
ret
=>
{
}})
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
$Message
.
success
(
'提交成功'
);
this
.
fetchList
(
'apply'
)
}
else
this
.
$Notice
.
error
({
title
:
'提交失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
})
}
})
},
},
revoke
(
row
)
{
revoke
(
row
)
{
revokeLeaveApplication
({
id
:
row
.
id
}).
then
(
ret
=>
{
revokeLeaveApplication
({
id
:
row
.
id
}).
then
(
ret
=>
{
...
@@ -337,15 +342,27 @@ export default {
...
@@ -337,15 +342,27 @@ export default {
},
},
openHistoryDetail
(
row
)
{
this
.
openDetail
(
row
)
},
openHistoryDetail
(
row
)
{
this
.
openDetail
(
row
)
},
renderApproveResult
(
h
,
{
row
})
{
return
row
.
approver_result
===
1
?
'通过'
:
(
row
.
approver_result
===
-
1
?
'驳回'
:
'未处理'
)
},
renderApproveResult
(
h
,
{
row
})
{
return
row
.
approver_result
===
1
?
'通过'
:
(
row
.
approver_result
===
-
1
?
'驳回'
:
'未处理'
)
},
formatDatetime
(
val
)
{
if
(
!
val
)
return
'-'
;
return
String
(
val
).
replace
(
'T'
,
' '
)
},
formatDatetime
(
val
)
{
if
(
!
val
)
return
'-'
;
return
String
(
val
).
replace
(
'T'
,
' '
)
},
loadStats
()
{
loadStats
()
{
this
.
loading
.
stats
=
true
this
.
loading
.
stats
=
true
const
params
=
{
start
:
this
.
statsRange
&&
this
.
statsRange
[
0
],
end
:
this
.
statsRange
&&
this
.
statsRange
[
1
],
department
:
this
.
statsDept
}
const
params
=
{
start
:
this
.
statsRange
&&
this
.
statsRange
[
0
],
end
:
this
.
statsRange
&&
this
.
statsRange
[
1
],
department
:
this
.
statsDept
}
getLeaveStats
({
params
}).
then
(
ret
=>
{
getLeaveStats
({
params
}).
then
(
ret
=>
{
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
this
.
tables
.
stats
=
ret
.
data
.
data
||
[]
else
this
.
$Notice
.
error
({
title
:
'统计失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
if
(
ret
.
data
&&
ret
.
data
.
errcode
===
0
)
{
this
.
tables
.
stats
=
ret
.
data
.
data
||
[]
}
else
{
this
.
$Notice
.
error
({
title
:
'统计失败'
,
desc
:
ret
.
data
&&
ret
.
data
.
errmsg
})
}
}).
finally
(()
=>
{
this
.
loading
.
stats
=
false
})
}).
finally
(()
=>
{
this
.
loading
.
stats
=
false
})
},
},
resetStats
()
{
this
.
statsRange
=
[];
this
.
statsDept
=
''
;
this
.
tables
.
stats
=
[]
}
resetStats
()
{
this
.
statsRange
=
[]
this
.
statsDept
=
''
this
.
tables
.
stats
=
[]
}
}
}
}
}
</
script
>
</
script
>
...
@@ -358,5 +375,3 @@ export default {
...
@@ -358,5 +375,3 @@ export default {
.page_style
{
margin-top
:
12px
;
text-align
:
right
;
}
.page_style
{
margin-top
:
12px
;
text-align
:
right
;
}
.mt8
{
margin-top
:
8px
;
}
.mt8
{
margin-top
:
8px
;
}
</
style
>
</
style
>
src/view/key-person/key_dm_user/index.vue
View file @
29b22942
...
@@ -192,5 +192,3 @@ export default {
...
@@ -192,5 +192,3 @@ export default {
.mr10
{
margin-right
:
10px
;
}
.mr10
{
margin-right
:
10px
;
}
.page_style
{
margin-top
:
12px
;
text-align
:
right
;
}
.page_style
{
margin-top
:
12px
;
text-align
:
right
;
}
</
style
>
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论