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({
cellStyle: String,
cellBoxStyle: String,
labelText: String,
headerSlot: String,
labelWidth: {
type: String,
value: '300rpx'
......
<view class="cell-box" style="background:{{ background}};{{cellBoxStyle }}">
<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="header">
<text wx:if="{{ required&&requiredBefore }}" class="required">*</text>
{{label||'标题'}}
<text wx:if="{{ required&&requiredAfter }}" class="required">*</text>
<image webp class="titleIcon" wx:if="{{ iconSrc }}" src="{{ iconSrc }}" />
<text class="titleBtn" wx:if="{{ titleBtn }}">{{titleBtn}}</text>
</view>
<view class="footer" wx:if="{{ labelText }}">{{labelText}}</view>
</view>
<view class="cell-value" style="width:calc(100% - {{ labelWidth }});">
<view class="value {{ valueAlign}} {{haveArrow }}">
<view class="slot">
<slot />
</view>
<block wx:if="{{ value }}">
<view class="details">{{value}}</view>
</block>
<block wx:if="{{ placeholder }}">
<view class="placeholder">{{placeholder}}</view>
</block>
</view>
<!-- <image wx:if="{{ haveArrow }}" class="arrow" src="../images/arrow-x.png" /> -->
</view>
</view>
<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="header">
<text wx:if="{{ required&&requiredBefore }}" class="required">*</text>
{{label||'标题'}}
<!-- <slot name='headerSlot'></slot> -->
<text class="headerSlot" wx:if="{{headerSlot}}">{{headerSlot}}</text>
<text wx:if="{{ required&&requiredAfter }}" class="required">*</text>
<image webp class="titleIcon" wx:if="{{ iconSrc }}" src="{{ iconSrc }}" />
<text class="titleBtn" wx:if="{{ titleBtn }}">{{titleBtn}}</text>
</view>
<view class="footer" wx:if="{{ labelText }}">{{labelText}}</view>
</view>
<view class="cell-value" style="width:calc(100% - {{ labelWidth }});">
<view class="value {{ valueAlign}} {{haveArrow }}">
<view class="slot">
<slot />
</view>
<block wx:if="{{ value }}">
<view class="details">{{value}}</view>
</block>
<block wx:if="{{ placeholder }}">
<view class="placeholder">{{placeholder}}</view>
</block>
</view>
<!-- <image wx:if="{{ haveArrow }}" class="arrow" src="../images/arrow-x.png" /> -->
</view>
</view>
</view>
\ No newline at end of file
......@@ -80,6 +80,7 @@
.footer {
font-size: 24rpx;
color: #999999;
margin-left: 10rpx;
}
.details,
......@@ -127,4 +128,8 @@
width: 28rpx;
height: 26rpx;
margin: 0 !important;
}
.headerSlot {
font-size: 28rpx;
color: #347BFF;
}
\ No newline at end of file
<!--packageEquity/components/storePicker/storePicker.wxml-->
<popup class="date-background" popup-slot-class="popup-style" show="{{ show }}" bindconfirm="confirm" height="800rpx">
<view class="date-container">
<view class="date-confirm" wx:if="{{ pickerType == 'merchant' }}">
<view class="search-box">
<view class="search-input">
<block wx:if="{{ !edit }}">
<view class="input {{ searchValue?'':'placeholder' }}" bindtap="open">
<block wx:if="{{ searchValue }}">{{searchValue}}</block>
<block wx:else>
<image src="/images/search.png" class="icon"></image>
{{'请输入门店'}}
</block>
</view>
</block>
<block wx:else>
<input
type="text"
class="input"
value="{{ searchValue }}"
focus="{{ inputFocus }}"
confirm-type="search"
bindinput="input"
bindblur="inputBlur"
bindconfirm="inputConfifm"
/>
</block>
</view>
</view>
</view>
<view class="picker-box">
<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>
<view class="date-container">
<view class="date-confirm">
<view class="search-box">
<view class="search-input">
<block wx:if="{{ !edit }}">
<view class="input {{ searchValue?'':'placeholder' }}" bindtap="open">
<block wx:if="{{ searchValue }}">{{searchValue}}</block>
<block wx:else>
<image src="/images/search.png" class="icon"></image>
{{ pickerType == 'merchant'? '请输入门店' : '请输入员工姓名'}}
</block>
</view>
</block>
<block wx:else>
<input type="text" class="input" value="{{ searchValue }}" focus="{{ inputFocus }}" confirm-type="search" bindinput="input" bindblur="inputBlur" bindconfirm="inputConfifm" />
</block>
</view>
</view>
</view>
<view class="picker-box">
<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>
\ No newline at end of file
......@@ -8,6 +8,10 @@
background: #fff;
}
.weekselect {
height: 80rpx;
}
.column {
display: flex;
flex-direction: column;
......@@ -19,6 +23,22 @@
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 {
display: flex;
flex-direction: column;
......@@ -33,6 +53,7 @@
border-top-left-radius: 20rpx;
border-top-right-radius: 20rpx;
background: #347BFF;
color: #fff;
}
.disabled {
......@@ -48,18 +69,25 @@
flex: 1;
border-top-left-radius: 20rpx;
border-top-right-radius: 20rpx;
background: #797979;
background: #F6FCFE;
color: #292D33;
}
.timeType {
font-size: 35rpx;
font-weight: bold;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 28rpx;
color: #181A1F;
// font-size: 35rpx;
// font-weight: bold;
// margin-right: auto;
}
.dateType {
font-size: 35rpx;
font-weight: bold;
}
.weekType {
......@@ -74,7 +102,7 @@
}
.lastweek {
width: 144rpx;
width: 160rpx;
}
.line-shadow {
......
<!--tabWorkOrder/pages/staffDaily/weekCalendar/weekCalendar.wxml-->
<!--compoents/weekCalendar/weekCalendar.wxml-->
<view class="line"></view>
<view class="row">
<view class="row" bindtap="lastWeek">
<text class="iconfont icon-sanjiaoleft" style="padding:15rpx;color:#999999"></text>
<view style="font-size:28rpx;color:#999999">上一周</view>
</view>
<view class="timeType">{{timeBean.yearMonth}}</view>
<view class="row lastweek" bindtap="nextWeek">
<block wx:if="{{ !timeBean.isInCurrentWeek }}">
<view style="font-size:28rpx; color:#999999">下一周</view>
<text class="iconfont icon-sanjiaoright" style="padding:15rpx;color:#999999"></text>
</block>
</view>
<view class="row weekselect">
<view class="row lastweek" bindtap="lastWeek">
<text class="iconfont icon-sanjiaoleft" style="padding:15rpx;color: #bec1c7;"></text>
<view style="">上一周</view>
</view>
<view class="timeType">{{timeBean.yearMonth}}</view>
<view class="row nextWeek" bindtap="nextWeek">
<block wx:if="{{ !timeBean.isInCurrentWeek }}">
<view style=" ">下一周</view>
<text class="iconfont icon-sanjiaoright" style="padding:15rpx;color: #bec1c7;"></text>
</block>
</view>
</view>
<view class="row">
<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"
>
<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 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">
<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 class="line-shadow"></view>
<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>
\ No newline at end of file
......@@ -436,7 +436,11 @@ Page({
}
})
},
getConversionEmployeeList() {
getConversionEmployeeList(e = {}) {
let value = ''
if (e?.detail) {
value = e?.detail.value
}
// debugger
let { orderObj, scene } = this.data
// 先查4s店对应的园区店,再用园区店查员工
......@@ -456,11 +460,14 @@ Page({
['orderObj.yqMerchantId']: data.yqMerchant.merchantId,
['orderObj.yqMerchantName']: data.yqMerchant.merchantName,
})
let params = {
merchantId: data.yqMerchant.merchantId,
}
if (value) {
params.name = value
}
comApi
.getConversionEmployeeList({
merchantId: data.yqMerchant.merchantId
})
.getConversionEmployeeList(params)
.then(res => {
// debugger
// console.log(res, 'res')
......@@ -468,21 +475,23 @@ Page({
if (code == 0) {
if (!data.length) {
this.setData({
staffList: []
staffList: [],
rangeList: []
})
// 没有员工
wx.$util.showToast('该门店没有员工')
!value && wx.$util.showToast('该门店没有员工')
} else {
this.setData({
staffList: data,
staffCurrent: 0,
rangeList: data,
['orderObj.staffUuid']: data[0].uuid,
['orderObj.staffName']: data[0].staffName,
// ['orderObj.yqMerchantId']: data[0].yqMerchantId,
// ['orderObj.yqMerchantName']: data[0].yqMerchantName
})
this.getStaffReport()
this.getStaffDailyReportDetailWeeklyList()
!value && this.getStaffReport()
!value && this.getStaffDailyReportDetailWeeklyList()
}
} else {
wx.$util.showToast(message)
......@@ -500,6 +509,15 @@ Page({
},
inputSearch(e) {
let { pickerType } = this.data
if (pickerType == 'merchant') {
this.getListShop4s(e)
} else {
this.getConversionEmployeeList(e)
}
},
getListShop4s(e = {}) {
// let { value } = e?.detail
let value = ''
......
......@@ -26,7 +26,7 @@ page {
.navigation-title-text {
text-align: center;
max-width: calc(100% - 24rpx);
// max-width: calc(100% - 24rpx);
}
.navigation-title .arrow {
......@@ -414,7 +414,7 @@ page {
}
.camera-icon {
width: 172rpx;
width: 220rpx;
height: 172rpx;
padding-bottom: 20rpx;
}
......@@ -434,6 +434,7 @@ page {
.disabled .cell-box {
opacity: 0.6;
}
.disabled {
.disabled {
opacity: 0.6;
}
\ No newline at end of file
......@@ -23,13 +23,14 @@
</view>
</view>
<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>
</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>
</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>
</gl-cell-staff>
<view class="user-portrait">
......@@ -109,5 +110,5 @@
</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> -->
\ 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!