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