Commit 78068593 by 李伟康

commit 轻改&延保日报

1 parent 8041c450

2.9 MB | W: | H:

2.91 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -193,7 +193,7 @@ import Entrance from '@/components/Entrance.vue' ...@@ -193,7 +193,7 @@ import Entrance from '@/components/Entrance.vue'
import mediaResourceManager from '@/utils/mediaResourceManager/mediaResourceManager' import mediaResourceManager from '@/utils/mediaResourceManager/mediaResourceManager'
import { interceptionMixin } from '@/mixin/index' import { interceptionMixin } from '@/mixin/index'
export default { export default {
mixins: [recorder, uploader, timeout, versionCheck, interceptionMixin , merge], mixins: [recorder, uploader, timeout, versionCheck, interceptionMixin, merge],
components: { ReceptionCenter, StudyCenter, ActivityCenter, SceneMarket, LeftSide, Point, dayPoint, rulePoint, Course, Ranking, LevelPoint, Calendar, Promotion, History, LevelMedal, MessageDetail, SwiperComponent, MessageIndex, Entrance }, components: { ReceptionCenter, StudyCenter, ActivityCenter, SceneMarket, LeftSide, Point, dayPoint, rulePoint, Course, Ranking, LevelPoint, Calendar, Promotion, History, LevelMedal, MessageDetail, SwiperComponent, MessageIndex, Entrance },
props: { props: {
id: [String, Number], id: [String, Number],
...@@ -412,8 +412,12 @@ export default { ...@@ -412,8 +412,12 @@ export default {
const noInterceptPage = ['DailyReport', 'DeliveryManagement'], const noInterceptPage = ['DailyReport', 'DeliveryManagement'],
{ sceneType } = this { sceneType } = this
if (!noInterceptPage.includes(item.name) && (await this.checkDailyReport(sceneType != 7))) return if (!noInterceptPage.includes(item.name)) {
if (sceneType != 7 && (await this.inspectionOfProhibitionBill())) return if (sceneType != 7) {
if (await this.inspectionOfProhibitionBill()) return
}
if (await this.checkDailyReport(sceneType != 7)) return
}
if (item.name === 'EvaluationFormList') { if (item.name === 'EvaluationFormList') {
mediaResourceManager.cleanupExpired() mediaResourceManager.cleanupExpired()
uni.navigateTo({ uni.navigateTo({
......
<template> <template>
<view :class="['select-box',{styleV2:styleV2}]"> <view :class="['select-box',{styleV2:styleV2},{'disabled':disabled}]">
<view <view
class="select" class="select"
@click.stop="showPop" @click.stop="showPop"
...@@ -112,17 +112,22 @@ export default { ...@@ -112,17 +112,22 @@ export default {
} }
.styleV2 { .styleV2 {
.select { .select {
height: 80rpx; height: toRpx(80);
background: #3b73ff1a; background: #3b73ff1a;
color: #333333; color: #333333;
font-size: 28rpx; font-size: toRpx(28);
transition: all 0.15s; transition: all 0.15s;
} }
.pop-box { .pop-box {
font-size: 28rpx; font-size: toRpx(28);
.type-item { .type-item {
height: toRpx(80); height: toRpx(80);
} }
} }
} }
.disabled{
.select{
padding: 0 toRpx(40);
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
styleV2 styleV2
:typeList="carBandList" :typeList="carBandList"
:tabIndex.sync="tabIndex" :tabIndex.sync="tabIndex"
nameKey="firstBrandName" nameKey="tabName"
></type-tab-component> ></type-tab-component>
<view <view
class="car-band-form-box" class="car-band-form-box"
...@@ -377,13 +377,15 @@ export default { ...@@ -377,13 +377,15 @@ export default {
{ {
label: '今日成交数', label: '今日成交数',
format: () => { format: () => {
return this.carBandList[this.tabIndex].totalOrderCount let { carBandList, tabIndex } = this,
item = carBandList[tabIndex] || {}
return item.totalOrderCount || 0
} }
}, },
{ {
label: '个人成交总金额', label: '个人成交总金额',
format: _ => { format: _ => {
return this.orderObj.totalOrderMoney return `¥${this.orderObj.totalOrderMoney || 0}`
} }
} }
]) ])
...@@ -441,6 +443,10 @@ export default { ...@@ -441,6 +443,10 @@ export default {
merchantId: shopMerchantId, merchantId: shopMerchantId,
sceneType: 1 sceneType: 1
}) })
data.map(e => {
let { firstBrandId, firstBrandName, brandName } = e
e.tabName = firstBrandId == -1 ? firstBrandName : brandName
})
this.carBandList = data this.carBandList = data
this.getStaffDailyReportDetail() this.getStaffDailyReportDetail()
}, },
...@@ -527,7 +533,7 @@ export default { ...@@ -527,7 +533,7 @@ export default {
this.dateKey[`equityToShopCount_${index}`] = Date.now() this.dateKey[`equityToShopCount_${index}`] = Date.now()
this.dateKey[`afterSaleEquityToShopCount_${index}`] = Date.now() this.dateKey[`afterSaleEquityToShopCount_${index}`] = Date.now()
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
...@@ -539,7 +545,8 @@ export default { ...@@ -539,7 +545,8 @@ export default {
firstBrandName, firstBrandName,
brandId, brandId,
brandName, brandName,
brandType brandType,
tabName
} = item } = item
item = { item = {
...carBand, ...carBand,
...@@ -547,7 +554,8 @@ export default { ...@@ -547,7 +554,8 @@ export default {
firstBrandName, firstBrandName,
brandId, brandId,
brandName, brandName,
brandType brandType,
tabName
} }
} else { } else {
hwOhterObjArray.forEach(e => { hwOhterObjArray.forEach(e => {
...@@ -650,14 +658,16 @@ export default { ...@@ -650,14 +658,16 @@ export default {
carBandList.map((item, index) => { carBandList.map((item, index) => {
if (item.firstBrandId == -1) defaultObjArray.map(el => { if (item.firstBrandId == -1) defaultObjArray.map(el => {
if (el.required && ['', null].includes(item[el.key])) throw { if (el.required && ['', null].includes(item[el.key])) throw {
message: `${item.firstBrandName}${el.label}`, message: `${item.tabName}${el.label}`,
refId: `${el.refId}_${index}` refId: `${el.refId}_${index}`,
tabIndex: index
} }
}) })
else hwOhterObjArray.map(el => { else hwOhterObjArray.map(el => {
if (el.required && ['', null].includes(item[el.key])) throw { if (el.required && ['', null].includes(item[el.key])) throw {
message: `${item.firstBrandName}${el.label}`, message: `${item.tabName}${el.label}`,
refId: `${el.refId}_${index}` refId: `${el.refId}_${index}`,
tabIndex: index
} }
}) })
}) })
...@@ -676,6 +686,7 @@ export default { ...@@ -676,6 +686,7 @@ export default {
} }
} catch (errorObj) { } catch (errorObj) {
uni.hideLoading() uni.hideLoading()
if (errorObj.tabIndex != null) this.tabIndex = errorObj.tabIndex
if (errorObj.message) { if (errorObj.message) {
uni.showToast({ uni.showToast({
title: `${errorObj.message}不能为空`, title: `${errorObj.message}不能为空`,
...@@ -780,6 +791,7 @@ export default { ...@@ -780,6 +791,7 @@ export default {
} }
.label { .label {
flex-shrink: 0; flex-shrink: 0;
margin-right: toRpx(16);
.required { .required {
color: #f24724; color: #f24724;
font-size: toRpx(28); font-size: toRpx(28);
...@@ -813,13 +825,15 @@ export default { ...@@ -813,13 +825,15 @@ export default {
.placeholder { .placeholder {
color: #999999; color: #999999;
font-size: toRpx(28); font-size: toRpx(28);
line-height: toRpx(28); line-height: toRpx(28);
} }
.textarea { .textarea {
width: calc(100% - #{toRpx(24)}); width: calc(100% - #{toRpx(24)});
margin-left: toRpx(24); margin-left: toRpx(24);
text-align: right; text-align: right;
margin-bottom: toRpx(8); margin: toRpx(10) 0;
line-height: toRpx(28);
font-size: toRpx(28);
} }
} }
} }
...@@ -859,6 +873,7 @@ export default { ...@@ -859,6 +873,7 @@ export default {
.info { .info {
display: flex; display: flex;
padding: toRpx(16) toRpx(32); padding: toRpx(16) toRpx(32);
flex-wrap: wrap;
&-item { &-item {
width: 25%; width: 25%;
color: #222222; color: #222222;
......
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
}, },
async entranceClick (item) { async entranceClick (item) {
const noInterceptPage = ['DailyReport'] const noInterceptPage = ['DailyReport']
if (!noInterceptPage.includes(item.name) && ((await this.checkDailyReport()) || (await this.inspectionOfProhibitionBill()))) return if (!noInterceptPage.includes(item.name) && ((await this.checkDailyReport()))) return
// 保存当前选择的组件信息,但不立即切换 // 保存当前选择的组件信息,但不立即切换
const selectedItem = item const selectedItem = item
if (this.toolComponentName === selectedItem.name && (!this.transmissionOfData || this.transmissionOfData.type !== 'supplementOrder')) return if (this.toolComponentName === selectedItem.name && (!this.transmissionOfData || this.transmissionOfData.type !== 'supplementOrder')) return
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!