Commit e2f0a3ad by zhangxw

Merge branch 'SAAS+V5.7.1' of http://192.168.3.233:8090/saas_plus/dj-car-boutiqu…

…e-work-wechat into SAAS+V5.7.1
2 parents ca856f1f 9f7c12ae
...@@ -331,6 +331,7 @@ Page({ ...@@ -331,6 +331,7 @@ Page({
}, },
// 获取简历详情 // 获取简历详情
getDetail(id) { getDetail(id) {
let userInfo = wx.$util.getStorageSync("dj_boutique_user_info")
// 标记为已加载,避免重复调用 // 标记为已加载,避免重复调用
this.setData({ this.setData({
detailLoaded: true detailLoaded: true
...@@ -370,7 +371,9 @@ Page({ ...@@ -370,7 +371,9 @@ Page({
} }
// 格式化 trialOnboardingPlans 中的 onboardingDate // 格式化 trialOnboardingPlans 中的 onboardingDate
if (trialOnboardingPlans && trialOnboardingPlans?.length > 0) { if (trialOnboardingPlans && trialOnboardingPlans?.length > 0) {
trialOnboardingPlans = trialOnboardingPlans.map(item => ({ trialOnboardingPlans = trialOnboardingPlans.filter(item=>{
return item.createdPhone == userInfo.phone
}).map(item => ({
...item, ...item,
onboardingDate: this.formatDate(item.trialTime) onboardingDate: this.formatDate(item.trialTime)
})) }))
...@@ -835,7 +838,7 @@ Page({ ...@@ -835,7 +838,7 @@ Page({
if (!trialFormData.personName.trim()) { if (!trialFormData.personName.trim()) {
return wx.showToast({ title: '请输入人员姓名', icon: 'none' }) return wx.showToast({ title: '请输入人员姓名', icon: 'none' })
} }
if (!/^1\d{10}$/.test(trialFormData.phoneNumber)) { if (!/^(13\d|15\d|16\d|17\d|18\d|19\d|14\d)\d{8}$/.test(trialFormData.phoneNumber)) {
return wx.showToast({ title: '请输入正确的11位手机号', icon: 'none' }) return wx.showToast({ title: '请输入正确的11位手机号', icon: 'none' })
} }
if (!trialFormData.channelType) { if (!trialFormData.channelType) {
...@@ -882,7 +885,7 @@ Page({ ...@@ -882,7 +885,7 @@ Page({
content: '确认删除该试岗计划吗?', content: '确认删除该试岗计划吗?',
success: (res) => { success: (res) => {
if (res.confirm) { if (res.confirm) {
deleteTrialPlanAPI({ id }).then(res => { deleteTrialPlanAPI({ id ,demandId:this.curDataId}).then(res => {
if (res.code == 0) { if (res.code == 0) {
wx.showToast({ title: '删除成功', icon: 'success' }) wx.showToast({ title: '删除成功', icon: 'success' })
this.getDetail(this.curDataId) this.getDetail(this.curDataId)
......
...@@ -266,7 +266,7 @@ ...@@ -266,7 +266,7 @@
<text class="required">*</text> <text class="required">*</text>
</view> </view>
<view class="value"> <view class="value">
<input placeholder="请输入人员姓名" value="{{ trialFormData.personName }}" bindinput="handleTrialInput" data-field="personName" maxlength="20" /> <input placeholder="请输入人员姓名" value="{{ trialFormData.personName }}" bindinput="handleTrialInput" data-field="personName" maxlength="20" placeholder-style="color: #999ea8;font-size:var(--fontSize28)" />
</view> </view>
</view> </view>
<view class="form_item"> <view class="form_item">
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
<text class="required">*</text> <text class="required">*</text>
</view> </view>
<view class="value"> <view class="value">
<input placeholder="请输入手机号" value="{{ trialFormData.phoneNumber }}" bindinput="handleTrialInput" data-field="phoneNumber" type="number" maxlength="11" /> <input placeholder="请输入手机号" value="{{ trialFormData.phoneNumber }}" bindinput="handleTrialInput" data-field="phoneNumber" type="number" maxlength="11" placeholder-style="color: #999ea8;font-size:var(--fontSize28)" />
</view> </view>
</view> </view>
<view class="form_item"> <view class="form_item">
......
...@@ -133,7 +133,7 @@ Page({ ...@@ -133,7 +133,7 @@ Page({
const province = value[0] || '' const province = value[0] || ''
const city = value[1] || '' const city = value[1] || ''
const formList = this.data.formList const formList = this.data.formList
const addressStr = `${province} ${city}` const addressStr = `${province}${city}`
const addreddCode = code.join('/') const addreddCode = code.join('/')
formList[FORM_FIELDS.ADDRESS].value = addreddCode formList[FORM_FIELDS.ADDRESS].value = addreddCode
formList[FORM_FIELDS.ADDRESS].displayValue = addressStr formList[FORM_FIELDS.ADDRESS].displayValue = addressStr
...@@ -193,7 +193,7 @@ Page({ ...@@ -193,7 +193,7 @@ Page({
// 如果已有选中值,标记为选中 // 如果已有选中值,标记为选中
if (item.value && item.displayValue) { if (item.value && item.displayValue) {
if (item.multi) { if (item.multi) {
const selectedValues = Array.isArray(item.value) ? item.value : item.value.split(',') const selectedValues = Array.isArray(item.value) ? item.value : String(item.value).split(',')
options = options.map(option => { options = options.map(option => {
if (selectedValues.includes(String(option.value))) { if (selectedValues.includes(String(option.value))) {
option.checked = true option.checked = true
...@@ -453,7 +453,7 @@ Page({ ...@@ -453,7 +453,7 @@ Page({
// 确认选择 // 确认选择
confirmSelect() { confirmSelect() {
const { currentIndex, selectedOptions, inputValue } = this.data const { currentIndex, selectedOptions, inputValue, options } = this.data
const formList = this.data.formList const formList = this.data.formList
const item = formList[currentIndex] const item = formList[currentIndex]
...@@ -467,13 +467,13 @@ Page({ ...@@ -467,13 +467,13 @@ Page({
wx.showToast({ title: '至少选择一项', icon: 'none' }) wx.showToast({ title: '至少选择一项', icon: 'none' })
return return
} }
const selectedTexts = this.data.options.filter(o => selectedOptions.includes(o.value)).map(o => o.text) const selectedTexts = options.filter(o => selectedOptions.includes(o.value)).map(o => o.text)
value = selectedOptions.join('/') value = selectedOptions.join(',')
displayValue = selectedTexts.join('/') displayValue = selectedTexts.join('/')
} else { } else {
const selectedValue = selectedOptions[0] || '' const selectedValue = selectedOptions[0] || ''
if (selectedValue) { if (selectedValue) {
const selectedOption = this.data.options.find( const selectedOption = options.find(
option => option.value === selectedValue option => option.value === selectedValue
) )
if (selectedOption) { if (selectedOption) {
......
...@@ -1234,9 +1234,9 @@ Page({ ...@@ -1234,9 +1234,9 @@ Page({
// if (today >= 1 && today <= 3) { // if (today >= 1 && today <= 3) {
// } // }
eventRequest.push(this.checkAbnormalOrderLocal()) eventRequest.push(this.checkAbnormalOrderLocal())
// if (isStaff) { if (isStaff) {
// eventRequest.push(this.checkServiceNotice()); eventRequest.push(this.checkServiceNotice());
// } }
// 如果是员工 判读是否要填写日报 // 如果是员工 判读是否要填写日报
// isStaff && eventRequest.push(this.staffDailyReport(wx.$util.getUserInfo())); // isStaff && eventRequest.push(this.staffDailyReport(wx.$util.getUserInfo()));
return new Promise(resolve => { return new Promise(resolve => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!