Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5565ab33
authored
Dec 12, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
596af35d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
33 deletions
src/views/residentManage/inStoreManage/components/editStaff.vue
src/views/residentManage/inStoreManage/inStoreControlList.vue
src/views/residentManage/inStoreManage/components/editStaff.vue
View file @
5565ab3
...
...
@@ -120,7 +120,7 @@
<div
class=
"info-item"
>
<label>
当前帮带导师:
</label>
<el-form-item
label=
""
prop=
"mentorPhone"
>
<el-select
v-model=
"detail.
copyM
entorPhone"
v-if=
"editStaffTeacher"
filterable
clearable
placeholder=
"请选择"
>
<el-select
v-model=
"detail.
m
entorPhone"
v-if=
"editStaffTeacher"
filterable
clearable
placeholder=
"请选择"
>
<el-option
v-for=
"(item, index) in mentorPhoneList"
:key=
"index"
:value=
"item.confId"
:label=
"item.confValue"
></el-option>
</el-select>
<div
v-else
>
{{
mentorPhoneList
.
findIndex
(
item
=>
item
.
confId
===
detail
.
mentorPhone
)
>
-
1
?
filterStr
(
detail
.
mentorPhone
,
mentorPhoneList
)
:
(
detail
.
mentorName
||
"-"
)
}}
</div>
...
...
@@ -128,7 +128,7 @@
</el-form-item>
</div>
<div
class=
"info-item-block"
>
<div
class=
"change-log"
v-if=
"
!isEmpty(detail.logMentorName) &&
detail.startEffectiveTime && !isEmpty(detail.beforeMentorName)"
>
<div
class=
"change-log"
v-if=
"detail.startEffectiveTime && !isEmpty(detail.beforeMentorName)"
>
<i
class=
"el-icon-warning custom-icon"
></i>
<div
class=
"log-text"
>
已修改为
{{
detail
.
logMentorName
||
'-'
}}
,生效时间为
{{
detail
.
startEffectiveTimeStr
}}
,前值是
{{
detail
.
beforeMentorName
||
'-'
}}
</div>
</div>
...
...
@@ -310,10 +310,9 @@ export default {
if
(
res
)
{
res
.
staffEntryDate
=
res
.
entryTime
?
Util
.
dateFormate
(
res
.
entryTime
,
'YYYY-MM-DD'
)
:
''
res
.
hireTypeStr
=
res
.
hireType
==
1
?
'校招管培生'
:
res
.
hireType
==
2
?
'社会招聘'
:
'-'
res
.
baseSalary
=
this
.
isEmpty
(
res
.
nextMonthBasicSalary
)
?
res
.
basicSalary
:
res
.
nextMonthBasicSalary
res
.
lowSalary
=
this
.
isEmpty
(
res
.
nextMonthMinimumSalary
)
?
res
.
minimumSalary
:
res
.
nextMonthMinimumSalary
res
.
levelType
=
!
this
.
isEmpty
(
res
.
jobType
)
?
res
.
jobType
:
''
res
.
copyMentorPhone
=
deepClone
(
res
.
mentorPhone
)
res
.
baseSalary
=
deepClone
(
res
.
basicSalary
)
res
.
lowSalary
=
deepClone
(
res
.
minimumSalary
)
res
.
levelType
=
!
this
.
isEmpty
(
res
.
jobType
)
?
deepClone
(
res
.
jobType
)
:
''
res
.
startEffectiveTimeStr
=
res
.
startEffectiveTime
?
Util
.
dateFormate
(
res
.
startEffectiveTime
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
res
.
logMentorName
=
res
.
mentorName
res
.
openNoteFlag
=
res
?.
openFlag
==
"Y"
?
true
:
false
...
...
@@ -351,28 +350,6 @@ export default {
})
},
edit
(
key
,
infoItem
,
isCancel
=
false
)
{
// if (isCancel) {
// this.$refs['staffInfoForm']?.clearValidate([infoItem])
// return this[key] = !this[key]
// }
// if (this[key]) {
// this.$refs['staffInfoForm']?.validateField(infoItem, varid => {
// if (!varid) {
// if (infoItem == 'staffEntryDate') {
// this.detail.entryTime = this.detail[infoItem] || ''
// this.detail[infoItem] = this.detail[infoItem] ? dayjs(this.detail[infoItem]).format('YYYY-MM-DD') : ''
// }
// if (infoItem == 'mentorPhone') {
// this.detail[infoItem] = this.detail.copyMentorPhone
// this.detail.mentorName = this.filterStr(this.detail[infoItem], this.mentorPhoneList)
// }
// this[key] = !this[key]
// }
// })
// return
// } else {
// if (infoItem == 'mentorPhone' && this.mentorPhoneList?.findIndex(item => item.confId == this.detail[infoItem]) == -1) this.detail.copyMentorPhone = ''
// }
this
[
key
]
=
!
this
[
key
]
},
...
...
@@ -413,16 +390,15 @@ export default {
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
$refs
[
'staffInfoForm'
]?.
validate
((
valid
)
=>
{
if
(
valid
)
{
let
mentorPhone
=
this
.
detail
.
copyMentorPhone
||
this
.
detail
.
mentorPhone
let
params
=
{
staffPhone
:
this
.
detail
.
staffPhone
,
entryTime
:
new
Date
(
this
.
detail
.
entryTime
),
jobType
:
(
this
.
detail
.
jobType
==
this
.
detail
.
levelType
)
?
!
this
.
isEmpty
(
this
.
detail
.
nextMonthJobType
)
?
this
.
detail
.
nextMonthJobType
:
this
.
detail
.
jobType
:
this
.
detail
.
levelType
,
workingStatus
:
this
.
detail
.
workingStatus
,
mentorName
:
mentorPhone
?
(
this
.
mentorPhoneList
?.
find
(
item
=>
item
.
confId
==
mentorPhone
)?.
confValue
||
this
.
detail
.
mentorName
)
:
''
,
mentorPhone
:
mentorPhone
,
basicSalary
:
this
.
detail
.
baseSalary
,
minimumSalary
:
this
.
detail
.
lowSalary
||
0
mentorName
:
this
.
detail
.
mentorPhone
?
(
this
.
mentorPhoneList
?.
find
(
item
=>
item
.
confId
==
this
.
detail
.
mentorPhone
)?.
confValue
||
this
.
detail
.
mentorName
)
:
''
,
mentorPhone
:
this
.
detail
.
mentorPhone
,
basicSalary
:
(
this
.
detail
.
basicSalary
==
this
.
detail
.
baseSalary
)
?
!
this
.
isEmpty
(
this
.
detail
.
nextMonthBasicSalary
)
?
this
.
detail
.
nextMonthBasicSalary
:
this
.
detail
.
basicSalary
:
this
.
detail
.
baseSalary
,
minimumSalary
:
(
this
.
detail
.
minimumSalary
==
this
.
detail
.
lowSalary
)
?
!
this
.
isEmpty
(
this
.
detail
.
nextMonthMinimumSalary
)
?
this
.
detail
.
nextMonthMinimumSalary
:
(
this
.
detail
.
minimumSalary
||
0
)
:
(
this
.
detail
.
lowSalary
||
0
),
}
editStaffApi
(
params
).
then
(
res
=>
{
if
(
res
)
{
...
...
src/views/residentManage/inStoreManage/inStoreControlList.vue
View file @
5565ab3
...
...
@@ -48,6 +48,7 @@
</div>
<div
class=
"content"
>
<InStoreManageIndex
v-show=
"windowId == -1"
ref=
"inStoreManageIndex"
@
openWindow=
"openWindow"
/>
<
template
v-for=
"i in [...tab, ...dropdownList]"
>
<staffInfo
:ref=
"`recep-$
{i.id}`"
...
...
@@ -146,6 +147,7 @@ export default {
backIndex
()
{
this
.
windowId
=
-
1
this
.
$refs
[
'inStoreManageIndex'
]?.
handleSearch
()
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment