Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f9ccffe1
authored
Oct 24, 2025
by
unknown
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:招聘详情状态字段修改
1 parent
b27aca82
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
90 additions
and
148 deletions
packageEquity/pages/recruitManage/recruitDetail/recruitDetail.js
packageEquity/pages/recruitManage/recruitDetail/recruitDetail.scss
packageEquity/pages/recruitManage/recruitDetail/recruitDetail.wxml
packageEquity/pages/recruitManage/recruitInsert/recruitInsert.js
packageEquity/pages/recruitManage/recruitInsert/recruitInsert.scss
packageEquity/pages/recruitManage/recruitInsert/recruitInsert.wxml
packageEquity/pages/recruitManage/recruitDetail/recruitDetail.js
View file @
f9ccffe
...
@@ -28,6 +28,15 @@ const RECRUITMENT_INFO_CONFIG = [
...
@@ -28,6 +28,15 @@ const RECRUITMENT_INFO_CONFIG = [
{
label
:
'拒绝理由'
,
field
:
'recallReason'
}
{
label
:
'拒绝理由'
,
field
:
'recallReason'
}
]
]
// 招聘状态映射配置
const
RECRUIT_STATUS_CONFIG
=
{
// mixResult状态映射
0
:
{
text
:
'待处理'
,
class
:
'pending'
,
canProcess
:
true
},
1
:
{
text
:
'人员不匹配'
,
class
:
'mismatch'
,
canProcess
:
false
},
2
:
{
text
:
'面试通过'
,
class
:
'pass'
,
canProcess
:
false
},
3
:
{
text
:
'面试不通过'
,
class
:
'fail'
,
canProcess
:
false
}
}
Page
({
Page
({
/**
/**
* 格式化时间戳为 YYYY-MM-DD 格式
* 格式化时间戳为 YYYY-MM-DD 格式
...
@@ -42,6 +51,13 @@ Page({
...
@@ -42,6 +51,13 @@ Page({
},
},
/**
/**
* 获取招聘状态信息
*/
getRecruitStatus
(
mixResult
)
{
return
RECRUIT_STATUS_CONFIG
[
mixResult
]
||
RECRUIT_STATUS_CONFIG
[
0
]
},
/**
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
...
@@ -215,7 +231,6 @@ Page({
...
@@ -215,7 +231,6 @@ Page({
id
:
id
,
id
:
id
,
processResult
:
''
,
// 处理结果
processResult
:
''
,
// 处理结果
interviewTime
:
''
,
// 面试时间
interviewTime
:
''
,
// 面试时间
interviewResult
:
''
,
// 面试结果
description
:
''
,
// 说明
description
:
''
,
// 说明
descriptionLength
:
0
// 说明字数
descriptionLength
:
0
// 说明字数
}
}
...
@@ -302,37 +317,45 @@ Page({
...
@@ -302,37 +317,45 @@ Page({
})
})
return
return
}
}
if
(
formData
.
processResult
==
2
&&
!
formData
.
interviewTime
)
{
// 对于面试通过和面试不通过,都需要选择面试时间
if
((
formData
.
processResult
==
2
||
formData
.
processResult
==
3
)
&&
!
formData
.
interviewTime
)
{
wx
.
showToast
({
wx
.
showToast
({
title
:
'请选择面试时间'
,
title
:
'请选择面试时间'
,
icon
:
'none'
icon
:
'none'
})
})
return
return
}
}
if
(
formData
.
processResult
==
2
&&
!
formData
.
interviewResult
)
{
wx
.
showToast
({
title
:
'请选择面试结果'
,
icon
:
'none'
})
return
}
let
requestParams
=
{
let
requestParams
=
{
id
:
formData
.
id
,
id
:
formData
.
id
,
processResult
:
formData
?.
processResult
,
processResult
:
formData
?.
processResult
,
interviewResult
:
formData
?.
interviewResult
,
interviewTime
:
formData
?.
interviewTime
,
interviewTime
:
formData
?.
interviewTime
,
description
:
formData
?.
description
,
description
:
formData
?.
description
,
}
}
processResumeAPI
(
requestParams
).
then
((
result
)
=>
{
processResumeAPI
(
requestParams
).
then
((
result
)
=>
{
let
{
code
,
data
}
=
result
;
let
{
code
,
data
}
=
result
;
if
(
code
==
0
)
{
if
(
code
==
0
)
{
// 处理成功后更新对应数据列表中的状态
为1
// 处理成功后更新对应数据列表中的状态
const
{
recruitmentPlans
}
=
this
.
data
;
const
{
recruitmentPlans
}
=
this
.
data
;
const
updatedRecruitmentPlans
=
recruitmentPlans
.
map
(
item
=>
{
const
updatedRecruitmentPlans
=
recruitmentPlans
.
map
(
item
=>
{
if
(
item
.
id
===
formData
.
id
)
{
if
(
item
.
id
===
formData
.
id
)
{
let
newMixResult
=
0
;
// 默认待处理
// 根据处理结果设置mixResult
if
(
formData
.
processResult
==
1
)
{
// 人员不匹配
newMixResult
=
1
;
}
else
if
(
formData
.
processResult
==
2
)
{
// 面试通过
newMixResult
=
2
;
}
else
if
(
formData
.
processResult
==
3
)
{
// 面试不通过
newMixResult
=
3
;
}
return
{
return
{
...
item
,
...
item
,
status
:
1
mixResult
:
newMixResult
,
status
:
1
// 保持向后兼容
};
};
}
}
return
item
;
return
item
;
...
...
packageEquity/pages/recruitManage/recruitDetail/recruitDetail.scss
View file @
f9ccffe
...
@@ -125,6 +125,21 @@ page {
...
@@ -125,6 +125,21 @@ page {
color
:
#52c41a
;
color
:
#52c41a
;
background
:
#52c41a
1a
;
background
:
#52c41a
1a
;
}
}
// 人员不匹配状态
&
.tag-mismatch
{
color
:
#ff4d4f
;
background
:
#ff4d4f
1a
;
}
// 面试通过状态
&
.tag-pass
{
color
:
#52c41a
;
background
:
#52c41a
1a
;
}
// 面试不通过状态
&
.tag-fail
{
color
:
#ff4d4f
;
background
:
#ff4d4f
1a
;
}
}
}
}
}
...
...
packageEquity/pages/recruitManage/recruitDetail/recruitDetail.wxml
View file @
f9ccffe
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
<view class="user_info">
<view class="user_info">
<view class="user_top">
<view class="user_top">
<view class="name">{{item.personName}}</view>
<view class="name">{{item.personName}}</view>
<view class="tag tag-{{item.
status === 0 ? 'pending' : 'completed'}}">{{item.status === 0 ? '待处理' : '已完成'
}}</view>
<view class="tag tag-{{item.
mixResult !== undefined ? (item.mixResult === 0 ? 'pending' : item.mixResult === 1 ? 'mismatch' : item.mixResult === 2 ? 'pass' : 'fail') : 'completed'}}">{{item.mixResult !== undefined ? (item.mixResult === 0 ? '待处理' : item.mixResult === 1 ? '人员不匹配' : item.mixResult === 2 ? '面试通过' : '面试不通过') : (item.status === 0 ? '待处理' : '已完成')
}}</view>
</view>
</view>
<view class="user_bottom">
<view class="user_bottom">
<view class="phone" data-phone="{{item.phoneNumber}}" bind:tap="phoneCall"> <text class="phone_text">{{item.phoneNumber}}</text> <image class="phone_icon" src="/packageEquity/pages/image/call-icon.png" mode="widthFix"/></view>
<view class="phone" data-phone="{{item.phoneNumber}}" bind:tap="phoneCall"> <text class="phone_text">{{item.phoneNumber}}</text> <image class="phone_icon" src="/packageEquity/pages/image/call-icon.png" mode="widthFix"/></view>
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
<view class="card_content">
<view class="card_content">
<view class="btn_group">
<view class="btn_group">
<view class="btn btn_outline" bindtap="handleViewResume" data-url="{{item.resumeUrl}}">查看简历</view>
<view class="btn btn_outline" bindtap="handleViewResume" data-url="{{item.resumeUrl}}">查看简历</view>
<view wx:if="{{item.status === 0}}" class="btn btn_primary" bindtap="handleProcess" data-id="{{item.id}}">处理</view>
<view wx:if="{{item.
mixResult !== undefined ? item.mixResult === 0 : item.
status === 0}}" class="btn btn_primary" bindtap="handleProcess" data-id="{{item.id}}">处理</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -111,10 +111,11 @@
...
@@ -111,10 +111,11 @@
<view class="label">处理结果 <text class="required">*</text></view>
<view class="label">处理结果 <text class="required">*</text></view>
<view class="value">
<view class="value">
<text class="tag {{formData.processResult == 1 ? 'active' : ''}}" bindtap="selectTag" data-field="processResult" data-value="1">人员不匹配</text>
<text class="tag {{formData.processResult == 1 ? 'active' : ''}}" bindtap="selectTag" data-field="processResult" data-value="1">人员不匹配</text>
<text class="tag {{formData.processResult == 2 ? 'active' : ''}}" bindtap="selectTag" data-field="processResult" data-value="2">已完成面试</text>
<text class="tag {{formData.processResult == 2 ? 'active' : ''}}" bindtap="selectTag" data-field="processResult" data-value="2">面试通过</text>
<text class="tag {{formData.processResult == 3 ? 'active' : ''}}" bindtap="selectTag" data-field="processResult" data-value="3">面试不通过</text>
</view>
</view>
</view>
</view>
<view class="form_item" wx:if="{{formData.processResult == 2}}">
<view class="form_item" wx:if="{{formData.processResult == 2
|| formData.processResult == 3
}}">
<view class="label">面试时间 <text class="required">*</text></view>
<view class="label">面试时间 <text class="required">*</text></view>
<view class="value" catchtap="showTimePicker">
<view class="value" catchtap="showTimePicker">
<view class="{{formData.dipalyTime ? 'time_text' : 'placeholder_text'}}">
<view class="{{formData.dipalyTime ? 'time_text' : 'placeholder_text'}}">
...
@@ -122,13 +123,6 @@
...
@@ -122,13 +123,6 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view class="form_item" wx:if="{{formData.processResult == 2}}">
<view class="label">面试结果 <text class="required">*</text></view>
<view class="value">
<text class="tag {{formData.interviewResult == '1' ? 'active' : ''}}" bindtap="selectTag" data-field="interviewResult" data-value="1">通过</text>
<text class="tag {{formData.interviewResult == '0' ? 'active' : ''}}" bindtap="selectTag" data-field="interviewResult" data-value="0">不通过</text>
</view>
</view>
<view class="form_item form_item_textarea">
<view class="form_item form_item_textarea">
<view class="label">说明</view>
<view class="label">说明</view>
<view class="value">
<view class="value">
...
...
packageEquity/pages/recruitManage/recruitInsert/recruitInsert.js
View file @
f9ccffe
import
Dialog
from
"@vant/weapp/dialog/dialog"
;
import
Dialog
from
"@vant/weapp/dialog/dialog"
;
import
{
getDemandStoreListAPI
,
getStaffDictListAPI
,
addStaffDictListAPI
}
from
'../api'
import
{
getDemandStoreListAPI
,
getStaffDictListAPI
}
from
'../api'
Page
({
Page
({
data
:
{
data
:
{
formList
:[
formList
:[
{
id
:
0
,
label
:
"门店名称"
,
placeholder
:
"请选择招聘门店"
,
options
:[]},
{
id
:
0
,
label
:
"
选择
门店名称"
,
placeholder
:
"请选择招聘门店"
,
options
:[]},
{
id
:
1
,
label
:
"业务类型"
,
placeholder
:
"请选择业务类型"
,
options
:[]},
{
id
:
1
,
label
:
"业务类型"
,
placeholder
:
"请选择业务类型"
,
options
:[]},
{
id
:
2
,
label
:
"招聘数量"
,
placeholder
:
"请输入招聘数量"
},
{
id
:
2
,
label
:
"招聘数量"
,
placeholder
:
"请输入招聘数量"
},
{
id
:
3
,
label
:
"招聘类型"
,
placeholder
:
"请选择招聘类型"
,
options
:[]},
{
id
:
3
,
label
:
"招聘类型"
,
placeholder
:
"请选择招聘类型"
,
options
:[]},
...
@@ -18,8 +18,6 @@ Page({
...
@@ -18,8 +18,6 @@ Page({
inputValue
:
''
,
inputValue
:
''
,
keyWord
:
''
,
// 搜索关键词
keyWord
:
''
,
// 搜索关键词
searchTimer
:
null
,
// 防抖定时器
searchTimer
:
null
,
// 防抖定时器
searchFocused
:
false
,
// 搜索框是否聚焦
isInputDisabled
:
false
,
// 输入框是否禁用
motto
:
'Hello World'
,
motto
:
'Hello World'
,
hasUserInfo
:
false
,
hasUserInfo
:
false
,
canIUseGetUserProfile
:
wx
.
canIUse
(
'getUserProfile'
),
canIUseGetUserProfile
:
wx
.
canIUse
(
'getUserProfile'
),
...
@@ -91,8 +89,7 @@ Page({
...
@@ -91,8 +89,7 @@ Page({
this
.
setData
({
this
.
setData
({
showPopup
:
false
,
showPopup
:
false
,
searchText
:
''
,
searchText
:
''
,
keyWord
:
''
,
// 重置搜索关键词
keyWord
:
''
// 重置搜索关键词
searchFocused
:
false
// 重置聚焦状态
});
});
// 清除防抖定时器
// 清除防抖定时器
if
(
this
.
data
.
searchTimer
)
{
if
(
this
.
data
.
searchTimer
)
{
...
@@ -128,39 +125,6 @@ Page({
...
@@ -128,39 +125,6 @@ Page({
},
},
/**
/**
* 搜索框获得焦点
*/
onSearchFocus
()
{
this
.
setData
({
searchFocused
:
true
,
isInputDisabled
:
false
// 重新启用输入框
});
},
/**
* 搜索框失去焦点
*/
onSearchBlur
()
{
// 延迟设置,避免点击选项时立即重新聚焦
setTimeout
(()
=>
{
this
.
setData
({
searchFocused
:
false
,
isInputDisabled
:
false
});
},
100
);
},
/**
* 阻止焦点事件,防止点击列表区域时唤起键盘
*/
preventFocus
(
e
)
{
// 阻止事件冒泡,同时确保搜索框失去焦点
this
.
setData
({
searchFocused
:
false
});
},
/**
* 执行搜索
* 执行搜索
* @param {String} keyword 搜索关键词
* @param {String} keyword 搜索关键词
*/
*/
...
@@ -215,14 +179,6 @@ Page({
...
@@ -215,14 +179,6 @@ Page({
// 切换选项选中状态(单选模式)
// 切换选项选中状态(单选模式)
toggleOption
(
e
)
{
toggleOption
(
e
)
{
// 立即让搜索框失去焦点,防止键盘弹起
this
.
setData
({
searchFocused
:
false
},
()
=>
{
// 在数据更新后再隐藏键盘
wx
.
hideKeyboard
();
});
const
value
=
e
.
currentTarget
.
dataset
.
value
;
const
value
=
e
.
currentTarget
.
dataset
.
value
;
const
index
=
e
.
currentTarget
.
dataset
.
index
;
const
index
=
e
.
currentTarget
.
dataset
.
index
;
const
options
=
this
.
data
.
options
;
const
options
=
this
.
data
.
options
;
...
@@ -262,36 +218,8 @@ Page({
...
@@ -262,36 +218,8 @@ Page({
// 数字输入变化
// 数字输入变化
onNumberInput
(
e
)
{
onNumberInput
(
e
)
{
const
index
=
e
.
currentTarget
.
dataset
.
index
;
const
index
=
e
.
currentTarget
.
dataset
.
index
;
le
t
value
=
e
.
detail
.
value
;
cons
t
value
=
e
.
detail
.
value
;
const
formList
=
this
.
data
.
formList
;
const
formList
=
this
.
data
.
formList
;
// 只允许输入数字,过滤非数字字符
value
=
value
.
replace
(
/
[^\d]
/g
,
''
);
// 如果有值,转换为整数并限制范围
if
(
value
)
{
let
numValue
=
parseInt
(
value
);
// 限制在1-100范围内
if
(
numValue
<
1
)
{
numValue
=
1
;
wx
.
showToast
({
title
:
'招聘数量最小为1'
,
icon
:
'none'
,
duration
:
1500
});
}
else
if
(
numValue
>
100
)
{
numValue
=
100
;
wx
.
showToast
({
title
:
'招聘数量最大为100'
,
icon
:
'none'
,
duration
:
1500
});
}
value
=
numValue
.
toString
();
}
// 更新对应项的值
// 更新对应项的值
formList
[
index
].
value
=
value
;
formList
[
index
].
value
=
value
;
formList
[
index
].
displayValue
=
value
;
formList
[
index
].
displayValue
=
value
;
...
@@ -375,19 +303,6 @@ Page({
...
@@ -375,19 +303,6 @@ Page({
});
});
return
;
return
;
}
}
// 特别校验招聘数量的范围
if
(
field
.
label
===
'招聘数量'
)
{
const
recruitCount
=
parseInt
(
item
.
value
);
if
(
isNaN
(
recruitCount
)
||
recruitCount
<
1
||
recruitCount
>
100
)
{
wx
.
showToast
({
title
:
'招聘数量必须为1-100的整数'
,
icon
:
'none'
,
duration
:
2000
});
return
;
}
}
}
}
// 所有校验通过,显示确认对话框
// 所有校验通过,显示确认对话框
...
@@ -404,32 +319,23 @@ Page({
...
@@ -404,32 +319,23 @@ Page({
merchantName
:
formList
[
0
].
displayValue
,
// 门店名称
merchantName
:
formList
[
0
].
displayValue
,
// 门店名称
businessType
:
formList
[
1
].
value
,
// 业务类型
businessType
:
formList
[
1
].
value
,
// 业务类型
businessTypeName
:
formList
[
1
].
displayValue
,
// 业务类型名称
businessTypeName
:
formList
[
1
].
displayValue
,
// 业务类型名称
recruit
mentQuantity
:
formList
[
2
].
value
,
// 招聘数量
recruit
Count
:
formList
[
2
].
value
,
// 招聘数量
recruit
ment
Type
:
formList
[
3
].
value
,
// 招聘类型
recruitType
:
formList
[
3
].
value
,
// 招聘类型
recruit
ment
TypeName
:
formList
[
3
].
displayValue
,
// 招聘类型名称
recruitTypeName
:
formList
[
3
].
displayValue
,
// 招聘类型名称
requirementDescription
:
formList
[
4
].
value
||
''
// 需求描述(可选)
demandDesc
:
formList
[
4
].
value
||
''
// 需求描述(可选)
};
};
wx
.
showLoading
({
title
:
'提交中...'
,
mask
:
true
});
console
.
log
(
'提交数据:'
,
submitData
);
addStaffDictListAPI
(
submitData
).
then
(
res
=>
{
// 提交成功后跳转到结果页面
let
{
code
,
data
}
=
res
;
this
.
navigateToResult
();
if
(
code
==
0
)
{
// 提交成功后跳转到结果页面
wx
.
hideLoading
()
this
.
navigateToResult
();
}
}).
catch
(
err
=>
{
})
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
// 用户点击了取消按钮
// 用户点击了取消按钮
console
.
log
(
'用户取消提交'
);
console
.
log
(
'用户取消提交'
);
});
});
},
},
// 跳转到结果页面
(关闭当前页)
// 跳转到结果页面
navigateToResult
()
{
navigateToResult
()
{
wx
.
redirectTo
({
wx
.
$router
.
go
(
"/packageEquity/pages/recruitManage/recruitResult/recruitResult"
,
{});
url
:
"/packageEquity/pages/recruitManage/recruitResult/recruitResult"
});
},
},
/**
/**
* 动态获取门店列表
* 动态获取门店列表
...
...
packageEquity/pages/recruitManage/recruitInsert/recruitInsert.scss
View file @
f9ccffe
...
@@ -265,9 +265,9 @@ page {
...
@@ -265,9 +265,9 @@ page {
}
}
.cancel-btn
,
.confirm-btn
{
.cancel-btn
,
.confirm-btn
{
width
:
45%
;
width
:
var
(
--
fontSize331
)
;
height
:
var
(
--
fontSize80
);
height
:
var
(
--
fontSize80
);
border-radius
:
var
(
--
fontSize
4
);
border-radius
:
var
(
--
fontSize
12
);
font-size
:
var
(
--
fontSize28
);
font-size
:
var
(
--
fontSize28
);
line-height
:
var
(
--
fontSize80
);
line-height
:
var
(
--
fontSize80
);
display
:
flex
;
display
:
flex
;
...
@@ -278,6 +278,7 @@ page {
...
@@ -278,6 +278,7 @@ page {
.cancel-btn
{
.cancel-btn
{
background-color
:
#f7f8fa
;
background-color
:
#f7f8fa
;
color
:
#323233
;
color
:
#323233
;
margin-right
:
var
(
--
fontSize24
);
}
}
.confirm-btn
{
.confirm-btn
{
...
...
packageEquity/pages/recruitManage/recruitInsert/recruitInsert.wxml
View file @
f9ccffe
...
@@ -23,19 +23,22 @@
...
@@ -23,19 +23,22 @@
/>
/>
<text class="unit">人</text>
<text class="unit">人</text>
</view>
</view>
<view class="textarea-wrapper" wx:if="{{item.label === '需求描述'}}">
<textarea
<block wx:if="{{!showPopup}}">
class="textarea-input"
<view class="textarea-wrapper" wx:if="{{item.label === '需求描述'}}">
placeholder="{{item.placeholder}}"
<textarea
placeholder-style="color: #DEE0E3;"
class="textarea-input"
value="{{item.displayValue}}"
placeholder="{{item.placeholder}}"
bindinput="onTextareaInput"
placeholder-style="color: #DEE0E3;"
data-index="{{index}}"
value="{{item.displayValue}}"
maxlength="200"
bindinput="onTextareaInput"
auto-height
data-index="{{index}}"
/>
maxlength="200"
<view class="textarea-count">{{item.textCount || 0}}/200</view>
auto-height
</view>
/>
<view class="textarea-count">{{item.textCount || 0}}/200</view>
</view>
</block>
</view>
</view>
</block>
</block>
</view>
</view>
...
@@ -55,7 +58,7 @@
...
@@ -55,7 +58,7 @@
<!-- 搜索框 -->
<!-- 搜索框 -->
<view class="search-box" wx:if="{{currentIndex === 0}}">
<view class="search-box" wx:if="{{currentIndex === 0}}">
<view class="search-input">
<view class="search-input">
<search-input styleValue="border-bottom:none" value="{{keyWord}}" bind
input="search" bind
search="search" placeholder="搜索" />
<search-input styleValue="border-bottom:none" value="{{keyWord}}" bindsearch="search" placeholder="搜索" />
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -79,8 +82,8 @@
...
@@ -79,8 +82,8 @@
<!-- 固定底部区域 -->
<!-- 固定底部区域 -->
<view class="popup-fixed-bottom">
<view class="popup-fixed-bottom">
<view class="popup-buttons">
<view class="popup-buttons">
<
button class="cancel-btn" bindtap="onClose">取消</button
>
<
view class="cancel-btn" bindtap="onClose">取消</view
>
<
button class="confirm-btn" bindtap="confirmSelect">确定</button
>
<
view class="confirm-btn" bindtap="confirmSelect">确定</view
>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
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