Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
ww-recruitment
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 70c94ce7
authored
Jan 13, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix 联调bug
1 parent
4e4eb66a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
87 deletions
src/views/recruitManage/recruitDetail/recruitDetail.vue
src/views/recruitManage/recruitDetail/recruitDetail.wxml
src/views/recruitManage/recruitInsert/recruitInsert.js
src/views/recruitManage/recruitInsert/recruitInsert.vue
src/views/recruitManage/recruitManage/constantData.js
src/views/recruitManage/recruitmentReview/recruitmentReview.vue
src/views/recruitManage/recruitDetail/recruitDetail.vue
View file @
70c94ce
...
@@ -136,12 +136,12 @@
...
@@ -136,12 +136,12 @@
<div
class=
"info_item"
v-for=
"infoItem in recruitmentInfoConfig"
:key=
"infoItem.field"
>
<div
class=
"info_item"
v-for=
"infoItem in recruitmentInfoConfig"
:key=
"infoItem.field"
>
<span
class=
"label"
>
{{
infoItem
.
label
}}
</span>
<span
class=
"label"
>
{{
infoItem
.
label
}}
</span>
<div
class=
"value value_box"
v-if=
"infoItem.label === '门店名称'"
>
<div
class=
"value value_box"
v-if=
"infoItem.label === '门店名称'"
>
<span>
{{
recruitment
[
infoItem
.
field
]
||
'-
-
'
}}
</span>
<span>
{{
recruitment
[
infoItem
.
field
]
||
'-'
}}
</span>
<!--
<van-tag
v-if=
"recruitment.urgent == 1"
type=
"danger"
style=
"margin-right: 5px"
>
急
</van-tag>
-->
<!--
<van-tag
v-if=
"recruitment.urgent == 1"
type=
"danger"
style=
"margin-right: 5px"
>
急
</van-tag>
-->
<img
v-if=
"item.urgent == 1"
class=
"ji"
:src=
"`$
{IMG_URL}miniProgram/ji.png`" />
<img
v-if=
"item.urgent == 1"
class=
"ji"
:src=
"`$
{IMG_URL}miniProgram/ji.png`" />
</div>
</div>
<div
class=
"value value_box"
v-else-if=
"infoItem.label === '招聘负责人' || infoItem.label === '技术督导'"
>
<div
class=
"value value_box"
v-else-if=
"infoItem.label === '招聘负责人' || infoItem.label === '技术督导'"
>
<span>
{{
recruitment
[
infoItem
.
field
]
||
'-
-
'
}}
</span>
<span>
{{
recruitment
[
infoItem
.
field
]
||
'-'
}}
</span>
<a
<a
v-if=
"(infoItem.label === '招聘负责人' && recruitment.recruiterPhone) || (infoItem.label === '技术督导' && recruitment.technicalSupervisorPhone)"
v-if=
"(infoItem.label === '招聘负责人' && recruitment.recruiterPhone) || (infoItem.label === '技术督导' && recruitment.technicalSupervisorPhone)"
:href=
"'tel:' + (infoItem.label === '招聘负责人' ? recruitment.recruiterPhone : recruitment.technicalSupervisorPhone)"
:href=
"'tel:' + (infoItem.label === '招聘负责人' ? recruitment.recruiterPhone : recruitment.technicalSupervisorPhone)"
...
@@ -150,7 +150,7 @@
...
@@ -150,7 +150,7 @@
<img
class=
"phone_icon"
src=
"../image/call-icon.png"
/>
<img
class=
"phone_icon"
src=
"../image/call-icon.png"
/>
</a>
</a>
</div>
</div>
<span
class=
"value"
v-else
>
{{
recruitment
[
infoItem
.
field
]
||
'-
-
'
}}
</span>
<span
class=
"value"
v-else
>
{{
recruitment
[
infoItem
.
field
]
||
'-'
}}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/views/recruitManage/recruitDetail/recruitDetail.wxml
View file @
70c94ce
...
@@ -160,11 +160,11 @@
...
@@ -160,11 +160,11 @@
<view class="info_item" wx:for="{{ recruitmentInfoConfig }}" wx:key="field" wx:for-item="infoItem">
<view class="info_item" wx:for="{{ recruitmentInfoConfig }}" wx:key="field" wx:for-item="infoItem">
<text class="label"> {{ infoItem.label }}</text>
<text class="label"> {{ infoItem.label }}</text>
<view class="value value_box" wx:if="{{ infoItem.label === '门店名称' }}">
<view class="value value_box" wx:if="{{ infoItem.label === '门店名称' }}">
<text> {{recruitment[infoItem.field] || '-
-
'}}</text>
<text> {{recruitment[infoItem.field] || '-'}}</text>
<image class="ji" wx:if="{{ recruitment.urgent == 1 }}" src="{{ IMG_URL }}miniProgram/ji.png" mode="aspectFill" />
<image class="ji" wx:if="{{ recruitment.urgent == 1 }}" src="{{ IMG_URL }}miniProgram/ji.png" mode="aspectFill" />
</view>
</view>
<view class="value value_box" wx:elif="{{ infoItem.label === '招聘负责人' || infoItem.label === '技术督导' }}">
<view class="value value_box" wx:elif="{{ infoItem.label === '招聘负责人' || infoItem.label === '技术督导' }}">
<text> {{recruitment[infoItem.field] || '-
-
'}}</text>
<text> {{recruitment[infoItem.field] || '-'}}</text>
<image
<image
class="phone_icon"
class="phone_icon"
wx:if="{{ (infoItem.label === '招聘负责人' && recruitment.recruiterPhone) || (infoItem.label === '技术督导' && recruitment.technicalSupervisorPhone) }}"
wx:if="{{ (infoItem.label === '招聘负责人' && recruitment.recruiterPhone) || (infoItem.label === '技术督导' && recruitment.technicalSupervisorPhone) }}"
...
@@ -174,7 +174,7 @@
...
@@ -174,7 +174,7 @@
data-phone="{{ infoItem.label === '招聘负责人' ? recruitment.recruiterPhone : recruitment.technicalSupervisorPhone }}"
data-phone="{{ infoItem.label === '招聘负责人' ? recruitment.recruiterPhone : recruitment.technicalSupervisorPhone }}"
/>
/>
</view>
</view>
<text class="value" wx:else> {{ recruitment[infoItem.field] || '-
-
' }}</text>
<text class="value" wx:else> {{ recruitment[infoItem.field] || '-' }}</text>
</view>
</view>
</view>
</view>
</block>
</block>
...
...
src/views/recruitManage/recruitInsert/recruitInsert.js
View file @
70c94ce
import
Dialog
from
'@vant/weapp/dialog/dialog'
import
Dialog
from
'@vant/weapp/dialog/dialog'
import
{
import
{
getDemandStoreListAPI
,
getStaffDictListAPI
,
addStaffDictListAPI
}
from
'../api'
getDemandStoreListAPI
,
getStaffDictListAPI
,
addStaffDictListAPI
}
from
'../api'
// 表单字段配置
// 表单字段配置
const
FORM_FIELDS
=
{
const
FORM_FIELDS
=
{
MERCHANT
:
0
,
// 门店
MERCHANT
:
0
,
// 门店
...
@@ -56,8 +52,7 @@ Page({
...
@@ -56,8 +52,7 @@ Page({
const
index
=
e
.
currentTarget
.
dataset
.
index
const
index
=
e
.
currentTarget
.
dataset
.
index
const
item
=
this
.
data
.
formList
&&
this
.
data
.
formList
[
index
]
const
item
=
this
.
data
.
formList
&&
this
.
data
.
formList
[
index
]
const
label
=
item
&&
item
.
label
const
label
=
item
&&
item
.
label
if
(
label
===
'需求描述'
||
label
===
'招聘数量'
||
label
===
'是否急招'
)
if
(
label
===
'需求描述'
||
label
===
'招聘数量'
||
label
===
'是否急招'
)
return
return
return
this
.
showPopup
(
e
)
return
this
.
showPopup
(
e
)
},
},
// 显示popup
// 显示popup
...
@@ -98,9 +93,7 @@ Page({
...
@@ -98,9 +93,7 @@ Page({
})
})
// 如果已有选中值,标记为选中(单选模式)
// 如果已有选中值,标记为选中(单选模式)
if
(
item
.
value
&&
item
.
displayValue
)
{
if
(
item
.
value
&&
item
.
displayValue
)
{
const
selectedValue
=
Array
.
isArray
(
item
.
value
)
const
selectedValue
=
Array
.
isArray
(
item
.
value
)
?
item
.
value
[
0
]
:
item
.
value
?
item
.
value
[
0
]
:
item
.
value
options
=
options
.
map
(
option
=>
{
options
=
options
.
map
(
option
=>
{
if
(
option
.
value
===
selectedValue
)
{
if
(
option
.
value
===
selectedValue
)
{
option
.
checked
=
true
option
.
checked
=
true
...
@@ -227,9 +220,7 @@ Page({
...
@@ -227,9 +220,7 @@ Page({
if
(
originalIndex
>=
0
)
{
if
(
originalIndex
>=
0
)
{
options
[
originalIndex
].
checked
=
true
options
[
originalIndex
].
checked
=
true
// 同步更新filteredOptions中对应选项的状态
// 同步更新filteredOptions中对应选项的状态
const
filteredIndex
=
filteredOptions
.
findIndex
(
const
filteredIndex
=
filteredOptions
.
findIndex
(
option
=>
option
.
value
===
value
)
option
=>
option
.
value
===
value
)
if
(
filteredIndex
>=
0
)
{
if
(
filteredIndex
>=
0
)
{
filteredOptions
[
filteredIndex
].
checked
=
true
filteredOptions
[
filteredIndex
].
checked
=
true
}
}
...
@@ -334,9 +325,7 @@ Page({
...
@@ -334,9 +325,7 @@ Page({
if
(
hasOptionList
)
{
if
(
hasOptionList
)
{
const
selectedValue
=
selectedOptions
[
0
]
||
''
const
selectedValue
=
selectedOptions
[
0
]
||
''
if
(
selectedValue
)
{
if
(
selectedValue
)
{
const
selectedOption
=
this
.
data
.
options
.
find
(
const
selectedOption
=
this
.
data
.
options
.
find
(
option
=>
option
.
value
===
selectedValue
)
option
=>
option
.
value
===
selectedValue
)
if
(
selectedOption
)
{
if
(
selectedOption
)
{
value
=
selectedValue
value
=
selectedValue
displayValue
=
selectedOption
.
text
||
''
displayValue
=
selectedOption
.
text
||
''
...
@@ -407,10 +396,7 @@ Page({
...
@@ -407,10 +396,7 @@ Page({
if
(
!
this
.
validateForm
())
return
if
(
!
this
.
validateForm
())
return
const
{
formList
}
=
this
.
data
const
{
formList
}
=
this
.
data
const
isUrgent
=
const
isUrgent
=
Array
.
isArray
(
formList
)
&&
formList
[
FORM_FIELDS
.
URGENT
]
&&
Number
(
formList
[
FORM_FIELDS
.
URGENT
].
value
)
===
1
Array
.
isArray
(
formList
)
&&
formList
[
FORM_FIELDS
.
URGENT
]
&&
Number
(
formList
[
FORM_FIELDS
.
URGENT
].
value
)
===
1
// 设置Dialog显示状态为true
// 设置Dialog显示状态为true
this
.
setData
({
this
.
setData
({
...
@@ -420,9 +406,7 @@ Page({
...
@@ -420,9 +406,7 @@ Page({
// 显示确认对话框
// 显示确认对话框
Dialog
.
confirm
({
Dialog
.
confirm
({
title
:
'提示'
,
title
:
'提示'
,
message
:
isUrgent
message
:
isUrgent
?
'申请急招,在招聘负责人推送简历后,需在24小时内完成简历跟进处理,否则将自动上报总部,请知悉!'
:
'是否确定提交招聘需求?'
,
?
'申请急招,在招聘负责人推送简历后,需在24小时内完成简历跟进处理,否则将自动上报总部,请知悉!'
:
'是否确定提交招聘需求?'
,
className
:
'custom-dialog'
,
className
:
'custom-dialog'
,
confirmButtonText
:
'确定'
confirmButtonText
:
'确定'
})
})
...
@@ -477,7 +461,7 @@ Page({
...
@@ -477,7 +461,7 @@ Page({
let
{
code
,
data
}
=
res
let
{
code
,
data
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
const
options
=
data
.
map
(
item
=>
({
const
options
=
data
.
map
(
item
=>
({
text
:
item
.
merchantName
||
'-
-
'
,
text
:
item
.
merchantName
||
'-'
,
value
:
item
.
merchantId
value
:
item
.
merchantId
}))
}))
// 只在非搜索模式下更新 formList(搜索时只更新临时列表)
// 只在非搜索模式下更新 formList(搜索时只更新临时列表)
...
...
src/views/recruitManage/recruitInsert/recruitInsert.vue
View file @
70c94ce
...
@@ -2,13 +2,7 @@
...
@@ -2,13 +2,7 @@
<div
class=
"recruit-insert"
>
<div
class=
"recruit-insert"
>
<div
class=
"title"
>
请完善您的用人需求
</div>
<div
class=
"title"
>
请完善您的用人需求
</div>
<div
class=
"form"
>
<div
class=
"form"
>
<div
<div
class=
"form-item"
:class=
"
{ 'form-item-textarea': item.label === '需求描述' }" v-for="(item, index) in formList" :key="index" @click="onFormItemTap(index)">
class=
"form-item"
:class=
"
{ 'form-item-textarea': item.label === '需求描述' }"
v-for="(item, index) in formList"
:key="index"
@click="onFormItemTap(index)"
>
<div
class=
"label"
>
<div
class=
"label"
>
{{
item
.
label
}}
{{
item
.
label
}}
<span
v-if=
"item.label !== '需求描述'"
class=
"required"
>
*
</span>
<span
v-if=
"item.label !== '需求描述'"
class=
"required"
>
*
</span>
...
@@ -21,25 +15,13 @@
...
@@ -21,25 +15,13 @@
<!-- Input for Quantity -->
<!-- Input for Quantity -->
<div
class=
"value"
v-else-if=
"item.label === '招聘数量'"
>
<div
class=
"value"
v-else-if=
"item.label === '招聘数量'"
>
<input
<input
class=
"number-input"
type=
"tel"
:placeholder=
"item.placeholder"
v-model=
"item.displayValue"
@
input=
"onNumberInput($event, index)"
/>
class=
"number-input"
type=
"tel"
:placeholder=
"item.placeholder"
v-model=
"item.displayValue"
@
input=
"onNumberInput($event, index)"
/>
<span
class=
"unit"
>
人
</span>
<span
class=
"unit"
>
人
</span>
</div>
</div>
<!-- Textarea for Description -->
<!-- Textarea for Description -->
<div
class=
"textarea-wrapper"
v-else-if=
"item.label === '需求描述'"
>
<div
class=
"textarea-wrapper"
v-else-if=
"item.label === '需求描述'"
>
<textarea
<textarea
class=
"textarea-input"
:placeholder=
"item.placeholder"
v-model=
"item.displayValue"
@
input=
"onTextareaInput($event, index)"
maxlength=
"200"
></textarea>
class=
"textarea-input"
:placeholder=
"item.placeholder"
v-model=
"item.displayValue"
@
input=
"onTextareaInput($event, index)"
maxlength=
"200"
></textarea>
<div
class=
"textarea-count"
>
{{
item
.
textCount
||
0
}}
/200
</div>
<div
class=
"textarea-count"
>
{{
item
.
textCount
||
0
}}
/200
</div>
</div>
</div>
...
@@ -63,26 +45,13 @@
...
@@ -63,26 +45,13 @@
<div
class=
"popup-title"
>
选择
{{
currentItem
.
label
}}
</div>
<div
class=
"popup-title"
>
选择
{{
currentItem
.
label
}}
</div>
<!-- Search Box for Store (Index 0) -->
<!-- Search Box for Store (Index 0) -->
<div
class=
"search-box"
v-if=
"currentIndex === 0"
>
<div
class=
"search-box"
v-if=
"currentIndex === 0"
>
<van-search
<van-search
v-model=
"keyWord"
placeholder=
"搜索"
shape=
"round"
@
search=
"search"
@
input=
"onSearchInput"
@
clear=
"handleReset"
/>
v-model=
"keyWord"
placeholder=
"搜索"
shape=
"round"
@
search=
"search"
@
input=
"onSearchInput"
@
clear=
"handleReset"
/>
</div>
</div>
</div>
</div>
<div
class=
"popup-scroll-area"
>
<div
class=
"popup-scroll-area"
>
<div
class=
"popup-options"
v-if=
"filteredOptions.length > 0"
>
<div
class=
"popup-options"
v-if=
"filteredOptions.length > 0"
>
<div
<div
class=
"option-item"
:class=
"
{ checked: item.checked }" v-for="(item, idx) in filteredOptions" :key="idx" @click="toggleOption(item.value)">
class=
"option-item"
:class=
"
{ checked: item.checked }"
v-for="(item, idx) in filteredOptions"
:key="idx"
@click="toggleOption(item.value)"
>
<div
class=
"option-name"
>
{{
item
.
text
}}
</div>
<div
class=
"option-name"
>
{{
item
.
text
}}
</div>
<div
class=
"option-check"
:class=
"
{ checked: item.checked }">
<div
class=
"option-check"
:class=
"
{ checked: item.checked }">
<van-icon
name=
"success"
v-if=
"item.checked"
/>
<van-icon
name=
"success"
v-if=
"item.checked"
/>
...
@@ -456,21 +425,18 @@ export default {
...
@@ -456,21 +425,18 @@ export default {
if
(
!
this
.
validateForm
())
return
if
(
!
this
.
validateForm
())
return
const
{
formList
}
=
this
const
{
formList
}
=
this
const
isUrgent
=
const
isUrgent
=
Array
.
isArray
(
formList
)
&&
formList
[
FORM_FIELDS
.
URGENT
]
&&
Number
(
formList
[
FORM_FIELDS
.
URGENT
].
value
)
===
1
Array
.
isArray
(
formList
)
&&
formList
[
FORM_FIELDS
.
URGENT
]
&&
this
.
$dialog
Number
(
formList
[
FORM_FIELDS
.
URGENT
].
value
)
===
1
.
confirm
({
title
:
'提示'
,
this
.
$dialog
.
confirm
({
message
:
isUrgent
?
'申请急招,在招聘负责人推送简历后,需在24小时内完成简历跟进处理,否则将自动上报总部,请知悉!'
:
'是否确定提交招聘需求?'
,
title
:
'提示'
,
confirmButtonText
:
'确定'
message
:
isUrgent
})
?
'申请急招,在招聘负责人推送简历后,需在24小时内完成简历跟进处理,否则将自动上报总部,请知悉!'
:
'是否确定提交招聘需求?'
,
confirmButtonText
:
'确定'
})
.
then
(()
=>
{
.
then
(()
=>
{
const
submitData
=
this
.
buildSubmitData
()
const
submitData
=
this
.
buildSubmitData
()
api
.
addStaffDictListAPI
(
submitData
)
api
.
addStaffDictListAPI
(
submitData
)
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
navigateToResult
()
this
.
navigateToResult
()
...
@@ -501,12 +467,13 @@ export default {
...
@@ -501,12 +467,13 @@ export default {
if
(
keyword
)
{
if
(
keyword
)
{
params
.
merchantName
=
keyword
params
.
merchantName
=
keyword
}
}
api
.
getDemandStoreListAPI
(
params
)
api
.
getDemandStoreListAPI
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
let
{
code
,
data
}
=
res
let
{
code
,
data
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
const
options
=
data
.
map
(
item
=>
({
const
options
=
data
.
map
(
item
=>
({
text
:
item
.
merchantName
||
'-
-
'
,
text
:
item
.
merchantName
||
'-'
,
value
:
item
.
merchantId
value
:
item
.
merchantId
}))
}))
if
(
!
keyword
)
{
if
(
!
keyword
)
{
...
@@ -532,7 +499,8 @@ export default {
...
@@ -532,7 +499,8 @@ export default {
businessCode
:
'recruitment'
,
businessCode
:
'recruitment'
,
typeCode
:
index
==
1
?
'business_type'
:
'recruitment_type'
typeCode
:
index
==
1
?
'business_type'
:
'recruitment_type'
}
}
api
.
getStaffDictListAPI
(
requestParam
)
api
.
getStaffDictListAPI
(
requestParam
)
.
then
(
res
=>
{
.
then
(
res
=>
{
let
{
code
,
data
}
=
res
let
{
code
,
data
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
...
...
src/views/recruitManage/recruitManage/constantData.js
View file @
70c94ce
...
@@ -108,13 +108,13 @@ export const getStatusTipText = function (item) {
...
@@ -108,13 +108,13 @@ export const getStatusTipText = function (item) {
// 待处理提示文案显示逻辑
// 待处理提示文案显示逻辑
if
(
status
==
1
&&
waitProcessResumeCount
>
0
)
{
if
(
status
==
1
&&
waitProcessResumeCount
>
0
)
{
return
`您有
${
waitProcessResumeCount
}
份简历待处理,请及时跟进`
return
`您有
${
waitProcessResumeCount
}
份简历待处理,请及时跟进`
}
else
if
(
status
==
1
&&
confirmFlag
==
'
Y
'
&&
trialWaitConfirmCount
>
0
)
{
}
else
if
(
status
==
1
&&
confirmFlag
==
'
N
'
&&
trialWaitConfirmCount
>
0
)
{
return
'您有新的试岗记录,请及时查看'
return
'您有新的试岗记录,请及时查看'
}
else
if
(
status
==
1
&&
confirmFlag
==
'
Y
'
&&
onboardingWaitConfirmCount
>
0
)
{
}
else
if
(
status
==
1
&&
confirmFlag
==
'
N
'
&&
onboardingWaitConfirmCount
>
0
)
{
return
'您有新的入职记录,请及时查看'
return
'您有新的入职记录,请及时查看'
}
else
if
(
status
==
2
&&
confirmFlag
==
'
Y
'
)
{
}
else
if
(
status
==
2
&&
confirmFlag
==
'
N
'
)
{
return
'您的招聘需求已完成,请及时查看'
return
'您的招聘需求已完成,请及时查看'
}
else
if
(
status
==
3
&&
confirmFlag
==
'
Y
'
)
{
}
else
if
(
status
==
3
&&
confirmFlag
==
'
N
'
)
{
return
'您的招聘需求已拒绝,请及时查看'
return
'您的招聘需求已拒绝,请及时查看'
}
}
return
null
return
null
...
...
src/views/recruitManage/recruitmentReview/recruitmentReview.vue
View file @
70c94ce
...
@@ -142,7 +142,7 @@ export default {
...
@@ -142,7 +142,7 @@ export default {
methods
:
{
methods
:
{
formatValue
(
val
)
{
formatValue
(
val
)
{
if
(
val
===
0
||
val
===
'0'
)
return
val
if
(
val
===
0
||
val
===
'0'
)
return
val
return
val
||
'-
-
'
return
val
||
'-'
},
},
async
fetchDetail
()
{
async
fetchDetail
()
{
const
id
=
this
.
$route
.
query
.
id
const
id
=
this
.
$route
.
query
.
id
...
...
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