Commit 1689d016 by 张立顺

feat 驻店日报

1 parent 557ccd21
...@@ -534,12 +534,14 @@ Page({ ...@@ -534,12 +534,14 @@ Page({
}, },
defaultChoose(index) { defaultChoose(index) {
let { frontGearArr, sideRearGearArr, skylightArr } = this.data let { frontGearArr, sideRearGearArr, skylightArr,sideBeforeRearGearArr,sideAfterRearGearArr } = this.data
// 仅有一个商品直接选中 // 仅有一个商品直接选中
let arr = [].concat( let arr = [].concat(
sideRearGearArr.length == 1 ? sideRearGearArr : [], sideRearGearArr.length == 1 ? sideRearGearArr : [],
frontGearArr.length == 1 ? frontGearArr : [], frontGearArr.length == 1 ? frontGearArr : [],
skylightArr.length == 1 ? skylightArr : [] skylightArr.length == 1 ? skylightArr : [],
sideBeforeRearGearArr.length == 1 ? sideBeforeRearGearArr : [],
sideAfterRearGearArr.length == 1 ? sideAfterRearGearArr : [],
) )
arr.forEach(val => { arr.forEach(val => {
val.count = 1 val.count = 1
......
// 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: [
...@@ -133,10 +133,9 @@ Page({ ...@@ -133,10 +133,9 @@ Page({
min: 0, min: 0,
max: 100, max: 100,
inputPlaceholder: '' inputPlaceholder: ''
}, }
{ ],
name: 'person' hwObjArrayLabelList: [
},
{ {
label: '售前整车延保成交数(问界)', label: '售前整车延保成交数(问界)',
key: 'extendedWarrantyCount', key: 'extendedWarrantyCount',
...@@ -218,15 +217,6 @@ Page({ ...@@ -218,15 +217,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: [
...@@ -265,10 +255,12 @@ Page({ ...@@ -265,10 +255,12 @@ Page({
min: 0, min: 0,
max: 100, max: 100,
inputPlaceholder: '' inputPlaceholder: ''
}, }
{ ],
name: 'person' hwOhterObjArrayLabelList: [
}, // {
// name: 'person'
// },
{ {
label: '售前整车延保成交数(鸿蒙)', label: '售前整车延保成交数(鸿蒙)',
key: 'extendedWarrantyCount', key: 'extendedWarrantyCount',
...@@ -290,15 +282,6 @@ Page({ ...@@ -290,15 +282,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: [
...@@ -337,10 +320,12 @@ Page({ ...@@ -337,10 +320,12 @@ Page({
min: 0, min: 0,
max: 100, max: 100,
inputPlaceholder: '' inputPlaceholder: ''
}, }
{ // {
name: 'person' // name: 'person'
}, // },
],
otherObjArrayLableList: [
{ {
label: '北汽无忧成交数', label: '北汽无忧成交数',
key: 'bqWorryFreeCount', key: 'bqWorryFreeCount',
...@@ -362,17 +347,44 @@ Page({ ...@@ -362,17 +347,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 +411,7 @@ Page({ ...@@ -399,7 +411,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 +421,7 @@ Page({ ...@@ -409,7 +421,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 +552,7 @@ Page({ ...@@ -540,7 +552,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)
...@@ -634,6 +646,7 @@ Page({ ...@@ -634,6 +646,7 @@ Page({
otherObjArray, otherObjArray,
hwOhterObjArray hwOhterObjArray
}) })
wx.$util.showToast('必填不能为空')
return false //必填校验没过 return false //必填校验没过
} }
orderObj.isAdmin = role == 'super' ? true : false orderObj.isAdmin = role == 'super' ? true : false
...@@ -672,7 +685,7 @@ Page({ ...@@ -672,7 +685,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,10 +794,8 @@ Page({ ...@@ -781,10 +794,8 @@ Page({
0: '问界', 0: '问界',
1: '鸿蒙' 1: '鸿蒙'
} }
context += `【${ context += `【${bandType[el.brandType] || item.firstBrandName
bandType[el.brandType] || item.firstBrandName }】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${item.differenceValue
}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${
item.differenceValue
},请相关驻店销售对齐核销再次提交\t\n` },请相关驻店销售对齐核销再次提交\t\n`
el.deliveryCountinputError = true el.deliveryCountinputError = true
el.equityToShopCountinputError = true el.equityToShopCountinputError = true
...@@ -1182,7 +1193,7 @@ Page({ ...@@ -1182,7 +1193,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 +1283,7 @@ Page({ ...@@ -1272,6 +1283,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 +1406,7 @@ Page({ ...@@ -1394,7 +1406,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 +1615,7 @@ Page({ ...@@ -1603,7 +1615,7 @@ Page({
} }
// } // }
}) })
.catch(err => {}) .catch(err => { })
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
...@@ -1725,5 +1737,5 @@ Page({ ...@@ -1725,5 +1737,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,7 +60,7 @@ page { ...@@ -60,7 +60,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;
...@@ -92,11 +92,11 @@ page { ...@@ -92,11 +92,11 @@ page {
} }
page .isFullSucreen { page .isFullSucreen {
padding-bottom: 160px !important; padding-bottom: 160rpx !important;
} }
.isFullSucreen-btn { .isFullSucreen-btn {
padding-bottom: 34px !important; padding-bottom: 150rpx !important;
} }
.box { .box {
...@@ -130,10 +130,13 @@ page .isFullSucreen { ...@@ -130,10 +130,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 +152,9 @@ page .isFullSucreen { ...@@ -149,8 +152,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 +163,12 @@ page .isFullSucreen { ...@@ -159,8 +163,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 +177,7 @@ page .isFullSucreen { ...@@ -169,7 +177,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 +216,6 @@ page .isFullSucreen { ...@@ -208,7 +216,6 @@ page .isFullSucreen {
line-height: var(--fontSize80); line-height: var(--fontSize80);
text-align: right; text-align: right;
} }
.placeholder { .placeholder {
...@@ -255,6 +262,11 @@ page .isFullSucreen { ...@@ -255,6 +262,11 @@ page .isFullSucreen {
} }
} }
.templatePicker {
// height: 90rpx;
// width: 160rpx;
}
.templateNameTitle { .templateNameTitle {
margin-right: 20rpx; margin-right: 20rpx;
...@@ -268,13 +280,15 @@ page .isFullSucreen { ...@@ -268,13 +280,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 {
...@@ -286,6 +300,7 @@ page .isFullSucreen { ...@@ -286,6 +300,7 @@ page .isFullSucreen {
.textarea { .textarea {
height: var(--fontSize130); height: var(--fontSize130);
width: 335rpx;
} }
.currentWordNumber { .currentWordNumber {
...@@ -299,15 +314,25 @@ page .isFullSucreen { ...@@ -299,15 +314,25 @@ page .isFullSucreen {
} }
} }
.staffBox {
margin-left: auto;
margin-right: 10rpx;
}
.staffName {
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 +343,8 @@ page .isFullSucreen { ...@@ -318,7 +343,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 +377,7 @@ page .isFullSucreen { ...@@ -351,6 +377,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 +483,17 @@ page .isFullSucreen { ...@@ -456,17 +483,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 +603,96 @@ page .isFullSucreen { ...@@ -576,3 +603,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
// 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>
......
...@@ -28,15 +28,18 @@ Page({ ...@@ -28,15 +28,18 @@ Page({
//apply-shared页面可以影响组件 //apply-shared页面可以影响组件
styleIsolation: 'apply-shared' styleIsolation: 'apply-shared'
}, },
data: { data: {
tabList: ['全部', '待跟进', '已升级', '战败'],
tabIndex: 0,
pickerdateList: [ pickerdateList: [
{ {
id: 'N', id: 'N',
name: '否' name: '在岗'
}, },
{ {
id: 'Y', id: 'Y',
name: '是' name: '调休'
} }
], ],
pickerTemplateList: [ pickerTemplateList: [
...@@ -149,62 +152,6 @@ Page({ ...@@ -149,62 +152,6 @@ Page({
disabled: true, disabled: true,
inputPlaceholder: '自动填入系统数据' inputPlaceholder: '自动填入系统数据'
} }
// {
// label: '售后整车延保成交数(问界)',
// key: 'afterSaleExtendedWarrantyCount',
// type: 'number',
// required: false,
// min: 0,
// max: 100,
// templateValue: 3,
// disabled: true,
// inputPlaceholder: '自动填入系统数据'
// },
// {
// label: '轮胎险成交数',
// key: 'tireWarrantyCount',
// type: 'number',
// required: false,
// min: 0,
// max: 100,
// placeholder: '',
// disabled: true,
// templateValue: 3,
// inputPlaceholder: '自动填入系统数据'
// },
// {
// label: '安心包MAX成交数',
// key: 'axPackageCount',
// type: 'number',
// required: false,
// min: 0,
// max: 100,
// placeholder: '',
// disabled: true,
// templateValue: 3,
// inputPlaceholder: '自动填入系统数据'
// },
// {
// label: '电池延保成交数',
// key: 'batteryExtendedWarrantyCount',
// type: 'number',
// required: false,
// min: 0,
// max: 100,
// placeholder: '',
// templateValue: 3,
// disabled: true,
// inputPlaceholder: '自动填入系统数据'
// },
// {
// label: '未触客返店人数',
// key: 'notDeliveryReturnCount',
// type: 'number',
// required: false,
// min: 0,
// max: 100,
// inputPlaceholder: ''
// }
], ],
hwOhterObjArray: [ hwOhterObjArray: [
{ {
...@@ -243,34 +190,12 @@ Page({ ...@@ -243,34 +190,12 @@ Page({
max: 100, max: 100,
inputPlaceholder: '' inputPlaceholder: ''
}, },
{
name: 'person'
},
{
label: '今日成交数',
key: 'totalOrderCount',
type: 'number',
required: false,
min: 0,
max: 100,
templateValue: 3,
disabled: true,
inputPlaceholder: '自动填入系统数据'
}
// { // {
// label: '售前整车延保成交数(鸿蒙)', // name: 'person'
// key: 'extendedWarrantyCount',
// type: 'number',
// required: false,
// min: 0,
// max: 100,
// templateValue: 3,
// disabled: true,
// inputPlaceholder: '自动填入系统数据'
// }, // },
// { // {
// label: '售后整车延保成交数(鸿蒙)', // label: '今日成交数',
// key: 'afterSaleExtendedWarrantyCount', // key: 'totalOrderCount',
// type: 'number', // type: 'number',
// required: false, // required: false,
// min: 0, // min: 0,
...@@ -278,15 +203,6 @@ Page({ ...@@ -278,15 +203,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: [
...@@ -299,15 +215,6 @@ Page({ ...@@ -299,15 +215,6 @@ Page({
max: 100, max: 100,
inputPlaceholder: '' inputPlaceholder: ''
}, },
// {
// label: '店端总未触客数',
// key: 'notDeliveryCount',
// type: 'number',
// required: true,
// min: 0,
// max: 100,
// inputPlaceholder: ''
// },
{ {
label: '实际售前触客数', label: '实际售前触客数',
key: 'equityToShopCount', key: 'equityToShopCount',
...@@ -352,23 +259,58 @@ Page({ ...@@ -352,23 +259,58 @@ Page({
min: 0, min: 0,
max: 3000, max: 3000,
inputPlaceholder: '' inputPlaceholder: ''
},
{
name: 'person'
},
{
label: '今日成交数',
key: 'totalOrderCount',
type: 'number',
required: false,
min: 0,
max: 100,
templateValue: 3,
disabled: true,
inputPlaceholder: '自动填入系统数据'
} }
// {
// name: 'person'
// },
// {
// label: '今日成交数',
// key: 'totalOrderCount',
// type: 'number',
// required: false,
// min: 0,
// max: 100,
// templateValue: 3,
// disabled: true,
// inputPlaceholder: '自动填入系统数据'
// }
] ]
}, },
tabClick(e) {
let { index } = e.detail
let { searchObj } = this.data
// delete searchObj.statusList
this.setData({
tabIndex: index
// searchObj
})
// 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
let { hwObjArray, otherObjArray, hwOhterObjArray } = this.data let { hwObjArray, otherObjArray, hwOhterObjArray } = this.data
...@@ -629,6 +571,7 @@ Page({ ...@@ -629,6 +571,7 @@ Page({
otherObjArray, otherObjArray,
hwOhterObjArray hwOhterObjArray
}) })
wx.$util.showToast('必填不能为空')
return false //必填校验没过 return false //必填校验没过
} }
orderObj.isAdmin = role == 'super' ? true : false orderObj.isAdmin = role == 'super' ? true : false
...@@ -648,7 +591,7 @@ Page({ ...@@ -648,7 +591,7 @@ Page({
let check = await this.dailyReportCheck(orderObj) let check = await this.dailyReportCheck(orderObj)
console.log(check, 'check') console.log(check, 'check')
// 超管和区域运维跳过校验提示 // 超管和区域运维跳过校验提示
if (check && (!(userInfo?.isSuper || userInfo?.loginRole == 3))) return false if (check && !(userInfo?.isSuper || userInfo?.loginRole == 3)) return false
// return // return
wx.$util.showLoading() wx.$util.showLoading()
api api
...@@ -1082,12 +1025,16 @@ Page({ ...@@ -1082,12 +1025,16 @@ Page({
el[e.key] = null el[e.key] = null
}) })
} }
if (item.brandId == -1) {
item.brandName = item.firstBrandName
}
return el return el
}) })
console.log(carBandList, 'carBandList') // console.log(carBandList, 'carBandList')
} else { } else {
carBandList = [] carBandList = []
} }
// carBandList = carBandList.map
this.setData({ this.setData({
// reportType, // reportType,
carBandList carBandList
...@@ -1164,7 +1111,7 @@ Page({ ...@@ -1164,7 +1111,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
...@@ -1304,7 +1251,11 @@ Page({ ...@@ -1304,7 +1251,11 @@ Page({
let { orderObj, staffCurrent } = this.data let { orderObj, staffCurrent } = this.data
// 先查4s店对应的园区店,再用园区店查员工 // 先查4s店对应的园区店,再用园区店查员工
api api
.querySceneRefByShop({ scene: 1, merchantId: orderObj.merchantId, pageSize: 200 }) .querySceneRefByShop({
scene: 1,
merchantId: orderObj.merchantId,
pageSize: 200
})
.then(result => { .then(result => {
// console.log(result, 'result') // console.log(result, 'result')
let { code, data, message } = result let { code, data, message } = result
......
...@@ -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,16 @@ page { ...@@ -42,12 +42,16 @@ 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;
}
// .img { .staffName {
// // width: 36rpx;
// // height: 36rpx; color: #347bff;
// // margin-bottom: 25rpx; font-size: 28rpx;
// }
} }
.move { .move {
...@@ -60,7 +64,7 @@ page { ...@@ -60,7 +64,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;
...@@ -92,11 +96,11 @@ page { ...@@ -92,11 +96,11 @@ page {
} }
page .isFullSucreen { page .isFullSucreen {
padding-bottom: 160px !important; padding-bottom: 160rpx !important;
} }
.isFullSucreen-btn { .isFullSucreen-btn {
padding-bottom: 34px !important; padding-bottom: 150rpx !important;
} }
.box { .box {
...@@ -104,18 +108,11 @@ page .isFullSucreen { ...@@ -104,18 +108,11 @@ page .isFullSucreen {
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 +127,13 @@ page .isFullSucreen { ...@@ -130,10 +127,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 +149,9 @@ page .isFullSucreen { ...@@ -149,8 +149,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 +160,12 @@ page .isFullSucreen { ...@@ -159,8 +160,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 +174,7 @@ page .isFullSucreen { ...@@ -169,7 +174,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 +213,6 @@ page .isFullSucreen { ...@@ -208,7 +213,6 @@ page .isFullSucreen {
line-height: var(--fontSize80); line-height: var(--fontSize80);
text-align: right; text-align: right;
} }
.placeholder { .placeholder {
...@@ -264,17 +268,21 @@ page .isFullSucreen { ...@@ -264,17 +268,21 @@ 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;
.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 {
...@@ -286,6 +294,7 @@ page .isFullSucreen { ...@@ -286,6 +294,7 @@ page .isFullSucreen {
.textarea { .textarea {
height: var(--fontSize130); height: var(--fontSize130);
width: 335rpx;
} }
.currentWordNumber { .currentWordNumber {
...@@ -300,14 +309,15 @@ page .isFullSucreen { ...@@ -300,14 +309,15 @@ page .isFullSucreen {
} }
.btns { .btns {
position: fixed; // position: fixed;
left: 0; // 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 +328,9 @@ page .isFullSucreen { ...@@ -318,7 +328,9 @@ page .isFullSucreen {
} }
.btns-con { .btns-con {
width: 100%; // width: 100%;
width: 622rpx;
// height: 88rpx;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
flex-flow: column; flex-flow: column;
...@@ -351,6 +363,7 @@ page .isFullSucreen { ...@@ -351,6 +363,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 +469,17 @@ page .isFullSucreen { ...@@ -456,17 +469,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 +589,87 @@ page .isFullSucreen { ...@@ -576,3 +589,87 @@ 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;
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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!