Commit cbccf301 by zhangxw

bug修复

1 parent f485f636
......@@ -44,6 +44,11 @@
<span>{{ scope.row.monthStr }}</span>
</template>
</el-table-column>
<el-table-column label="个人工资" prop="" align="center">
<template slot-scope="scope">
<span>{{ isEmpty(scope.row.salary) ? `¥${scope.row.salary}` : '- ' }}</span>
</template>
</el-table-column>
<el-table-column label="业务" prop="" align="center">
<template slot-scope="scope">
<span>{{ scope.row.staffSceneLabelStr }}</span>
......@@ -184,6 +189,7 @@ export default {
},
data() {
return {
isEmpty,
rangePickerOptions: rangePickerOptions,
performanceData: {},
commissionLogic: {
......@@ -218,14 +224,14 @@ export default {
label: '渗透率',
prop: 'penetrationRate',
formatter: (row) => {
return !isEmpty(row.deliveryCount) ? row.deliveryCount == 0 ? '0%' : `${(row.orderCount/row.deliveryCount).toFixed(2)*100}%` : '-'
return !this.isEmpty(row.deliveryCount) ? row.deliveryCount == 0 ? '0%' : `${(row.orderCount/row.deliveryCount).toFixed(2)*100}%` : '-'
}
},
{
label: '当天产值',
prop: 'totalPrice',
formatter: (row) => {
return !isEmpty(row.totalPrice) ? `¥${row.totalPrice}` : '-'
return !this.isEmpty(row.totalPrice) ? `¥${row.totalPrice}` : '-'
}
}
]
......@@ -331,14 +337,14 @@ export default {
sceneType: this.commissionLogic.sceneType,
hireType: this.queryData?.hireType
}
if (isEmpty(this.queryData?.hireType) || isEmpty(this.commissionLogic.sceneType) || isEmpty(this.commissionLogic.merchantId)) return
if (this.isEmpty(this.queryData?.hireType) || this.isEmpty(this.commissionLogic.sceneType) || this.isEmpty(this.commissionLogic.merchantId)) return
getPerformancePlanDetailApi(params).then(res => {
this.$set(this.commissionLogic, 'staffLevel', filterStr(this.queryData.jobType, staffLevelList, this.queryData.hireType))
let arr = []
res?.configItemList.forEach((v, index) => {
if (v.jobType == this.queryData.jobType) {
arr.push({
confValue: !isEmpty(v.startValue) && !isEmpty(v.endValue) ? `${v.startValue}-${v.endValue}%` : '',
confValue: !this.isEmpty(v.startValue) && !this.isEmpty(v.endValue) ? `${v.startValue}-${v.endValue}%` : '',
calculateValue: `${v.calculateValue}%`,
distributionRule: `个人${v.grCommissionRatio}%+导师${v.dsCommissionRatio}%+督导${v.ddCommissionRatio}%+激励池${v.jlcCommissionRatio}%`
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!