Commit 0e5f565d by 李伟康

Merge branch 'SAAS+V5.3.0-1117' of http://192.168.3.233:8090/saas_plus/dj-car-bo…

…utique-work-wechat into SAAS+V5.3.0-1117
2 parents b8399b1a d448f910
...@@ -4,9 +4,9 @@ import { getRecruitDetailAPI,processResumeAPI } from '../api' ...@@ -4,9 +4,9 @@ import { getRecruitDetailAPI,processResumeAPI } from '../api'
// 统计列表配置映射 // 统计列表配置映射
const STATISTICS_CONFIG = [ const STATISTICS_CONFIG = [
{ title: '需求数量', field: 'recruitmentQuantity' }, { title: '需求数量', field: 'recruitmentQuantity' },
{ title: '已推荐', field: 'resumeCount' }, { title: '投递简历数', field: 'resumeCount' },
{ title: '待面试', field: 'processingResumeCount' }, { title: '处理简历数', field: 'processResumeCount' },
{ title: '已入职', field: 'entryCount' } { title: '入职人数', field: 'entryCount' }
] ]
// 入职计划卡片字段配置 // 入职计划卡片字段配置
...@@ -56,7 +56,6 @@ Page({ ...@@ -56,7 +56,6 @@ Page({
getRecruitStatus(mixResult) { getRecruitStatus(mixResult) {
return RECRUIT_STATUS_CONFIG[mixResult] || RECRUIT_STATUS_CONFIG[0] return RECRUIT_STATUS_CONFIG[mixResult] || RECRUIT_STATUS_CONFIG[0]
}, },
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
...@@ -72,6 +71,7 @@ Page({ ...@@ -72,6 +71,7 @@ Page({
currentDate: new Date().getTime(), currentDate: new Date().getTime(),
formData: {}, // 弹窗表单数据 formData: {}, // 弹窗表单数据
detailLoaded: false, // 标识是否已加载详情 detailLoaded: false, // 标识是否已加载详情
curDataId:'',
// 时间选择器列表子项展示-格式化处理 // 时间选择器列表子项展示-格式化处理
formatter(type, value) { formatter(type, value) {
if (type === 'year') { if (type === 'year') {
...@@ -121,8 +121,6 @@ Page({ ...@@ -121,8 +121,6 @@ Page({
timeShow: false, timeShow: false,
currentDate: timestamp currentDate: timestamp
}) })
console.log('选择的日期:', formattedDate)
}, },
/** /**
* 电话拨打 * 电话拨打
...@@ -195,6 +193,11 @@ Page({ ...@@ -195,6 +193,11 @@ Page({
})) }))
} }
// 格式化 recruitment 中的 createdDate
if (recruitment && recruitment.createdDate) {
recruitment.createdDate = this.formatDate(recruitment.createdDate)
}
// 根据 businessType 动态过滤招聘信息配置 // 根据 businessType 动态过滤招聘信息配置
// 当 businessType == 1 时,显示拒绝理由;否则过滤掉拒绝理由项 // 当 businessType == 1 时,显示拒绝理由;否则过滤掉拒绝理由项
const filteredRecruitmentInfoConfig = RECRUITMENT_INFO_CONFIG.filter(item => { const filteredRecruitmentInfoConfig = RECRUITMENT_INFO_CONFIG.filter(item => {
...@@ -348,36 +351,8 @@ Page({ ...@@ -348,36 +351,8 @@ Page({
processResumeAPI(requestParams).then((result) => { processResumeAPI(requestParams).then((result) => {
let { code, data} = result; let { code, data} = result;
if(code == 0) { if(code == 0) {
// 处理成功后更新对应数据列表中的状态 // 处理成功刷新页面数据
const { recruitmentPlans } = this.data; this.getDetail(this.curDataId)
const updatedRecruitmentPlans = recruitmentPlans.map(item => {
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 {
...item,
mixResult: newMixResult,
status: 1 // 保持向后兼容
};
}
return item;
});
this.setData({
recruitmentPlans: updatedRecruitmentPlans
});
wx.showToast({ wx.showToast({
title: '处理成功', title: '处理成功',
icon: 'success' icon: 'success'
...@@ -400,7 +375,8 @@ Page({ ...@@ -400,7 +375,8 @@ Page({
onLoad(options) { onLoad(options) {
// 通过 eventChannel 接收参数(使用完整路径 / 开头时) // 通过 eventChannel 接收参数(使用完整路径 / 开头时)
wx.$router.getData(res => { wx.$router.getData(res => {
const recruitId = res.id || options.id || 8; const recruitId = res.id || options.id;
this.curDataId = res.id || options.id;
this.getDetail(recruitId) this.getDetail(recruitId)
}) })
}, },
......
...@@ -32,7 +32,7 @@ page { ...@@ -32,7 +32,7 @@ page {
color: #347bff; color: #347bff;
font-size: var(--fontSize36); font-size: var(--fontSize36);
font-weight: Bold; font-weight: Bold;
line-height: 22px; line-height: var(--fontSize44);
margin-top: var(--fontSize12); margin-top: var(--fontSize12);
} }
&:not(:last-child)::after { &:not(:last-child)::after {
...@@ -42,7 +42,7 @@ page { ...@@ -42,7 +42,7 @@ page {
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
width: 1px; width: 1px;
height: 30px; height: var(--fontSize60);
background-color: #f1f1f1e1; background-color: #f1f1f1e1;
} }
} }
......
...@@ -25,7 +25,6 @@ Page({ ...@@ -25,7 +25,6 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
let { mentorshipFormData } = this.data let { mentorshipFormData } = this.data
this.getWaitstaffstate()
let userInfo = wx.$util.getUserInfo() let userInfo = wx.$util.getUserInfo()
// 非区域运营登录,打回到首页 // 非区域运营登录,打回到首页
//ll if (userInfo?.loginRole != 3) wx.reLaunch({ url: "/pages/loading/loading" }) //ll if (userInfo?.loginRole != 3) wx.reLaunch({ url: "/pages/loading/loading" })
...@@ -48,7 +47,8 @@ Page({ ...@@ -48,7 +47,8 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {
this.getWaitstaffstate()
this.search()
}, },
onBottomRefresh() { onBottomRefresh() {
this.getList() this.getList()
...@@ -136,6 +136,8 @@ Page({ ...@@ -136,6 +136,8 @@ Page({
wx.$router.go("/packageEquity/pages/recruitManage/recruitDetail/recruitDetail", { wx.$router.go("/packageEquity/pages/recruitManage/recruitDetail/recruitDetail", {
id: item.id id: item.id
}); });
//仅已完成/以驳回可以调用flag接口
if(item.status == 0 || item.status == 1) return;
confiremStaffFlagAPI({id: item.id}).then(res => { confiremStaffFlagAPI({id: item.id}).then(res => {
console.log(res); console.log(res);
}) })
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<view class="value">{{item[it.labelName] || '-'}} <text wx:if="{{it.label == '招聘数量'}}">人</text> </view> <view class="value">{{item[it.labelName] || '-'}} <text wx:if="{{it.label == '招聘数量'}}">人</text> </view>
</block> </block>
</view> </view>
<view class="item_footer" wx:if="{{item.showTip && item.confirmFlag == 'N'}}"> <view class="item_footer" wx:if="{{item.showTip && item.confirmFlag == 'N' && item.status !== 0}}">
<view class="msg_tips"> <view class="msg_tips">
<text>{{item.tipText}}</text> <text>{{item.tipText}}</text>
<image class="arrow_right" src="/packageEquity/pages/image/arrow-right.png" mode="aspectFill"/> <image class="arrow_right" src="/packageEquity/pages/image/arrow-right.png" mode="aspectFill"/>
......
...@@ -62,7 +62,7 @@ var filterTemplateList = function (arr, value) { ...@@ -62,7 +62,7 @@ var filterTemplateList = function (arr, value) {
} }
var filterDisabled = function (role, weeklyList, date, disabledStatus) { var filterDisabled = function (role, weeklyList, date, disabledStatus) {
console.log(role, weeklyList) // console.log(role, weeklyList)
if (role == 'staff') { if (role == 'staff') {
// 员工七天内可操作 // 员工七天内可操作
return ( return (
......
...@@ -1126,12 +1126,7 @@ Page({ ...@@ -1126,12 +1126,7 @@ Page({
firstBrandName, firstBrandName,
brandId, brandId,
brandName, brandName,
brandType, brandType
deliveryCount,
notDeliveryCount,
customerLossCount,
// waitInviteCount
recordWaitInviteCount
} = item } = item
item = { item = {
...carBand, ...carBand,
...@@ -1140,10 +1135,11 @@ Page({ ...@@ -1140,10 +1135,11 @@ Page({
brandId, brandId,
brandName, brandName,
brandType, brandType,
deliveryCountRecord: deliveryCount, deliveryCountRecord: carBand.deliveryCount,
notDeliveryCountRecord: notDeliveryCount, notDeliveryCountRecord: carBand.notDeliveryCount,
customerLossCountRecord: customerLossCount, customerLossCountRecord: carBand.customerLossCount,
waitInviteCountRecord: recordWaitInviteCount waitInviteCountRecord: carBand.recordWaitInviteCount,
issueCouponCountRecord: carBand.reocedIssueCouponCount
} }
} else { } else {
hwObjArray.forEach(e => { hwObjArray.forEach(e => {
......
...@@ -588,22 +588,27 @@ Page({ ...@@ -588,22 +588,27 @@ Page({
carBandList.forEach(item => { carBandList.forEach(item => {
if (orderObj.onBreak == 'N') { if (orderObj.onBreak == 'N') {
// 必填校验 // 必填校验
hwObjArray = hwObjArray.map(el => {
if (el.required && ['', null].includes(item[el.key])) {
el.error = true
checkFlag = true
}
return el
})
hwOhterObjArray = hwOhterObjArray.map(el => { hwOhterObjArray = hwOhterObjArray.map(el => {
if (el.required && ['', null].includes(item[el.key])) { if (
el.required &&
['', null].includes(item[el.key]) &&
item.firstBrandId != -1
) {
console.log(el, item, 'hwOhterObjArray')
el.error = true el.error = true
checkFlag = true checkFlag = true
} }
return el return el
}) })
otherObjArray = otherObjArray.map(el => { otherObjArray = otherObjArray.map(el => {
if (el.required && ['', null].includes(item[el.key])) { // console.log(el.required, ['', null].includes(item[el.key]))
// console.log(el.key, item[el.key])
if (
el.required &&
['', null].includes(item[el.key]) &&
item.firstBrandId == -1
) {
console.log(el, item, 'otherObjArray')
el.error = true el.error = true
checkFlag = true checkFlag = true
} }
...@@ -824,7 +829,8 @@ Page({ ...@@ -824,7 +829,8 @@ Page({
'notDeliveryCount', 'notDeliveryCount',
'equityToShopCount', 'equityToShopCount',
'waitInviteCount', 'waitInviteCount',
'customerLossCount' 'customerLossCount',
'issueCouponCount',
].includes(name) && ].includes(name) &&
orderObj.onBreak == 'N' orderObj.onBreak == 'N'
) { ) {
...@@ -834,6 +840,13 @@ Page({ ...@@ -834,6 +840,13 @@ Page({
hwObjArray[hwIndex]?.label || hwObjArray[hwIndex]?.label ||
otherObjArray[otherIndex]?.label || otherObjArray[otherIndex]?.label ||
hwOhterObjArray[hwohterIndex]?.label hwOhterObjArray[hwohterIndex]?.label
console.log(this.isNotEmpty(carBandList[index][name]),);
console.log(this.isNotEmpty(carBandList[index][checkName]));
console.log(checkValue != carBandList[index][name]);
console.log(orderObj.lastStaffUuid);
console.log(userInfo.uuid != orderObj.lastStaffUuid);
console.log(!(userInfo?.isSuper || userInfo?.loginRole == 3));
if ( if (
this.isNotEmpty(carBandList[index][name]) && this.isNotEmpty(carBandList[index][name]) &&
this.isNotEmpty(carBandList[index][checkName]) && this.isNotEmpty(carBandList[index][checkName]) &&
...@@ -1179,12 +1192,11 @@ Page({ ...@@ -1179,12 +1192,11 @@ Page({
brandId, brandId,
brandName, brandName,
brandType, brandType,
deliveryCountRecord: deliveryCount, deliveryCountRecord: carBand.deliveryCount,
notDeliveryCountRecord: notDeliveryCount, notDeliveryCountRecord: carBand.notDeliveryCount,
customerLossCountRecord: customerLossCount, customerLossCountRecord: carBand.customerLossCount,
waitInviteCountRecord: recordWaitInviteCount, waitInviteCountRecord: carBand.recordWaitInviteCount,
issueCouponCountRecord: reocedIssueCouponCount issueCouponCountRecord: carBand.recordIssueCouponCount
// recordWaitInviteCount:recordWaitInviteCount
} }
} else { } else {
hwObjArray.forEach(e => { hwObjArray.forEach(e => {
......
...@@ -63,7 +63,7 @@ const domain_items = { ...@@ -63,7 +63,7 @@ const domain_items = {
// dj: "http://192.168.1.169:8292", //蔡远明 // dj: "http://192.168.1.169:8292", //蔡远明
// dj: 'http://192.168.1.174:8292',//范富荣 // dj: 'http://192.168.1.174:8292',//范富荣
// dj: 'http://192.168.1.89:8292', //周杭 // dj: 'http://192.168.1.89:8292', //周杭
// dj: 'http://192.168.1.76:8292', //璐琦 dj: 'http://192.168.1.76:8292', //璐琦
// dj: 'http://192.168.1.227:8292',//陈希 // dj: 'http://192.168.1.227:8292',//陈希
dj: 'http://192.168.1.84:8292',//周立明 dj: 'http://192.168.1.84:8292',//周立明
// dj: 'http://192.168.148.235:8292',// 熊正顺 // dj: 'http://192.168.148.235:8292',// 熊正顺
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!