Commit 949ffc8b by 张立顺

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

…e-work-wechat into SAAS+V5.3.2
2 parents a071ba03 9b22fe6f
...@@ -94,14 +94,18 @@ Component({ ...@@ -94,14 +94,18 @@ Component({
customerId: data.id, customerId: data.id,
standNo: data.standNo, standNo: data.standNo,
carBrand: data.carBrand, carBrand: data.carBrand,
carBrandId: data.carBrandId,
carChildsBrandName: data.carChildsBrandName, carChildsBrandName: data.carChildsBrandName,
carChildsBrandId: data.carChildsBrandId,
carSeriesName: data.carSeriesName, carSeriesName: data.carSeriesName,
carSeriesId: data.carSeriesId,
customerName: data.customerName, customerName: data.customerName,
customerPhone: data.customerPhone, customerPhone: data.customerPhone,
customerSex: customerSex:
data.customerSex || orderObj?.customer.customerSex, data.customerSex || orderObj?.customer.customerSex,
plateNumber: data.plateNumber, plateNumber: data.plateNumber,
experienceFlag: orderObj?.customer.experienceFlag || "Y", // 默认是体验 experienceFlag: orderObj?.customer.experienceFlag || "Y", // 默认是体验
salesType: data.salesType
}, },
couponName: data.couponName, couponName: data.couponName,
customerCouponCode: data.customerCouponCode, customerCouponCode: data.customerCouponCode,
......
...@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd' ...@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 2 let index = 4
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
const envName = accountInfo.miniProgram.envVersion const envName = accountInfo.miniProgram.envVersion
......
...@@ -120,7 +120,9 @@ Component({ ...@@ -120,7 +120,9 @@ Component({
menuList menuList
}) })
this.getData() this.getData()
if ((userInfo.loginRole == 3) && menuList.every((item) => item.menuText == "招聘管理")) this.getWaitStaff() // 在组件加载时调用 if ((userInfo.loginRole == 3)) {
this.getWaitStaff() // 在组件加载时调用
}
} }
}, },
......
...@@ -64,12 +64,24 @@ page { ...@@ -64,12 +64,24 @@ page {
height: 336rpx; height: 336rpx;
position: relative; position: relative;
margin-bottom: 20rpx; margin-bottom: 20rpx;
&:last-of-type{
margin-bottom: 0;
}
.num-box{
width: 60rpx;
height: 100%;
position: absolute;
left: 0;
top: 0;
}
.num { .num {
position: absolute; position: absolute;
top: 8rpx; top: 8rpx;
left: 16rpx; left: 50%;
transform: translateX(-50%);
min-width: 32rpx;
height: 32rpx; height: 32rpx;
box-sizing: border-box;
border-radius: 16rpx; border-radius: 16rpx;
border: 2rpx solid #c9c9c9; border: 2rpx solid #c9c9c9;
background: #5a5e66; background: #5a5e66;
......
...@@ -41,7 +41,9 @@ ...@@ -41,7 +41,9 @@
<view class="list {{detailObj[currentDate].hasReceptionReport?'has-reception-report':''}}"> <view class="list {{detailObj[currentDate].hasReceptionReport?'has-reception-report':''}}">
<block wx:for="{{list}}" wx:key="index"> <block wx:for="{{list}}" wx:key="index">
<view class="item"> <view class="item">
<view class="num flex">{{index + 1}}</view> <view class="num-box">
<view class="num flex">{{index + 1}}</view>
</view>
<view class="item-content"> <view class="item-content">
<view class="label flex">客户姓名<view class="required">*</view> <view class="label flex">客户姓名<view class="required">*</view>
</view> </view>
......
...@@ -204,6 +204,7 @@ Page({ ...@@ -204,6 +204,7 @@ Page({
this.lastViewResumeTime = now this.lastViewResumeTime = now
wx.showLoading({ wx.showLoading({
title: '加载中', title: '加载中',
mask:true
}) })
let { url } = e.currentTarget.dataset let { url } = e.currentTarget.dataset
let _this = this let _this = this
...@@ -281,18 +282,10 @@ Page({ ...@@ -281,18 +282,10 @@ Page({
// 当 businessType == 1 时,显示拒绝理由;否则过滤掉拒绝理由项 // 当 businessType == 1 时,显示拒绝理由;否则过滤掉拒绝理由项
const filteredRecruitmentInfoConfig = RECRUITMENT_INFO_CONFIG.filter( const filteredRecruitmentInfoConfig = RECRUITMENT_INFO_CONFIG.filter(
item => { item => {
// 特殊处理:拒绝理由字段仅在businessType为1时显示 // 特殊处理:拒绝理由字段仅在招聘状态为被驳回status:3时显示
// if (item.field === 'recallReason') { if (item.field === 'recallReason') {
// return recruitment.businessType == 1 && recruitment.recallReason return recruitment.status == 3
// } }
// 如果字段值不存在或为空字符串,则不显示该字段
// if (recruitment[item.field] === undefined ||
// recruitment[item.field] === null ||
// recruitment[item.field] === '') {
// return false
// }
return true return true
} }
) )
......
...@@ -42,7 +42,8 @@ Page({ ...@@ -42,7 +42,8 @@ Page({
selectedOptions: [], selectedOptions: [],
inputValue: '', inputValue: '',
keyWord: '', // 搜索关键词 keyWord: '', // 搜索关键词
searchTimer: null // 防抖定时器 searchTimer: null, // 防抖定时器
isDialogShowing: false // Dialog显示状态
}, },
// 显示popup // 显示popup
async showPopup(e) { async showPopup(e) {
...@@ -311,30 +312,33 @@ Page({ ...@@ -311,30 +312,33 @@ Page({
const formList = this.data.formList const formList = this.data.formList
const item = formList[currentIndex] const item = formList[currentIndex]
if (item.options && item.options.length > 0) { const hasOptionList = Array.isArray(item.options) && item.options.length > 0
// 单选模式:取第一个值;如果没有选择,则值为空 let value = ''
const selectedValue = selectedOptions.length > 0 ? selectedOptions[0] : '' let displayValue = ''
// 更新对应项的值
formList[currentIndex].value = selectedValue
// 更新显示文本 if (hasOptionList) {
if (selectedOptions.length > 0) { const selectedValue = selectedOptions[0] || ''
if (selectedValue) {
const selectedOption = this.data.options.find( const selectedOption = this.data.options.find(
option => option.value === selectedValue option => option.value === selectedValue
) )
formList[currentIndex].displayValue = selectedOption if (selectedOption) {
? selectedOption.text value = selectedValue
: '' displayValue = selectedOption.text || ''
} else { }
formList[currentIndex].displayValue = ''
} }
} else { } else {
// 直接输入的情况 value = inputValue
formList[currentIndex].value = inputValue displayValue = inputValue
formList[currentIndex].displayValue = inputValue
} }
if (currentIndex === FORM_FIELDS.MERCHANT && !displayValue) {
value = ''
}
formList[currentIndex].value = value
formList[currentIndex].displayValue = displayValue
this.setData({ this.setData({
formList, formList,
showPopup: false, showPopup: false,
...@@ -373,6 +377,11 @@ Page({ ...@@ -373,6 +377,11 @@ Page({
// 验证表单 // 验证表单
if (!this.validateForm()) return if (!this.validateForm()) return
// 设置Dialog显示状态为true
this.setData({
isDialogShowing: true
})
// 显示确认对话框 // 显示确认对话框
Dialog.confirm({ Dialog.confirm({
title: '提示', title: '提示',
...@@ -395,9 +404,19 @@ Page({ ...@@ -395,9 +404,19 @@ Page({
icon: 'none' icon: 'none'
}) })
}) })
.finally(() => {
// 无论成功或失败,都关闭Dialog状态
this.setData({
isDialogShowing: false
})
})
}) })
.catch(err => { .catch(err => {
console.log('用户取消提交') console.log('用户取消提交')
// 用户取消时,关闭Dialog状态
this.setData({
isDialogShowing: false
})
}) })
}, },
// 跳转到结果页面 // 跳转到结果页面
......
...@@ -6,7 +6,7 @@ page { ...@@ -6,7 +6,7 @@ page {
} }
.scrollarea { .scrollarea {
flex: 1; flex: 1;
overflow-y: hidden; overflow-y: auto;
} }
.container { .container {
padding: 0 var(--fontSize20); padding: 0 var(--fontSize20);
...@@ -102,7 +102,7 @@ page { ...@@ -102,7 +102,7 @@ page {
} }
.textarea-input { .textarea-input {
width: 100%; width: 100%;
min-height: var(--fontSize440); height: var(--fontSize440);
padding: var(--fontSize18) var(--fontSize24); padding: var(--fontSize18) var(--fontSize24);
padding-bottom: var(--fontSize60); padding-bottom: var(--fontSize60);
background: #ffffff; background: #ffffff;
...@@ -112,23 +112,28 @@ page { ...@@ -112,23 +112,28 @@ page {
line-height: var(--fontSize36); line-height: var(--fontSize36);
box-sizing: border-box; box-sizing: border-box;
border: var(--fontSize2) solid #ececec; border: var(--fontSize2) solid #ececec;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
&::-webkit-scrollbar {
width: 0;
height: 0;
display: none;
}
} }
.textarea-count { .textarea-count {
position: absolute; position: absolute;
right: var(--fontSize20); right: var(--fontSize16);
bottom: var(--fontSize20); bottom: var(--fontSize16);
font-size: var(--fontSize20); font-size: var(--fontSize28);
color: #969799; color: #969799;
} }
} }
} }
.footer { .footer {
position: absolute; margin-top:var(--fontSize200);
// bottom:var(--fontSize100);
bottom: 6%;
left: 50%;
transform: translateX(-50%);
.btn { .btn {
margin:0 auto;
width: var(--fontSize622); width: var(--fontSize622);
height:var(--fontSize88); height:var(--fontSize88);
border-radius: var(--fontSize12); border-radius: var(--fontSize12);
......
<!--index.wxml--> <!--index.wxml-->
<scroll-view class="scrollarea" scroll-y type="list"> <view class="scrollarea">
<view class="container"> <view class="container">
<view class="title">请完善您的用人需求</view> <view class="title">请完善您的用人需求</view>
<view class="form"> <view class="form">
...@@ -32,16 +32,16 @@ ...@@ -32,16 +32,16 @@
</view> </view>
<block wx:if="{{ !showPopup }}"> <block wx:if="{{ !showPopup }}">
<view class="textarea-wrapper" wx:if="{{ item.label === '需求描述' }}"> <view class="textarea-wrapper" wx:if="{{ item.label === '需求描述' }}">
<textarea <textarea
class="textarea-input" class="textarea-input"
placeholder="{{ item.placeholder }}" placeholder="{{ item.placeholder }}"
placeholder-style="color: #DEE0E3;" placeholder-style="color: #DEE0E3;"
value="{{ item.displayValue }}" value="{{ item.displayValue }}"
bindinput="onTextareaInput" bindinput="onTextareaInput"
data-index="{{ index }}" data-index="{{ index }}"
maxlength="200" maxlength="200"
auto-height disabled="{{ isDialogShowing }}"
/> />
<view class="textarea-count">{{item.textCount || 0}}/200</view> <view class="textarea-count">{{item.textCount || 0}}/200</view>
</view> </view>
</block> </block>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<view class="btn" bind:tap="submit">提交</view> <view class="btn" bind:tap="submit">提交</view>
</view> </view>
</view> </view>
</scroll-view> </view>
<!-- Vant Popup 组件 --> <!-- Vant Popup 组件 -->
<van-popup show="{{ showPopup }}" position="bottom" custom-style="height: 70%" bind:close="onClose"> <van-popup show="{{ showPopup }}" position="bottom" custom-style="height: 70%" bind:close="onClose">
<view class="popup-content"> <view class="popup-content">
......
...@@ -201,10 +201,10 @@ Page({ ...@@ -201,10 +201,10 @@ Page({
btnVisible: false btnVisible: false
}) })
} }
// 向下滑动(scrollTop 减小)- 显示按钮 // 向下滑动(scrollTop 减小)- 隐藏按钮
else if (scrollTop < lastScrollTop && !btnVisible) { else if (scrollTop < lastScrollTop && btnVisible) {
this.setData({ this.setData({
btnVisible: true btnVisible: false
}) })
} }
......
...@@ -97,10 +97,16 @@ page { ...@@ -97,10 +97,16 @@ page {
margin-bottom: var(--fontSize4); margin-bottom: var(--fontSize4);
justify-content: space-between; justify-content: space-between;
text:nth-child(1) { .merchant-name {
flex: 1;
min-width: 0;
font-size: var(--fontSize30); font-size: var(--fontSize30);
color: #292D33; color: #292D33;
font-weight: 600; font-weight: 600;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
margin-right: var(--fontSize16);
} }
.status-tag { .status-tag {
......
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
bind:tap="handleDetail" bind:tap="handleDetail"
data-item="{{ item }}" data-item="{{ item }}"
> >
<view class="item_header"> <view class="item_header">
<text>{{item.merchantName}}</text> <text class="merchant-name">{{item.merchantName}}</text>
<text class="status-tag status-{{ item.status }}">{{item.statusName}}</text> <text class="status-tag status-{{ item.status }}">{{item.statusName}}</text>
</view> </view>
<view class="item_content" wx:for="{{ mentorshipFormData }}" wx:for-item="it" wx:for-index="subInd" wx:key="subInd"> <view class="item_content" wx:for="{{ mentorshipFormData }}" wx:for-item="it" wx:for-index="subInd" wx:key="subInd">
......
...@@ -16,6 +16,7 @@ let toastList = { ...@@ -16,6 +16,7 @@ let toastList = {
subShopMerchantId: "二级流量方不能为空", subShopMerchantId: "二级流量方不能为空",
deliveryUserId: "交付专员不能为空", deliveryUserId: "交付专员不能为空",
customerName: "车主姓名不能为空", customerName: "车主姓名不能为空",
salesType: "客户来源不能为空",
customerPhone: "手机号不能为空", customerPhone: "手机号不能为空",
sellerUserId: "转化人员不能为空", sellerUserId: "转化人员不能为空",
customerCouponCode: "精品礼券不能为空", customerCouponCode: "精品礼券不能为空",
...@@ -912,6 +913,7 @@ Page({ ...@@ -912,6 +913,7 @@ Page({
"employeeName", "employeeName",
...requiredList, ...requiredList,
"customerName", "customerName",
"salesType",
"customerPhone", "customerPhone",
"sellerUserId", "sellerUserId",
"sellerName", "sellerName",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!