Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JINRUN-PERPOSITION
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinzhedeai
JINRUN-PERPOSITION
Commits
a52e73a8
Commit
a52e73a8
authored
Dec 12, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:bug修改 离开接口对接
parent
9286f512
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
15 deletions
+34
-15
fangke.js
src/api/jinrun/fangke.js
+10
-0
fangke.vue
src/views/person/fangke.vue
+22
-13
yuangong.vue
src/views/person/yuangong.vue
+1
-1
kaoqin.vue
src/views/tongji/kaoqin.vue
+1
-1
No files found.
src/api/jinrun/fangke.js
View file @
a52e73a8
...
@@ -35,6 +35,16 @@ export function updateInfo(data) {
...
@@ -35,6 +35,16 @@ export function updateInfo(data) {
})
})
}
}
// 离开
export
function
leave
(
data
)
{
return
request
({
url
:
'
/person/info/visitorLeave
'
,
method
:
'
put
'
,
data
:
data
})
}
export
function
getInfo
(
id
)
{
export
function
getInfo
(
id
)
{
return
request
({
return
request
({
url
:
'
/person/info/getPersonById/
'
+
id
,
url
:
'
/person/info/getPersonById/
'
+
id
,
...
...
src/views/person/fangke.vue
View file @
a52e73a8
...
@@ -255,7 +255,7 @@ import {
...
@@ -255,7 +255,7 @@ import {
addInfo
,
addInfo
,
updateInfo
,
updateInfo
,
getInfo
,
getInfo
,
getCardList
,
// 引入获取定位卡号列表的
接口
leave
,
// 引入离开
接口
}
from
"
@/api/jinrun/fangke
"
;
}
from
"
@/api/jinrun/fangke
"
;
import
{
listUnboundCard
}
from
"
@/api/jinrun/card
"
;
// 引入获取未绑定定位卡号列表的接口
import
{
listUnboundCard
}
from
"
@/api/jinrun/card
"
;
// 引入获取未绑定定位卡号列表的接口
...
@@ -307,7 +307,16 @@ export default {
...
@@ -307,7 +307,16 @@ export default {
},
},
created
()
{
created
()
{
this
.
getList
();
this
.
getList
();
this
.
getCardIdList
();
},
watch
:
{
/** 监听岗位选择变化 */
open
:
{
handler
(
newVal
,
oldVal
)
{
// 获取定位卡号列表
this
.
getCardIdList
();
},
immediate
:
true
,
// 初始化时也调用一次
},
},
},
methods
:
{
methods
:
{
...
@@ -323,21 +332,21 @@ export default {
...
@@ -323,21 +332,21 @@ export default {
handleLeave
(
row
)
{
handleLeave
(
row
)
{
const
formData
=
{
...
row
};
const
formData
=
{
...
row
};
// 获取当前系统时间并格式化为yyyy-MM-dd HH:mm:ss格式
//
//
获取当前系统时间并格式化为yyyy-MM-dd HH:mm:ss格式
const
now
=
new
Date
();
//
const now = new Date();
const
year
=
now
.
getFullYear
();
//
const year = now.getFullYear();
const
month
=
String
(
now
.
getMonth
()
+
1
).
padStart
(
2
,
"
0
"
);
//
const month = String(now.getMonth() + 1).padStart(2, "0");
const
day
=
String
(
now
.
getDate
()).
padStart
(
2
,
"
0
"
);
//
const day = String(now.getDate()).padStart(2, "0");
const
hours
=
String
(
now
.
getHours
()).
padStart
(
2
,
"
0
"
);
//
const hours = String(now.getHours()).padStart(2, "0");
const
minutes
=
String
(
now
.
getMinutes
()).
padStart
(
2
,
"
0
"
);
//
const minutes = String(now.getMinutes()).padStart(2, "0");
const
seconds
=
String
(
now
.
getSeconds
()).
padStart
(
2
,
"
0
"
);
//
const seconds = String(now.getSeconds()).padStart(2, "0");
formData
.
leaveTime
=
`
${
year
}
-
${
month
}
-
${
day
}
${
hours
}
:
${
minutes
}
:
${
seconds
}
`
;
//
formData.leaveTime = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
formData
.
visitorStatus
=
0
;
//
formData.visitorStatus = 0;
this
.
$modal
this
.
$modal
.
confirm
(
"
是否确认离开?
"
)
.
confirm
(
"
是否确认离开?
"
)
.
then
(
function
()
{
.
then
(
function
()
{
return
updateInfo
(
formData
);
return
leave
(
formData
);
})
})
.
then
(()
=>
{
.
then
(()
=>
{
this
.
$modal
.
msgSuccess
(
"
操作成功
"
);
this
.
$modal
.
msgSuccess
(
"
操作成功
"
);
...
...
src/views/person/yuangong.vue
View file @
a52e73a8
...
@@ -407,7 +407,7 @@ export default {
...
@@ -407,7 +407,7 @@ export default {
if
(
value
)
{
if
(
value
)
{
// 根据选择的岗位ID查找对应的岗位对象
// 根据选择的岗位ID查找对应的岗位对象
const
positionItem
=
this
.
positionOptions
.
find
(
const
positionItem
=
this
.
positionOptions
.
find
(
(
item
)
=>
item
.
value
==
=
value
(
item
)
=>
item
.
value
==
value
);
);
if
(
positionItem
)
{
if
(
positionItem
)
{
// 将岗位名称存储到form.positionName
// 将岗位名称存储到form.positionName
...
...
src/views/tongji/kaoqin.vue
View file @
a52e73a8
...
@@ -211,7 +211,7 @@ export default {
...
@@ -211,7 +211,7 @@ export default {
{
{
...
this
.
queryParams
,
...
this
.
queryParams
,
},
},
`
info
_
${
new
Date
().
getTime
()}
.xlsx`
`
考勤记录数据
_
${
new
Date
().
getTime
()}
.xlsx`
);
);
},
},
},
},
...
...
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