feat(jxpz): 奖衔配置字段调整
This commit is contained in:
parent
f163ffc9f0
commit
c7fdea0e9e
|
@ -2,19 +2,18 @@
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<topBar
|
<topBar
|
||||||
v-if="topList.length > 0"
|
v-if="topList.length > 0"
|
||||||
:topList="topList"
|
:top-list="topList"
|
||||||
:moren="moren"
|
:moren="moren"
|
||||||
></topBar>
|
/>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="maintop">
|
<div class="maintop">
|
||||||
<div class="mainbtn">
|
<div class="mainbtn">
|
||||||
<el-button
|
<el-button
|
||||||
|
v-hasButtons="['AwardAllocationRetailAdd']"
|
||||||
size="small"
|
size="small"
|
||||||
class="thebtn1"
|
class="thebtn1"
|
||||||
v-hasButtons="['AwardAllocationRetailAdd']"
|
|
||||||
@click="adddate()"
|
@click="adddate()"
|
||||||
>{{ '添加' }}</el-button
|
>{{ '添加' }}</el-button>
|
||||||
>
|
|
||||||
<!-- <el-button size="small" class="thebtn2">
|
<!-- <el-button size="small" class="thebtn2">
|
||||||
{{ '导出' }}</el-button
|
{{ '导出' }}</el-button
|
||||||
> -->
|
> -->
|
||||||
|
@ -22,170 +21,69 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="maintable">
|
<div class="maintable">
|
||||||
<el-table
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
height="750px"
|
height="750px"
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
v-loading="loading"
|
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:header-cell-style="{ background: '#EEEEEE' }"
|
:header-cell-style="{ background: '#EEEEEE' }"
|
||||||
:row-class-name="tableRowClassName"
|
:row-class-name="tableRowClassName"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55"> </el-table-column>
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column
|
|
||||||
align="center"
|
|
||||||
prop=""
|
|
||||||
:label="'图片'"
|
|
||||||
width="180"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<img
|
|
||||||
style="width: 44px; height: 44px"
|
|
||||||
:src="scope.row.image"
|
|
||||||
alt=""
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="awardsName"
|
prop="awardsName"
|
||||||
:label="'真实奖衔'"
|
label="奖衔名称"
|
||||||
width="180"
|
width="180"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
|
||||||
<!-- <el-table-column
|
|
||||||
align="center"
|
|
||||||
prop="awardsValue"
|
|
||||||
label="奖衔值"
|
|
||||||
width="180"
|
|
||||||
>
|
|
||||||
</el-table-column> -->
|
|
||||||
<el-table-column
|
|
||||||
align="center"
|
|
||||||
prop="communityCheck"
|
|
||||||
:label="'小区考核开始' + `(${isLocals()})`"
|
|
||||||
width="180"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.communityCheck | numberToCurrency }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
align="center"
|
|
||||||
prop="communityCheckEnd"
|
|
||||||
:label="'小区考核结束' + `(${isLocals()})`"
|
|
||||||
width="180"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.communityCheckEnd | numberToCurrency }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
align="center"
|
|
||||||
prop="purchaseCheck"
|
|
||||||
width="140"
|
|
||||||
:label="'复购考核' + `(${isLocals()})`"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.purchaseCheck | numberToCurrency }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
align="center"
|
|
||||||
prop="shareCheck"
|
|
||||||
width="140"
|
|
||||||
:label="'分红考核' + '(BV)'"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
|
|
||||||
<el-table-column align="center" prop="algebra" label="代数">
|
<el-table-column align="center" prop="placeDeptNum" label="部门数量" />
|
||||||
</el-table-column>
|
<el-table-column align="center" prop="totalCheck" label="累计业绩" />
|
||||||
<el-table-column
|
|
||||||
align="center"
|
|
||||||
prop="globalDividend"
|
|
||||||
label="全球分红"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column align="center" prop="placeDeptNum" label="部门数量">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column align="center" prop="totalCheck" label="累计业绩">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
align="center"
|
|
||||||
prop="shareCommunityCheck"
|
|
||||||
label="分红小区考核PV"
|
|
||||||
width="150"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
align="center"
|
|
||||||
prop="shareCommunityCheckEnd"
|
|
||||||
width="200"
|
|
||||||
label="分红小区考核结束PV"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="shareTotalCheck"
|
prop="shareTotalCheck"
|
||||||
label="分红累计业绩"
|
label="分红累计业绩"
|
||||||
width="150"
|
width="150"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
<el-table-column align="center" prop="rangeRatio" label="福利级差比例" />
|
||||||
<el-table-column align="center" prop="rangeRatio" label="极差比例">
|
<el-table-column align="center" prop="monthRepurchaseRatio" label="复购级差比例" />
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="benefitAvgRatio"
|
prop="benefitAvgRatio"
|
||||||
label="福利平均比例"
|
label="福利平均比例"
|
||||||
width="140"
|
width="140"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="benefitShareRatio"
|
prop="benefitShareRatio"
|
||||||
label="福利加权比例"
|
label="福利加权比例"
|
||||||
width="140"
|
width="140"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
align="center"
|
|
||||||
prop="pkCheckAwardsLeftVal"
|
|
||||||
:label="'左区奖衔'"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
align="center"
|
|
||||||
prop="pkCheckAwardsRightVal"
|
|
||||||
:label="'右区奖衔'"
|
|
||||||
></el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
align="center"
|
|
||||||
prop="relationType"
|
|
||||||
:label="'考核'"
|
|
||||||
:formatter="checkRelation"
|
|
||||||
></el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="time"
|
prop="time"
|
||||||
:label="'操作'"
|
:label="'操作'"
|
||||||
fixed="right"
|
fixed="right"
|
||||||
|
width="100"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@click.native.prevent="update(scope.row, tableData)"
|
v-has-buttons="['AwardAllocationRetailEdit']"
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
class="button-s"
|
class="button-s"
|
||||||
style="color: #4391fd"
|
style="color: #4391fd"
|
||||||
v-has-buttons="['AwardAllocationRetailEdit']"
|
@click.native.prevent="update(scope.row, tableData)"
|
||||||
>
|
>
|
||||||
{{ '修改' }}
|
{{ '修改' }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
@click.native.prevent="updateState(scope.row, tableData)"
|
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
class="button-s"
|
class="button-s"
|
||||||
style="color: #c73030"
|
style="color: #c73030"
|
||||||
|
@click.native.prevent="updateState(scope.row, tableData)"
|
||||||
>
|
>
|
||||||
<!-- 0启用1禁用 -->
|
<!-- 0启用1禁用 -->
|
||||||
{{
|
{{
|
||||||
|
@ -223,268 +121,107 @@
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
:before-close="handleClose"
|
:before-close="handleClose"
|
||||||
>
|
>
|
||||||
<el-form ref="form" :rules="rules" :model="form" label-width="auto">
|
<el-form ref="form" :rules="rules" :model="form" label-width="140px">
|
||||||
<el-row style="display: flex; justify-content: space-between">
|
<el-row :gutter="20">
|
||||||
<el-col :span="11" style="margin-left: -20px">
|
<el-col :span="11">
|
||||||
<el-form-item label="奖衔名称" prop="awardsName">
|
<el-form-item label="奖衔名称" prop="awardsName">
|
||||||
<el-input
|
<el-input
|
||||||
clearable
|
|
||||||
v-model="form.awardsName"
|
v-model="form.awardsName"
|
||||||
placeholder=""
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="11">
|
|
||||||
<el-form-item
|
|
||||||
:label="'小区考核开始' + `(${isLocals()})`"
|
|
||||||
prop="communityCheck"
|
|
||||||
>
|
|
||||||
<el-input
|
|
||||||
clearable
|
clearable
|
||||||
v-model="form.communityCheck"
|
|
||||||
placeholder=""
|
placeholder=""
|
||||||
></el-input>
|
/>
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row style="display: flex; justify-content: space-between">
|
|
||||||
<el-col :span="11" style="margin-left: -20px">
|
|
||||||
<el-form-item
|
|
||||||
:label="'复购考核' + `(${isLocals()})`"
|
|
||||||
prop="purchaseCheck"
|
|
||||||
>
|
|
||||||
<el-input
|
|
||||||
clearable
|
|
||||||
v-model="form.purchaseCheck"
|
|
||||||
placeholder=""
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="11">
|
|
||||||
<el-form-item
|
|
||||||
:label="'小区考核结束' + `(${isLocals()})`"
|
|
||||||
prop="communityCheckEnd"
|
|
||||||
>
|
|
||||||
<el-input
|
|
||||||
clearable
|
|
||||||
v-model="form.communityCheckEnd"
|
|
||||||
placeholder=""
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row style="display: flex; justify-content: space-between">
|
|
||||||
<el-col :span="11" style="margin-left: -20px">
|
|
||||||
<el-form-item label="代数" prop="algebra">
|
|
||||||
<el-input
|
|
||||||
clearable
|
|
||||||
v-model="form.algebra"
|
|
||||||
placeholder=""
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="11">
|
|
||||||
<el-form-item label="分红考核" prop="shareCheck">
|
|
||||||
<el-input
|
|
||||||
clearable
|
|
||||||
v-model="form.shareCheck"
|
|
||||||
placeholder=""
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row style="display: flex; justify-content: space-between">
|
|
||||||
<el-col :span="11" style="margin-left: -20px">
|
|
||||||
<el-form-item label="全球分红" prop="globalDividend">
|
|
||||||
<el-input
|
|
||||||
clearable
|
|
||||||
v-model="form.globalDividend"
|
|
||||||
placeholder=""
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="11">
|
<el-col :span="11">
|
||||||
<el-form-item label="部门数量" prop="placeDeptNum">
|
<el-form-item label="部门数量" prop="placeDeptNum">
|
||||||
<el-input
|
<el-input
|
||||||
clearable
|
|
||||||
v-model="form.placeDeptNum"
|
v-model="form.placeDeptNum"
|
||||||
|
clearable
|
||||||
placeholder=""
|
placeholder=""
|
||||||
></el-input>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
|
||||||
<el-row style="display: flex; justify-content: space-between">
|
<el-col :span="11">
|
||||||
<el-col :span="11" style="margin-left: -20px">
|
|
||||||
<el-form-item label="累计业绩" prop="totalCheck">
|
<el-form-item label="累计业绩" prop="totalCheck">
|
||||||
<el-input
|
<el-input
|
||||||
clearable
|
|
||||||
v-model="form.totalCheck"
|
v-model="form.totalCheck"
|
||||||
|
clearable
|
||||||
placeholder=""
|
placeholder=""
|
||||||
></el-input>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="11">
|
<el-col :span="11">
|
||||||
<el-form-item label="极差比例" prop="rangeRatio">
|
<el-form-item label="福利级差比例" prop="rangeRatio">
|
||||||
<el-input
|
<el-input
|
||||||
clearable
|
|
||||||
v-model="form.rangeRatio"
|
v-model="form.rangeRatio"
|
||||||
|
clearable
|
||||||
placeholder=""
|
placeholder=""
|
||||||
></el-input>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
<el-col :span="11">
|
||||||
<el-row style="display: flex; justify-content: space-between">
|
<el-form-item label="复购级差比例" prop="monthRepurchaseRatio">
|
||||||
<el-col :span="11" style="margin-left: -20px">
|
<el-input
|
||||||
|
v-model="form.monthRepurchaseRatio"
|
||||||
|
clearable
|
||||||
|
placeholder=""
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="11">
|
||||||
<el-form-item label="福利平均比例" prop="benefitAvgRatio">
|
<el-form-item label="福利平均比例" prop="benefitAvgRatio">
|
||||||
<el-input
|
<el-input
|
||||||
clearable
|
|
||||||
v-model="form.benefitAvgRatio"
|
v-model="form.benefitAvgRatio"
|
||||||
|
clearable
|
||||||
placeholder=""
|
placeholder=""
|
||||||
></el-input>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="11">
|
<el-col :span="11">
|
||||||
<el-form-item label="福利加权比例" prop="benefitShareRatio">
|
<el-form-item label="福利加权比例" prop="benefitShareRatio">
|
||||||
<el-input
|
<el-input
|
||||||
clearable
|
|
||||||
v-model="form.benefitShareRatio"
|
v-model="form.benefitShareRatio"
|
||||||
|
clearable
|
||||||
placeholder=""
|
placeholder=""
|
||||||
></el-input>
|
/>
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row style="display: flex; justify-content: space-between">
|
|
||||||
<!-- <el-col :span="11" style="margin-left: -20px">
|
|
||||||
<el-form-item label="全球分红(%)" prop="globalDividend">
|
|
||||||
<el-input
|
|
||||||
clearable
|
|
||||||
v-model="form.globalDividend"
|
|
||||||
placeholder=""
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col> -->
|
|
||||||
<el-col :span="11" style="margin-left: -20px">
|
|
||||||
<el-form-item :label="'左区奖衔'" prop="pkCheckAwardsLeft">
|
|
||||||
<el-select
|
|
||||||
clearable
|
|
||||||
v-model="form.pkCheckAwardsLeft"
|
|
||||||
placeholder=""
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in awardsListChiose"
|
|
||||||
:key="item.pkId"
|
|
||||||
:label="item.awardsName"
|
|
||||||
:value="item.pkId"
|
|
||||||
></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="11">
|
<el-col :span="11">
|
||||||
<el-form-item :label="'右区奖衔'" prop="pkCheckAwardsRight">
|
|
||||||
<el-select
|
|
||||||
clearable
|
|
||||||
v-model="form.pkCheckAwardsRight"
|
|
||||||
placeholder=""
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in awardsListChiose"
|
|
||||||
:key="item.pkId"
|
|
||||||
:label="item.awardsName"
|
|
||||||
:value="item.pkId"
|
|
||||||
></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="11">
|
|
||||||
<el-form-item :label="'考核'" prop="relationType">
|
|
||||||
<el-select clearable v-model="form.relationType" placeholder="">
|
|
||||||
<el-option
|
|
||||||
v-for="item in relationList"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="11" style="margin-left: 30px">
|
|
||||||
<el-form-item required label="奖衔属性" prop="awardsValue">
|
<el-form-item required label="奖衔属性" prop="awardsValue">
|
||||||
<el-select clearable v-model="form.awardsValue" placeholder="">
|
<el-select v-model="form.awardsValue" clearable placeholder="">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in awardsSxList"
|
v-for="item in awardsSxList"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
></el-option>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
|
||||||
<el-row style="display: flex; justify-content: space-between">
|
|
||||||
<el-col :span="11" style="margin-left: -20px">
|
|
||||||
<el-form-item label="分红小区考核PV" prop="shareCommunityCheck">
|
|
||||||
<el-input
|
|
||||||
clearable
|
|
||||||
v-model="form.shareCommunityCheck"
|
|
||||||
placeholder=""
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="11">
|
<el-col :span="11">
|
||||||
<el-form-item label="分红累计业绩" prop="shareTotalCheck">
|
<el-form-item label="分红累计业绩" prop="shareTotalCheck">
|
||||||
<el-input
|
<el-input
|
||||||
clearable
|
|
||||||
v-model="form.shareTotalCheck"
|
v-model="form.shareTotalCheck"
|
||||||
placeholder=""
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row style="display: flex; justify-content: space-between">
|
|
||||||
<el-col :span="11" style="margin-left: -20px">
|
|
||||||
<el-form-item
|
|
||||||
label="分红小区考核结束PV"
|
|
||||||
prop="shareCommunityCheckEnd"
|
|
||||||
>
|
|
||||||
<el-input
|
|
||||||
clearable
|
clearable
|
||||||
v-model="form.shareCommunityCheckEnd"
|
|
||||||
placeholder=""
|
placeholder=""
|
||||||
></el-input>
|
/>
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="11"> </el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item :label="'上传图片'" prop="image">
|
|
||||||
<imageUpload v-model="form.image" />
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="颜色" prop="color">
|
<el-form-item label="颜色" prop="color">
|
||||||
<el-color-picker v-model="form.color"></el-color-picker>
|
<el-color-picker v-model="form.color" />
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="11" style="margin-left: -20px">
|
|
||||||
<el-form-item label="文字内容" prop="textContent">
|
|
||||||
<el-input
|
|
||||||
clearable
|
|
||||||
v-model="form.textContent"
|
|
||||||
placeholder=""
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button class="cancels" @click="handleClose">
|
<el-button class="cancels" @click="handleClose">
|
||||||
{{ '取消' }}</el-button
|
{{ '取消' }}</el-button>
|
||||||
>
|
|
||||||
<el-button class="submit" type="primary" @click="onSubmit('form')">{{
|
<el-button class="submit" type="primary" @click="onSubmit('form')">{{
|
||||||
'确定'
|
'确定'
|
||||||
}}</el-button>
|
}}</el-button>
|
||||||
|
@ -494,8 +231,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import topBar from "@/components/topBar";
|
import topBar from '@/components/topBar'
|
||||||
import ImageUpload from "@/components/ImageUpload";
|
import ImageUpload from '@/components/ImageUpload'
|
||||||
import {
|
import {
|
||||||
getAwardsList,
|
getAwardsList,
|
||||||
getAwardsListChiose,
|
getAwardsListChiose,
|
||||||
|
@ -505,35 +242,35 @@ import {
|
||||||
scGenerate,
|
scGenerate,
|
||||||
updateAwards,
|
updateAwards,
|
||||||
updateStatusAwards,
|
updateStatusAwards,
|
||||||
getAwardsValueList,
|
getAwardsValueList
|
||||||
} from "@/api/retailLevel";
|
} from '@/api/retailLevel'
|
||||||
import { isLocals } from "@/utils/numberToCurrency";
|
import { isLocals } from '@/utils/numberToCurrency'
|
||||||
export default {
|
export default {
|
||||||
name: "retailJxpz",
|
name: 'RetailJxpz',
|
||||||
components: {
|
components: {
|
||||||
topBar,
|
topBar,
|
||||||
ImageUpload,
|
ImageUpload
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
moren: "retailJxpz",
|
moren: 'retailJxpz',
|
||||||
topList: [
|
topList: [
|
||||||
{
|
{
|
||||||
name: '等级配置',
|
name: '等级配置',
|
||||||
path: "retailLevel",
|
path: 'retailLevel'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '奖衔配置',
|
name: '奖衔配置',
|
||||||
path: "retailJxpz",
|
path: 'retailJxpz'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '复购极差',
|
name: '复购极差',
|
||||||
path: "retailFgjc",
|
path: 'retailFgjc'
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 50,
|
pageSize: 50
|
||||||
},
|
},
|
||||||
total: 0,
|
total: 0,
|
||||||
multipleSelection: [],
|
multipleSelection: [],
|
||||||
|
@ -543,42 +280,35 @@ export default {
|
||||||
awardsListChiose: [], // 奖衔选择列表
|
awardsListChiose: [], // 奖衔选择列表
|
||||||
relationList: [], // 考核选择列表
|
relationList: [], // 考核选择列表
|
||||||
form: {
|
form: {
|
||||||
awardsName: "", //奖衔名称
|
awardsName: '', // 奖衔名称
|
||||||
communityCheck: "", //小区考核
|
communityCheck: '0', // 小区考核
|
||||||
purchaseCheck: "", //复购考核
|
purchaseCheck: '0', // 复购考核
|
||||||
communityCheckEnd: "", //分红考核
|
communityCheckEnd: '0', // 分红考核
|
||||||
globalDividend: "", //全球分红
|
globalDividend: '0', // 全球分红
|
||||||
pkCheckAwardsLeft: "", //左区奖衔
|
pkCheckAwardsLeft: '', // 左区奖衔
|
||||||
pkCheckAwardsRight: "", //右区奖衔
|
pkCheckAwardsRight: '', // 右区奖衔
|
||||||
relationType: "", //考核
|
relationType: '', // 考核
|
||||||
awardsValue: "", //奖衔属性
|
awardsValue: '', // 奖衔属性
|
||||||
color: "",
|
monthRepurchaseRatio: '', // 复购级差比例
|
||||||
image: "",
|
color: '',
|
||||||
textContent: "",
|
image: '',
|
||||||
algebra: "",
|
textContent: '',
|
||||||
shareCheck: "",
|
algebra: '0',
|
||||||
placeDeptNum: "",
|
shareCheck: '',
|
||||||
totalCheck: "",
|
placeDeptNum: '',
|
||||||
rangeRatio: "",
|
totalCheck: '',
|
||||||
benefitAvgRatio: "",
|
rangeRatio: '',
|
||||||
benefitShareRatio: "",
|
benefitAvgRatio: '',
|
||||||
shareCommunityCheck: "",
|
benefitShareRatio: '',
|
||||||
shareCommunityCheckEnd: "",
|
shareCommunityCheck: '0',
|
||||||
shareTotalCheck: "",
|
shareCommunityCheckEnd: '0',
|
||||||
|
shareTotalCheck: ''
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
awardsName: [
|
awardsName: [
|
||||||
{ required: true, message: "请输入奖衔名称", trigger: "blur" },
|
{ required: true, message: '请输入奖衔名称', trigger: 'blur' }
|
||||||
],
|
|
||||||
communityCheck: [
|
|
||||||
{ required: true, message: "请输入", trigger: "blur" },
|
|
||||||
],
|
|
||||||
purchaseCheck: [
|
|
||||||
{ required: true, message: "请输入PV", trigger: "blur" },
|
|
||||||
],
|
|
||||||
communityCheckEnd: [
|
|
||||||
{ required: true, message: "请输入", trigger: "blur" },
|
|
||||||
],
|
],
|
||||||
|
|
||||||
// globalDividend: [
|
// globalDividend: [
|
||||||
// { required: true, message: "请输入全球分红", trigger: "blur" },
|
// { required: true, message: "请输入全球分红", trigger: "blur" },
|
||||||
// ],
|
// ],
|
||||||
|
@ -591,29 +321,29 @@ export default {
|
||||||
// relationType: [
|
// relationType: [
|
||||||
// { required: true, message: "请选择考核", trigger: "change" },
|
// { required: true, message: "请选择考核", trigger: "change" },
|
||||||
// ],
|
// ],
|
||||||
color: [{ required: true, message: "请选择颜色", trigger: "change" }],
|
color: [{ required: true, message: '请选择颜色', trigger: 'change' }]
|
||||||
// image: [
|
// image: [
|
||||||
// { required: true, message: "请选择图片", trigger: "change" },
|
// { required: true, message: "请选择图片", trigger: "change" },
|
||||||
// ],
|
// ],
|
||||||
},
|
},
|
||||||
dialogTitle: "",
|
dialogTitle: '',
|
||||||
addEdit: "",
|
addEdit: '',
|
||||||
awardsSxList: [], //奖衔属性
|
awardsSxList: [] // 奖衔属性
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getAwardsList();
|
this.getAwardsList()
|
||||||
this.getAwardsListChiose();
|
this.getAwardsListChiose()
|
||||||
this.getRelationList();
|
this.getRelationList()
|
||||||
this.getAwardsValueList();
|
this.getAwardsValueList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
isLocals,
|
isLocals,
|
||||||
// 奖衔属性
|
// 奖衔属性
|
||||||
getAwardsValueList() {
|
getAwardsValueList() {
|
||||||
getAwardsValueList().then((res) => {
|
getAwardsValueList().then((res) => {
|
||||||
this.awardsSxList = res.data;
|
this.awardsSxList = res.data
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
// 启用/禁用
|
// 启用/禁用
|
||||||
|
@ -621,63 +351,63 @@ export default {
|
||||||
this.$confirm('确认更改状态?', '提示', {
|
this.$confirm('确认更改状态?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: "warning",
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
var thestate = "";
|
var thestate = ''
|
||||||
if (row.enableState == 0) {
|
if (row.enableState == 0) {
|
||||||
thestate = 1;
|
thestate = 1
|
||||||
} else if (row.enableState == 1) {
|
} else if (row.enableState == 1) {
|
||||||
thestate = 0;
|
thestate = 0
|
||||||
}
|
}
|
||||||
updateStatusAwards({ pkId: row.pkId, enableState: thestate }).then(
|
updateStatusAwards({ pkId: row.pkId, enableState: thestate }).then(
|
||||||
(res) => {
|
(res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "success",
|
type: 'success'
|
||||||
});
|
})
|
||||||
// 获取列表
|
// 获取列表
|
||||||
this.getAwardsList();
|
this.getAwardsList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
)
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
onSubmit(formName) {
|
onSubmit(formName) {
|
||||||
this.$refs[formName].validate((valid) => {
|
this.$refs[formName].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let url = "";
|
let url = ''
|
||||||
if (this.addEdit == 1) {
|
if (this.addEdit == 1) {
|
||||||
// 添加
|
// 添加
|
||||||
url = scGenerate;
|
url = scGenerate
|
||||||
} else {
|
} else {
|
||||||
// 修改
|
// 修改
|
||||||
url = updateAwards;
|
url = updateAwards
|
||||||
}
|
}
|
||||||
// 修改
|
// 修改
|
||||||
url(this.form).then((res) => {
|
url(this.form).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.updateShow = false;
|
this.updateShow = false
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "success",
|
type: 'success'
|
||||||
});
|
})
|
||||||
this.getAwardsList();
|
this.getAwardsList()
|
||||||
this.addEdit = "";
|
this.addEdit = ''
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 点击添加
|
// 点击添加
|
||||||
adddate() {
|
adddate() {
|
||||||
this.dialogTitle = '添加';
|
this.dialogTitle = '添加'
|
||||||
this.updateShow = true;
|
this.updateShow = true
|
||||||
this.addEdit = 1;
|
this.addEdit = 1
|
||||||
this.$refs["form"].clearValidate();
|
this.$refs['form'].clearValidate()
|
||||||
this.$refs["form"].resetFields();
|
this.$refs['form'].resetFields()
|
||||||
// scGenerate({}).then(res=>{
|
// scGenerate({}).then(res=>{
|
||||||
// if(res.code==200){
|
// if(res.code==200){
|
||||||
// this.getAwardsList()
|
// this.getAwardsList()
|
||||||
|
@ -686,78 +416,78 @@ export default {
|
||||||
},
|
},
|
||||||
// 修改
|
// 修改
|
||||||
update(row, item) {
|
update(row, item) {
|
||||||
this.addEdit = 2;
|
this.addEdit = 2
|
||||||
this.updateShow = true;
|
this.updateShow = true
|
||||||
this.dialogTitle = '修改';
|
this.dialogTitle = '修改'
|
||||||
getOneAwards(row.pkId).then((res) => {
|
getOneAwards(row.pkId).then((res) => {
|
||||||
this.form = res.data;
|
this.form = res.data
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
getAwardsListChiose() {
|
getAwardsListChiose() {
|
||||||
// 奖衔配置下拉选
|
// 奖衔配置下拉选
|
||||||
getAwardsListChiose().then((res) => {
|
getAwardsListChiose().then((res) => {
|
||||||
this.awardsListChiose = res.rows;
|
this.awardsListChiose = res.rows
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 奖衔列表
|
// 奖衔列表
|
||||||
getAwardsList() {
|
getAwardsList() {
|
||||||
this.loading = true;
|
this.loading = true
|
||||||
getAwardsList(this.queryParams).then((res) => {
|
getAwardsList(this.queryParams).then((res) => {
|
||||||
this.tableData = res.rows;
|
this.tableData = res.rows
|
||||||
this.total = res.total;
|
this.total = res.total
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 关闭弹窗
|
// 关闭弹窗
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.updateShow = false;
|
this.updateShow = false
|
||||||
this.$refs["form"].clearValidate();
|
this.$refs['form'].clearValidate()
|
||||||
this.$refs["form"].resetFields();
|
this.$refs['form'].resetFields()
|
||||||
},
|
},
|
||||||
// 考核类型枚举列表下拉
|
// 考核类型枚举列表下拉
|
||||||
getRelationList() {
|
getRelationList() {
|
||||||
getRelationList().then((res) => {
|
getRelationList().then((res) => {
|
||||||
this.relationList = res.data;
|
this.relationList = res.data
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 列表展示考核
|
// 列表展示考核
|
||||||
checkRelation(row) {
|
checkRelation(row) {
|
||||||
let kaohe = "";
|
let kaohe = ''
|
||||||
if (this.relationList) {
|
if (this.relationList) {
|
||||||
this.relationList.map((item) => {
|
this.relationList.map((item) => {
|
||||||
if (row.relationType == item.value) {
|
if (row.relationType == item.value) {
|
||||||
kaohe = item.label;
|
kaohe = item.label
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
return kaohe;
|
return kaohe
|
||||||
},
|
},
|
||||||
// 列表展示左右区奖衔
|
// 列表展示左右区奖衔
|
||||||
checkAwards(row) {
|
checkAwards(row) {
|
||||||
let state = "";
|
let state = ''
|
||||||
if (this.awardsListChiose) {
|
if (this.awardsListChiose) {
|
||||||
this.awardsListChiose.map((element) => {
|
this.awardsListChiose.map((element) => {
|
||||||
if (row.pkCheckAwardsLeft == element.awardsValue) {
|
if (row.pkCheckAwardsLeft == element.awardsValue) {
|
||||||
state = element.awardsName;
|
state = element.awardsName
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
return state;
|
return state
|
||||||
},
|
},
|
||||||
checkAwards2(row) {
|
checkAwards2(row) {
|
||||||
let state2 = "";
|
let state2 = ''
|
||||||
if (this.awardsListChiose) {
|
if (this.awardsListChiose) {
|
||||||
this.awardsListChiose.map((element) => {
|
this.awardsListChiose.map((element) => {
|
||||||
if (row.pkCheckAwardsRight == element.awardsValue) {
|
if (row.pkCheckAwardsRight == element.awardsValue) {
|
||||||
state2 = element.awardsName;
|
state2 = element.awardsName
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
return state2;
|
return state2
|
||||||
},
|
},
|
||||||
|
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
this.multipleSelection = val;
|
this.multipleSelection = val
|
||||||
},
|
},
|
||||||
// 删除
|
// 删除
|
||||||
deleteRow(row, item) {
|
deleteRow(row, item) {
|
||||||
|
@ -766,23 +496,23 @@ export default {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "success",
|
type: 'success'
|
||||||
});
|
})
|
||||||
this.getAwardsList();
|
this.getAwardsList()
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
tableRowClassName({ row, rowIndex }) {
|
tableRowClassName({ row, rowIndex }) {
|
||||||
if (rowIndex % 2 == 1) {
|
if (rowIndex % 2 == 1) {
|
||||||
return "warning-row";
|
return 'warning-row'
|
||||||
} else if (rowIndex % 2 == 0) {
|
} else if (rowIndex % 2 == 0) {
|
||||||
return "success-row";
|
return 'success-row'
|
||||||
|
}
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return "";
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
Loading…
Reference in New Issue