Commit f9fcf8a2 by 前端

Merge branch 'SAAS+V5.5.2' into 'SAAS+V5.6.0'

上线合并

See merge request !59
2 parents 1c2f6af7 36f8c454
<template> <template>
<!-- --> <!-- -->
<view class="daily-report"> <view class="daily-report">
<view class="common-title flex"> <view class="common-title flex">
填写日报 填写日报
<template v-if="orderObj.onBreak"> <template v-if="orderObj.onBreak">
<view class="common-title-btns flex"> <view class="common-title-btns flex">
<select-component <select-component
:selectList="pickerTemplateList" :selectList="pickerTemplateList"
@chooseType="handleTemplagePickerChange" @chooseType="handleTemplagePickerChange"
styleV2 styleV2
:disabled="filterDisabled(isEditReport) || isHmStore" :disabled="filterDisabled(isEditReport) || isHmStore"
:defaultValue="orderObj.templateType" :defaultValue="orderObj.templateType"
ref="selectComponent" ref="selectComponent"
/> />
</view> </view>
</template> </template>
</view> </view>
<scroll-view <scroll-view
:class="['repoet-view',{full:!orderObj.isDateWithin7Days}]" :class="['repoet-view',{full:!orderObj.isDateWithin7Days}]"
scroll-y scroll-y
:scroll-into-view="to" :scroll-into-view="to"
@scroll="to = ''" @scroll="to = ''"
> >
<view class="repoet-box"> <view class="repoet-box">
<template v-if="loadComplete"> <template v-if="loadComplete">
<view :class="[{'hide-box':!orderObj.isDateWithin7Days && !orderObj.onBreak}]"> <view :class="[{'hide-box':!orderObj.isDateWithin7Days && !orderObj.onBreak}]">
<view class="box"> <view class="box">
<view class="sub-title">驻店日报</view> <view class="sub-title">驻店日报</view>
<template v-for="(i,index) in reportObject"> <template v-for="(i,index) in reportObject">
<view <view
class="form-item flex" class="form-item flex"
:key="index" :key="index"
:id="i.refId || ''" :id="i.refId || ''"
> >
<view class="label flex"> <view class="label flex">
{{i.label}} {{i.label}}
<template v-if="index == 0 || (i.required && orderObj.pickerValue == 0)"> <template v-if="index == 0 || (i.required && orderObj.pickerValue == 0)">
<view class="required">*</view> <view class="required">*</view>
</template> </template>
</view> </view>
<view class="value flex"> <view class="value flex">
<template v-if="i.type == 'input'"> <template v-if="i.type == 'input'">
<input <input
class="input" class="input"
:type="i.inputType || 'text'" :type="i.inputType || 'text'"
:value="orderObj[i.value]" :value="orderObj[i.value]"
:placeholder="i.placeholder || '请输入'" :placeholder="i.placeholder || '请输入'"
placeholder-class="placeholder" placeholder-class="placeholder"
@blur="handleBlur($event, i)" @blur="handleBlur($event, i)"
:disabled="filterDisabled(isEditReport)" :disabled="filterDisabled(isEditReport)"
:maxlength="3" :maxlength="3"
:key="dateKey[i.value]" :key="dateKey[i.value]"
auto-blur auto-blur
> >
</template> </template>
<template v-else-if="i.type == 'picker'"> <template v-else-if="i.type == 'picker'">
<view class="picker flex"> <view class="picker flex">
<template v-for="(item,ind) in i.range"> <template v-for="(item,ind) in i.range">
<view <view
class="picker-item flex" class="picker-item flex"
:key="`${index}_${ind}`" :key="`${index}_${ind}`"
@click="changePicker(item.id, i)" @click="changePicker(item.id, i)"
> >
<view class="icon"> <view class="icon">
<template v-if="item.id == orderObj[i.submitValue]"> <template v-if="item.id == orderObj[i.submitValue]">
<uni-icons <uni-icons
type="checkbox-filled" type="checkbox-filled"
:size="18" :size="18"
color="#3B73FF" color="#3B73FF"
></uni-icons> ></uni-icons>
</template> </template>
<template v-else> <template v-else>
<uni-icons <uni-icons
type="circle" type="circle"
:size="18" :size="18"
color="#8C8C8C" color="#8C8C8C"
></uni-icons> ></uni-icons>
</template> </template>
</view> </view>
{{item.name}} {{item.name}}
</view> </view>
</template> </template>
</view> </view>
</template> </template>
<template v-else> <template v-else>
{{orderObj[i.value]}} {{orderObj[i.value]}}
</template> </template>
</view> </view>
</view> </view>
</template> </template>
</view> </view>
<view class="car-band-box"> <view class="car-band-box">
<type-tab-component <type-tab-component
styleV2 styleV2
:typeList="carBandList" :typeList="carBandList"
:tabIndex.sync="tabIndex" :tabIndex.sync="tabIndex"
nameKey="tabName" nameKey="tabName"
></type-tab-component> ></type-tab-component>
<view class="car-band-form-box"> <view class="car-band-form-box">
<template v-for="(item,index) in carBandList"> <template v-for="(item,index) in carBandList">
<view <view
:class="['box',{show:index == tabIndex}]" :class="['box',{show:index == tabIndex}]"
:key="index" :key="index"
> >
<template v-for="(i,ind) in hwOhterObjArray"> <template v-for="(i,ind) in hwOhterObjArray">
<view <view
:class="['form-item flex',{name:i.name}]" :class="['form-item flex',{name:i.name}]"
:key="`${index}_${ind}`" :key="`${index}_${ind}`"
:id="i.refId ? `${i.refId}_${index}` : ''" :id="i.refId ? `${i.refId}_${index}` : ''"
> >
<view class="label flex"> <view class="label flex">
{{i.label}} {{i.label}}
<template v-if="i.required && orderObj.pickerValue == 0"> <template v-if="i.required && orderObj.pickerValue == 0">
<view class="required">*</view> <view class="required">*</view>
</template> </template>
</view> </view>
<view class="value flex"> <view class="value flex">
<template v-if="filterDisabled(isEditReport) || i.disabled"> <template v-if="filterDisabled(isEditReport) || i.disabled">
<template v-if="item[i.key] != null"> <template v-if="item[i.key] != null">
{{item[i.key] }} {{item[i.key] }}
</template> </template>
<template v-else> <template v-else>
<view class="placeholder">{{i.inputPlaceholder || '请输入'}}</view> <view class="placeholder">{{i.inputPlaceholder || '请输入'}}</view>
</template> </template>
</template> </template>
<template v-else> <template v-else>
<input <input
class="input" class="input"
:type="i.type || 'text'" :type="i.type || 'text'"
:value="item[i.key]" :value="item[i.key]"
:placeholder="i.inputPlaceholder || '请输入'" :placeholder="i.inputPlaceholder || '请输入'"
placeholder-class="placeholder" placeholder-class="placeholder"
@blur="handleCarInputBlur($event, i , item , index)" @blur="handleCarInputBlur($event, i , item , index)"
:maxlength="3" :maxlength="3"
:key="dateKey[`${i.key}_${index}`]" :key="dateKey[`${i.key}_${index}`]"
auto-blur auto-blur
> >
</template> </template>
</view> </view>
</view> </view>
</template> </template>
</view> </view>
</template> </template>
</view> </view>
</view> </view>
<view class="box"> <view class="box">
<view class="sub-title">个人日报</view> <view class="sub-title">个人日报</view>
<template v-for="(i,index) in personalObject"> <template v-for="(i,index) in personalObject">
<view <view
class="form-item flex" class="form-item flex"
:key="index" :key="index"
> >
<view class="label flex"> <view class="label flex">
{{i.label}} {{i.label}}
</view> </view>
<view class="value flex"> <view class="value flex">
<input <input
class="input" class="input"
:type="i.type || 'text'" :type="i.type || 'text'"
:value="orderObj[i.key]" :value="orderObj[i.key]"
:placeholder="i.inputPlaceholder || '请输入'" :placeholder="i.inputPlaceholder || '请输入'"
placeholder-class="placeholder" placeholder-class="placeholder"
@blur="handleCarInputBlur($event, i , orderObj , index)" @blur="handleCarInputBlur($event, i , orderObj , index)"
:maxlength="i.maxlength || 3" :maxlength="i.maxlength || 3"
:key="dateKey[`${i.key}_${index}`]" :key="dateKey[`${i.key}_${index}`]"
auto-blur auto-blur
:disabled="filterDisabled(isEditReport)" :disabled="filterDisabled(isEditReport)"
> >
</view> </view>
</view> </view>
</template> </template>
<!-- <view class="form-item flex"> <!-- <view class="form-item flex">
<view class="label flex"> <view class="label flex">
未触客返店人数 未触客返店人数
</view> </view>
<view class="value"> <view class="value">
<input <input
class="input" class="input"
type="number" type="number"
:value="carBandList[tabIndex].notDeliveryReturnCount" :value="carBandList[tabIndex].notDeliveryReturnCount"
placeholder="请输入" placeholder="请输入"
placeholder-class="placeholder" placeholder-class="placeholder"
@blur="handleCarInputBlur($event, { @blur="handleCarInputBlur($event, {
key:'notDeliveryReturnCount', key:'notDeliveryReturnCount',
max:100 max:100
} , carBandList[tabIndex] , tabIndex)" } , carBandList[tabIndex] , tabIndex)"
:maxlength="3" :maxlength="3"
auto-blur auto-blur
:key="`notDeliveryReturnCount_${tabIndex}`" :key="`notDeliveryReturnCount_${tabIndex}`"
:disabled="filterDisabled(isEditReport)" :disabled="filterDisabled(isEditReport)"
> >
</view> </view>
</view> --> </view> -->
<view class="form-item flex"> <view class="form-item flex">
<view class="label flex"> <view class="label flex">
备注 备注
</view> </view>
<view class="value"> <view class="value">
<textarea <textarea
class="textarea" class="textarea"
v-model="orderObj.remark" v-model="orderObj.remark"
placeholder="请输入 (500字以内)" placeholder="请输入 (500字以内)"
placeholder-class="placeholder" placeholder-class="placeholder"
confirm-type="done" confirm-type="done"
auto-height auto-height
:maxlength="500" :maxlength="500"
:disabled="filterDisabled(isEditReport)" :disabled="filterDisabled(isEditReport)"
></textarea> ></textarea>
</view> </view>
</view> </view>
</view> </view>
<view class="box info"> <view class="box info">
<template v-for="(item,index) in infoObject"> <template v-for="(item,index) in infoObject">
<view <view
class="info-item" class="info-item"
:key="index" :key="index"
> >
<view class="info-label">{{item.label}}</view> <view class="info-label">{{item.label}}</view>
<view class="info-value">{{item.format ? item.format() : carBandList[tabIndex][item.key] || 0}}</view> <view class="info-value">{{item.format ? item.format() : carBandList[tabIndex][item.key] || 0}}</view>
</view> </view>
</template> </template>
</view> </view>
<view class="block"></view> <view class="block"></view>
</view> </view>
<template v-if="!orderObj.isDateWithin7Days && !orderObj.onBreak"> <template v-if="!orderObj.isDateWithin7Days && !orderObj.onBreak">
<view class="nothing flex"> <view class="nothing flex">
<image <image
src="../../../../assets/images/common/report-no-data.webp" src="../../../../assets/images/common/report-no-data.webp"
class="icon" class="icon"
/> />
已超过 7 个自然日,暂不支持补填操作 已超过 7 个自然日,暂不支持补填操作
</view> </view>
</template> </template>
</template> </template>
</view> </view>
</scroll-view> </scroll-view>
<template v-if="orderObj.isDateWithin7Days"> <template v-if="orderObj.isDateWithin7Days">
<view class="btn-box flex"> <view class="btn-box flex">
<template v-if="filterDisabled()"> <template v-if="filterDisabled()">
<template v-if="!isEditReport"> <template v-if="!isEditReport">
<view <view
class="btn" class="btn"
@click="isEditReport = true" @click="isEditReport = true"
>编辑</view> >编辑</view>
</template> </template>
<template v-else> <template v-else>
<view <view
class="btn cancel-btn" class="btn cancel-btn"
@click="cancel" @click="cancel"
>取消</view> >取消</view>
<view <view
class="btn" class="btn"
@click="submit" @click="submit"
>保存</view> >保存</view>
</template> </template>
</template> </template>
<template v-else> <template v-else>
<view <view
class="btn" class="btn"
@click="submit" @click="submit"
>提交</view> >提交</view>
</template> </template>
</view> </view>
</template> </template>
<NoticePopup <NoticePopup
ref="reportNotice" ref="reportNotice"
:title="noticeObj.title" :title="noticeObj.title"
:text="noticeObj.text" :text="noticeObj.text"
:type="noticeObj.type || 'success'" :type="noticeObj.type || 'success'"
:buttons="noticeObj.buttons" :buttons="noticeObj.buttons"
></NoticePopup> ></NoticePopup>
</view> </view>
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
var weekday = require('dayjs/plugin/weekday') var weekday = require('dayjs/plugin/weekday')
import dayjs from 'dayjs' import dayjs from 'dayjs'
dayjs.extend(weekday) dayjs.extend(weekday)
import TypeTabComponent from '@/components/TypeTabComponent.vue' import TypeTabComponent from '@/components/TypeTabComponent.vue'
import NoticePopup from '@/components/NoticePopup.vue' import NoticePopup from '@/components/NoticePopup.vue'
import SelectComponent from '@/components/SelectComponent.vue' import SelectComponent from '@/components/SelectComponent.vue'
export default { export default {
components: { components: {
TypeTabComponent, TypeTabComponent,
NoticePopup, NoticePopup,
SelectComponent SelectComponent
}, },
props: { props: {
currentDate: String, currentDate: String,
currentMonth: String currentMonth: String
}, },
name: 'DailyReport', name: 'DailyReport',
data () { data () {
return { return {
noticeObj: {}, noticeObj: {},
pickerTemplateList: Object.freeze([ pickerTemplateList: Object.freeze([
{ label: '单延保', value: 1 }, { label: '单延保', value: 1 },
{ label: '权益延保', value: 2 }, { label: '权益延保', value: 2 },
{ label: '广联权益', value: 3 }, { label: '广联权益', value: 3 },
]), ]),
isHmStore: false, isHmStore: false,
tabIndex: 0, tabIndex: 0,
to: '', to: '',
dateKey: {}, dateKey: {},
loadComplete: false, loadComplete: false,
reportObject: Object.freeze([ reportObject: Object.freeze([
{ {
label: '当日调休', label: '当日调休',
value: 'pickerValue', value: 'pickerValue',
type: 'picker', type: 'picker',
required: true, required: true,
rangeKey: 'name', rangeKey: 'name',
range: [ range: [
{ id: 'N', name: '在岗' }, { id: 'N', name: '在岗' },
{ id: 'Y', name: '调休' } { id: 'Y', name: '调休' }
], ],
submitValue: 'onBreak' submitValue: 'onBreak'
}, },
{ {
label: '今日驻店人数(按店)', label: '今日驻店人数(按店)',
value: 'staffCount', value: 'staffCount',
type: 'input', type: 'input',
required: true, required: true,
inputType: 'number', inputType: 'number',
refId: 'staffCount' refId: 'staffCount'
}, },
]), ]),
orderObj: {}, orderObj: {},
carBandList: [], carBandList: [],
hwOhterObjArray: Object.freeze([ hwOhterObjArray: Object.freeze([
{ {
label: '店端实际交车数', label: '店端实际交车数',
key: 'deliveryCount', key: 'deliveryCount',
type: 'number', type: 'number',
required: true, required: true,
min: 0, min: 0,
max: 100, max: 100,
refId: 'deliveryCount', refId: 'deliveryCount',
}, },
{ {
label: '店端总未触客数', label: '店端总未触客数',
key: 'notDeliveryCount', key: 'notDeliveryCount',
type: 'number', type: 'number',
required: true, required: true,
min: 0, min: 0,
max: 100, max: 100,
refId: 'notDeliveryCount', refId: 'notDeliveryCount',
}, },
{ {
label: '实际售前触客数', label: '实际售前触客数',
key: 'equityToShopCount', key: 'equityToShopCount',
type: 'number', type: 'number',
required: true, required: true,
min: 0, min: 0,
max: 100, max: 100,
refId: 'equityToShopCount', refId: 'equityToShopCount',
}, },
{ {
label: '实际售后触客数', label: '实际售后触客数',
key: 'afterSaleEquityToShopCount', key: 'afterSaleEquityToShopCount',
type: 'number', type: 'number',
required: false, required: false,
min: 0, min: 0,
max: 100, max: 100,
}, },
{ {
label: '未触客返店人数', label: '未触客返店人数',
key: 'notDeliveryReturnCount', key: 'notDeliveryReturnCount',
type: 'number', type: 'number',
min: 0, min: 0,
max: 100, max: 100,
} }
]), ]),
weeklyList: [], weeklyList: [],
isEditReport: false, isEditReport: false,
} }
}, },
computed: { computed: {
userInfo () { userInfo () {
return uni.$storage.get("userInfo") return uni.$storage.get("userInfo")
}, },
mouthNumber () { mouthNumber () {
return dayjs(this.currentMonth).daysInMonth() return dayjs(this.currentMonth).daysInMonth()
}, },
infoObject () { infoObject () {
let { tabIndex, carBandList, orderObj: { templateType, totalOrderMoney } } = this, let { tabIndex, carBandList, orderObj: { templateType, totalOrderMoney } } = this,
{ brandType, firstBrandId } = carBandList[tabIndex], { brandType, firstBrandId } = carBandList[tabIndex],
/**模版为广联权益 */ /**模版为广联权益 */
TemplateType3 = templateType == 3,// TemplateType3 = templateType == 3,//
NotAitoAndTemplateType3 = brandType != 0 || TemplateType3, //非问界 或者 广联权益 时隐藏 NotAitoAndTemplateType3 = brandType != 0 || TemplateType3, //非问界 或者 广联权益 时隐藏
infoArray = [ infoArray = [
{ {
label: '个人成交总金额', label: '个人成交总金额',
format: _ => { format: _ => {
return `¥${totalOrderMoney || 0}` return `¥${totalOrderMoney || 0}`
} }
}, },
{ {
label: `售前整车延保成交数·${brandType == 0 ? '问界' : '鸿蒙'}`, label: `售前整车延保成交数·${brandType == 0 ? '问界' : '鸿蒙'}`,
key: 'extendedWarrantyCount', key: 'extendedWarrantyCount',
hide: firstBrandId == -1 || TemplateType3 hide: firstBrandId == -1 || TemplateType3
}, },
{ {
label: `售后整车延保成交数·${brandType == 0 ? '问界' : '鸿蒙'}`, label: `售后整车延保成交数·${brandType == 0 ? '问界' : '鸿蒙'}`,
key: 'afterSaleExtendedWarrantyCount', key: 'afterSaleExtendedWarrantyCount',
hide: firstBrandId == -1 || TemplateType3 hide: firstBrandId == -1 || TemplateType3
}, },
{ {
label: '轮胎险成交数', label: '轮胎险成交数',
key: 'tireWarrantyCount', key: 'tireWarrantyCount',
hide: NotAitoAndTemplateType3 hide: NotAitoAndTemplateType3
}, },
{ {
label: '安心包成交数', label: '安心包成交数',
key: 'axPackageCount', key: 'axPackageCount',
hide: NotAitoAndTemplateType3 hide: NotAitoAndTemplateType3
}, },
{ {
label: '安心包MAX成交数', label: '安心包MAX成交数',
key: 'axPackageMaxCount', key: 'axPackageMaxCount',
hide: NotAitoAndTemplateType3 hide: NotAitoAndTemplateType3
}, },
{ {
label: '安心包Pro成交数', label: '安心包Pro成交数',
key: 'axPackageProCount', key: 'axPackageProCount',
hide: NotAitoAndTemplateType3 hide: NotAitoAndTemplateType3
}, },
{ {
label: '电池延保成交数', label: '电池延保成交数',
key: 'batteryExtendedWarrantyCount', key: 'batteryExtendedWarrantyCount',
hide: NotAitoAndTemplateType3 hide: NotAitoAndTemplateType3
}, },
{ {
label: '北汽无忧成交数', label: '北汽无忧成交数',
key: 'bqWorryFreeCount', key: 'bqWorryFreeCount',
hide: firstBrandId != -1 || TemplateType3 hide: firstBrandId != -1 || TemplateType3
}, },
{ {
label: '广爱无忧成交数', label: '广爱无忧成交数',
key: 'gaWorryFreeCount', key: 'gaWorryFreeCount',
hide: firstBrandId != -1 || TemplateType3 hide: firstBrandId != -1 || TemplateType3
}, },
{ {
label: '广联权益成交数', label: '广联权益成交数',
key: 'glWorryFreeCount', key: 'glWorryFreeCount',
hide: templateType == 1 hide: templateType == 1
} }
] ]
return infoArray.filter(item => !item.hide) return infoArray.filter(item => !item.hide)
}, },
personalObject () { personalObject () {
let { templateType } = this.orderObj, let { templateType } = this.orderObj,
personalArray = [ personalArray = [
{ {
label: '延保退单数', label: '延保退单数',
key: 'cancelOrderCount', key: 'cancelOrderCount',
type: 'number', type: 'number',
required: true, required: true,
min: 0, min: 0,
max: 100, max: 100,
refId: 'cancelOrderCount', refId: 'cancelOrderCount',
hide: templateType == 3 hide: templateType == 3
}, },
{ {
label: '延保退单金额', label: '延保退单金额',
key: 'cancelOrderMoney', key: 'cancelOrderMoney',
type: 'number', type: 'number',
required: true, required: true,
maxlength: 7, maxlength: 7,
min: 0, min: 0,
max: 9999999, max: 9999999,
refId: 'cancelOrderMoney', refId: 'cancelOrderMoney',
hide: templateType == 3 hide: templateType == 3
} }
] ]
return personalArray.filter(item => !item.hide) return personalArray.filter(item => !item.hide)
} }
}, },
watch: { watch: {
currentMonth: { currentMonth: {
handler (val) { handler (val) {
this.setMonthDay() this.setMonthDay()
}, },
deep: true, deep: true,
immediate: true immediate: true
}, },
currentDate: { currentDate: {
handler (val) { handler (val) {
if (this.carBandList.length) this.getStaffDailyReportDetail() if (this.carBandList.length) this.getStaffDailyReportDetail()
}, },
deep: true, deep: true,
} }
}, },
mounted () { mounted () {
uni.$track.add({ uni.$track.add({
eventCode: 'app_daily_report' eventCode: 'app_daily_report'
}) //驻店日报埋点 }) //驻店日报埋点
this.initData() this.initData()
this.isEditReport = false this.isEditReport = false
}, },
methods: { methods: {
initData () { initData () {
const { merchantId, merchantName, name, uuid, shopMerchantId, shopMerchantName } = this.userInfo const { merchantId, merchantName, name, uuid, shopMerchantId, shopMerchantName } = this.userInfo
this.orderObj = { this.orderObj = {
yqMerchantId: merchantId, yqMerchantId: merchantId,
yqMerchantName: merchantName, yqMerchantName: merchantName,
staffName: name, staffName: name,
staffUuid: uuid, staffUuid: uuid,
merchantId: shopMerchantId, merchantId: shopMerchantId,
merchantName: shopMerchantName merchantName: shopMerchantName
} }
this.getDailyReportCarBrand() this.getDailyReportCarBrand()
}, },
async getDailyReportCarBrand () { async getDailyReportCarBrand () {
const { HMCarBandId } = await uni.$api.systemApi.getMockData(true) const { HMCarBandId, moreTemplatingIds } = await uni.$api.systemApi.getMockData(true)
let isHmStore = false, let { userInfo } = this,
{ userInfo } = this, { shopMerchantId } = userInfo,
{ shopMerchantId } = userInfo hmPresent = false,
const data = await uni.$api.boutiqueApi.getDailyReportCarBrand({ containsShangJie = false
merchantId: shopMerchantId, const data = await uni.$api.boutiqueApi.getDailyReportCarBrand({
sceneType: 0 merchantId: shopMerchantId,
}) sceneType: 0
data.map(e => { })
let { firstBrandId, firstBrandName, brandName } = e data.map(e => {
e.tabName = firstBrandId == -1 ? firstBrandName : brandName let { firstBrandId, firstBrandName, brandName } = e
if (e.firstBrandId == HMCarBandId) isHmStore = true e.tabName = firstBrandId == -1 ? firstBrandName : brandName
}) if (e.firstBrandId == HMCarBandId) hmPresent = true
this.carBandList = data if (moreTemplatingIds.includes(+e.brandId)) containsShangJie = true
this.isHmStore = isHmStore })
this.getStaffDailyReportDetail() this.carBandList = data
}, this.isHmStore = hmPresent && !containsShangJie
setMonthDay () { this.getStaffDailyReportDetail()
let { mouthNumber } = this, },
currentMonth = dayjs(this.currentMonth).format('YYYY-MM'), setMonthDay () {
nowYear = dayjs(currentMonth).format('YYYY'), let { mouthNumber } = this,
nowMonth = dayjs(currentMonth).format('MM'), currentMonth = dayjs(this.currentMonth).format('YYYY-MM'),
maxDay = dayjs().format('D'), nowYear = dayjs(currentMonth).format('YYYY'),
maxMonth = dayjs().format('YYYY-MM'), nowMonth = dayjs(currentMonth).format('MM'),
dayNum = currentMonth < maxMonth ? mouthNumber : maxDay, maxDay = dayjs().format('D'),
weekDayList = [] maxMonth = dayjs().format('YYYY-MM'),
if (currentMonth > maxMonth) return dayNum = currentMonth < maxMonth ? mouthNumber : maxDay,
for (let i = 1; i <= dayNum; i++) { weekDayList = []
let date = dayjs(`${nowYear}-${nowMonth}-${i}`).format('YYYY-MM-DD'), if (currentMonth > maxMonth) return
week = ['日', '一', '二', '三', '四', '五', '六'][dayjs(date).weekday()] for (let i = 1; i <= dayNum; i++) {
weekDayList.push({ let date = dayjs(`${nowYear}-${nowMonth}-${i}`).format('YYYY-MM-DD'),
day: i, week = ['日', '一', '二', '三', '四', '五', '六'][dayjs(date).weekday()]
date, weekDayList.push({
week, day: i,
disabled: false date,
}) week,
} disabled: false
let startDay = weekDayList[0].date, })
endDay = weekDayList[weekDayList.length - 1].date }
let params = { let startDay = weekDayList[0].date,
weekDayList, endDay = weekDayList[weekDayList.length - 1].date
yearMonth: currentMonth, let params = {
starDay: 1, weekDayList,
starDayLabel: dayjs(startDay).format('YYYY/MM/DD'), yearMonth: currentMonth,
reportStartDate: startDay, starDay: 1,
endDayLabel: dayjs(endDay).format('YYYY/MM/DD'), starDayLabel: dayjs(startDay).format('YYYY/MM/DD'),
reportEndDate: endDay, reportStartDate: startDay,
formatYearMonth: currentMonth endDayLabel: dayjs(endDay).format('YYYY/MM/DD'),
} reportEndDate: endDay,
this.getStaffDailyReportDetailWeeklyList(params) formatYearMonth: currentMonth
}, }
async getStaffDailyReportDetailWeeklyList (params) { this.getStaffDailyReportDetailWeeklyList(params)
let { shopMerchantId, merchantId, uuid } = this.userInfo },
const data = await uni.$api.boutiqueApi.getStaffDailyReportDetailWeeklyList({ async getStaffDailyReportDetailWeeklyList (params) {
staffUuid: uuid, let { shopMerchantId, merchantId, uuid } = this.userInfo
yqMerchantId: merchantId, const data = await uni.$api.boutiqueApi.getStaffDailyReportDetailWeeklyList({
merchantId: shopMerchantId, staffUuid: uuid,
...params, yqMerchantId: merchantId,
sceneType: 0, merchantId: shopMerchantId,
reportTypeList: [-1] ...params,
}) sceneType: 0,
let selectedDay = [] reportTypeList: [-1]
params.weekDayList.map(e => { })
let { date } = e let selectedDay = []
if (!data.includes(date)) selectedDay.push({ params.weekDayList.map(e => {
date let { date } = e
}) if (!data.includes(date)) selectedDay.push({
}) date
this.weeklyList = data })
this.$emit('setCalendarSelected', selectedDay) })
}, this.weeklyList = data
async getStaffDailyReportDetail () { this.$emit('setCalendarSelected', selectedDay)
this.hideSelect() },
this.isEditReport = false async getStaffDailyReportDetail () {
this.loadComplete = false this.hideSelect()
let { currentDate, this.isEditReport = false
userInfo, this.loadComplete = false
carBandList, let { currentDate,
hwOhterObjArray, userInfo,
orderObj, carBandList,
isHmStore } = this, hwOhterObjArray,
{ shopMerchantId, merchantId, uuid } = userInfo orderObj,
uni.showLoading({ isHmStore } = this,
mask: true { shopMerchantId, merchantId, uuid } = userInfo
}) uni.showLoading({
const data = await uni.$api.boutiqueApi.getStaffDailyReportDetail({ mask: true
yqMerchantId: merchantId, })
merchantId: shopMerchantId, const data = await uni.$api.boutiqueApi.getStaffDailyReportDetail({
staffUuid: uuid, yqMerchantId: merchantId,
reportDate: currentDate, merchantId: shopMerchantId,
sceneType: 0, staffUuid: uuid,
reportTypeList: [-1] reportDate: currentDate,
}) sceneType: 0,
uni.hideLoading() reportTypeList: [-1]
let { brandDataList, remark } = data })
if (brandDataList && brandDataList.length) { uni.hideLoading()
carBandList = carBandList.map((item, index) => { let { brandDataList, remark } = data
this.dateKey[`deliveryCount_${index}`] = Date.now() if (brandDataList && brandDataList.length) {
this.dateKey[`notDeliveryCount_${index}`] = Date.now() carBandList = carBandList.map((item, index) => {
this.dateKey[`equityToShopCount_${index}`] = Date.now() this.dateKey[`deliveryCount_${index}`] = Date.now()
this.dateKey[`afterSaleEquityToShopCount_${index}`] = Date.now() this.dateKey[`notDeliveryCount_${index}`] = Date.now()
let carBand = brandDataList.find(ele => { this.dateKey[`equityToShopCount_${index}`] = Date.now()
if ([0, 1, 3, 4, 5, 6].includes(ele.brandType)) { this.dateKey[`afterSaleEquityToShopCount_${index}`] = Date.now()
return ele.brandType == item.brandType let carBand = brandDataList.find(ele => {
} else if (ele.brandType == 2) { if ([0, 1, 3, 4, 5, 6].includes(ele.brandType)) {
return ele.firstBrandId == item.firstBrandId return ele.brandType == item.brandType
} } else if (ele.brandType == 2) {
}) return ele.firstBrandId == item.firstBrandId
if (carBand != null) { }
let { })
firstBrandId, if (carBand != null) {
firstBrandName, let {
brandId, firstBrandId,
brandName, firstBrandName,
brandType, brandId,
tabName brandName,
} = item brandType,
item = { tabName
...carBand, } = item
firstBrandId, item = {
firstBrandName, ...carBand,
deliveryCountRecord: carBand.deliveryCount, firstBrandId,
notDeliveryCountRecord: carBand.notDeliveryCount, firstBrandName,
brandId, deliveryCountRecord: carBand.deliveryCount,
brandName, notDeliveryCountRecord: carBand.notDeliveryCount,
brandType, brandId,
tabName brandName,
} brandType,
} else { tabName
hwOhterObjArray.forEach(e => { }
item[e.key] = null } else {
}) hwOhterObjArray.forEach(e => {
} item[e.key] = null
return item })
}) }
} return item
let diffDay = dayjs().diff(dayjs(currentDate), 'day') })
this.hwOhterObjArray = hwOhterObjArray }
this.carBandList = carBandList let diffDay = dayjs().diff(dayjs(currentDate), 'day')
this.orderObj = { this.hwOhterObjArray = hwOhterObjArray
...orderObj, this.carBandList = carBandList
reportDate: currentDate, this.orderObj = {
isDateWithin7Days: diffDay < 7, ...orderObj,
isDateWithin60Days: diffDay < 60, reportDate: currentDate,
remark, isDateWithin7Days: diffDay < 7,
lastStaffName: data.lastStaffName, isDateWithin60Days: diffDay < 60,
lastStaffUuid: data.lastStaffUuid, remark,
recordStaffCount: data.staffCount, lastStaffName: data.lastStaffName,
totalOrderMoney: data.totalOrderMoney, lastStaffUuid: data.lastStaffUuid,
totalOrderCount: data.totalOrderCount, recordStaffCount: data.staffCount,
glWorryFreeCount: data.glWorryFreeCount, totalOrderMoney: data.totalOrderMoney,
cancelOrderCount: data.cancelOrderCount, totalOrderCount: data.totalOrderCount,
cancelOrderMoney: data.cancelOrderMoney, glWorryFreeCount: data.glWorryFreeCount,
templateType: isHmStore ? 1 : data.templateType || 1, cancelOrderCount: data.cancelOrderCount,
staffCount: data.staffCount, cancelOrderMoney: data.cancelOrderMoney,
onBreak: data.onBreak ? data.onBreak : diffDay < 7 ? data.onBreak || 'N' : '', templateType: isHmStore ? 1 : data.templateType || 1,
pickerValue: data.onBreak == 'Y' ? 1 : 0, staffCount: data.staffCount,
staffCountError: false, onBreak: data.onBreak ? data.onBreak : diffDay < 7 ? data.onBreak || 'N' : '',
} pickerValue: data.onBreak == 'Y' ? 1 : 0,
this.tabIndex = 0 staffCountError: false,
this.loadComplete = true }
this.dateKey.staffCount = Date.now() this.tabIndex = 0
}, this.loadComplete = true
handleBlur (e, i) { this.dateKey.staffCount = Date.now()
let { value } = e.detail, },
{ orderObj, userInfo } = this, handleBlur (e, i) {
key = i.value let { value } = e.detail,
if (value) { { orderObj, userInfo } = this,
let numbers = value.match(/\d+/g) key = i.value
numbers = numbers ? numbers.join('') : '' if (value) {
if (numbers.length > 1) numbers = numbers.replace(/^0+/, '') let numbers = value.match(/\d+/g)
this.orderObj[key] = Math.min(Math.max(Number(numbers), 0), 100).toString() numbers = numbers ? numbers.join('') : ''
this.dateKey[key] = Date.now() if (numbers.length > 1) numbers = numbers.replace(/^0+/, '')
console.log(key) this.orderObj[key] = Math.min(Math.max(Number(numbers), 0), 100).toString()
} else { this.dateKey[key] = Date.now()
this.orderObj[key] = '' console.log(key)
this.dateKey[key] = Date.now() } else {
} this.orderObj[key] = ''
if ( this.dateKey[key] = Date.now()
this.isNotEmpty(orderObj.recordStaffCount) && }
orderObj.recordStaffCount != value && if (
orderObj.lastStaffUuid && this.isNotEmpty(orderObj.recordStaffCount) &&
userInfo.uuid != orderObj.lastStaffUuid orderObj.recordStaffCount != value &&
) { orderObj.lastStaffUuid &&
this.noticeObj = { userInfo.uuid != orderObj.lastStaffUuid
title: '重要提示', ) {
text: `今日驻店人数与 ${orderObj.lastStaffName} 提交不一致,再次确认!不一致提交日报时,今日驻店人数将被清空。`, this.noticeObj = {
type: 'warning', title: '重要提示',
buttons: [ text: `今日驻店人数与 ${orderObj.lastStaffName} 提交不一致,再次确认!不一致提交日报时,今日驻店人数将被清空。`,
{ type: 'warning',
text: '确定', buttons: [
type: 'primary', {
} text: '确定',
] type: 'primary',
} }
this.$nextTick(() => this.$refs.reportNotice.open()) ]
} }
}, this.$nextTick(() => this.$refs.reportNotice.open())
isNotEmpty (value) { }
return ( },
value !== null && isNotEmpty (value) {
value !== undefined && return (
value !== '' && value !== null &&
!(Array.isArray(value) && value.length === 0) value !== undefined &&
) value !== '' &&
}, !(Array.isArray(value) && value.length === 0)
handleCarInputBlur (e, i, item, index) { )
let { orderObj, },
userInfo, handleCarInputBlur (e, i, item, index) {
carBandList let { orderObj,
} = this, userInfo,
{ value } = e.detail, carBandList
{ key, max } = i } = this,
if (value) { { value } = e.detail,
let numbers = value.match(/\d+/g) { key, max } = i
numbers = numbers ? numbers.join('') : '' if (value) {
if (numbers.length > 1) numbers = numbers.replace(/^0+/, '') let numbers = value.match(/\d+/g)
item[key] = Math.min(Math.max(Number(numbers), 0), max).toString() numbers = numbers ? numbers.join('') : ''
this.dateKey[`${key}_${index}`] = Date.now() if (numbers.length > 1) numbers = numbers.replace(/^0+/, '')
} else { item[key] = Math.min(Math.max(Number(numbers), 0), max).toString()
item[key] = '' this.dateKey[`${key}_${index}`] = Date.now()
this.dateKey[`${key}_${index}`] = Date.now() } else {
} item[key] = ''
if (['deliveryCount', 'notDeliveryCount'].includes(key)) { this.dateKey[`${key}_${index}`] = Date.now()
let checkName = `${key}Record`, }
checkValue = carBandList[index][checkName] if (['deliveryCount', 'notDeliveryCount'].includes(key)) {
if ( let checkName = `${key}Record`,
this.isNotEmpty(item[key]) && checkValue = carBandList[index][checkName]
this.isNotEmpty(carBandList[index][checkName]) && if (
checkValue != value && this.isNotEmpty(item[key]) &&
orderObj.lastStaffUuid && this.isNotEmpty(carBandList[index][checkName]) &&
userInfo.uuid != orderObj.lastStaffUuid) { checkValue != value &&
let context = i.label orderObj.lastStaffUuid &&
this.noticeObj = { userInfo.uuid != orderObj.lastStaffUuid) {
title: '重要提示', let context = i.label
text: `${context}与 ${orderObj.lastStaffName} 提交不一致,再次确认!不一致提交日报时,${context}将被清空。`, this.noticeObj = {
type: 'warning', title: '重要提示',
buttons: [ text: `${context}与 ${orderObj.lastStaffName} 提交不一致,再次确认!不一致提交日报时,${context}将被清空。`,
{ type: 'warning',
text: '确定', buttons: [
type: 'primary', {
} text: '确定',
] type: 'primary',
} }
this.$nextTick(() => this.$refs.reportNotice.open()) ]
} }
} this.$nextTick(() => this.$refs.reportNotice.open())
}, }
async submit () { }
uni.$track.add({ },
eventCode: 'app_submit_daily_report' async submit () {
}) //提交驻店日报埋点 uni.$track.add({
try { eventCode: 'app_submit_daily_report'
let { orderObj, carBandList, hwOhterObjArray, userInfo } = this }) //提交驻店日报埋点
orderObj.isAdmin = false try {
orderObj.oprBy = orderObj.staffUuid let { orderObj, carBandList, hwOhterObjArray, userInfo } = this
orderObj.sceneType = 0 orderObj.isAdmin = false
orderObj.brandDataList = carBandList orderObj.oprBy = orderObj.staffUuid
if (orderObj.pickerValue == 0) { orderObj.sceneType = 0
if (['', null].includes(orderObj.staffCount)) throw { orderObj.brandDataList = carBandList
message: '今日驻店人数(按店)', if (orderObj.pickerValue == 0) {
refId: 'staffCount' if (['', null].includes(orderObj.staffCount)) throw {
} message: '今日驻店人数(按店)',
carBandList.map((item, index) => { refId: 'staffCount'
hwOhterObjArray.map(el => { }
if (el.required && ['', null].includes(item[el.key])) throw { carBandList.map((item, index) => {
message: `${item.tabName}${el.label}`, hwOhterObjArray.map(el => {
refId: `${el.refId}_${index}`, if (el.required && ['', null].includes(item[el.key])) throw {
tabIndex: index message: `${item.tabName}${el.label}`,
} refId: `${el.refId}_${index}`,
}) tabIndex: index
}) }
} })
if (orderObj.onBreak == 'Y') { })
orderObj.brandDataList.forEach(item => { }
item.notDeliveryCount = item.notDeliveryCount || 0 if (orderObj.onBreak == 'Y') {
item.equityToShopCount = item.equityToShopCount || 0 orderObj.brandDataList.forEach(item => {
}) item.notDeliveryCount = item.notDeliveryCount || 0
} item.equityToShopCount = item.equityToShopCount || 0
// 非调休 日报填报前参数校验 })
let check = await this.dailyReportCheck(orderObj) }
console.log(check, 'check') // 非调休 日报填报前参数校验
if (check && !(userInfo?.isSuper || userInfo?.loginRole == 3)) return false let check = await this.dailyReportCheck(orderObj)
uni.showLoading({ console.log(check, 'check')
title: '提交中', if (check && !(userInfo?.isSuper || userInfo?.loginRole == 3)) return false
mask: true uni.showLoading({
}) title: '提交中',
const data = await uni.$api.boutiqueApi.saveStaffDailyReport(orderObj) mask: true
uni.hideLoading() })
if (data) { const data = await uni.$api.boutiqueApi.saveStaffDailyReport(orderObj)
this.isEditReport = false uni.hideLoading()
this.noticeObj = { if (data) {
title: '提交成功', this.isEditReport = false
text: '您的日报已提交成功', this.noticeObj = {
type: 'success', title: '提交成功',
buttons: [ text: '您的日报已提交成功',
{ type: 'success',
text: '返回首页', buttons: [
type: 'primary', {
callback: _ => { text: '返回首页',
uni.navigateBack() type: 'primary',
} callback: _ => {
} uni.navigateBack()
] }
} }
this.$nextTick(() => this.$refs.reportNotice.open()) ]
} }
} catch (errorObj) { this.$nextTick(() => this.$refs.reportNotice.open())
uni.hideLoading() }
if (errorObj.tabIndex != null) this.tabIndex = errorObj.tabIndex } catch (errorObj) {
if (errorObj.message) { uni.hideLoading()
uni.showToast({ if (errorObj.tabIndex != null) this.tabIndex = errorObj.tabIndex
title: `${errorObj.message}不能为空`, if (errorObj.message) {
icon: 'none' uni.showToast({
}) title: `${errorObj.message}不能为空`,
this.to = errorObj.refId icon: 'none'
} else uni.showToast({ })
title: typeof errorObj == 'string' ? errorObj : errorObj.toString(), this.to = errorObj.refId
icon: 'none' } else uni.showToast({
}) title: typeof errorObj == 'string' ? errorObj : errorObj.toString(),
icon: 'none'
} })
},
filterDisabled (disabledStatus) { }
let { weeklyList, currentDate, orderObj: { isDateWithin7Days } } = this },
return weeklyList.includes(currentDate) && !disabledStatus || !isDateWithin7Days filterDisabled (disabledStatus) {
}, let { weeklyList, currentDate, orderObj: { isDateWithin7Days } } = this
changePicker (value, i) { return weeklyList.includes(currentDate) && !disabledStatus || !isDateWithin7Days
const disabled = this.filterDisabled(this.isEditReport) },
if (disabled) return changePicker (value, i) {
this.orderObj[i.value] = { const disabled = this.filterDisabled(this.isEditReport)
'Y': 1, if (disabled) return
'N': 0 this.orderObj[i.value] = {
}[value] 'Y': 1,
this.orderObj[i.submitValue] = value 'N': 0
}, }[value]
handleTemplagePickerChange ({ item }) { this.orderObj[i.submitValue] = value
this.orderObj.templateType = item.value },
}, handleTemplagePickerChange ({ item }) {
cancel () { this.orderObj.templateType = item.value
this.isEditReport = false },
this.hideSelect() cancel () {
}, this.isEditReport = false
hideSelect () { this.hideSelect()
this.$refs?.selectComponent?.hideSelect() },
}, hideSelect () {
async dailyReportCheck (params) { this.$refs?.selectComponent?.hideSelect()
try { },
let { carBandList } = this async dailyReportCheck (params) {
let data = await uni.$api.boutiqueApi.dailyReportCheck(params) try {
let { carBandList } = this
if (!data) { let data = await uni.$api.boutiqueApi.dailyReportCheck(params)
return false
} if (!data) {
// 根据车型做对应的文字处理 return false
let context = '' }
let showModal = false // 根据车型做对应的文字处理
data.forEach(item => { let context = ''
if (!item.isCheckPass) { let showModal = false
showModal = true data.forEach(item => {
carBandList.forEach(el => { if (!item.isCheckPass) {
if (el.brandType == item.brandType) { showModal = true
context += `【${el.tabName}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${item.differenceValue carBandList.forEach(el => {
},请相关驻店销售对齐核销再次提交\t\n` if (el.brandType == item.brandType) {
} context += `【${el.tabName}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${item.differenceValue
}) },请相关驻店销售对齐核销再次提交\t\n`
} }
}) })
if (showModal) { }
return new Promise(resolve => { })
this.noticeObj = { if (showModal) {
title: '重要提示', return new Promise(resolve => {
text: context, this.noticeObj = {
type: 'warning', title: '重要提示',
buttons: [ text: context,
{ type: 'warning',
text: '确定', buttons: [
type: 'primary', {
callback: _ => { text: '确定',
resolve(true) type: 'primary',
this.$refs.reportNotice.close() callback: _ => {
} resolve(true)
} this.$refs.reportNotice.close()
] }
} }
this.$nextTick(() => this.$refs.reportNotice.open()) ]
}) }
} else { this.$nextTick(() => this.$refs.reportNotice.open())
return false })
} } else {
} catch (error) { return false
return false }
} } catch (error) {
}, return false
} }
} },
</script> }
}
<style scoped lang='scss'> </script>
.daily-report {
height: 100%; <style scoped lang='scss'>
.hide-box { .daily-report {
opacity: 0; height: 100%;
height: 100%; .hide-box {
overflow: hidden; opacity: 0;
} height: 100%;
.common-title-btns { overflow: hidden;
margin: 0 toRpx(48) 0 auto; }
gap: toRpx(16); .common-title-btns {
} margin: 0 toRpx(48) 0 auto;
gap: toRpx(16);
.repoet-view { }
height: calc(100% - #{toRpx(248)});
position: relative; .repoet-view {
.repoet-box { height: calc(100% - #{toRpx(248)});
height: 100%; position: relative;
} .repoet-box {
} height: 100%;
.full { }
height: calc(100% - #{toRpx(120)}); }
} .full {
.box { height: calc(100% - #{toRpx(120)});
margin: 0 toRpx(48) toRpx(16); }
border-radius: toRpx(16); .box {
background: #ffffff; margin: 0 toRpx(48) toRpx(16);
padding-left: toRpx(32); border-radius: toRpx(16);
.sub-title { background: #ffffff;
line-height: toRpx(48); padding-left: toRpx(32);
padding: toRpx(16) toRpx(32) toRpx(8) 0; .sub-title {
color: #777777; line-height: toRpx(48);
font-size: toRpx(24); padding: toRpx(16) toRpx(32) toRpx(8) 0;
.staff-name { color: #777777;
margin-left: auto; font-size: toRpx(24);
color: #4673ff; .staff-name {
font-size: toRpx(24); margin-left: auto;
} color: #4673ff;
} font-size: toRpx(24);
}
.form-item { }
min-height: toRpx(96);
border-bottom: toRpx(2) solid #f7f7f6; .form-item {
padding-right: toRpx(32); min-height: toRpx(96);
font-size: toRpx(28); border-bottom: toRpx(2) solid #f7f7f6;
color: #333333; padding-right: toRpx(32);
&:last-of-type { font-size: toRpx(28);
border-bottom: none; color: #333333;
} &:last-of-type {
.label { border-bottom: none;
flex-shrink: 0; }
margin-right: toRpx(16); .label {
.required { flex-shrink: 0;
color: #f24724; margin-right: toRpx(16);
font-size: toRpx(28); .required {
margin-left: toRpx(8); color: #f24724;
} font-size: toRpx(28);
} margin-left: toRpx(8);
.value { }
width: 100%; }
height: 100%; .value {
justify-content: flex-end; width: 100%;
height: 100%;
.input, justify-content: flex-end;
.picker {
width: 100%; .input,
height: 100%; .picker {
text-align: right; width: 100%;
line-height: toRpx(96); height: 100%;
justify-content: flex-end; text-align: right;
font-size: toRpx(28); line-height: toRpx(96);
} justify-content: flex-end;
.picker { font-size: toRpx(28);
gap: toRpx(48); }
&-item { .picker {
line-height: toRpx(34); gap: toRpx(48);
.icon { &-item {
margin-right: toRpx(10); line-height: toRpx(34);
height: toRpx(32); .icon {
} margin-right: toRpx(10);
} height: toRpx(32);
} }
.placeholder { }
color: #999999; }
font-size: toRpx(28); .placeholder {
line-height: toRpx(28); color: #999999;
} font-size: toRpx(28);
.textarea { line-height: toRpx(28);
width: calc(100% - #{toRpx(24)}); }
text-align: right; .textarea {
margin: toRpx(10) 0 0 toRpx(24); width: calc(100% - #{toRpx(24)});
font-size: toRpx(28); text-align: right;
} margin: toRpx(10) 0 0 toRpx(24);
} font-size: toRpx(28);
} }
.name { }
line-height: toRpx(48); }
height: toRpx(72); .name {
color: #777777; line-height: toRpx(48);
font-size: toRpx(24); height: toRpx(72);
border-bottom: none; color: #777777;
} font-size: toRpx(24);
} border-bottom: none;
.car-band-box { }
margin: 0 toRpx(48) toRpx(16); }
background: #ffffff59; .car-band-box {
backdrop-filter: blur(toRpx(16)); margin: 0 toRpx(48) toRpx(16);
box-shadow: inset 0 0 toRpx(16) 0 #ffffff; background: #ffffff59;
overflow: hidden; backdrop-filter: blur(toRpx(16));
border-radius: toRpx(32); box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
.car-band-form-box { overflow: hidden;
height: toRpx(480); border-radius: toRpx(32);
position: relative; .car-band-form-box {
.box { height: toRpx(480);
position: absolute; position: relative;
left: 0; .box {
top: 0; position: absolute;
width: 100%; left: 0;
visibility: hidden; top: 0;
} width: 100%;
.show { visibility: hidden;
visibility: visible; }
} .show {
} visibility: visible;
.box { }
margin: 0; }
border-radius: 0 0 toRpx(32); .box {
} margin: 0;
} border-radius: 0 0 toRpx(32);
.info { }
display: flex; }
padding: 0 toRpx(32) toRpx(16); .info {
flex-wrap: wrap; display: flex;
&-item { padding: 0 toRpx(32) toRpx(16);
width: 25%; flex-wrap: wrap;
color: #222222; &-item {
font-size: toRpx(28); width: 25%;
font-weight: 500; color: #222222;
} font-size: toRpx(28);
&-label { font-weight: 500;
color: #777777; }
font-size: toRpx(24); &-label {
line-height: toRpx(48); color: #777777;
padding: toRpx(24) 0 toRpx(8); font-size: toRpx(24);
} line-height: toRpx(48);
&-value { padding: toRpx(24) 0 toRpx(8);
padding-bottom: toRpx(8); }
} &-value {
} padding-bottom: toRpx(8);
.block { }
width: 100%; }
height: toRpx(16); .block {
} width: 100%;
.btn-box { height: toRpx(16);
height: toRpx(128); }
padding: 0 toRpx(128); .btn-box {
gap: 0 toRpx(32); height: toRpx(128);
.btn { padding: 0 toRpx(128);
display: flex; gap: 0 toRpx(32);
align-items: center; .btn {
justify-content: center; display: flex;
width: 100%; align-items: center;
height: toRpx(80); justify-content: center;
border-radius: toRpx(48); width: 100%;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); height: toRpx(80);
color: #ffffff; border-radius: toRpx(48);
font-size: toRpx(28); background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
font-weight: 500; color: #ffffff;
} font-size: toRpx(28);
.cancel-btn { font-weight: 500;
background: #3b73ff1a; }
color: #4673ff; .cancel-btn {
} background: #3b73ff1a;
} color: #4673ff;
.nothing { }
position: absolute; }
top: 0; .nothing {
left: 0; position: absolute;
bottom: 0; top: 0;
right: 0; left: 0;
// background: #f1f4ff; bottom: 0;
backdrop-filter: blur(8px); right: 0;
z-index: 2; // background: #f1f4ff;
flex-direction: column; backdrop-filter: blur(8px);
justify-content: center; z-index: 2;
color: #999999; flex-direction: column;
font-size: toRpx(24); justify-content: center;
.icon { color: #999999;
width: toRpx(344); font-size: toRpx(24);
height: toRpx(236); .icon {
} width: toRpx(344);
} height: toRpx(236);
} }
}
}
</style> </style>
\ 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!