Commit 5b45a692 by 张立顺

Merge branch 'SAAS+V4.34.1-0226' into 'develop'

上线合并

See merge request !217
2 parents a1e9479e 47d402cc
...@@ -21,6 +21,7 @@ Component({ ...@@ -21,6 +21,7 @@ Component({
cellStyle: String, cellStyle: String,
cellBoxStyle: String, cellBoxStyle: String,
labelText: String, labelText: String,
headerSlot: String,
labelWidth: { labelWidth: {
type: String, type: String,
value: '300rpx' value: '300rpx'
......
<view class="cell-box" style="background:{{ background}};{{cellBoxStyle }}"> <view class="cell-box" style="background:{{ background}};{{cellBoxStyle }}">
<view class="cell {{ cellHeight?'cellHeight': ''}} {{border?'border':'' }}" style="{{ cellStyle }}" bindtap="click"> <view class="cell {{ cellHeight?'cellHeight': ''}} {{border?'border':'' }}" style="{{ cellStyle }}" bindtap="click">
<view class="cell-label title-style" style="width:{{ labelWidth}};{{labelStyle }}" bindtap="titleClick"> <view class="cell-label title-style" style="width:{{ labelWidth}};{{labelStyle }}" bindtap="titleClick">
<view class="header"> <view class="header">
<text wx:if="{{ required&&requiredBefore }}" class="required">*</text> <text wx:if="{{ required&&requiredBefore }}" class="required">*</text>
{{label||'标题'}} {{label||'标题'}}
<text wx:if="{{ required&&requiredAfter }}" class="required">*</text> <!-- <slot name='headerSlot'></slot> -->
<image webp class="titleIcon" wx:if="{{ iconSrc }}" src="{{ iconSrc }}" /> <text class="headerSlot" wx:if="{{headerSlot}}">{{headerSlot}}</text>
<text class="titleBtn" wx:if="{{ titleBtn }}">{{titleBtn}}</text> <text wx:if="{{ required&&requiredAfter }}" class="required">*</text>
</view> <image webp class="titleIcon" wx:if="{{ iconSrc }}" src="{{ iconSrc }}" />
<view class="footer" wx:if="{{ labelText }}">{{labelText}}</view> <text class="titleBtn" wx:if="{{ titleBtn }}">{{titleBtn}}</text>
</view> </view>
<view class="cell-value" style="width:calc(100% - {{ labelWidth }});"> <view class="footer" wx:if="{{ labelText }}">{{labelText}}</view>
<view class="value {{ valueAlign}} {{haveArrow }}"> </view>
<view class="slot"> <view class="cell-value" style="width:calc(100% - {{ labelWidth }});">
<slot /> <view class="value {{ valueAlign}} {{haveArrow }}">
</view> <view class="slot">
<block wx:if="{{ value }}"> <slot />
<view class="details">{{value}}</view> </view>
</block> <block wx:if="{{ value }}">
<block wx:if="{{ placeholder }}"> <view class="details">{{value}}</view>
<view class="placeholder">{{placeholder}}</view> </block>
</block> <block wx:if="{{ placeholder }}">
</view> <view class="placeholder">{{placeholder}}</view>
<!-- <image wx:if="{{ haveArrow }}" class="arrow" src="../images/arrow-x.png" /> --> </block>
</view> </view>
</view> <!-- <image wx:if="{{ haveArrow }}" class="arrow" src="../images/arrow-x.png" /> -->
</view>
</view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -80,6 +80,7 @@ ...@@ -80,6 +80,7 @@
.footer { .footer {
font-size: 24rpx; font-size: 24rpx;
color: #999999; color: #999999;
margin-left: 10rpx;
} }
.details, .details,
...@@ -127,4 +128,8 @@ ...@@ -127,4 +128,8 @@
width: 28rpx; width: 28rpx;
height: 26rpx; height: 26rpx;
margin: 0 !important; margin: 0 !important;
}
.headerSlot {
font-size: 28rpx;
color: #347BFF;
} }
\ No newline at end of file \ No newline at end of file
<!--packageEquity/components/storePicker/storePicker.wxml--> <!--packageEquity/components/storePicker/storePicker.wxml-->
<popup class="date-background" popup-slot-class="popup-style" show="{{ show }}" bindconfirm="confirm" height="800rpx"> <popup class="date-background" popup-slot-class="popup-style" show="{{ show }}" bindconfirm="confirm" height="800rpx">
<view class="date-container"> <view class="date-container">
<view class="date-confirm" wx:if="{{ pickerType == 'merchant' }}"> <view class="date-confirm">
<view class="search-box"> <view class="search-box">
<view class="search-input"> <view class="search-input">
<block wx:if="{{ !edit }}"> <block wx:if="{{ !edit }}">
<view class="input {{ searchValue?'':'placeholder' }}" bindtap="open"> <view class="input {{ searchValue?'':'placeholder' }}" bindtap="open">
<block wx:if="{{ searchValue }}">{{searchValue}}</block> <block wx:if="{{ searchValue }}">{{searchValue}}</block>
<block wx:else> <block wx:else>
<image src="/images/search.png" class="icon"></image> <image src="/images/search.png" class="icon"></image>
{{'请输入门店'}} {{ pickerType == 'merchant'? '请输入门店' : '请输入员工姓名'}}
</block> </block>
</view> </view>
</block> </block>
<block wx:else> <block wx:else>
<input <input type="text" class="input" value="{{ searchValue }}" focus="{{ inputFocus }}" confirm-type="search" bindinput="input" bindblur="inputBlur" bindconfirm="inputConfifm" />
type="text" </block>
class="input" </view>
value="{{ searchValue }}" </view>
focus="{{ inputFocus }}" </view>
confirm-type="search" <view class="picker-box">
bindinput="input" <picker-view class="picker" value="{{ selectStoreIndex }}" immediate-change="true" indicator-class="indicator" bindchange="changeStore">
bindblur="inputBlur" <picker-view-column>
bindconfirm="inputConfifm" <block wx:for="{{ pickList }}" wx:key="merchantId">
/> <view class="view pickViewColumn">{{pickerType == 'merchant'?item.merchantName:item.staffName}}</view>
</block> </block>
</view> </picker-view-column>
</view> </picker-view>
</view> </view>
<view class="picker-box"> </view>
<picker-view
class="picker"
value="{{ selectStoreIndex }}"
immediate-change="true"
indicator-class="indicator"
bindchange="changeStore"
>
<picker-view-column>
<block wx:for="{{ pickList }}" wx:key="merchantId">
<view class="view pickViewColumn">{{pickerType == 'merchant'?item.merchantName:item.staffName}}</view>
</block>
</picker-view-column>
</picker-view>
</view>
</view>
</popup> </popup>
\ No newline at end of file \ No newline at end of file
...@@ -8,6 +8,10 @@ ...@@ -8,6 +8,10 @@
background: #fff; background: #fff;
} }
.weekselect {
height: 80rpx;
}
.column { .column {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -19,6 +23,22 @@ ...@@ -19,6 +23,22 @@
flex: 1; flex: 1;
} }
.nextWeek {
font-family: PingFangSC-Regular;
font-weight: 400;
// font-size: 28rpx;
color: #181A1F;
width: 160rpx;
}
.lastWeek {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 28rpx;
color: #181A1F;
}
.select-column { .select-column {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -33,6 +53,7 @@ ...@@ -33,6 +53,7 @@
border-top-left-radius: 20rpx; border-top-left-radius: 20rpx;
border-top-right-radius: 20rpx; border-top-right-radius: 20rpx;
background: #347BFF; background: #347BFF;
color: #fff;
} }
.disabled { .disabled {
...@@ -48,18 +69,25 @@ ...@@ -48,18 +69,25 @@
flex: 1; flex: 1;
border-top-left-radius: 20rpx; border-top-left-radius: 20rpx;
border-top-right-radius: 20rpx; border-top-right-radius: 20rpx;
background: #797979; background: #F6FCFE;
color: #292D33;
} }
.timeType { .timeType {
font-size: 35rpx; font-family: PingFangSC-Medium;
font-weight: bold; font-weight: 500;
font-size: 28rpx;
color: #181A1F;
// font-size: 35rpx;
// font-weight: bold;
// margin-right: auto; // margin-right: auto;
} }
.dateType { .dateType {
font-size: 35rpx; font-size: 35rpx;
font-weight: bold; font-weight: bold;
} }
.weekType { .weekType {
...@@ -74,7 +102,7 @@ ...@@ -74,7 +102,7 @@
} }
.lastweek { .lastweek {
width: 144rpx; width: 160rpx;
} }
.line-shadow { .line-shadow {
......
<!--tabWorkOrder/pages/staffDaily/weekCalendar/weekCalendar.wxml--> <!--tabWorkOrder/pages/staffDaily/weekCalendar/weekCalendar.wxml-->
<!--compoents/weekCalendar/weekCalendar.wxml--> <!--compoents/weekCalendar/weekCalendar.wxml-->
<view class="line"></view> <view class="line"></view>
<view class="row"> <view class="row weekselect">
<view class="row" bindtap="lastWeek"> <view class="row lastweek" bindtap="lastWeek">
<text class="iconfont icon-sanjiaoleft" style="padding:15rpx;color:#999999"></text> <text class="iconfont icon-sanjiaoleft" style="padding:15rpx;color: #bec1c7;"></text>
<view style="font-size:28rpx;color:#999999">上一周</view> <view style="">上一周</view>
</view> </view>
<view class="timeType">{{timeBean.yearMonth}}</view> <view class="timeType">{{timeBean.yearMonth}}</view>
<view class="row lastweek" bindtap="nextWeek"> <view class="row nextWeek" bindtap="nextWeek">
<block wx:if="{{ !timeBean.isInCurrentWeek }}"> <block wx:if="{{ !timeBean.isInCurrentWeek }}">
<view style="font-size:28rpx; color:#999999">下一周</view> <view style=" ">下一周</view>
<text class="iconfont icon-sanjiaoright" style="padding:15rpx;color:#999999"></text> <text class="iconfont icon-sanjiaoright" style="padding:15rpx;color: #bec1c7;"></text>
</block> </block>
</view> </view>
</view> </view>
<view class="row"> <view class="row">
<view <view wx:for="{{ [0,1,2,3,4,5,6] }}" data-index="{{ index }}" data-disabled="{{ timeBean.weekDayList[index].disabled }}" class="item {{ index==timeBean.selectDay?'select-column':'column' }} {{ timeBean.weekDayList[index].disabled?'disabled':'' }}" bindtap="itemClick" wx:key="index">
wx:for="{{ [0,1,2,3,4,5,6] }}" <view class="weekType">{{timeBean.weekDayList[index].week}}</view>
data-index="{{ index }}" <view class="dateType">{{timeBean.weekDayList[index].day}}</view>
data-disabled="{{ timeBean.weekDayList[index].disabled }}" <text class="empty" wx:if="{{ !timeBean.weekDayList[index].disabled && !timeBean.weekDayList[index].hasDailyValue }}">空</text>
class="item {{ index==timeBean.selectDay?'select-column':'column' }} {{ timeBean.weekDayList[index].disabled?'disabled':'' }}" </view>
bindtap="itemClick"
wx:key="index"
>
<view class="weekType">{{timeBean.weekDayList[index].week}}</view>
<view class="dateType">{{timeBean.weekDayList[index].day}}</view>
<text class="empty" wx:if="{{ !timeBean.weekDayList[index].disabled && !timeBean.weekDayList[index].hasDailyValue }}">空</text>
</view>
</view> </view>
<view class="line-shadow"></view> <view class="line-shadow"></view>
<view class="suspension" bindtap="addMenuClick"> <view class="suspension" bindtap="addMenuClick">
<text class="iconfont icon-tianjia" style="font-size:60rpx; color:#fff;"></text> <text class="iconfont icon-tianjia" style="font-size:60rpx; color:#fff;"></text>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -436,7 +436,11 @@ Page({ ...@@ -436,7 +436,11 @@ Page({
} }
}) })
}, },
getConversionEmployeeList() { getConversionEmployeeList(e = {}) {
let value = ''
if (e?.detail) {
value = e?.detail.value
}
// debugger // debugger
let { orderObj, scene } = this.data let { orderObj, scene } = this.data
// 先查4s店对应的园区店,再用园区店查员工 // 先查4s店对应的园区店,再用园区店查员工
...@@ -456,11 +460,14 @@ Page({ ...@@ -456,11 +460,14 @@ Page({
['orderObj.yqMerchantId']: data.yqMerchant.merchantId, ['orderObj.yqMerchantId']: data.yqMerchant.merchantId,
['orderObj.yqMerchantName']: data.yqMerchant.merchantName, ['orderObj.yqMerchantName']: data.yqMerchant.merchantName,
}) })
let params = {
merchantId: data.yqMerchant.merchantId,
}
if (value) {
params.name = value
}
comApi comApi
.getConversionEmployeeList({ .getConversionEmployeeList(params)
merchantId: data.yqMerchant.merchantId
})
.then(res => { .then(res => {
// debugger // debugger
// console.log(res, 'res') // console.log(res, 'res')
...@@ -468,21 +475,23 @@ Page({ ...@@ -468,21 +475,23 @@ Page({
if (code == 0) { if (code == 0) {
if (!data.length) { if (!data.length) {
this.setData({ this.setData({
staffList: [] staffList: [],
rangeList: []
}) })
// 没有员工 // 没有员工
wx.$util.showToast('该门店没有员工') !value && wx.$util.showToast('该门店没有员工')
} else { } else {
this.setData({ this.setData({
staffList: data, staffList: data,
staffCurrent: 0, staffCurrent: 0,
rangeList: data,
['orderObj.staffUuid']: data[0].uuid, ['orderObj.staffUuid']: data[0].uuid,
['orderObj.staffName']: data[0].staffName, ['orderObj.staffName']: data[0].staffName,
// ['orderObj.yqMerchantId']: data[0].yqMerchantId, // ['orderObj.yqMerchantId']: data[0].yqMerchantId,
// ['orderObj.yqMerchantName']: data[0].yqMerchantName // ['orderObj.yqMerchantName']: data[0].yqMerchantName
}) })
this.getStaffReport() !value && this.getStaffReport()
this.getStaffDailyReportDetailWeeklyList() !value && this.getStaffDailyReportDetailWeeklyList()
} }
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
...@@ -500,6 +509,15 @@ Page({ ...@@ -500,6 +509,15 @@ Page({
}, },
inputSearch(e) {
let { pickerType } = this.data
if (pickerType == 'merchant') {
this.getListShop4s(e)
} else {
this.getConversionEmployeeList(e)
}
},
getListShop4s(e = {}) { getListShop4s(e = {}) {
// let { value } = e?.detail // let { value } = e?.detail
let value = '' let value = ''
......
...@@ -26,7 +26,7 @@ page { ...@@ -26,7 +26,7 @@ page {
.navigation-title-text { .navigation-title-text {
text-align: center; text-align: center;
max-width: calc(100% - 24rpx); // max-width: calc(100% - 24rpx);
} }
.navigation-title .arrow { .navigation-title .arrow {
...@@ -414,7 +414,7 @@ page { ...@@ -414,7 +414,7 @@ page {
} }
.camera-icon { .camera-icon {
width: 172rpx; width: 220rpx;
height: 172rpx; height: 172rpx;
padding-bottom: 20rpx; padding-bottom: 20rpx;
} }
...@@ -434,6 +434,7 @@ page { ...@@ -434,6 +434,7 @@ page {
.disabled .cell-box { .disabled .cell-box {
opacity: 0.6; opacity: 0.6;
} }
.disabled {
.disabled {
opacity: 0.6; opacity: 0.6;
} }
\ No newline at end of file \ No newline at end of file
...@@ -23,13 +23,14 @@ ...@@ -23,13 +23,14 @@
</view> </view>
</view> </view>
<view class="box"> <view class="box">
<gl-cell-staff class="{{(role != 'staff'|| !orderObj.isDateWithin7Days) && (role != 'super'|| !orderObj.isDateWithin60Days)?'disabled':''}}" border valueAlign="right" labelText="每日按门店填写新车交付数" label="新车交付数" requiredAfter labelWidth="375rpx" required> <gl-cell-staff class="{{(role != 'staff'|| !orderObj.isDateWithin7Days) && (role != 'super'|| !orderObj.isDateWithin60Days)?'disabled':''}}" border valueAlign="right" labelText="每日按门店填写新车交付数" label="新车交付数" requiredAfter labelWidth="375rpx" required>
<!-- <view slot='headerSlot'>陈希</view> -->
<input placeholder="点击输入" class="input" placeholder-class="placeholder-class" maxlength="3" type="number" value="{{ orderObj.deliveryCount }}" bindinput="input" data-name="deliveryCount" disabled="{{ (role != 'staff'|| !orderObj.isDateWithin7Days) && (role != 'super'|| !orderObj.isDateWithin60Days) }}" always-embed></input> <input placeholder="点击输入" class="input" placeholder-class="placeholder-class" maxlength="3" type="number" value="{{ orderObj.deliveryCount }}" bindinput="input" data-name="deliveryCount" disabled="{{ (role != 'staff'|| !orderObj.isDateWithin7Days) && (role != 'super'|| !orderObj.isDateWithin60Days) }}" always-embed></input>
</gl-cell-staff> </gl-cell-staff>
<gl-cell-staff class="{{role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}" border valueAlign="right" labelText="每日填写本人该业务的接待客户数" label="到店流量(太阳膜)" requiredAfter labelWidth="375rpx" required> <gl-cell-staff headerSlot="{{orderObj.staffName}}" class="{{role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}" border valueAlign="right" labelText="每日填写本人该业务的接待客户数" label="到店流量(太阳膜)" requiredAfter labelWidth="375rpx" required>
<input placeholder="点击输入" class="input" type="number" placeholder-class="placeholder-class" maxlength="3" value="{{ orderObj.filmToShopCount }}" bindinput="input" data-name="filmToShopCount" disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}" always-embed></input> <input placeholder="点击输入" class="input" type="number" placeholder-class="placeholder-class" maxlength="3" value="{{ orderObj.filmToShopCount }}" bindinput="input" data-name="filmToShopCount" disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}" always-embed></input>
</gl-cell-staff> </gl-cell-staff>
<gl-cell-staff class="{{role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}" border valueAlign="right" labelText="每日填写本人该业务的接待客户数" label="到店流量(会员权益)" requiredAfter labelWidth="375rpx" required> <gl-cell-staff headerSlot="{{orderObj.staffName}}" class="{{role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}" border valueAlign="right" labelText="每日填写本人该业务的接待客户数" label="到店流量(会员权益)" requiredAfter labelWidth="375rpx" required>
<input placeholder="点击输入" class="input" type="number" placeholder-class="placeholder-class" maxlength="3" value="{{ orderObj.equityToShopCount }}" bindinput="input" data-name="equityToShopCount" disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}" always-embed></input> <input placeholder="点击输入" class="input" type="number" placeholder-class="placeholder-class" maxlength="3" value="{{ orderObj.equityToShopCount }}" bindinput="input" data-name="equityToShopCount" disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}" always-embed></input>
</gl-cell-staff> </gl-cell-staff>
<view class="user-portrait"> <view class="user-portrait">
...@@ -109,5 +110,5 @@ ...@@ -109,5 +110,5 @@
</view> </view>
</view> </view>
</view> </view>
<store-picker subIndex="{{ subIndex }}" pickList="{{ rangeList }}" show="{{ showPicker }}" bindsearch="getListShop4s" bindconfirm="changePicker" pickerType="{{ pickerType }}" /> <store-picker subIndex="{{ subIndex }}" pickList="{{ rangeList }}" show="{{ showPicker }}" bindsearch="inputSearch" bindconfirm="changePicker" pickerType="{{ pickerType }}" />
<!-- </block> --> <!-- </block> -->
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!