Commit 190dc160 by wangzhihui

```

feat(salaryPerformance): 新增提成方案配置功能

- 新增 commissionPlanList.vue 组件,实现提成方案配置页面
- 更新 salaryPerformance/index.vue 中的标签页配置
- 将原有的激励池功能替换为提成方案配置功能
- 调整组件引用和路由映射逻辑
```
1 parent e790f4c0
<!-- 提成方案配置 -->
<template>
<d2-container class="rewardPool-list m-t-40">
<d2-table
ref="commissionTable"
:search-form="searchFormSearch"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
>
<div slot="auth-button" slot-scope="scope">
<auth-button :data="scope.scope" :show-btn-ids="['9121209']" />
</div>
</d2-table>
</d2-container>
</template>
<script>
import { Util, deepClone } from "@/common/util"
import { getIncentivePoolStatisticsApi } from "@api/resident"
export default {
name: "commissionPlanList",
data() {
return {
baseData: {
jobTypeList: deepClone(staffLevelList)
},
copyShowFormData: [],
staticData: {}
}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.month-class {
width: 100% !important;
}
.m-t-40 {
margin-top: 40px;
::v-deep .el-tabs__header {
padding: 0 !important;
margin: 0 0 15px !important;
}
}
.static-text {
position: absolute;
top: 30px;
left: 200px;
// margin-top: 20px;
font-size: 14px;
color: #666;
}
.d2-container-content {
position: relative;
}
</style>
...@@ -3,7 +3,12 @@ ...@@ -3,7 +3,12 @@
<div class="performance-list-wrap"> <div class="performance-list-wrap">
<div class="header" slot="header" style="background: #e7eaec"> <div class="header" slot="header" style="background: #e7eaec">
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane v-for="(item, index) in tabPaneList" :label="item.label" :name="item.name" :key="index"> <el-tab-pane
v-for="(item, index) in tabPaneList"
:label="item.label"
:name="item.name"
:key="index"
>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<components :is="tabName" :active-name="activeName"></components> <components :is="tabName" :active-name="activeName"></components>
...@@ -11,26 +16,31 @@ ...@@ -11,26 +16,31 @@
</div> </div>
</template> </template>
<script> <script>
import performanceList from './components/performanceList.vue' import performanceList from "./components/performanceList.vue"
import rewardPoolLis from './components/rewardPoolList.vue' // import rewardPoolLis from "./components/rewardPoolList.vue"
import commissionPlanList from "./components/commissionPlanList.vue"
export default { export default {
name: 'SalaryPerformance', name: "SalaryPerformance",
components: { components: {
performanceList, performanceList,
rewardPoolLis commissionPlanList
}, },
data() { data() {
return { return {
activeName: "0", activeName: "0",
tabPaneList: [ tabPaneList: [
{ {
label: "门店工资绩效", label: "门店提成方案",
name: "0" name: "0"
}, },
{ {
label: '激励池', label: "提成方案配置",
name: "1" name: "1"
} }
// {
// label: '激励池',
// name: "1"
// }
], ],
tabName: "performanceList" tabName: "performanceList"
} }
...@@ -46,7 +56,8 @@ export default { ...@@ -46,7 +56,8 @@ export default {
handleClick() { handleClick() {
const arr = { const arr = {
0: "performanceList", 0: "performanceList",
1: "rewardPoolLis" // 1: "rewardPoolLis"
1: "commissionPlanList" //提成方案配置
} }
this.tabName = arr[+this.activeName] this.tabName = arr[+this.activeName]
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!