forked from angelo/web-retail-admin
feat(sourceBonus): 奖金来源移除无用字段
This commit is contained in:
parent
c48c3e8ad3
commit
97ba4417cd
|
@ -182,21 +182,7 @@
|
|||
>
|
||||
{{ '导出' }}</el-button>
|
||||
</div>
|
||||
<div>
|
||||
<el-dropdown :hide-on-click="false">
|
||||
<span class="el-dropdown-link kuang">
|
||||
{{ '筛选字段'
|
||||
}}<i class="el-icon-arrow-down el-icon--right" />
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item v-for="item in menuList" :key="item.id">
|
||||
<el-checkbox
|
||||
v-model="item.checked"
|
||||
@change="getMenu($event, item.id)"
|
||||
>{{ item.text }}</el-checkbox></el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="maintable">
|
||||
<div>
|
||||
|
@ -215,28 +201,28 @@
|
|||
>
|
||||
<el-table-column type="selection" width="100" />
|
||||
<el-table-column
|
||||
v-if="dataList[0].key"
|
||||
v-if="columnVisible('period')"
|
||||
align="center"
|
||||
prop="period"
|
||||
width="130"
|
||||
:label="'结算期数'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[1].key"
|
||||
v-if="columnVisible('settleDate')"
|
||||
align="center"
|
||||
prop="settleDate"
|
||||
width="130"
|
||||
:label="'结算日期'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[2].key"
|
||||
v-if="columnVisible('orderCode')"
|
||||
align="center"
|
||||
prop="orderCode"
|
||||
width="200"
|
||||
:label="'订单编号'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[3].key"
|
||||
v-if="columnVisible('orderTypeVal')"
|
||||
align="center"
|
||||
prop="orderTypeVal"
|
||||
width="130"
|
||||
|
@ -244,21 +230,21 @@
|
|||
/>
|
||||
|
||||
<el-table-column
|
||||
v-if="dataList[5].key"
|
||||
v-if="columnVisible('sourceMemberCode')"
|
||||
align="center"
|
||||
prop="sourceMemberCode"
|
||||
width="130"
|
||||
:label="'来源编号'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[6].key"
|
||||
v-if="columnVisible('sourceMemberName')"
|
||||
align="center"
|
||||
prop="sourceMemberName"
|
||||
width="130"
|
||||
:label="'来源姓名'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[7].key"
|
||||
v-if="columnVisible('orderAmount')"
|
||||
align="center"
|
||||
prop="orderAmount"
|
||||
width="130"
|
||||
|
@ -266,7 +252,7 @@
|
|||
:formatter="stateFormat"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[8].key"
|
||||
v-if="columnVisible('orderAchieveOri')"
|
||||
align="center"
|
||||
prop="orderAchieveOri"
|
||||
width="130"
|
||||
|
@ -275,118 +261,36 @@
|
|||
/>
|
||||
|
||||
<el-table-column
|
||||
v-if="dataList[12].key"
|
||||
v-if="columnVisible('memberCode')"
|
||||
align="center"
|
||||
prop="memberCode"
|
||||
width="130"
|
||||
:label="'收益编号'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[13].key"
|
||||
v-if="columnVisible('memberName')"
|
||||
align="center"
|
||||
prop="memberName"
|
||||
width="130"
|
||||
:label="'收益姓名'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[14].key"
|
||||
v-if="columnVisible('pkSettleGradeVal')"
|
||||
align="center"
|
||||
prop="pkSettleGradeVal"
|
||||
width="130"
|
||||
:label="'结算等级'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[15].key"
|
||||
v-if="columnVisible('pkAwardsVal')"
|
||||
align="center"
|
||||
prop="pkAwardsVal"
|
||||
width="130"
|
||||
:label="'当月奖衔'"
|
||||
/>
|
||||
<!-- <el-table-column-->
|
||||
<!-- v-for="item in menuList"-->
|
||||
<!-- v-if="item.checked&&item.id != 0&&item.id < 13"-->
|
||||
<!-- :key="item.id"-->
|
||||
<!-- align="center"-->
|
||||
<!-- width="130"-->
|
||||
<!-- :prop="item.prop"-->
|
||||
<!-- :label="item.text"-->
|
||||
<!-- />-->
|
||||
|
||||
<el-table-column
|
||||
v-if="menuList[9].checked == true && dataList[16].key"
|
||||
align="center"
|
||||
prop="round"
|
||||
width="130"
|
||||
:label="'直推轮数'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="menuList[10].checked == true && dataList[17].key"
|
||||
align="center"
|
||||
prop="second"
|
||||
width="130"
|
||||
:label="'直推次数'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="menuList[11].checked == true && dataList[18].key"
|
||||
align="center"
|
||||
prop="currentTouch"
|
||||
width="130"
|
||||
:label="'当前碰次'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="menuList[12].checked == true && dataList[19].key"
|
||||
align="center"
|
||||
prop="expandTouch"
|
||||
width="130"
|
||||
:label="'拓展碰次'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="menuList[13].checked == true && dataList[20].key"
|
||||
align="center"
|
||||
prop="currentGeneration"
|
||||
width="130"
|
||||
:label="'当前代数'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="menuList[14].checked == true && dataList[21].key"
|
||||
align="center"
|
||||
prop="coachGeneration"
|
||||
width="130"
|
||||
:label="'辅导代数'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="menuList[1].checked == true && dataList[22].key"
|
||||
align="center"
|
||||
prop="expandNoCappingOri"
|
||||
width="130"
|
||||
:label="'拓展无封' + `(${isLocalSymbol()})`"
|
||||
:formatter="stateFormat"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="menuList[2].checked == true && dataList[23].key"
|
||||
align="center"
|
||||
prop="expandCappingOri"
|
||||
width="130"
|
||||
:label="'拓展封顶' + `(${isLocalSymbol()})`"
|
||||
:formatter="stateFormat"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="menuList[3].checked == true && dataList[24].key"
|
||||
align="center"
|
||||
prop="expandNormalHalfOri"
|
||||
width="130"
|
||||
:label="'拓展正常减半' + `(${isLocalSymbol()})`"
|
||||
:formatter="stateFormat"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="menuList[4].checked == true && dataList[25].key"
|
||||
align="center"
|
||||
prop="expandNormalRealOri"
|
||||
width="130"
|
||||
:label="'拓展实际减半' + `(${isLocalSymbol()})`"
|
||||
:formatter="stateFormat"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[26].key"
|
||||
v-if="columnVisible('pretaxIncomeOri')"
|
||||
align="center"
|
||||
prop="pretaxIncomeOri"
|
||||
width="130"
|
||||
|
@ -394,7 +298,7 @@
|
|||
:formatter="stateFormat"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[27].key"
|
||||
v-if="columnVisible('realIncomeOri')"
|
||||
align="center"
|
||||
prop="realIncomeOri"
|
||||
width="130"
|
||||
|
@ -403,35 +307,35 @@
|
|||
/>
|
||||
|
||||
<el-table-column
|
||||
v-if="dataList[34].key"
|
||||
v-if="columnVisible('bonusName')"
|
||||
align="center"
|
||||
prop="bonusName"
|
||||
width="130"
|
||||
:label="'收益类型'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[35].key"
|
||||
v-if="columnVisible('incomeStatusVal')"
|
||||
align="center"
|
||||
prop="incomeStatusVal"
|
||||
width="130"
|
||||
:label="'收益状态'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[36].key"
|
||||
v-if="columnVisible('vertexName')"
|
||||
align="center"
|
||||
prop="vertexName"
|
||||
width="130"
|
||||
:label="'隶属体系'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[37].key"
|
||||
v-if="columnVisible('teamName')"
|
||||
align="center"
|
||||
prop="teamName"
|
||||
width="130"
|
||||
:label="'隶属团队'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[38].key"
|
||||
v-if="columnVisible('remark')"
|
||||
align="center"
|
||||
prop="remark"
|
||||
width="700"
|
||||
|
@ -439,61 +343,29 @@
|
|||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[39].key"
|
||||
v-if="columnVisible('incomeRatio')"
|
||||
align="center"
|
||||
prop="incomeRatio"
|
||||
width="130"
|
||||
:label="'收益占比' + '(%)'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[40].key"
|
||||
v-if="columnVisible('incomeDialRatio')"
|
||||
align="center"
|
||||
prop="incomeDialRatio"
|
||||
width="130"
|
||||
:label="'收益拨比' + '(%)'"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="dataList[41].key"
|
||||
v-if="columnVisible('orderDialRatio')"
|
||||
align="center"
|
||||
prop="orderDialRatio"
|
||||
width="130"
|
||||
:label="'订单拨比' + '(%)'"
|
||||
/>
|
||||
<!-- <el-table-column align="center"-->
|
||||
<!-- prop="time"-->
|
||||
<!-- :label="'操作'" fixed="right" >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-button @click="toFixed(scope.row.pkId)"-->
|
||||
<!-- type="text"-->
|
||||
<!-- size="small">-->
|
||||
<!-- 修改-->
|
||||
<!-- </el-button>-->
|
||||
<!-- <el-button @click="toFixed(scope.row.pkId)"-->
|
||||
<!-- type="text"-->
|
||||
<!-- size="small">-->
|
||||
<!-- 查看-->
|
||||
<!-- </el-button>-->
|
||||
<!-- <el-button @click="handleDelete(scope.row.pkId)"-->
|
||||
<!-- type="text"-->
|
||||
<!-- size="small"-->
|
||||
<!-- style="color: #c73030">-->
|
||||
<!-- 删除-->
|
||||
<!-- </el-button>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
|
||||
</el-table>
|
||||
</div>
|
||||
<!-- <div class="heji">-->
|
||||
<!-- <div-->
|
||||
<!-- v-for="item in menuList"-->
|
||||
<!-- v-if="item.checked&&item.id != 0&&item.id > 13"-->
|
||||
<!-- :key="item.id"-->
|
||||
<!-- class="dis"-->
|
||||
<!-- >-->
|
||||
<!-- <div>{{ item.text }}</div>-->
|
||||
<!-- <div>{{ tableData[item.prop] }}</div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
</div>
|
||||
<pagination
|
||||
|
@ -552,97 +424,7 @@ export default {
|
|||
label: '禁止'
|
||||
}
|
||||
],
|
||||
menuList: [
|
||||
{
|
||||
id: 0,
|
||||
text: '全选',
|
||||
checked: true
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
text: `${'拓展无封'}(${isLocalSymbol()})`,
|
||||
checked: true,
|
||||
prop: 'expandNoCappingOri'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
text: `${'拓展封顶'}(${isLocalSymbol()})`,
|
||||
checked: true,
|
||||
prop: 'expandCapping'
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
text: `${'拓展正常减半'}(${isLocalSymbol()})`,
|
||||
checked: true,
|
||||
prop: 'expandNormalHalf'
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
text: `${'拓展实际减半'}(${isLocalSymbol()})`,
|
||||
checked: true,
|
||||
prop: 'expanndNormalReal'
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
text: '拓展无封' + '($)',
|
||||
checked: true,
|
||||
prop: 'expandNoCappingDollar'
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
text: '拓展封顶' + `(${isLocals()})`,
|
||||
checked: true,
|
||||
prop: 'expandCappingDollar'
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
text: '拓展正常减半' + '($)',
|
||||
checked: true,
|
||||
prop: 'expandNormalHalfDollar'
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
text: '拓展实际减半' + '($)',
|
||||
checked: true,
|
||||
prop: 'expanndNormalRealDollar'
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
text: '直推轮数',
|
||||
checked: true,
|
||||
prop: 'round'
|
||||
},
|
||||
{
|
||||
id: 10,
|
||||
text: '直推次数',
|
||||
checked: true,
|
||||
prop: 'second'
|
||||
},
|
||||
{
|
||||
id: 11,
|
||||
text: '当前碰次',
|
||||
checked: true,
|
||||
prop: 'currentTouch'
|
||||
},
|
||||
{
|
||||
id: 12,
|
||||
text: '拓展碰次',
|
||||
checked: true,
|
||||
prop: 'expandTouch'
|
||||
},
|
||||
{
|
||||
id: 13,
|
||||
text: '当前代数',
|
||||
checked: true,
|
||||
prop: 'currentGeneration'
|
||||
},
|
||||
{
|
||||
id: 14,
|
||||
text: '辅助代数',
|
||||
checked: true,
|
||||
prop: 'coachGeneration'
|
||||
}
|
||||
],
|
||||
|
||||
creationTime: [],
|
||||
creationTime1: [],
|
||||
select: {},
|
||||
|
@ -685,174 +467,7 @@ export default {
|
|||
gradeRanglist: [],
|
||||
typeId: '',
|
||||
dataList: [
|
||||
{
|
||||
name: 'period',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'settleDate',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'orderCode',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'orderTypeVal',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'sourceCountryName',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'sourceMemberCode',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'sourceMemberName',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'orderAmount',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'orderAchieveOri',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'orderAmountDollar',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'orderAchieve',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'settleCountry',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'memberCode',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'memberName',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'pkSettleGradeVal',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'pkAwardsVal',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'round',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'second',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'currentTouch',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'expandTouch',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'currentGeneration',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'coachGeneration',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'expandNoCappingOri',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'expandCappingOri',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'expandNormalHalfOri',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'expandNormalRealOri',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'pretaxIncomeOri',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'realIncomeOri',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'expandNoCapping',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'expandCapping',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'expandNormalHalf',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'expandNormalReal',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'pretaxIncome',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'realIncome',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'bonusName',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'incomeStatusVal',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'vertexName',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'teamName',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'remark',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'incomeRatio',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'incomeDialRatio',
|
||||
key: ''
|
||||
},
|
||||
{
|
||||
name: 'orderDialRatio',
|
||||
key: ''
|
||||
}
|
||||
|
||||
],
|
||||
flag: false
|
||||
}
|
||||
|
@ -876,6 +491,9 @@ export default {
|
|||
this.getUserRole()
|
||||
},
|
||||
methods: {
|
||||
columnVisible(column) {
|
||||
return this.dataList.includes(column)
|
||||
},
|
||||
getPayTime() {
|
||||
const date = new Date()
|
||||
date.setDate(date.getDate() - 1) // 将日期设置为昨天
|
||||
|
@ -931,13 +549,7 @@ export default {
|
|||
isLocalSymbol,
|
||||
getUserRole() {
|
||||
getRoleMenu('sourceBonus').then((res) => {
|
||||
this.dataList.forEach((item) => {
|
||||
res.data.forEach((items) => {
|
||||
if (item.name == items) {
|
||||
item.key = items
|
||||
}
|
||||
})
|
||||
})
|
||||
this.dataList = res.data
|
||||
this.flag = true
|
||||
})
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue