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