Commit 5d0b3191 by 张立顺

Merge branch 'SAAS+V5.4.2-1130' into 'develop'

上线合并

See merge request !451
2 parents daf883d6 8edebe50
Showing 27 changed files with 1077 additions and 221 deletions
...@@ -27,7 +27,7 @@ const checkRequired = function (obj, formRule) { ...@@ -27,7 +27,7 @@ const checkRequired = function (obj, formRule) {
attr attr
} }
} }
if (validFn) { if (validFn && obj[attr] != null) {
let validObj = validFn.validator({}, obj[attr], obj) let validObj = validFn.validator({}, obj[attr], obj)
if (validObj) { if (validObj) {
return { return {
......
...@@ -179,7 +179,7 @@ Component({ ...@@ -179,7 +179,7 @@ Component({
menuText: "培训资料", menuText: "培训资料",
icon: "peixun_icon", icon: "peixun_icon",
path: "packageEquity.trainingMaterials", path: "packageEquity.trainingMaterials",
}, ], },],
loginRoleLabel: { loginRoleLabel: {
1: "超管", 1: "超管",
2: "商户管理员", 2: "商户管理员",
...@@ -1024,7 +1024,7 @@ Component({ ...@@ -1024,7 +1024,7 @@ Component({
}); });
} }
}) })
.catch((err) => {}); .catch((err) => { });
}, },
getStaffTargetTask() { getStaffTargetTask() {
return new Promise(resolve => { return new Promise(resolve => {
...@@ -1075,7 +1075,7 @@ Component({ ...@@ -1075,7 +1075,7 @@ Component({
.setTaskDialog({ .setTaskDialog({
id: data[0]?.id, id: data[0]?.id,
}) })
.then(() => {}); .then(() => { });
} }
} else { } else {
wx.$util.showToast(message); wx.$util.showToast(message);
...@@ -1654,6 +1654,7 @@ Component({ ...@@ -1654,6 +1654,7 @@ Component({
}, },
// 筛选确认 // 筛选确认
searchScreen(e) { searchScreen(e) {
console.log(e, 'searchScreen');
let searchForm = e.detail let searchForm = e.detail
const orderResult = searchForm?.orderResult || [] const orderResult = searchForm?.orderResult || []
this.setData({ this.setData({
......
...@@ -119,7 +119,9 @@ ...@@ -119,7 +119,9 @@
<view class="'screen-box' {{showScreen ? '' : 'sticky-screen'}} {{isScrollTop ? 'bg-white' : ''}}"> <view class="'screen-box' {{showScreen ? '' : 'sticky-screen'}} {{isScrollTop ? 'bg-white' : ''}}">
<view> <view>
<!-- <text class="title">接待记录</text> --> <!-- <text class="title">接待记录</text> -->
<text class="name text-hide">{{searchForm.merchantNames.length > 1 ? '部分门店' : searchForm.merchantNames.length ? filter.filterMerchantName(searchForm.merchantNames) : !userInfo.isSuper && userInfo.loginRole != 3 ? userInfo.default4SStoreInfo.merchantName : '全部门店'}}</text> <!-- {{searchForm.merchantNames.length}}
{{userInfo.default4SStoreInfo.merchantName}} -->
<text class="name text-hide">{{searchForm.merchantNames.length > 1 ? '部分门店' : searchForm.merchantNames.length ? filter.filterMerchantName(searchForm.merchantNames) : !userInfo.isSuper && userInfo.loginRole != 3 ? userInfo.default4SStoreInfo.merchantName|| '全部门店' : '全部门店'}}</text>
</view> </view>
<view bindtap="showScreenPop"> <view bindtap="showScreenPop">
<text class="text">筛选</text> <text class="text">筛选</text>
......
...@@ -187,6 +187,18 @@ var btnPermissions = function (permissionsArr, key) { ...@@ -187,6 +187,18 @@ var btnPermissions = function (permissionsArr, key) {
} }
return false return false
} }
// 品牌化标签,如 "售前整车延保成交数(鸿蒙)" → "售前整车延保成交数(品牌名)"
var formatBrandLabel = function (label, brandName) {
if (!label) return ''
var name = '鸿蒙' || '' // 先固定取鸿蒙
// 优先替换括号内容
var bracketReg = getRegExp('\\(.*?\\)', 'g')
var replaced = label.replace(bracketReg, '(' + name + ')')
// 若原文不含括号或替换未生效,则兜底替换特定关键字
var hmReg = getRegExp('鸿蒙', 'g')
return replaced != label ? replaced : label.replace(hmReg, name)
}
/* /*
* 导出 * 导出
*/ */
...@@ -204,5 +216,6 @@ module.exports = { ...@@ -204,5 +216,6 @@ module.exports = {
techicianName: techicianName, techicianName: techicianName,
subStatus: subStatus, subStatus: subStatus,
subStatusName: subStatusName, subStatusName: subStatusName,
btnPermissions: btnPermissions btnPermissions: btnPermissions,
formatBrandLabel: formatBrandLabel
} }
...@@ -502,7 +502,9 @@ Page({ ...@@ -502,7 +502,9 @@ Page({
if ([5, 6, 7].includes(subVal.merchantGoodsPosition)) { if ([5, 6, 7].includes(subVal.merchantGoodsPosition)) {
skylightArr.push(subVal) skylightArr.push(subVal)
} }
if (![1, baseConfigData?.selfBuildFilmType].includes(val.goodsType)) { if (
![1, baseConfigData?.selfBuildFilmType].includes(val.goodsType)
) {
otherGoodsArr.push(subVal) otherGoodsArr.push(subVal)
} }
}) })
...@@ -538,7 +540,10 @@ Page({ ...@@ -538,7 +540,10 @@ Page({
}) })
// 仅有一件商品 默认选中 // 仅有一件商品 默认选中
// console.log(goodsData.length == 1 && goodsData[0].upgradeGoodsList.length == 1, 'goodsData.length == 1 && goodsData[0].upgradeGoodsList.length == 1'); // console.log(goodsData.length == 1 && goodsData[0].upgradeGoodsList.length == 1, 'goodsData.length == 1 && goodsData[0].upgradeGoodsList.length == 1');
if (goodsData.length == 1 && goodsData[0].upgradeGoodsList.length == 1) { if (
goodsData.length == 1 &&
goodsData[0].upgradeGoodsList.length == 1
) {
this.defaultChoose(0) this.defaultChoose(0)
} }
} else { } else {
...@@ -548,11 +553,18 @@ Page({ ...@@ -548,11 +553,18 @@ Page({
}, },
defaultChoose(index) { defaultChoose(index) {
let { frontGearArr, sideRearGearArr, skylightArr, sideBeforeRearGearArr, sideAfterRearGearArr, otherGoodsArr } = this.data let {
frontGearArr,
sideRearGearArr,
skylightArr,
sideBeforeRearGearArr,
sideAfterRearGearArr,
otherGoodsArr
} = this.data
// 仅有一个商品直接选中 // 仅有一个商品直接选中
otherGoodsArr = otherGoodsArr.map((item) => { otherGoodsArr = otherGoodsArr.map(item => {
item.otherFlag = true item.otherFlag = true
return item; return item
}) })
let arr = [].concat( let arr = [].concat(
sideRearGearArr.length == 1 ? sideRearGearArr : [], sideRearGearArr.length == 1 ? sideRearGearArr : [],
...@@ -560,9 +572,9 @@ Page({ ...@@ -560,9 +572,9 @@ Page({
skylightArr.length == 1 ? skylightArr : [], skylightArr.length == 1 ? skylightArr : [],
sideBeforeRearGearArr.length == 1 ? sideBeforeRearGearArr : [], sideBeforeRearGearArr.length == 1 ? sideBeforeRearGearArr : [],
sideAfterRearGearArr.length == 1 ? sideAfterRearGearArr : [], sideAfterRearGearArr.length == 1 ? sideAfterRearGearArr : [],
otherGoodsArr.length == 1 ? otherGoodsArr : [], otherGoodsArr.length == 1 ? otherGoodsArr : []
) )
console.log(arr, 'defaultChoose'); console.log(arr, 'defaultChoose')
arr.forEach(val => { arr.forEach(val => {
val.count = 1 val.count = 1
val.active = true val.active = true
...@@ -1047,11 +1059,11 @@ Page({ ...@@ -1047,11 +1059,11 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function (res) { }, onReady: function (res) {},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function (res) { }, onShow: function (res) {},
onRoute(res) { onRoute(res) {
console.log(res, 'onroute') console.log(res, 'onroute')
this.setData({ isExpiredTraffic: res?.isExpiredTraffic }) this.setData({ isExpiredTraffic: res?.isExpiredTraffic })
...@@ -1078,25 +1090,25 @@ Page({ ...@@ -1078,25 +1090,25 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () { }, onHide: function () {},
onUnload: () => { }, onUnload: () => {},
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () { }, onUnload: function () {},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () { }, onPullDownRefresh: function () {},
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () { }, onReachBottom: function () {},
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { } onShareAppMessage: function () {}
}) })
// components/TabBar/TabBar.js
Component({
/**
* 组件的属性列表
*/
properties: {
tabList: {
type: Array,
observer: function (list) {
// 规范化 tab 列表为对象数组,支持字符串与多种字段名
this.normalizeTabList(list)
}
},
activeIndex: {
type: Number,
observer: function (n) {
console.log(this.data.tabIndex, 'activeIndex', n)
console.log(this.data.tabIndex != n)
if (this.data.tabIndex != n) {
this.setData({
tabIndex: this.data.activeIndex
})
this.setTab(this.data.tabIndex)
}
}
},
scroll: Boolean
},
/**
* 组件的初始数据
*/
data: {
tabIndex: 0,
tabItems: []
},
lifetimes: {
ready() {
// console.log('lifetimes',this.data.tabIndex);
// console.log('lifetimes',this.data.activeIndex);
// 确保首屏渲染有规范化后的 tabItems
this.normalizeTabList(this.data.tabList)
this.setTab(this.data.tabIndex)
let that = this
wx.$eventbus.on('page_show', n => {
!that.data.width && that.setTab(that.data.tabIndex)
})
}
},
/**
* 组件的方法列表
*/
methods: {
normalizeTabList(list = []) {
const tabItems = (list || []).map(item => {
let label = ''
let count
if (typeof item === 'string') {
label = item
} else if (item && typeof item === 'object') {
label =
item.text ??
item.label ??
item.name ??
item.title ??
item.brandName ??
''
if (item.firstBrandId == -1) {
label = item.firstBrandName
}
count = item.count
} else {
label = ''
}
return { label, count, _raw: item }
})
this.setData({ tabItems })
},
change(e) {
let { index } = e.currentTarget.dataset
this.setTab(index)
},
setTab(index = 0) {
let { tabIndex } = this.data
wx.$util.getViewInfo(
`#tab-${tabIndex}`,
old => {
let oldLeft = old.left
let oldWidth = old.width
wx.$util.getViewInfo(
`#tab-${index}`,
res => {
let { left, width } = res
if (tabIndex != index) {
let readyLeft = oldLeft > left ? left : oldLeft
let readyWidth =
oldLeft > left ? oldLeft - left : left - oldLeft
this.setData({
activeStyle: `width: var(--fontSize64);background-color:#347BFF;border-radius:3rpx;left:${readyLeft + readyWidth / 2
}px;transition: all .1s;`
})
}
setTimeout(() => {
this.setData({
activeStyle: `width: var(--fontSize64);left:${left + (width - 32) / 2
}px;background-color:#347BFF;`,
tabIndex: index,
to: `to-${index}`,
width
})
const itemObj =
this.data.tabItems && this.data.tabItems[index]
? this.data.tabItems[index]._raw ??
this.data.tabItems[index]
: undefined
this.triggerEvent('click', { index, item: itemObj })
}, 100)
},
this
)
},
this
)
}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
<block wx:if="{{ scroll }}">
<scroll-view class="scroll" scroll-x enable-flex scroll-with-animation scroll-into-view="{{ to }}">
<block wx:for="{{ tabItems }}" wx:key="index">
<view class="tab-item {{ tabIndex==index?'active':'' }}" bindtap="change" data-index="{{ index }}" id="to-{{ index }}">
<text id="tab-{{ index }}"><text class="tab-item-text">{{item.label}}</text><text wx:if="{{ item.count >= 0 }}" style="font-size: var(--fontSize20);">({{item.count}})</text></text>
</view>
</block>
<!-- <view class="active-doc" style="{{activeStyle}}" /> -->
</scroll-view>
</block>
<block wx:else>
<view
class="tab"
style="grid-template-columns: repeat({{ tabItems.length}}, 1fr);font-size:{{tabItems.length>5?'var(--fontSize24)':'' }} ;"
>
<block wx:for="{{ tabItems }}" wx:key="index">
<!-- style="color:{{tabIndex==index?'#347BFF':''}};" -->
<view class="tab-item {{ tabIndex==index?'active':'' }}" bindtap="change" data-index="{{ index }}">
<text id="tab-{{ index }}"><text class="tab-item-text">{{item.label}}</text><text wx:if="{{ item.count >= 0 }}" style="font-size: var(--fontSize20);">({{item.count}})</text></text>
</view>
</block>
<view class="active-doc" style="{{ activeStyle }}" />
</view>
</block>
\ No newline at end of file \ No newline at end of file
/* components/TabBar/TabBar.wxss */
.tab {
/* background-color: #fff; */
height: var(--fontSize72);
box-sizing: border-box;
display: grid;
align-items: center;
font-size: var(--fontSize28);
color: #347bff;
border-bottom: var(--fontSize1) solid #F2F3F5;
}
.scroll {
/* background-color: #fff; */
height: var(--fontSize104);
box-sizing: border-box;
/* color: #347bff; */
color: #5a5e66;
border-bottom: var(--fontSize1) solid #F2F3F5;
width: 100%;
display: flex;
line-height: var(--fontSize104);
font-size: 0;
}
.active {
/* font-size: var(--fontSize32); */
font-weight: 600;
color: #347BFF;
}
.active-doc {
position: absolute;
bottom: var(--fontSize1);
height: var(--fontSize4);
border-radius: var(--fontSize2) var(--fontSize2) 0 0;
transition: all .25s;
}
.tab .tab-item {
text-align: center;
}
.scroll .tab-item {
width: fit-content;
min-width: var(--fontSize97);
height: 100%;
flex-shrink: 0;
font-size: var(--fontSize28);
text-align: center;
position: relative;
padding: 0 var(--fontSize10);
font-weight: 600;
}
.scroll .active::after {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 64rpx;
height: var(--fontSize4);
background-color: #347BFF;
content: '';
}
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
background: #fff; background: #fff;
.week_box{
.week_box {
height: var(--fontSize60); height: var(--fontSize60);
width: 100%; width: 100%;
display: flex; display: flex;
...@@ -14,14 +15,24 @@ ...@@ -14,14 +15,24 @@
align-items: center; align-items: center;
box-shadow: 0 var(--fontSize4) var(--fontSize8) 0 #cdcdd159; box-shadow: 0 var(--fontSize4) var(--fontSize8) 0 #cdcdd159;
} }
.date_box{
.date_box {
height: var(--fontSize128); height: var(--fontSize128);
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
} }
.left {
margin-left: 10rpx;
}
.right {
margin-right: 20rpx;
}
} }
.weekselect { .weekselect {
height: var(--fontSize80); height: var(--fontSize80);
flex-direction: row; flex-direction: row;
...@@ -41,7 +52,8 @@ ...@@ -41,7 +52,8 @@
font-weight: 400; font-weight: 400;
flex-direction: row; flex-direction: row;
color: #181A1F; color: #181A1F;
width: var(--fontSize180); width: var(--fontSize200);
font-size: 28rpx;
} }
.dateType { .dateType {
...@@ -54,6 +66,7 @@ ...@@ -54,6 +66,7 @@
border-radius: 50%; border-radius: 50%;
width: var(--fontSize64); width: var(--fontSize64);
height: var(--fontSize64); height: var(--fontSize64);
.empty { .empty {
box-sizing: border-box; box-sizing: border-box;
position: absolute; position: absolute;
...@@ -70,7 +83,8 @@ ...@@ -70,7 +83,8 @@
color: #fff; color: #fff;
} }
} }
.dateType.dateType_disabled{
.dateType.dateType_disabled {
color: #BEC1C7; color: #BEC1C7;
} }
...@@ -81,7 +95,7 @@ ...@@ -81,7 +95,7 @@
.select-column { .select-column {
.dateType{ .dateType {
background: #347BFF; background: #347BFF;
color: #fff; color: #fff;
} }
...@@ -109,9 +123,12 @@ ...@@ -109,9 +123,12 @@
font-weight: 500; font-weight: 500;
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #181A1F; color: #181A1F;
// font-size: var(--fontSize35); width: 280rpx;
// font-weight: bold; height: 64rpx;
// margin-right: auto; text-align: center;
line-height: 64rpx;
border-radius: 20px;
background: #f2f3f5;
} }
.line { .line {
...@@ -121,7 +138,7 @@ ...@@ -121,7 +138,7 @@
} }
.lastweek { .lastweek {
width: var(--fontSize180); width: var(--fontSize200);
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-weight: 400; font-weight: 400;
font-size: var(--fontSize28); font-size: var(--fontSize28);
...@@ -149,6 +166,12 @@ ...@@ -149,6 +166,12 @@
/* iOS 4.1- */ /* iOS 4.1- */
} }
.icon {
width: 36rpx;
height: 36rpx;
}
.iconfont { .iconfont {
font-family: "iconfont" !important; font-family: "iconfont" !important;
font-size: 16px; font-size: 16px;
......
...@@ -3,14 +3,16 @@ ...@@ -3,14 +3,16 @@
<view class="line"></view> <view class="line"></view>
<view class="row weekselect"> <view class="row weekselect">
<view class="row lastweek" bindtap="lastWeek"> <view class="row lastweek" bindtap="lastWeek">
<text class="iconfont icon-sanjiaoleft" style="padding:var(--fontSize15);color: #bec1c7;"></text> <!-- <text class="iconfont icon-sanjiaoleft" style="padding:var(--fontSize15);color: #bec1c7;"></text> -->
<gl-image class="icon left" src="{{ '/miniProgram/arrow-left.png' }}" webp></gl-image>
<view style="">上一周</view> <view style="">上一周</view>
</view> </view>
<view class="timeType">{{timeBean.yearMonth}}</view> <view class="timeType">{{timeBean.yearMonth}}</view>
<view class="row nextWeek" bindtap="nextWeek"> <view class="row nextWeek" bindtap="nextWeek">
<block wx:if="{{ !timeBean.isInCurrentWeek }}"> <block wx:if="{{ !timeBean.isInCurrentWeek }}">
<view style=" ">下一周</view> <view style=" ">下一周</view>
<text class="iconfont icon-sanjiaoright" style="padding:var(--fontSize15);color: #bec1c7;"></text> <gl-image class="icon right" src="{{ '/miniProgram/arrow-right.png' }}" webp></gl-image>
<!-- <text class="iconfont icon-sanjiaoright" style="padding:var(--fontSize15);color: #bec1c7;"></text> -->
</block> </block>
</view> </view>
</view> </view>
......
...@@ -32,11 +32,11 @@ Page({ ...@@ -32,11 +32,11 @@ Page({
pickerdateList: [ pickerdateList: [
{ {
id: 'N', id: 'N',
name: '否' name: '在岗'
}, },
{ {
id: 'Y', id: 'Y',
name: '是' name: '调休'
} }
], ],
pickerTemplateList: [ pickerTemplateList: [
...@@ -135,8 +135,16 @@ Page({ ...@@ -135,8 +135,16 @@ Page({
inputPlaceholder: '' inputPlaceholder: ''
}, },
{ {
name: 'person' label: '未触客返店人数',
}, key: 'notDeliveryReturnCount',
type: 'number',
required: false,
min: 0,
max: 100,
inputPlaceholder: ''
}
],
hwObjArrayLabelList: [
{ {
label: '售前整车延保成交数(问界)', label: '售前整车延保成交数(问界)',
key: 'extendedWarrantyCount', key: 'extendedWarrantyCount',
...@@ -218,15 +226,6 @@ Page({ ...@@ -218,15 +226,6 @@ Page({
templateValue: 3, templateValue: 3,
disabled: true, disabled: true,
inputPlaceholder: '自动填入系统数据' inputPlaceholder: '自动填入系统数据'
},
{
label: '未触客返店人数',
key: 'notDeliveryReturnCount',
type: 'number',
required: false,
min: 0,
max: 100,
inputPlaceholder: ''
} }
], ],
hwOhterObjArray: [ hwOhterObjArray: [
...@@ -267,8 +266,19 @@ Page({ ...@@ -267,8 +266,19 @@ Page({
inputPlaceholder: '' inputPlaceholder: ''
}, },
{ {
name: 'person' label: '未触客返店人数',
}, key: 'notDeliveryReturnCount',
type: 'number',
required: false,
min: 0,
max: 100,
inputPlaceholder: ''
}
],
hwOhterObjArrayLabelList: [
// {
// name: 'person'
// },
{ {
label: '售前整车延保成交数(鸿蒙)', label: '售前整车延保成交数(鸿蒙)',
key: 'extendedWarrantyCount', key: 'extendedWarrantyCount',
...@@ -290,15 +300,6 @@ Page({ ...@@ -290,15 +300,6 @@ Page({
templateValue: 3, templateValue: 3,
disabled: true, disabled: true,
inputPlaceholder: '自动填入系统数据' inputPlaceholder: '自动填入系统数据'
},
{
label: '未触客返店人数',
key: 'notDeliveryReturnCount',
type: 'number',
required: false,
min: 0,
max: 100,
inputPlaceholder: ''
} }
], ],
otherObjArray: [ otherObjArray: [
...@@ -339,8 +340,19 @@ Page({ ...@@ -339,8 +340,19 @@ Page({
inputPlaceholder: '' inputPlaceholder: ''
}, },
{ {
name: 'person' label: '未触客返店人数',
}, key: 'notDeliveryReturnCount',
type: 'number',
required: false,
min: 0,
max: 100,
inputPlaceholder: ''
}
// {
// name: 'person'
// },
],
otherObjArrayLableList: [
{ {
label: '北汽无忧成交数', label: '北汽无忧成交数',
key: 'bqWorryFreeCount', key: 'bqWorryFreeCount',
...@@ -362,17 +374,44 @@ Page({ ...@@ -362,17 +374,44 @@ Page({
disabled: true, disabled: true,
templateValue: 3, templateValue: 3,
inputPlaceholder: '自动填入系统数据' inputPlaceholder: '自动填入系统数据'
}
],
tabIndex: 0
}, },
{ tabClick(e) {
label: '未触客返店人数', let { index } = e.detail
key: 'notDeliveryReturnCount', let { searchObj } = this.data
type: 'number', // delete searchObj.statusList
required: false, this.setData({
min: 0, tabIndex: index
max: 100, // searchObj
inputPlaceholder: '' })
// this.search()
},
handleOnBreakCheckboxChange(e) {
const { value = [] } = e.detail
console.log(e, value, 'handleOnBreakCheckboxChange')
// 由于受控 checked 绑定,change 时可能出现同时包含旧值与新值的情况(['N','Y'])
// 使用前一个选中值与当前 value 比较,取“发生变化”的那个值作为新选中项
const prev = this.data.orderObj.onBreak
let selected
if (value.length === 0) {
// 防止全不选导致状态不可用,默认回退为 'N'
selected = 'N'
} else if (value.length === 1) {
selected = value[0]
} else {
// 两个都存在时,取与之前不同的那个;若未找到则取最后一个兜底
selected = value.find(v => v !== prev) || value[value.length - 1]
} }
] // 根据选中值更新 onBreak 和 pickerValue
const pickerIndex = this.data.pickerdateList.findIndex(
v => v.id === selected
)
this.setData({
['orderObj.onBreak']: selected,
['orderObj.pickerValue']: pickerIndex >= 0 ? pickerIndex : 0
})
}, },
handleTemplagePickerChange(e) { handleTemplagePickerChange(e) {
const { value } = e.detail const { value } = e.detail
...@@ -399,7 +438,7 @@ Page({ ...@@ -399,7 +438,7 @@ Page({
}, },
showStorePicker() { showStorePicker() {
let { userInfo } = this.data let { userInfo } = this.data
;(userInfo?.isSuper || ; (userInfo?.isSuper ||
userInfo?.loginRole == 3 || userInfo?.loginRole == 3 ||
userInfo?.loginRole == 5) && userInfo?.loginRole == 5) &&
this.setData({ this.setData({
...@@ -409,7 +448,7 @@ Page({ ...@@ -409,7 +448,7 @@ Page({
}, },
showStaffPicker() { showStaffPicker() {
let { userInfo } = this.data let { userInfo } = this.data
;(userInfo?.isSuper || ; (userInfo?.isSuper ||
userInfo?.loginRole == 3 || userInfo?.loginRole == 3 ||
userInfo?.loginRole == 5) && userInfo?.loginRole == 5) &&
this.setData({ this.setData({
...@@ -540,7 +579,7 @@ Page({ ...@@ -540,7 +579,7 @@ Page({
showCancel: false, showCancel: false,
confirmText: '确定', confirmText: '确定',
confirmColor: '#347BFF', confirmColor: '#347BFF',
success(res) {} success(res) { }
}) })
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
...@@ -594,13 +633,15 @@ Page({ ...@@ -594,13 +633,15 @@ Page({
// } // }
// } // }
let checkFlag = false let checkFlag = false
carBandList.forEach(item => { let firstInvalidIndex = -1
carBandList.forEach((item, index) => {
if (orderObj.onBreak == 'N') { if (orderObj.onBreak == 'N') {
// 必填校验 // 必填校验
hwObjArray = hwObjArray.map(el => { hwObjArray = hwObjArray.map(el => {
if (el.required && ['', null].includes(item[el.key])) { if (el.required && ['', null].includes(item[el.key])) {
el.error = true el.error = true
checkFlag = true checkFlag = true
if (firstInvalidIndex === -1) firstInvalidIndex = index
} }
return el return el
}) })
...@@ -608,6 +649,7 @@ Page({ ...@@ -608,6 +649,7 @@ Page({
if (el.required && ['', null].includes(item[el.key])) { if (el.required && ['', null].includes(item[el.key])) {
el.error = true el.error = true
checkFlag = true checkFlag = true
if (firstInvalidIndex === -1) firstInvalidIndex = index
} }
return el return el
}) })
...@@ -615,6 +657,7 @@ Page({ ...@@ -615,6 +657,7 @@ Page({
if (el.required && ['', null].includes(item[el.key])) { if (el.required && ['', null].includes(item[el.key])) {
el.error = true el.error = true
checkFlag = true checkFlag = true
if (firstInvalidIndex === -1) firstInvalidIndex = index
} }
return el return el
}) })
...@@ -632,8 +675,11 @@ Page({ ...@@ -632,8 +675,11 @@ Page({
this.setData({ this.setData({
hwObjArray, hwObjArray,
otherObjArray, otherObjArray,
hwOhterObjArray hwOhterObjArray,
tabIndex:
firstInvalidIndex !== -1 ? firstInvalidIndex : this.data.tabIndex
}) })
wx.$util.showToast('必填不能为空')
return false //必填校验没过 return false //必填校验没过
} }
orderObj.isAdmin = role == 'super' ? true : false orderObj.isAdmin = role == 'super' ? true : false
...@@ -672,7 +718,7 @@ Page({ ...@@ -672,7 +718,7 @@ Page({
showCancel: false, showCancel: false,
confirmText: '确定', confirmText: '确定',
confirmColor: '#347BFF', confirmColor: '#347BFF',
success(res) {} success(res) { }
}) })
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
...@@ -781,11 +827,8 @@ Page({ ...@@ -781,11 +827,8 @@ Page({
0: '问界', 0: '问界',
1: '鸿蒙' 1: '鸿蒙'
} }
context += `【${ // bandType[el.brandType] ||
bandType[el.brandType] || item.firstBrandName context += `【${item.brandName}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${item.differenceValue},请相关驻店销售对齐核销再次提交\t\n`
}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${
item.differenceValue
},请相关驻店销售对齐核销再次提交\t\n`
el.deliveryCountinputError = true el.deliveryCountinputError = true
el.equityToShopCountinputError = true el.equityToShopCountinputError = true
el.notDeliveryCountinputError = true el.notDeliveryCountinputError = true
...@@ -1182,7 +1225,7 @@ Page({ ...@@ -1182,7 +1225,7 @@ Page({
if (brandDataList && brandDataList.length) { if (brandDataList && brandDataList.length) {
carBandList = carBandList.map(item => { carBandList = carBandList.map(item => {
let carBand = brandDataList.find(ele => { let carBand = brandDataList.find(ele => {
if ([0, 1].includes(ele.brandType)) { if ([0, 1, 3, 4, 5, 6].includes(ele.brandType)) {
return ele.brandType == item.brandType return ele.brandType == item.brandType
} else if (ele.brandType == 2) { } else if (ele.brandType == 2) {
return ele.firstBrandId == item.firstBrandId return ele.firstBrandId == item.firstBrandId
...@@ -1272,6 +1315,7 @@ Page({ ...@@ -1272,6 +1315,7 @@ Page({
['orderObj.onBreak']: data.onBreak || 'N', ['orderObj.onBreak']: data.onBreak || 'N',
['orderObj.pickerValue']: data.onBreak == 'Y' ? 1 : 0, ['orderObj.pickerValue']: data.onBreak == 'Y' ? 1 : 0,
['orderObj.staffCountError']: false, ['orderObj.staffCountError']: false,
['orderObj.staffCountEmptyError']: false,
approvalList: data.approvalList || [], approvalList: data.approvalList || [],
currentWordNumber: data?.remark?.length currentWordNumber: data?.remark?.length
}) })
...@@ -1394,7 +1438,7 @@ Page({ ...@@ -1394,7 +1438,7 @@ Page({
wx.$util.message(message) wx.$util.message(message)
} }
}) })
.catch(err => {}) .catch(err => { })
}, },
inputSearch(e) { inputSearch(e) {
let { pickerType } = this.data let { pickerType } = this.data
...@@ -1603,7 +1647,7 @@ Page({ ...@@ -1603,7 +1647,7 @@ Page({
} }
// } // }
}) })
.catch(err => {}) .catch(err => { })
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
...@@ -1725,5 +1769,5 @@ Page({ ...@@ -1725,5 +1769,5 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () {} onReady: function () { }
}) })
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
"weekCalendar": "./components/weekCalendar/weekCalendar", "weekCalendar": "./components/weekCalendar/weekCalendar",
"gl-cell-staff": "./components/GlCell/GlCell", "gl-cell-staff": "./components/GlCell/GlCell",
"store-picker": "./components/storePicker/storePicker", "store-picker": "./components/storePicker/storePicker",
"select-item-popup": "./components/selectItemPopup/selectItemPopup" "select-item-popup": "./components/selectItemPopup/selectItemPopup",
"tab-bar": "./components/TabBar/TabBar"
} }
} }
...@@ -60,10 +60,11 @@ page { ...@@ -60,10 +60,11 @@ page {
.main { .main {
// padding: 0 var(--fontSize20) var(--fontSize256); // padding: 0 var(--fontSize20) var(--fontSize256);
padding: 0 20rpx 300rpx; padding: 0 20rpx 52rpx;
.mainheader { .mainheader {
margin: var(--fontSize20) var(--fontSize10) 0; margin-top: 28rpx;
margin: var(--fontSize28) 0 12rpx 32rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
...@@ -85,26 +86,34 @@ page { ...@@ -85,26 +86,34 @@ page {
.title { .title {
font-family: PingFangSC-SNaNrpxibold; font-family: PingFangSC-SNaNrpxibold;
font-weight: 500; font-weight: 600;
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #292D33; color: #292D33;
} }
} }
page .isFullSucreen { page .isFullSucreen {
padding-bottom: 160px !important; padding-bottom: 160rpx !important;
} }
.isFullSucreen-btn { .isFullSucreen-btn {
padding-bottom: 34px !important; padding-bottom: 150rpx !important;
} }
// page .isFullSucreen {
// padding-bottom: 160px !important;
// }
// .isFullSucreen-btn {
// padding-bottom: 34px !important;
// }
.box { .box {
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10); // box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10);
border-radius: var(--fontSize16); border-radius: var(--fontSize16);
overflow: hidden; overflow: hidden;
margin-top: var(--fontSize20); // margin-top: var(--fontSize20);
height: calc(100% - var(--fontSize100)); height: calc(100% - var(--fontSize100));
// padding: var(--fontSize24) 0; // padding: var(--fontSize24) 0;
...@@ -130,10 +139,13 @@ page .isFullSucreen { ...@@ -130,10 +139,13 @@ page .isFullSucreen {
// padding: 0 var(--fontSize40); // padding: 0 var(--fontSize40);
color: #292D33; color: #292D33;
font-size: var(--fontSize28); font-size: var(--fontSize28);
border-bottom: 1rpx solid #dee0e3; // border-bottom: 1rpx solid #dee0e3;
border-bottom: 1rpx solid #eff0f2;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding: 24rpx 40rpx; padding: 0rpx 40rpx;
height: 88rpx;
box-sizing: border-box;
.left { .left {
display: flex; display: flex;
...@@ -149,8 +161,9 @@ page .isFullSucreen { ...@@ -149,8 +161,9 @@ page .isFullSucreen {
.label { .label {
margin-bottom: var(--fontSize16); // margin-bottom: var(--fontSize16);
// display: flex; display: flex;
align-items: center;
color: #292d33; color: #292d33;
font-size: 28rpx; font-size: 28rpx;
...@@ -159,8 +172,12 @@ page .isFullSucreen { ...@@ -159,8 +172,12 @@ page .isFullSucreen {
} }
.required_text { .required_text {
display: inline-block;
color: #F24724; color: #F24724;
margin-right: var(--fontSize8); margin-left: var(--fontSize8);
// 与父元素行高一致,避免上移或下移
line-height: 20rpx;
// 移除 vertical-align,交由 flex 居中对齐
} }
} }
...@@ -169,7 +186,7 @@ page .isFullSucreen { ...@@ -169,7 +186,7 @@ page .isFullSucreen {
} }
.content-input { .content-input {
height: var(--fontSize91); height: var(--fontSize88);
text-align: right; text-align: right;
font-size: var(--fontSize28); font-size: var(--fontSize28);
flex: 1; flex: 1;
...@@ -208,7 +225,6 @@ page .isFullSucreen { ...@@ -208,7 +225,6 @@ page .isFullSucreen {
line-height: var(--fontSize80); line-height: var(--fontSize80);
text-align: right; text-align: right;
} }
.placeholder { .placeholder {
...@@ -255,8 +271,14 @@ page .isFullSucreen { ...@@ -255,8 +271,14 @@ page .isFullSucreen {
} }
} }
.templatePicker {
// height: 90rpx;
// width: 160rpx;
}
.templateNameTitle { .templateNameTitle {
margin-right: 20rpx; // margin-right: 20rpx;
margin-left: auto;
.templateName { .templateName {
color: #347BFF; color: #347BFF;
...@@ -268,13 +290,15 @@ page .isFullSucreen { ...@@ -268,13 +290,15 @@ page .isFullSucreen {
.remark_box { .remark_box {
padding: var(--fontSize20); // padding: var(--fontSize20);
background-color: #fff; background-color: #fff;
padding: 24rpx 32rpx 24rpx;
.label { .label {
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #292D33; color: #292D33;
margin: var(--fontSize20) 0 var(--fontSize24) var(--fontSize20); // margin: var(--fontSize20) 0 var(--fontSize24) var(--fontSize20);
margin-bottom: 20rpx
} }
.textArea_box { .textArea_box {
...@@ -283,9 +307,12 @@ page .isFullSucreen { ...@@ -283,9 +307,12 @@ page .isFullSucreen {
border: var(--fontSize2) solid #EFF0F2; border: var(--fontSize2) solid #EFF0F2;
border-radius: var(--fontSize16); border-radius: var(--fontSize16);
padding: var(--fontSize24); padding: var(--fontSize24);
background: #f4f5f7;
.textarea { .textarea {
height: var(--fontSize130); height: var(--fontSize100);
// width: 335rpx;
width: 100%;
} }
.currentWordNumber { .currentWordNumber {
...@@ -299,15 +326,26 @@ page .isFullSucreen { ...@@ -299,15 +326,26 @@ page .isFullSucreen {
} }
} }
.staffBox {
// margin-left: auto;
// margin-right: 10rpx;
margin-left: 16rpx;
}
.staffName {
// margin-left: auto;
color: #347bff;
font-size: 28rpx;
}
.btns { .btns {
position: fixed;
left: 0;
width: 100%; width: 100%;
bottom: 0; bottom: 0;
min-height: var(--fontSize100); min-height: var(--fontSize100);
background: #FFFFFF; // background: #FFFFFF;
box-sizing: border-box; box-sizing: border-box;
/* padding: var(--fontSize10) var(--fontSize32); */ /* padding: var(--fontSize10) var(--fontSize32); */
margin-bottom: 100rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
...@@ -318,7 +356,8 @@ page .isFullSucreen { ...@@ -318,7 +356,8 @@ page .isFullSucreen {
} }
.btns-con { .btns-con {
width: 100%; // width: 100%;
width: 622rpx;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
flex-flow: column; flex-flow: column;
...@@ -351,6 +390,7 @@ page .isFullSucreen { ...@@ -351,6 +390,7 @@ page .isFullSucreen {
margin-top: var(--fontSize20); margin-top: var(--fontSize20);
margin-right: var(--fontSize20); margin-right: var(--fontSize20);
color: #347BFF; color: #347BFF;
background-color: #fff;
} }
.btns .confirm { .btns .confirm {
...@@ -456,17 +496,17 @@ page .isFullSucreen { ...@@ -456,17 +496,17 @@ page .isFullSucreen {
margin-right: 0; margin-right: 0;
} }
.btns { // .btns {
position: fixed; // position: fixed;
bottom: 0; // bottom: 0;
width: 100%; // width: 100%;
padding: var(--fontSize20); // padding: var(--fontSize20);
background: #ffffff; // background: #ffffff;
display: flex; // display: flex;
text-align: center; // text-align: center;
font-size: var(--fontSize32); // font-size: var(--fontSize32);
font-weight: 500; // font-weight: 500;
} // }
.btn-default { .btn-default {
box-sizing: border-box; box-sizing: border-box;
...@@ -576,3 +616,96 @@ page .isFullSucreen { ...@@ -576,3 +616,96 @@ page .isFullSucreen {
text-align: center; text-align: center;
padding: 16rpx 0; padding: 16rpx 0;
} }
.templateNameBox {
margin-top: 28rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 40rpx;
margin-bottom: 20rpx;
box-sizing: border-box;
.title {
color: #383838;
font-size: 28rpx;
font-weight: 600;
}
.template {
color: #347bff;
font-size: 28rpx;
margin-left: 16rpx;
}
}
// 自定义 checkbox 组样式(隐藏原生勾选,使用 gl-image 图标)
.checkbox-group {
display: flex;
gap: var(--fontSize24);
}
.checkbox-item {
display: inline-flex;
align-items: center;
gap: var(--fontSize12);
}
.checkbox-item .icon {
width: var(--fontSize36);
height: var(--fontSize36);
}
.hidden-checkbox {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.checkbox-item.disabled {
opacity: 0.6;
}
.presonBox {
color: #292d33;
font-size: 28rpx;
padding: 28rpx 32rpx 12rpx;
font-weight: 600;
}
.totalBox {
// width: 100%;
// height: 126rpx;
box-sizing: border-box;
margin-top: 16rpx;
display: flex;
padding: 24rpx 32rpx;
border-radius: 16rpx;
background: #ffffff;
flex-wrap: wrap;
.con {
// flex: 1;
width: 50%;
display: flex;
flex-direction: column;
// margin-bottom: 16rpx;
.label {
color: #757b85;
font-size: 24rpx;
margin-bottom: 8rpx;
}
.num {
font-family: 'numberBold';
font-size: 28rpx;
}
}
// 第3个开始
.con:nth-child(n+3) {
margin-top: 16rpx;
}
}
\ No newline at end of file \ No newline at end of file
...@@ -106,7 +106,7 @@ Page({ ...@@ -106,7 +106,7 @@ Page({
let { let {
attr attr
} = e.detail } = e.detail
let { tmlpFormData, tmlpObj, trainTmlpSuffix } = this.data let { tmlpFormData, tmlpObj, trainTmlpSuffix, tmlpCode } = this.data
tmlpObj['organizeTraining' + trainTmlpSuffix]?.forEach(item => { tmlpObj['organizeTraining' + trainTmlpSuffix]?.forEach(item => {
if (!item.name.includes('isTrainingOrganized')) { if (!item.name.includes('isTrainingOrganized')) {
item.isHide = tmlpFormData[attr] == '否' ? true : false item.isHide = tmlpFormData[attr] == '否' ? true : false
...@@ -120,6 +120,24 @@ Page({ ...@@ -120,6 +120,24 @@ Page({
} }
}) })
} }
const pAttrList = Object.keys(allRuleObj)
console.log(tmlpCode, 'pAttrList---')
if (tmlpCode == 'uuid-temp-001') {
pAttrList.forEach(pAttrItem => {
tmlpObj[pAttrItem].forEach(item => {
if (!item.name.includes('dayOffStatus')) {
item.required = tmlpFormData['dayOffStatus'] == '是' ? false : true
}
})
let keyList = Object.keys(allRuleObj[pAttrItem])
keyList.forEach(item => {
if (item != 'dayOffStatus' && allRuleObj[pAttrItem][item]) {
allRuleObj[pAttrItem][item][0].required = tmlpFormData['dayOffStatus'] == '是' ? false : true
}
})
})
}
console.log(tmlpObj, attr)
this.setData({ this.setData({
tmlpObj tmlpObj
}) })
...@@ -732,6 +750,11 @@ Page({ ...@@ -732,6 +750,11 @@ Page({
formJson: this.dealParams() formJson: this.dealParams()
} }
console.log(JSON.parse(params.formJson), 'params-----') console.log(JSON.parse(params.formJson), 'params-----')
// 删----要给新字段加校验++++
// this.setData({
// isConfirm: false
// })
// wx.$util.showToast('提交成功')
this.secondConfirm(params) this.secondConfirm(params)
}, },
......
// components/TabBar/TabBar.js
Component({
/**
* 组件的属性列表
*/
properties: {
tabList: {
type: Array,
observer: function (list) {
// 规范化 tab 列表为对象数组,支持字符串与多种字段名
this.normalizeTabList(list)
}
},
activeIndex: {
type: Number,
observer: function (n) {
console.log(this.data.tabIndex, 'activeIndex', n)
console.log(this.data.tabIndex != n)
if (this.data.tabIndex != n) {
this.setData({
tabIndex: this.data.activeIndex
})
this.setTab(this.data.tabIndex)
}
}
},
scroll: Boolean
},
/**
* 组件的初始数据
*/
data: {
tabIndex: 0,
tabItems: []
},
lifetimes: {
ready() {
// console.log('lifetimes',this.data.tabIndex);
// console.log('lifetimes',this.data.activeIndex);
// 确保首屏渲染有规范化后的 tabItems
this.normalizeTabList(this.data.tabList)
this.setTab(this.data.tabIndex)
let that = this
wx.$eventbus.on('page_show', n => {
!that.data.width && that.setTab(that.data.tabIndex)
})
}
},
/**
* 组件的方法列表
*/
methods: {
normalizeTabList(list = []) {
const tabItems = (list || []).map(item => {
let label = ''
let count
if (typeof item === 'string') {
label = item
} else if (item && typeof item === 'object') {
label =
item.text ??
item.label ??
item.name ??
item.title ??
item.brandName ??
''
if (item.firstBrandId == -1) {
label = item.firstBrandName
}
count = item.count
} else {
label = ''
}
return { label, count, _raw: item }
})
this.setData({ tabItems })
},
change(e) {
let { index } = e.currentTarget.dataset
this.setTab(index)
},
setTab(index = 0) {
let { tabIndex } = this.data
wx.$util.getViewInfo(
`#tab-${tabIndex}`,
old => {
let oldLeft = old.left
let oldWidth = old.width
wx.$util.getViewInfo(
`#tab-${index}`,
res => {
let { left, width } = res
if (tabIndex != index) {
let readyLeft = oldLeft > left ? left : oldLeft
let readyWidth =
oldLeft > left ? oldLeft - left : left - oldLeft
this.setData({
activeStyle: `width: var(--fontSize64);background-color:#347BFF;border-radius:3rpx;left:${readyLeft + readyWidth / 2
}px;transition: all .1s;`
})
}
setTimeout(() => {
this.setData({
activeStyle: `width: var(--fontSize64);left:${left + (width - 32) / 2
}px;background-color:#347BFF;`,
tabIndex: index,
to: `to-${index}`,
width
})
const itemObj =
this.data.tabItems && this.data.tabItems[index]
? this.data.tabItems[index]._raw ??
this.data.tabItems[index]
: undefined
this.triggerEvent('click', { index, item: itemObj })
}, 100)
},
this
)
},
this
)
}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
<block wx:if="{{ scroll }}">
<scroll-view class="scroll" scroll-x enable-flex scroll-with-animation scroll-into-view="{{ to }}">
<block wx:for="{{ tabItems }}" wx:key="index">
<view class="tab-item {{ tabIndex==index?'active':'' }}" bindtap="change" data-index="{{ index }}" id="to-{{ index }}">
<text id="tab-{{ index }}"><text class="tab-item-text">{{item.label}}</text><text wx:if="{{ item.count >= 0 }}" style="font-size: var(--fontSize20);">({{item.count}})</text></text>
</view>
</block>
<!-- <view class="active-doc" style="{{activeStyle}}" /> -->
</scroll-view>
</block>
<block wx:else>
<view
class="tab"
style="grid-template-columns: repeat({{ tabItems.length}}, 1fr);font-size:{{tabItems.length>5?'var(--fontSize24)':'' }} ;"
>
<block wx:for="{{ tabItems }}" wx:key="index">
<!-- style="color:{{tabIndex==index?'#347BFF':''}};" -->
<view class="tab-item {{ tabIndex==index?'active':'' }}" bindtap="change" data-index="{{ index }}">
<text id="tab-{{ index }}"><text class="tab-item-text">{{item.label}}</text><text wx:if="{{ item.count >= 0 }}" style="font-size: var(--fontSize20);">({{item.count}})</text></text>
</view>
</block>
<view class="active-doc" style="{{ activeStyle }}" />
</view>
</block>
\ No newline at end of file \ No newline at end of file
/* components/TabBar/TabBar.wxss */
.tab {
/* background-color: #fff; */
height: var(--fontSize72);
box-sizing: border-box;
display: grid;
align-items: center;
font-size: var(--fontSize28);
color: #347bff;
border-bottom: var(--fontSize1) solid #F2F3F5;
}
.scroll {
/* background-color: #fff; */
height: var(--fontSize104);
box-sizing: border-box;
/* color: #347bff; */
color: #5a5e66;
border-bottom: var(--fontSize1) solid #F2F3F5;
width: 100%;
display: flex;
line-height: var(--fontSize104);
font-size: 0;
}
.active {
/* font-size: var(--fontSize32); */
font-weight: 600;
color: #347BFF;
}
.active-doc {
position: absolute;
bottom: var(--fontSize1);
height: var(--fontSize4);
border-radius: var(--fontSize2) var(--fontSize2) 0 0;
transition: all .25s;
}
.tab .tab-item {
text-align: center;
}
.scroll .tab-item {
width: fit-content;
min-width: var(--fontSize97);
height: 100%;
flex-shrink: 0;
font-size: var(--fontSize28);
text-align: center;
position: relative;
padding: 0 var(--fontSize10);
font-weight: 600;
}
.scroll .active::after {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 64rpx;
height: var(--fontSize4);
background-color: #347BFF;
content: '';
}
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
background: #fff; background: #fff;
.week_box{
.week_box {
height: var(--fontSize60); height: var(--fontSize60);
width: 100%; width: 100%;
display: flex; display: flex;
...@@ -14,14 +15,24 @@ ...@@ -14,14 +15,24 @@
align-items: center; align-items: center;
box-shadow: 0 var(--fontSize4) var(--fontSize8) 0 #cdcdd159; box-shadow: 0 var(--fontSize4) var(--fontSize8) 0 #cdcdd159;
} }
.date_box{
.date_box {
height: var(--fontSize128); height: var(--fontSize128);
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
} }
.left {
margin-left: 10rpx;
}
.right {
margin-right: 20rpx;
}
} }
.weekselect { .weekselect {
height: var(--fontSize80); height: var(--fontSize80);
flex-direction: row; flex-direction: row;
...@@ -41,7 +52,8 @@ ...@@ -41,7 +52,8 @@
font-weight: 400; font-weight: 400;
flex-direction: row; flex-direction: row;
color: #181A1F; color: #181A1F;
width: var(--fontSize180); width: var(--fontSize200);
font-size: 28rpx;
} }
.dateType { .dateType {
...@@ -54,6 +66,7 @@ ...@@ -54,6 +66,7 @@
border-radius: 50%; border-radius: 50%;
width: var(--fontSize64); width: var(--fontSize64);
height: var(--fontSize64); height: var(--fontSize64);
.empty { .empty {
box-sizing: border-box; box-sizing: border-box;
position: absolute; position: absolute;
...@@ -70,7 +83,8 @@ ...@@ -70,7 +83,8 @@
color: #fff; color: #fff;
} }
} }
.dateType.dateType_disabled{
.dateType.dateType_disabled {
color: #BEC1C7; color: #BEC1C7;
} }
...@@ -81,7 +95,7 @@ ...@@ -81,7 +95,7 @@
.select-column { .select-column {
.dateType{ .dateType {
background: #347BFF; background: #347BFF;
color: #fff; color: #fff;
} }
...@@ -109,9 +123,12 @@ ...@@ -109,9 +123,12 @@
font-weight: 500; font-weight: 500;
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #181A1F; color: #181A1F;
// font-size: var(--fontSize35); width: 280rpx;
// font-weight: bold; height: 64rpx;
// margin-right: auto; text-align: center;
line-height: 64rpx;
border-radius: 20px;
background: #f2f3f5;
} }
.line { .line {
...@@ -121,7 +138,7 @@ ...@@ -121,7 +138,7 @@
} }
.lastweek { .lastweek {
width: var(--fontSize180); width: var(--fontSize200);
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-weight: 400; font-weight: 400;
font-size: var(--fontSize28); font-size: var(--fontSize28);
...@@ -149,6 +166,12 @@ ...@@ -149,6 +166,12 @@
/* iOS 4.1- */ /* iOS 4.1- */
} }
.icon {
width: 36rpx;
height: 36rpx;
}
.iconfont { .iconfont {
font-family: "iconfont" !important; font-family: "iconfont" !important;
font-size: 16px; font-size: 16px;
......
...@@ -3,14 +3,16 @@ ...@@ -3,14 +3,16 @@
<view class="line"></view> <view class="line"></view>
<view class="row weekselect"> <view class="row weekselect">
<view class="row lastweek" bindtap="lastWeek"> <view class="row lastweek" bindtap="lastWeek">
<text class="iconfont icon-sanjiaoleft" style="padding:var(--fontSize15);color: #bec1c7;"></text> <!-- <text class="iconfont icon-sanjiaoleft" style="padding:var(--fontSize15);color: #bec1c7;"></text> -->
<gl-image class="icon left" src="{{ '/miniProgram/arrow-left.png' }}" webp></gl-image>
<view style="">上一周</view> <view style="">上一周</view>
</view> </view>
<view class="timeType">{{timeBean.yearMonth}}</view> <view class="timeType">{{timeBean.yearMonth}}</view>
<view class="row nextWeek" bindtap="nextWeek"> <view class="row nextWeek" bindtap="nextWeek">
<block wx:if="{{ !timeBean.isInCurrentWeek }}"> <block wx:if="{{ !timeBean.isInCurrentWeek }}">
<view style=" ">下一周</view> <view style=" ">下一周</view>
<text class="iconfont icon-sanjiaoright" style="padding:var(--fontSize15);color: #bec1c7;"></text> <gl-image class="icon right" src="{{ '/miniProgram/arrow-right.png' }}" webp></gl-image>
<!-- <text class="iconfont icon-sanjiaoright" style="padding:var(--fontSize15);color: #bec1c7;"></text> -->
</block> </block>
</view> </view>
</view> </view>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
"weekCalendar": "./components/weekCalendar/weekCalendar", "weekCalendar": "./components/weekCalendar/weekCalendar",
"gl-cell-staff": "./components/GlCell/GlCell", "gl-cell-staff": "./components/GlCell/GlCell",
"store-picker": "./components/storePicker/storePicker", "store-picker": "./components/storePicker/storePicker",
"select-item-popup": "./components/selectItemPopup/selectItemPopup" "select-item-popup": "./components/selectItemPopup/selectItemPopup",
"tab-bar": "./components/TabBar/TabBar"
} }
} }
...@@ -42,12 +42,17 @@ page { ...@@ -42,12 +42,17 @@ page {
margin-left: var(--fontSize12); margin-left: var(--fontSize12);
// transform: translateY(-52%); // transform: translateY(-52%);
transition: all 0.5s; transition: all 0.5s;
}
.staffBox {
// margin-left: auto;
margin-left: 16rpx;
}
// .img { .staffName {
// // width: 36rpx;
// // height: 36rpx; color: #347bff;
// // margin-bottom: 25rpx; font-size: 28rpx;
// }
} }
.move { .move {
...@@ -60,7 +65,7 @@ page { ...@@ -60,7 +65,7 @@ page {
.main { .main {
// padding: 0 var(--fontSize20) var(--fontSize256); // padding: 0 var(--fontSize20) var(--fontSize256);
padding: 0 20rpx 300rpx; padding: 0 20rpx 52rpx;
.mainheader { .mainheader {
margin: var(--fontSize20) var(--fontSize10) 0; margin: var(--fontSize20) var(--fontSize10) 0;
...@@ -101,21 +106,14 @@ page .isFullSucreen { ...@@ -101,21 +106,14 @@ page .isFullSucreen {
.box { .box {
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10); // box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10);
border-radius: var(--fontSize16); border-radius: var(--fontSize16);
overflow: hidden; overflow: hidden;
margin-top: var(--fontSize20); // margin-top: var(--fontSize20);
height: calc(100% - var(--fontSize100)); height: calc(100% - var(--fontSize100));
// padding: var(--fontSize24) 0; // padding: var(--fontSize24) 0;
.presonBox {
height: 66rpx;
background: #e7f3ff;
text-align: center;
line-height: 66rpx;
color: #347bff;
font-size: 24rpx;
}
.carBandTitle { .carBandTitle {
padding: 0 var(--fontSize40) var(--fontSize24); padding: 0 var(--fontSize40) var(--fontSize24);
...@@ -130,10 +128,13 @@ page .isFullSucreen { ...@@ -130,10 +128,13 @@ page .isFullSucreen {
// padding: 0 var(--fontSize40); // padding: 0 var(--fontSize40);
color: #292D33; color: #292D33;
font-size: var(--fontSize28); font-size: var(--fontSize28);
border-bottom: 1rpx solid #dee0e3; // border-bottom: 1rpx solid #dee0e3;
border-bottom: 1rpx solid #eff0f2;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding: 24rpx 40rpx; padding: 0rpx 40rpx;
height: 88rpx;
box-sizing: border-box;
.left { .left {
display: flex; display: flex;
...@@ -149,8 +150,9 @@ page .isFullSucreen { ...@@ -149,8 +150,9 @@ page .isFullSucreen {
.label { .label {
margin-bottom: var(--fontSize16); // margin-bottom: var(--fontSize16);
// display: flex; display: flex;
align-items: center;
color: #292d33; color: #292d33;
font-size: 28rpx; font-size: 28rpx;
...@@ -159,8 +161,12 @@ page .isFullSucreen { ...@@ -159,8 +161,12 @@ page .isFullSucreen {
} }
.required_text { .required_text {
display: inline-block;
color: #F24724; color: #F24724;
margin-right: var(--fontSize8); margin-left: var(--fontSize8);
// 与父元素行高一致,避免上移或下移
line-height: 20rpx;
// 移除 vertical-align,交由 flex 居中对齐
} }
} }
...@@ -169,7 +175,7 @@ page .isFullSucreen { ...@@ -169,7 +175,7 @@ page .isFullSucreen {
} }
.content-input { .content-input {
height: var(--fontSize91); height: var(--fontSize88);
text-align: right; text-align: right;
font-size: var(--fontSize28); font-size: var(--fontSize28);
flex: 1; flex: 1;
...@@ -208,7 +214,6 @@ page .isFullSucreen { ...@@ -208,7 +214,6 @@ page .isFullSucreen {
line-height: var(--fontSize80); line-height: var(--fontSize80);
text-align: right; text-align: right;
} }
.placeholder { .placeholder {
...@@ -264,17 +269,22 @@ page .isFullSucreen { ...@@ -264,17 +269,22 @@ page .isFullSucreen {
font-weight: 400; font-weight: 400;
margin-right: 10rpx; margin-right: 10rpx;
} }
margin-bottom: var(--fontSize20);
} }
.remark_box { .remark_box {
padding: var(--fontSize20); // padding: var(--fontSize20);
background-color: #fff; background-color: #fff;
padding: 24rpx 32rpx 24rpx;
border-radius: 16rpx;
.label { .label {
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #292D33; color: #292D33;
margin: var(--fontSize20) 0 var(--fontSize24) var(--fontSize20); // margin: var(--fontSize20) 0 var(--fontSize24) var(--fontSize20);
margin-bottom: 20rpx
} }
.textArea_box { .textArea_box {
...@@ -283,9 +293,12 @@ page .isFullSucreen { ...@@ -283,9 +293,12 @@ page .isFullSucreen {
border: var(--fontSize2) solid #EFF0F2; border: var(--fontSize2) solid #EFF0F2;
border-radius: var(--fontSize16); border-radius: var(--fontSize16);
padding: var(--fontSize24); padding: var(--fontSize24);
background: #f4f5f7;
.textarea { .textarea {
height: var(--fontSize130); height: var(--fontSize100);
// width: 335rpx;
width: 100%;
} }
.currentWordNumber { .currentWordNumber {
...@@ -300,14 +313,13 @@ page .isFullSucreen { ...@@ -300,14 +313,13 @@ page .isFullSucreen {
} }
.btns { .btns {
position: fixed;
left: 0;
width: 100%; width: 100%;
bottom: 0; bottom: 0;
min-height: var(--fontSize100); min-height: var(--fontSize100);
background: #FFFFFF; // background: #FFFFFF;
box-sizing: border-box; box-sizing: border-box;
/* padding: var(--fontSize10) var(--fontSize32); */ /* padding: var(--fontSize10) var(--fontSize32); */
margin-bottom: 100rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
...@@ -318,7 +330,8 @@ page .isFullSucreen { ...@@ -318,7 +330,8 @@ page .isFullSucreen {
} }
.btns-con { .btns-con {
width: 100%; // width: 100%;
width: 622rpx;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
flex-flow: column; flex-flow: column;
...@@ -351,6 +364,7 @@ page .isFullSucreen { ...@@ -351,6 +364,7 @@ page .isFullSucreen {
margin-top: var(--fontSize20); margin-top: var(--fontSize20);
margin-right: var(--fontSize20); margin-right: var(--fontSize20);
color: #347BFF; color: #347BFF;
background-color: #fff;
} }
.btns .confirm { .btns .confirm {
...@@ -374,6 +388,7 @@ page .isFullSucreen { ...@@ -374,6 +388,7 @@ page .isFullSucreen {
font-size: var(--fontSize24); font-size: var(--fontSize24);
} }
.tips .contentText { .tips .contentText {
margin-left: var(--fontSize20); margin-left: var(--fontSize20);
margin-right: auto; margin-right: auto;
...@@ -456,17 +471,17 @@ page .isFullSucreen { ...@@ -456,17 +471,17 @@ page .isFullSucreen {
margin-right: 0; margin-right: 0;
} }
.btns { // .btns {
position: fixed; // position: fixed;
bottom: 0; // bottom: 0;
width: 100%; // width: 100%;
padding: var(--fontSize20); // padding: var(--fontSize20);
background: #ffffff; // background: #ffffff;
display: flex; // display: flex;
text-align: center; // text-align: center;
font-size: var(--fontSize32); // font-size: var(--fontSize32);
font-weight: 500; // font-weight: 500;
} // }
.btn-default { .btn-default {
box-sizing: border-box; box-sizing: border-box;
...@@ -576,3 +591,88 @@ page .isFullSucreen { ...@@ -576,3 +591,88 @@ page .isFullSucreen {
text-align: center; text-align: center;
padding: 16rpx 0; padding: 16rpx 0;
} }
.templateNameBox {
margin-top: 28rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 40rpx;
margin-bottom: 20rpx;
box-sizing: border-box;
.title {
color: #383838;
font-size: 28rpx;
font-weight: 600;
}
.template {
color: #347bff;
font-size: 28rpx;
margin-left: auto;
}
}
// 自定义 checkbox 组样式(隐藏原生勾选,使用 gl-image 图标)
.checkbox-group {
display: flex;
gap: var(--fontSize24);
}
.checkbox-item {
display: inline-flex;
align-items: center;
gap: var(--fontSize12);
}
.checkbox-item .icon {
width: var(--fontSize36);
height: var(--fontSize36);
}
.hidden-checkbox {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.checkbox-item.disabled {
opacity: 0.6;
}
.presonBox {
color: #292d33;
font-size: 28rpx;
padding: 28rpx 32rpx 12rpx;
font-weight: 600;
}
.totalBox {
// width: 100%;
// height: 126rpx;
margin-top: 16rpx;
display: flex;
padding: 24rpx 32rpx;
border-radius: 16rpx;
background: #ffffff;
.con {
flex: 1;
display: flex;
flex-direction: column;
.label {
color: #757b85;
font-size: 24rpx;
margin-bottom: 8rpx;
}
.num {
font-family: 'numberBold';
font-size: 28rpx;
}
}
}
\ No newline at end of file \ No newline at end of file
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
<view style="margin-top:{{ navBarHeight }}px"> <view style="margin-top:{{ navBarHeight }}px">
<weekCalendar timeBean="{{ timeBean }}" bind:lastWeek="lastWeek" bind:nextWeek="nextWeek" bind:dayClick="dayClick"></weekCalendar> <weekCalendar timeBean="{{ timeBean }}" bind:lastWeek="lastWeek" bind:nextWeek="nextWeek" bind:dayClick="dayClick"></weekCalendar>
</view> </view>
<view class="main {{ isFullSucreen?'isFullSucreen':'' }}"> <!-- {{ isFullSucreen?'isFullSucreen':'' }} -->
<view class="main">
<!-- <view class="mainheader"> <!-- <view class="mainheader">
<view class="title">日报切换</view> <view class="title">日报切换</view>
<view class="navigation-title templateNameTitle" bindtap="showStaffPicker"> <view class="navigation-title templateNameTitle" bindtap="showStaffPicker">
...@@ -28,10 +29,50 @@ ...@@ -28,10 +29,50 @@
</view> </view>
</view> </view>
</view> --> </view> -->
<view class="templateNameBox">
<view class="title">驻店日报</view>
<view class="navigation-title staffBox" wx:if="{{ orderObj.staffName }}" bindtap="showStaffPicker">
<view class="navigation-title-text staffName text-hide">{{orderObj.staffName}}</view>
<view class="arrow" wx:if="{{ role == 'super' }}">
<image src="/images/arrow_bottom.png" />
</view>
</view>
<view class="template">轻改</view>
</view>
<view class="box"> <view class="box">
<view class="input-item"> <view class="input-item">
<view class="left"> <view class="left">
<view class="label {{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) ? 'disabled' : '' }}"> <view class="label {{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) ? 'disabled' : '' }}">
当日调休
<text class="required_text"> *</text>
</view>
</view>
<checkbox-group bindchange="handleOnBreakCheckboxChange" class="checkbox-group">
<label
wx:for="{{ pickerdateList }}"
wx:key="id"
class="checkbox-item {{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) ? 'disabled' : '' }}"
>
<checkbox
value="{{ item.id }}"
checked="{{ orderObj.onBreak === item.id }}"
disabled="{{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) }}"
class="hidden-checkbox"
/>
<gl-image class="icon" src="{{ orderObj.onBreak === item.id ? '/miniProgram/cheked.png' : '/miniProgram/cheking.png' }}" webp></gl-image>
<view>{{item.name}}</view>
</label>
</checkbox-group>
<!-- <picker disabled="{{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) }}" bindchange="handlePickerChange" bindcancel="showShortcutPicker" value="{{ orderObj.pickerValue }}" range-key="name" range="{{ pickerdateList }}">
<view class="picker">
<image class="arrow" src="/components/images/arrow-x.png" />
<view class="text-hide">{{pickerdateList[orderObj.pickerValue]['name']}}</view>
</view>
</picker> -->
</view>
<view class="input-item">
<view class="left">
<view class="label {{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) ? 'disabled' : '' }}">
今日驻店人数(按店) 今日驻店人数(按店)
<text class="required_text" wx:if="{{ orderObj.onBreak == 'N' }}"> *</text> <text class="required_text" wx:if="{{ orderObj.onBreak == 'N' }}"> *</text>
</view> </view>
...@@ -49,64 +90,28 @@ ...@@ -49,64 +90,28 @@
type="{{ 'number' }}" type="{{ 'number' }}"
/> />
</view> </view>
<view class="input-item"> <!-- <view class="input-item">
<view class="left">
<view class="label {{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) ? 'disabled' : '' }}">
当日调休
<text class="required_text"> *</text>
</view>
</view>
<picker
disabled="{{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) }}"
bindchange="handlePickerChange"
bindcancel="showShortcutPicker"
value="{{ orderObj.pickerValue }}"
range-key="name"
range="{{ pickerdateList }}"
>
<view class="picker">
<image class="arrow" src="/components/images/arrow-x.png" />
<view class="text-hide">{{pickerdateList[orderObj.pickerValue]['name']}}</view>
</view>
</picker>
</view>
<view class="input-item">
<view class="left"> <view class="left">
<view class="label disabled"> <view class="label disabled">
今日成交金额 今日成交金额
<text class="required_text"> *</text> <text class="required_text"> *</text>
</view> </view>
</view> </view>
<input <input value="{{ orderObj.totalOrderMoney }}" placeholder-class="placeholder-class" placeholder-style="{{ 'color: #D0D2D6' }};" class="content-input disabled" disabled="{{ true }}" type="{{ 'number' }}" />
value="{{ orderObj.totalOrderMoney }}" </view> -->
placeholder-class="placeholder-class"
placeholder-style="{{ 'color: #D0D2D6' }};"
class="content-input disabled"
disabled="{{ true }}"
type="{{ 'number' }}"
/>
</view>
<!-- 备注 --> <!-- 备注 -->
<view class="remark_box"> <!-- <view class="remark_box">
<view class="label">备注</view> <view class="label">备注</view>
<view <view class="textArea_box {{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) || role != 'staff' ?'disabled':'' }}">
class="textArea_box {{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) || role != 'staff' ?'disabled':'' }}" <textarea value="{{ orderObj.remark }}" maxlength="500" placeholder="请输入" class="textarea" bindinput="remarkInput" disabled="{{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) || role != 'staff' }}" />
>
<textarea
value="{{ orderObj.remark }}"
maxlength="500"
placeholder="请输入"
class="textarea"
bindinput="remarkInput"
disabled="{{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) || role != 'staff' }}"
/>
<view class="currentWordNumber">{{currentWordNumber || 0}} / 500</view> <view class="currentWordNumber">{{currentWordNumber || 0}} / 500</view>
</view> </view>
</view> -->
</view> </view>
</view> <tab-bar tabList="{{ carBandList }}" bindclick="tabClick" activeIndex="{{ tabIndex }}" scroll="{{ true }}" />
<!-- 品牌 --> <!-- 品牌 -->
<block wx:for="{{ carBandList }}" wx:key="arr_index" wx:for-index="arr_index" wx:for-item="item"> <block wx:for="{{ carBandList }}" wx:key="arr_index" wx:for-index="arr_index" wx:for-item="item">
<view class="mainheader"> <!-- <view class="mainheader">
<view class="title" wx:if="{{ item.brandType == 0 }}">问界</view> <view class="title" wx:if="{{ item.brandType == 0 }}">问界</view>
<view class="title" wx:elif="{{ item.brandType == 1 }}">鸿蒙</view> <view class="title" wx:elif="{{ item.brandType == 1 }}">鸿蒙</view>
<view class="title" wx:else>{{ item.firstBrandName}}</view> <view class="title" wx:else>{{ item.firstBrandName}}</view>
...@@ -116,7 +121,9 @@ ...@@ -116,7 +121,9 @@
<image src="/images/arrow_bottom.png" /> <image src="/images/arrow_bottom.png" />
</view> </view>
</view> </view>
</view> </view> -->
<!-- 切换到对应的tab显示对应的数据 -->
<block wx:if="{{ arr_index ==tabIndex }}">
<view class="box" wx:if="{{ item.firstBrandId != -1 }}"> <view class="box" wx:if="{{ item.firstBrandId != -1 }}">
<block <block
wx:for="{{ filter.filterTemplateList(hwOhterObjArray,orderObj.templateType) }}" wx:for="{{ filter.filterTemplateList(hwOhterObjArray,orderObj.templateType) }}"
...@@ -124,8 +131,8 @@ ...@@ -124,8 +131,8 @@
wx:for-index="hw_index" wx:for-index="hw_index"
wx:for-item="hw_item" wx:for-item="hw_item"
> >
<view wx:if="{{ hw_item.name }}" class="presonBox">个人相关</view> <!-- <view wx:if="{{ hw_item.name }}" class="presonBox">个人相关</view> wx:else -->
<view wx:else class="input-item"> <view class="input-item">
<view class="left"> <view class="left">
<view class="label {{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) ? 'disabled' : '' }}"> <view class="label {{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) ? 'disabled' : '' }}">
{{hw_item.label}} {{hw_item.label}}
...@@ -156,8 +163,8 @@ ...@@ -156,8 +163,8 @@
wx:for-index="otherIndex" wx:for-index="otherIndex"
wx:for-item="hw_item" wx:for-item="hw_item"
> >
<view wx:if="{{ hw_item.name }}" class="presonBox">个人相关</view> <!-- <view wx:if="{{ hw_item.name }}" class="presonBox">个人相关</view> wx:else -->
<view wx:else class="input-item"> <view class="input-item">
<view class="left"> <view class="left">
<view class="label {{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) ? 'disabled' : '' }}"> <view class="label {{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) ? 'disabled' : '' }}">
{{hw_item.label}} {{hw_item.label}}
...@@ -181,6 +188,33 @@ ...@@ -181,6 +188,33 @@
</view> </view>
</block> </block>
</view> </view>
<view class="presonBox">个人日报(不分品牌)</view>
<!-- 备注 -->
<view class="remark_box">
<view class="label">备注</view>
<view class="textArea_box {{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) ?'disabled':'' }}">
<textarea
value="{{ orderObj.remark }}"
maxlength="500"
placeholder="请输入"
class="textarea"
bindinput="remarkInput"
disabled="{{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) }}"
/>
<!-- <view class="currentWordNumber">{{currentWordNumber || 0}} / 500</view> -->
</view>
</view>
<view class="totalBox">
<view class="con left">
<view class="label">今日成交数</view>
<view class="num">{{item['totalOrderCount']}}</view>
</view>
<view class="con right">
<view class="label">个人成交总金额</view>
<view class="num">¥{{ orderObj.totalOrderMoney }}</view>
</view>
</view>
</block>
</block> </block>
</view> </view>
<view <view
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!