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'
import mediaResourceManager from '@/utils/mediaResourceManager/mediaResourceManager'
import { interceptionMixin } from '@/mixin/index'
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 },
props: {
id: [String, Number],
......@@ -412,8 +412,12 @@ export default {
const noInterceptPage = ['DailyReport', 'DeliveryManagement'],
{ sceneType } = this
if (!noInterceptPage.includes(item.name) && (await this.checkDailyReport(sceneType != 7))) return
if (sceneType != 7 && (await this.inspectionOfProhibitionBill())) return
if (!noInterceptPage.includes(item.name)) {
if (sceneType != 7) {
if (await this.inspectionOfProhibitionBill()) return
}
if (await this.checkDailyReport(sceneType != 7)) return
}
if (item.name === 'EvaluationFormList') {
mediaResourceManager.cleanupExpired()
uni.navigateTo({
......
<template>
<view :class="['select-box',{styleV2:styleV2}]">
<view :class="['select-box',{styleV2:styleV2},{'disabled':disabled}]">
<view
class="select"
@click.stop="showPop"
......@@ -112,17 +112,22 @@ export default {
}
.styleV2 {
.select {
height: 80rpx;
height: toRpx(80);
background: #3b73ff1a;
color: #333333;
font-size: 28rpx;
font-size: toRpx(28);
transition: all 0.15s;
}
.pop-box {
font-size: 28rpx;
font-size: toRpx(28);
.type-item {
height: toRpx(80);
}
}
}
.disabled{
.select{
padding: 0 toRpx(40);
}
}
</style>
\ No newline at end of file
......@@ -87,7 +87,7 @@
styleV2
:typeList="carBandList"
:tabIndex.sync="tabIndex"
nameKey="firstBrandName"
nameKey="tabName"
></type-tab-component>
<view
class="car-band-form-box"
......@@ -377,13 +377,15 @@ export default {
{
label: '今日成交数',
format: () => {
return this.carBandList[this.tabIndex].totalOrderCount
let { carBandList, tabIndex } = this,
item = carBandList[tabIndex] || {}
return item.totalOrderCount || 0
}
},
{
label: '个人成交总金额',
format: _ => {
return this.orderObj.totalOrderMoney
return `¥${this.orderObj.totalOrderMoney || 0}`
}
}
])
......@@ -441,6 +443,10 @@ export default {
merchantId: shopMerchantId,
sceneType: 1
})
data.map(e => {
let { firstBrandId, firstBrandName, brandName } = e
e.tabName = firstBrandId == -1 ? firstBrandName : brandName
})
this.carBandList = data
this.getStaffDailyReportDetail()
},
......@@ -527,7 +533,7 @@ export default {
this.dateKey[`equityToShopCount_${index}`] = Date.now()
this.dateKey[`afterSaleEquityToShopCount_${index}`] = Date.now()
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
} else if (ele.brandType == 2) {
return ele.firstBrandId == item.firstBrandId
......@@ -539,7 +545,8 @@ export default {
firstBrandName,
brandId,
brandName,
brandType
brandType,
tabName
} = item
item = {
...carBand,
......@@ -547,7 +554,8 @@ export default {
firstBrandName,
brandId,
brandName,
brandType
brandType,
tabName
}
} else {
hwOhterObjArray.forEach(e => {
......@@ -650,14 +658,16 @@ export default {
carBandList.map((item, index) => {
if (item.firstBrandId == -1) defaultObjArray.map(el => {
if (el.required && ['', null].includes(item[el.key])) throw {
message: `${item.firstBrandName}${el.label}`,
refId: `${el.refId}_${index}`
message: `${item.tabName}${el.label}`,
refId: `${el.refId}_${index}`,
tabIndex: index
}
})
else hwOhterObjArray.map(el => {
if (el.required && ['', null].includes(item[el.key])) throw {
message: `${item.firstBrandName}${el.label}`,
refId: `${el.refId}_${index}`
message: `${item.tabName}${el.label}`,
refId: `${el.refId}_${index}`,
tabIndex: index
}
})
})
......@@ -676,6 +686,7 @@ export default {
}
} catch (errorObj) {
uni.hideLoading()
if (errorObj.tabIndex != null) this.tabIndex = errorObj.tabIndex
if (errorObj.message) {
uni.showToast({
title: `${errorObj.message}不能为空`,
......@@ -780,6 +791,7 @@ export default {
}
.label {
flex-shrink: 0;
margin-right: toRpx(16);
.required {
color: #f24724;
font-size: toRpx(28);
......@@ -813,13 +825,15 @@ export default {
.placeholder {
color: #999999;
font-size: toRpx(28);
line-height: toRpx(28);
line-height: toRpx(28);
}
.textarea {
width: calc(100% - #{toRpx(24)});
margin-left: toRpx(24);
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 {
.info {
display: flex;
padding: toRpx(16) toRpx(32);
flex-wrap: wrap;
&-item {
width: 25%;
color: #222222;
......
......@@ -112,7 +112,7 @@ export default {
},
async entranceClick (item) {
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
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!