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({
},
// 获取简历详情
getDetail(id) {
let userInfo = wx.$util.getStorageSync("dj_boutique_user_info")
// 标记为已加载,避免重复调用
this.setData({
detailLoaded: true
......@@ -370,7 +371,9 @@ Page({
}
// 格式化 trialOnboardingPlans 中的 onboardingDate
if (trialOnboardingPlans && trialOnboardingPlans?.length > 0) {
trialOnboardingPlans = trialOnboardingPlans.map(item => ({
trialOnboardingPlans = trialOnboardingPlans.filter(item=>{
return item.createdPhone == userInfo.phone
}).map(item => ({
...item,
onboardingDate: this.formatDate(item.trialTime)
}))
......@@ -835,7 +838,7 @@ Page({
if (!trialFormData.personName.trim()) {
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' })
}
if (!trialFormData.channelType) {
......@@ -882,7 +885,7 @@ Page({
content: '确认删除该试岗计划吗?',
success: (res) => {
if (res.confirm) {
deleteTrialPlanAPI({ id }).then(res => {
deleteTrialPlanAPI({ id ,demandId:this.curDataId}).then(res => {
if (res.code == 0) {
wx.showToast({ title: '删除成功', icon: 'success' })
this.getDetail(this.curDataId)
......
......@@ -266,7 +266,7 @@
<text class="required">*</text>
</view>
<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 class="form_item">
......@@ -275,7 +275,7 @@
<text class="required">*</text>
</view>
<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 class="form_item">
......
......@@ -133,7 +133,7 @@ Page({
const province = value[0] || ''
const city = value[1] || ''
const formList = this.data.formList
const addressStr = `${province} ${city}`
const addressStr = `${province}${city}`
const addreddCode = code.join('/')
formList[FORM_FIELDS.ADDRESS].value = addreddCode
formList[FORM_FIELDS.ADDRESS].displayValue = addressStr
......@@ -193,7 +193,7 @@ Page({
// 如果已有选中值,标记为选中
if (item.value && item.displayValue) {
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 => {
if (selectedValues.includes(String(option.value))) {
option.checked = true
......@@ -453,7 +453,7 @@ Page({
// 确认选择
confirmSelect() {
const { currentIndex, selectedOptions, inputValue } = this.data
const { currentIndex, selectedOptions, inputValue, options } = this.data
const formList = this.data.formList
const item = formList[currentIndex]
......@@ -467,13 +467,13 @@ Page({
wx.showToast({ title: '至少选择一项', icon: 'none' })
return
}
const selectedTexts = this.data.options.filter(o => selectedOptions.includes(o.value)).map(o => o.text)
value = selectedOptions.join('/')
const selectedTexts = options.filter(o => selectedOptions.includes(o.value)).map(o => o.text)
value = selectedOptions.join(',')
displayValue = selectedTexts.join('/')
} else {
const selectedValue = selectedOptions[0] || ''
if (selectedValue) {
const selectedOption = this.data.options.find(
const selectedOption = options.find(
option => option.value === selectedValue
)
if (selectedOption) {
......
......@@ -1234,9 +1234,9 @@ Page({
// if (today >= 1 && today <= 3) {
// }
eventRequest.push(this.checkAbnormalOrderLocal())
// if (isStaff) {
// eventRequest.push(this.checkServiceNotice());
// }
if (isStaff) {
eventRequest.push(this.checkServiceNotice());
}
// 如果是员工 判读是否要填写日报
// isStaff && eventRequest.push(this.staffDailyReport(wx.$util.getUserInfo()));
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!