Commit cbccf301 by zhangxw

bug修复

1 parent f485f636
...@@ -44,6 +44,11 @@ ...@@ -44,6 +44,11 @@
<span>{{ scope.row.monthStr }}</span> <span>{{ scope.row.monthStr }}</span>
</template> </template>
</el-table-column> </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"> <el-table-column label="业务" prop="" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.staffSceneLabelStr }}</span> <span>{{ scope.row.staffSceneLabelStr }}</span>
...@@ -184,6 +189,7 @@ export default { ...@@ -184,6 +189,7 @@ export default {
}, },
data() { data() {
return { return {
isEmpty,
rangePickerOptions: rangePickerOptions, rangePickerOptions: rangePickerOptions,
performanceData: {}, performanceData: {},
commissionLogic: { commissionLogic: {
...@@ -218,14 +224,14 @@ export default { ...@@ -218,14 +224,14 @@ export default {
label: '渗透率', label: '渗透率',
prop: 'penetrationRate', prop: 'penetrationRate',
formatter: (row) => { 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: '当天产值', label: '当天产值',
prop: 'totalPrice', prop: 'totalPrice',
formatter: (row) => { formatter: (row) => {
return !isEmpty(row.totalPrice) ? `¥${row.totalPrice}` : '-' return !this.isEmpty(row.totalPrice) ? `¥${row.totalPrice}` : '-'
} }
} }
] ]
...@@ -331,14 +337,14 @@ export default { ...@@ -331,14 +337,14 @@ export default {
sceneType: this.commissionLogic.sceneType, sceneType: this.commissionLogic.sceneType,
hireType: this.queryData?.hireType 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 => { getPerformancePlanDetailApi(params).then(res => {
this.$set(this.commissionLogic, 'staffLevel', filterStr(this.queryData.jobType, staffLevelList, this.queryData.hireType)) this.$set(this.commissionLogic, 'staffLevel', filterStr(this.queryData.jobType, staffLevelList, this.queryData.hireType))
let arr = [] let arr = []
res?.configItemList.forEach((v, index) => { res?.configItemList.forEach((v, index) => {
if (v.jobType == this.queryData.jobType) { if (v.jobType == this.queryData.jobType) {
arr.push({ 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}%`, calculateValue: `${v.calculateValue}%`,
distributionRule: `个人${v.grCommissionRatio}%+导师${v.dsCommissionRatio}%+督导${v.ddCommissionRatio}%+激励池${v.jlcCommissionRatio}%` 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!