feat(fdfh): 辅导分红文案改为培育津贴
This commit is contained in:
parent
c2cd89945e
commit
f163ffc9f0
|
@ -1606,7 +1606,7 @@ export const constantRoutes = [
|
||||||
path: 'fdfh',
|
path: 'fdfh',
|
||||||
name: 'CoachingDividends',
|
name: 'CoachingDividends',
|
||||||
component: () => import('@/views/configManage/bonus/fdfh'),
|
component: () => import('@/views/configManage/bonus/fdfh'),
|
||||||
meta: { title: '辅导分红', icon: 'table' },
|
meta: { title: '培育津贴', icon: 'table' },
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
<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="maintable">
|
<div class="maintable">
|
||||||
<el-table
|
<el-table
|
||||||
|
@ -18,22 +18,23 @@
|
||||||
align="center"
|
align="center"
|
||||||
prop="awardsName"
|
prop="awardsName"
|
||||||
:label="'真实奖衔'"
|
:label="'真实奖衔'"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
<el-table-column align="center" prop="coachAlgebra" :label="'培育代数'">
|
||||||
<el-table-column align="center" prop="coachAlgebra" :label="'辅导代数'">
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input clearable
|
<el-input
|
||||||
:disabled="ifupdate"
|
|
||||||
v-model="scope.row.coachAlgebra"
|
v-model="scope.row.coachAlgebra"
|
||||||
></el-input>
|
clearable
|
||||||
|
:disabled="ifupdate"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" prop="coachRatio" :label="'辅导比例' +'(%)'">
|
<el-table-column align="center" prop="coachRatio" :label="'培育津贴比例' +'(%)'">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input clearable
|
<el-input
|
||||||
:disabled="ifupdate"
|
|
||||||
v-model="scope.row.coachRatio"
|
v-model="scope.row.coachRatio"
|
||||||
></el-input>
|
clearable
|
||||||
|
:disabled="ifupdate"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -42,10 +43,11 @@
|
||||||
:label="'分红比例' +'(%)'"
|
:label="'分红比例' +'(%)'"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input clearable
|
<el-input
|
||||||
:disabled="ifupdate"
|
|
||||||
v-model="scope.row.abonusRatio"
|
v-model="scope.row.abonusRatio"
|
||||||
></el-input>
|
clearable
|
||||||
|
:disabled="ifupdate"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -53,9 +55,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div style="margin: 0 auto">
|
<div style="margin: 0 auto">
|
||||||
<el-button class="thebtn btn1" @click="ifupdate = false"
|
<el-button
|
||||||
>{{'修改'}}</el-button
|
class="thebtn btn1"
|
||||||
>
|
@click="ifupdate = false"
|
||||||
|
>{{ '修改' }}</el-button>
|
||||||
<el-button class="thebtn btn2" @click="savedate">{{ '保存' }}</el-button>
|
<el-button class="thebtn btn2" @click="savedate">{{ '保存' }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -63,97 +66,59 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import topBar from "@/components/topBar";
|
import topBar from '@/components/topBar'
|
||||||
import { getcoachBonusList, updateCoachBonus } from "@/api/bonus";
|
import { getcoachBonusList, updateCoachBonus } from '@/api/bonus'
|
||||||
|
import { mixin } from './mixins'
|
||||||
export default {
|
export default {
|
||||||
name: "Fdfh",
|
name: 'Fdfh',
|
||||||
components: {
|
components: {
|
||||||
topBar,
|
topBar
|
||||||
},
|
},
|
||||||
|
mixins: [mixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
moren: "fdfh",
|
moren: 'fdfh',
|
||||||
topList: [
|
|
||||||
{
|
|
||||||
name: '奖项配置',
|
|
||||||
path: "bonus",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '直推配置',
|
|
||||||
path: "ztpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '拓展配置',
|
|
||||||
path: "kzpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '辅导分红',
|
|
||||||
path: "fdfh",
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
name: '服务补贴',
|
|
||||||
path: "fwbt",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '奖金扣项',
|
|
||||||
path: "jjkx",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '云代配置',
|
|
||||||
path: "ydpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '环球积分',
|
|
||||||
path: "hqjf",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '车奖积分',
|
|
||||||
path: "njjf",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
tableData: [],
|
tableData: [],
|
||||||
ifupdate: true,
|
ifupdate: true
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getcoachBonusList();
|
this.getcoachBonusList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getcoachBonusList() {
|
getcoachBonusList() {
|
||||||
getcoachBonusList().then((res) => {
|
getcoachBonusList().then((res) => {
|
||||||
this.tableData = res.rows;
|
this.tableData = res.rows
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 保存
|
// 保存
|
||||||
savedate() {
|
savedate() {
|
||||||
this.ifupdate = true;
|
this.ifupdate = true
|
||||||
updateCoachBonus({ awardsList: this.tableData }).then((res) => {
|
updateCoachBonus({ awardsList: this.tableData }).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "success",
|
type: 'success'
|
||||||
});
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "warning",
|
type: 'warning'
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
this.getcoachBonusList();
|
this.getcoachBonusList()
|
||||||
});
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
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>
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
<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="maintable">
|
<div class="maintable">
|
||||||
<el-table
|
<el-table
|
||||||
|
@ -19,8 +19,7 @@
|
||||||
:formatter="checkTypeList"
|
:formatter="checkTypeList"
|
||||||
prop="serviceType"
|
prop="serviceType"
|
||||||
:label="'服务类型'"
|
:label="'服务类型'"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="serviceRadio"
|
prop="serviceRadio"
|
||||||
|
@ -28,11 +27,11 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
|
v-model="scope.row.serviceRadio"
|
||||||
clearable
|
clearable
|
||||||
class="theinput"
|
class="theinput"
|
||||||
:disabled="ifupdate"
|
:disabled="ifupdate"
|
||||||
v-model="scope.row.serviceRadio"
|
/>
|
||||||
></el-input>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -42,16 +41,16 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-select
|
<el-select
|
||||||
|
v-model="scope.row.assessmentType"
|
||||||
clearable
|
clearable
|
||||||
:disabled="ifupdate"
|
:disabled="ifupdate"
|
||||||
v-model="scope.row.assessmentType"
|
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in ssessmentTypeList"
|
v-for="item in ssessmentTypeList"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
></el-option>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -72,131 +71,93 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import topBar from "@/components/topBar";
|
import topBar from '@/components/topBar'
|
||||||
import {
|
import {
|
||||||
getServiceList,
|
getServiceList,
|
||||||
updateService,
|
updateService,
|
||||||
getServiceTypeList,
|
getServiceTypeList,
|
||||||
getAssessmentType,
|
getAssessmentType
|
||||||
} from "@/api/bonus";
|
} from '@/api/bonus'
|
||||||
|
import { mixin } from './mixins'
|
||||||
export default {
|
export default {
|
||||||
name: "Fwbt",
|
name: 'Fwbt',
|
||||||
components: {
|
components: {
|
||||||
topBar,
|
topBar
|
||||||
},
|
},
|
||||||
|
mixins: [mixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
moren: "fwbt",
|
moren: 'fwbt',
|
||||||
topList: [
|
|
||||||
{
|
|
||||||
name: '奖项配置',
|
|
||||||
path: "bonus",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '直推配置',
|
|
||||||
path: "ztpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '拓展配置',
|
|
||||||
path: "kzpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '辅导分红',
|
|
||||||
path: "fdfh",
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
name: '服务补贴',
|
|
||||||
path: "fwbt",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '奖金扣项',
|
|
||||||
path: "jjkx",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '云代配置',
|
|
||||||
path: "ydpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '环球积分',
|
|
||||||
path: "hqjf",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '车奖积分',
|
|
||||||
path: "njjf",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
tableData: [
|
tableData: [
|
||||||
{
|
{
|
||||||
name: "asads",
|
name: 'asads',
|
||||||
put: 2,
|
put: 2
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
ifupdate: true,
|
ifupdate: true,
|
||||||
serviceTypeList: [],
|
serviceTypeList: [],
|
||||||
ssessmentTypeList: [],
|
ssessmentTypeList: []
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getServiceList();
|
this.getServiceList()
|
||||||
this.getServiceTypeList();
|
this.getServiceTypeList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取服务补贴列表
|
// 获取服务补贴列表
|
||||||
getServiceList() {
|
getServiceList() {
|
||||||
getServiceList().then((res) => {
|
getServiceList().then((res) => {
|
||||||
this.tableData = res.rows;
|
this.tableData = res.rows
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 获取服务补贴类型枚举列表
|
// 获取服务补贴类型枚举列表
|
||||||
getServiceTypeList() {
|
getServiceTypeList() {
|
||||||
getServiceTypeList().then((res) => {
|
getServiceTypeList().then((res) => {
|
||||||
this.serviceTypeList = res.data;
|
this.serviceTypeList = res.data
|
||||||
});
|
})
|
||||||
// 考核类型下拉选
|
// 考核类型下拉选
|
||||||
getAssessmentType().then((res) => {
|
getAssessmentType().then((res) => {
|
||||||
this.ssessmentTypeList = res.data;
|
this.ssessmentTypeList = res.data
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 服务补贴类型对应枚举查询
|
// 服务补贴类型对应枚举查询
|
||||||
checkTypeList(row) {
|
checkTypeList(row) {
|
||||||
let state = "";
|
let state = ''
|
||||||
this.serviceTypeList.forEach((item) => {
|
this.serviceTypeList.forEach((item) => {
|
||||||
if (item.value == row.serviceType) {
|
if (item.value == row.serviceType) {
|
||||||
state = item.label;
|
state = item.label
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
return state;
|
return state
|
||||||
},
|
},
|
||||||
// 保存
|
// 保存
|
||||||
savedate() {
|
savedate() {
|
||||||
this.ifupdate = true;
|
this.ifupdate = true
|
||||||
updateService({ bdBonusServiceList: this.tableData }).then((res) => {
|
updateService({ bdBonusServiceList: this.tableData }).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "success",
|
type: 'success'
|
||||||
});
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "warning",
|
type: 'warning'
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
this.getServiceList();
|
this.getServiceList()
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
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>
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
<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="maintable">
|
<div class="maintable">
|
||||||
<el-table
|
<el-table
|
||||||
|
@ -13,11 +13,10 @@
|
||||||
:header-cell-style="{ background: '#EEEEEE' }"
|
:header-cell-style="{ background: '#EEEEEE' }"
|
||||||
:row-class-name="tableRowClassName"
|
:row-class-name="tableRowClassName"
|
||||||
>
|
>
|
||||||
<el-table-column width="200px" align="center" prop="awardsName" :label="'真实奖衔'">
|
<el-table-column width="200px" align="center" prop="awardsName" :label="'真实奖衔'" />
|
||||||
</el-table-column>
|
|
||||||
<el-table-column align="center" prop="globalIntegral" :label="'环球比例' +'(%)'">
|
<el-table-column align="center" prop="globalIntegral" :label="'环球比例' +'(%)'">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input clearable :disabled="ifupdate" v-model="scope.row.globalIntegral"></el-input>
|
<el-input v-model="scope.row.globalIntegral" clearable :disabled="ifupdate" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -33,58 +32,21 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import topBar from "@/components/topBar";
|
import topBar from '@/components/topBar'
|
||||||
import { getintegralList, updategLobalIntegral } from '@/api/bonus'
|
import { getintegralList, updategLobalIntegral } from '@/api/bonus'
|
||||||
|
import { mixin } from './mixins'
|
||||||
export default {
|
export default {
|
||||||
name: "Hqjf",
|
name: 'Hqjf',
|
||||||
components: {
|
components: {
|
||||||
topBar,
|
topBar
|
||||||
},
|
},
|
||||||
|
mixins: [mixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
moren: "hqjf",
|
moren: 'hqjf',
|
||||||
topList: [
|
|
||||||
{
|
|
||||||
name: '奖项配置',
|
|
||||||
path: "bonus",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '直推配置',
|
|
||||||
path: "ztpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '拓展配置',
|
|
||||||
path: "kzpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '辅导分红',
|
|
||||||
path: "fdfh",
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
name: '服务补贴',
|
|
||||||
path: "fwbt",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '奖金扣项',
|
|
||||||
path: "jjkx",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '云代配置',
|
|
||||||
path: "ydpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '环球积分',
|
|
||||||
path: "hqjf",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '车奖积分',
|
|
||||||
path: "njjf",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
tableData: [],
|
tableData: [],
|
||||||
ifupdate:true,
|
ifupdate: true
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getintegralList()
|
this.getintegralList()
|
||||||
|
@ -102,29 +64,27 @@ export default {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "success",
|
type: 'success'
|
||||||
});
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "warning",
|
type: 'warning'
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
this.getintegralList()
|
this.getintegralList()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
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>
|
||||||
|
|
|
@ -3,81 +3,77 @@
|
||||||
<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 size="mini" class="thebtn1" @click="adddate"
|
<el-button
|
||||||
> {{ '生成' }}</el-button
|
size="mini"
|
||||||
>
|
class="thebtn1"
|
||||||
|
@click="adddate"
|
||||||
|
> {{ '生成' }}</el-button>
|
||||||
<el-button size="mini" class="thebtn2" @click="handleExport"> {{ '导出' }}</el-button>
|
<el-button size="mini" class="thebtn2" @click="handleExport"> {{ '导出' }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="maintitle">{{ '基于报单时间,往后延期天数' }}</div>
|
<div class="maintitle">{{ '基于报单时间,往后延期天数' }}</div>
|
||||||
</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
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="bonusName"
|
prop="bonusName"
|
||||||
:label="'奖项名称'"
|
:label="'奖项名称'"
|
||||||
width="180"
|
width="180"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="settleType2"
|
prop="settleType2"
|
||||||
:label="'结算周期'"
|
:label="'结算周期'"
|
||||||
width="180"
|
width="180"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
<el-table-column align="center" prop="publishTime" :label="'公布时间'" />
|
||||||
<el-table-column align="center" prop="publishTime" :label="'公布时间'">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="publishDate2"
|
prop="publishDate2"
|
||||||
:label="'公布日期(天)'"
|
:label="'公布日期(天)'"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="grantDate2"
|
prop="grantDate2"
|
||||||
:label="'发放日期(天)'"
|
:label="'发放日期(天)'"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="withdrawalDate2"
|
prop="withdrawalDate2"
|
||||||
:label="'可提现日期(天)'"
|
:label="'可提现日期(天)'"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column align="center" prop="time" :label="'操作'" fixed="right">
|
<el-table-column align="center" prop="time" :label="'操作'" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@click.native.prevent="update(scope.row)"
|
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
class="button-s"
|
class="button-s"
|
||||||
style="color:#6962F6"
|
style="color:#6962F6"
|
||||||
|
@click.native.prevent="update(scope.row)"
|
||||||
>
|
>
|
||||||
{{ '修改' }}
|
{{ '修改' }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
class="button-s"
|
class="button-s"
|
||||||
@click.native.prevent="deleteRow(scope.row)"
|
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
style="color: #c73030"
|
style="color: #c73030"
|
||||||
|
@click.native.prevent="deleteRow(scope.row)"
|
||||||
>
|
>
|
||||||
{{ '删除' }}
|
{{ '删除' }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -104,21 +100,22 @@
|
||||||
<el-row style="display: flex;justify-content:space-between ">
|
<el-row style="display: flex;justify-content:space-between ">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item :label="'奖项名称'" prop="bonusName">
|
<el-form-item :label="'奖项名称'" prop="bonusName">
|
||||||
<el-input clearable
|
<el-input
|
||||||
v-model="form.bonusName"
|
v-model="form.bonusName"
|
||||||
|
clearable
|
||||||
:placeholder="'请输入奖项名称'"
|
:placeholder="'请输入奖项名称'"
|
||||||
></el-input>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item :label="'结算周期'" prop="settleType">
|
<el-form-item :label="'结算周期'" prop="settleType">
|
||||||
<el-select clearable v-model="form.settleType" :placeholder="'请选择结算周期'">
|
<el-select v-model="form.settleType" clearable :placeholder="'请选择结算周期'">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in settleList"
|
v-for="item in settleList"
|
||||||
: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>
|
||||||
|
@ -130,14 +127,14 @@
|
||||||
v-model="form.publishTime"
|
v-model="form.publishTime"
|
||||||
:placeholder="'请选择公布时间'"
|
:placeholder="'请选择公布时间'"
|
||||||
value-format="HH:mm:ss"
|
value-format="HH:mm:ss"
|
||||||
>
|
/>
|
||||||
</el-time-picker>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item :label="'公布日期(天)'" prop="publishDate">
|
<el-form-item :label="'公布日期(天)'" prop="publishDate">
|
||||||
<el-select clearable
|
<el-select
|
||||||
v-model="form.publishDate"
|
v-model="form.publishDate"
|
||||||
|
clearable
|
||||||
:placeholder="'请选择公布日期(天)'"
|
:placeholder="'请选择公布日期(天)'"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
|
@ -145,7 +142,7 @@
|
||||||
: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>
|
||||||
|
@ -153,8 +150,9 @@
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item :label="'发布日期(天)'" prop="grantDate">
|
<el-form-item :label="'发布日期(天)'" prop="grantDate">
|
||||||
<el-select clearable
|
<el-select
|
||||||
v-model="form.grantDate"
|
v-model="form.grantDate"
|
||||||
|
clearable
|
||||||
:placeholder="'请选择发布日期(天)'"
|
:placeholder="'请选择发布日期(天)'"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
|
@ -162,14 +160,15 @@
|
||||||
: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-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item :label="'可提现日期(天)'" prop="withdrawalDate">
|
<el-form-item :label="'可提现日期(天)'" prop="withdrawalDate">
|
||||||
<el-select clearable
|
<el-select
|
||||||
v-model="form.withdrawalDate"
|
v-model="form.withdrawalDate"
|
||||||
|
clearable
|
||||||
:placeholder="'请选择可提现日期(天)'"
|
:placeholder="'请选择可提现日期(天)'"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
|
@ -177,7 +176,7 @@
|
||||||
: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>
|
||||||
|
@ -192,7 +191,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import topBar from "@/components/topBar";
|
import topBar from '@/components/topBar'
|
||||||
import {
|
import {
|
||||||
getbonusList,
|
getbonusList,
|
||||||
deletebonusList,
|
deletebonusList,
|
||||||
|
@ -200,55 +199,18 @@ import {
|
||||||
scBonusList,
|
scBonusList,
|
||||||
updateBonus,
|
updateBonus,
|
||||||
getsettlement,
|
getsettlement,
|
||||||
getPublishDate,
|
getPublishDate
|
||||||
} from "@/api/bonus";
|
} from '@/api/bonus'
|
||||||
|
import { mixin } from './mixins'
|
||||||
export default {
|
export default {
|
||||||
name: "Bonus",
|
name: 'Bonus',
|
||||||
components: {
|
components: {
|
||||||
topBar,
|
topBar
|
||||||
},
|
},
|
||||||
|
mixins: [mixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
moren: "bonus",
|
moren: 'bonus',
|
||||||
topList: [
|
|
||||||
{
|
|
||||||
name: '奖项配置',
|
|
||||||
path: "bonus",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '直推配置',
|
|
||||||
path: "ztpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '拓展配置',
|
|
||||||
path: "kzpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '辅导分红',
|
|
||||||
path: "fdfh",
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
name: '服务补贴',
|
|
||||||
path: "fwbt",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '奖金扣项',
|
|
||||||
path: "jjkx",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '云代配置',
|
|
||||||
path: "ydpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '环球积分',
|
|
||||||
path: "hqjf",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '车奖积分',
|
|
||||||
path: "njjf",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
tableData: [],
|
tableData: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
multipleSelection: [],
|
multipleSelection: [],
|
||||||
|
@ -256,25 +218,25 @@ export default {
|
||||||
total: 0,
|
total: 0,
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 50,
|
pageSize: 50
|
||||||
},
|
},
|
||||||
settleList: [], // 结算周期下拉选
|
settleList: [], // 结算周期下拉选
|
||||||
publishDate: [], // 公布日期、发布日期、可提现日期枚举
|
publishDate: [], // 公布日期、发布日期、可提现日期枚举
|
||||||
form: {
|
form: {
|
||||||
bonusName: "", //奖项名称
|
bonusName: '', // 奖项名称
|
||||||
settleType: "", //结算周期
|
settleType: '', // 结算周期
|
||||||
publishTime: "", //公布时间
|
publishTime: '', // 公布时间
|
||||||
publishDate: "", //公布日期(天)
|
publishDate: '', // 公布日期(天)
|
||||||
grantDate: "", //发布日期(天)
|
grantDate: '', // 发布日期(天)
|
||||||
withdrawalDate: "", //可提现日期(天)
|
withdrawalDate: '' // 可提现日期(天)
|
||||||
},
|
},
|
||||||
rules: {},
|
rules: {}
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getbonusList();
|
this.getbonusList()
|
||||||
this.getsettlement();
|
this.getsettlement()
|
||||||
this.getPublishDate();
|
this.getPublishDate()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
|
@ -282,7 +244,7 @@ export default {
|
||||||
this.$confirm('是否确认导出所有数据项?', '警告', {
|
this.$confirm('是否确认导出所有数据项?', '警告', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning',
|
type: 'warning'
|
||||||
}).then((_) => {
|
}).then((_) => {
|
||||||
this.download(
|
this.download(
|
||||||
'/system/manage/bd-bonus-items/export',
|
'/system/manage/bd-bonus-items/export',
|
||||||
|
@ -294,14 +256,14 @@ export default {
|
||||||
// 查询公布日期、发布日期、可提现日期枚举
|
// 查询公布日期、发布日期、可提现日期枚举
|
||||||
getPublishDate() {
|
getPublishDate() {
|
||||||
getPublishDate().then((res) => {
|
getPublishDate().then((res) => {
|
||||||
this.publishDate = res.data;
|
this.publishDate = res.data
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 查询结算周期列表
|
// 查询结算周期列表
|
||||||
getsettlement() {
|
getsettlement() {
|
||||||
getsettlement().then((res) => {
|
getsettlement().then((res) => {
|
||||||
this.settleList = res.data;
|
this.settleList = res.data
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 点击保存
|
// 点击保存
|
||||||
onSubmit(formName) {
|
onSubmit(formName) {
|
||||||
|
@ -310,38 +272,38 @@ export default {
|
||||||
// 修改
|
// 修改
|
||||||
updateBonus(this.form).then((res) => {
|
updateBonus(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.getbonusList();
|
this.getbonusList()
|
||||||
} else {
|
} else {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "warning",
|
type: 'warning'
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 生成
|
// 生成
|
||||||
adddate() {
|
adddate() {
|
||||||
scBonusList({}).then((res) => {
|
scBonusList({}).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.getbonusList();
|
this.getbonusList()
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 点击修改
|
// 点击修改
|
||||||
update(row) {
|
update(row) {
|
||||||
this.updateShow = true;
|
this.updateShow = true
|
||||||
getOneBounsList(row.pkId).then((res) => {
|
getOneBounsList(row.pkId).then((res) => {
|
||||||
this.form = res.data;
|
this.form = res.data
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 获取奖项配置列表
|
// 获取奖项配置列表
|
||||||
getbonusList() {
|
getbonusList() {
|
||||||
|
@ -350,33 +312,33 @@ export default {
|
||||||
res.rows.forEach((element) => {
|
res.rows.forEach((element) => {
|
||||||
this.settleList.forEach((item) => {
|
this.settleList.forEach((item) => {
|
||||||
if (element.settleType == item.value) {
|
if (element.settleType == item.value) {
|
||||||
element.settleType2 = item.label;
|
element.settleType2 = item.label
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
this.publishDate.forEach((child) => {
|
this.publishDate.forEach((child) => {
|
||||||
if (element.publishDate == child.value) {
|
if (element.publishDate == child.value) {
|
||||||
element.publishDate2 = child.label;
|
element.publishDate2 = child.label
|
||||||
}
|
}
|
||||||
if (element.grantDate == child.value) {
|
if (element.grantDate == child.value) {
|
||||||
element.grantDate2 = child.label;
|
element.grantDate2 = child.label
|
||||||
}
|
}
|
||||||
if (element.withdrawalDate == child.value) {
|
if (element.withdrawalDate == child.value) {
|
||||||
element.withdrawalDate2 = child.label;
|
element.withdrawalDate2 = child.label
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
this.tableData = res.rows;
|
this.tableData = res.rows
|
||||||
this.total = res.total;
|
this.total = res.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
this.multipleSelection = val;
|
this.multipleSelection = val
|
||||||
},
|
},
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.updateShow = false;
|
this.updateShow = false
|
||||||
this.$refs["form"].clearValidate();
|
this.$refs['form'].clearValidate()
|
||||||
this.$refs["form"].resetFields();
|
this.$refs['form'].resetFields()
|
||||||
},
|
},
|
||||||
// 删除
|
// 删除
|
||||||
deleteRow(row) {
|
deleteRow(row) {
|
||||||
|
@ -385,23 +347,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.getbonusList();
|
this.getbonusList()
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
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 scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.el-date-editor.el-input, .el-date-editor.el-input__inner{
|
.el-date-editor.el-input, .el-date-editor.el-input__inner{
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
<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="maintable">
|
<div class="maintable">
|
||||||
<el-table
|
<el-table
|
||||||
|
@ -19,31 +19,31 @@
|
||||||
align="center"
|
align="center"
|
||||||
prop="bonusName"
|
prop="bonusName"
|
||||||
:label="'奖金名称'"
|
:label="'奖金名称'"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="backRatio"
|
prop="backRatio"
|
||||||
:label="'重复消费'+'(%)'"
|
:label="'重复消费'+'(%)'"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input clearable
|
<el-input
|
||||||
:disabled="ifupdate"
|
|
||||||
v-model="scope.row.backRatio"
|
v-model="scope.row.backRatio"
|
||||||
></el-input>
|
clearable
|
||||||
|
:disabled="ifupdate"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="platformRatio"
|
prop="platformRatio"
|
||||||
:label="'平台消费'+'(%)'"
|
:label="'平台消费'+'(%)'"
|
||||||
|
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input clearable
|
<el-input
|
||||||
:disabled="ifupdate"
|
|
||||||
v-model="scope.row.platformRatio"
|
v-model="scope.row.platformRatio"
|
||||||
></el-input>
|
clearable
|
||||||
|
:disabled="ifupdate"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -51,9 +51,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div style="margin: 0 auto">
|
<div style="margin: 0 auto">
|
||||||
<el-button class="thebtn btn1" @click="ifupdate = false"
|
<el-button
|
||||||
> {{ '修改' }}</el-button
|
class="thebtn btn1"
|
||||||
>
|
@click="ifupdate = false"
|
||||||
|
> {{ '修改' }}</el-button>
|
||||||
<el-button class="thebtn btn2" @click="savedate">{{ '保存' }}</el-button>
|
<el-button class="thebtn btn2" @click="savedate">{{ '保存' }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -61,69 +62,31 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import topBar from "@/components/topBar";
|
import topBar from '@/components/topBar'
|
||||||
import { getDeductList, updateDeduct, getDeductTypeList } from "@/api/bonus";
|
import { getDeductList, updateDeduct, getDeductTypeList } from '@/api/bonus'
|
||||||
|
import { mixin } from './mixins'
|
||||||
export default {
|
export default {
|
||||||
name: "Jjkx",
|
name: 'Jjkx',
|
||||||
components: {
|
components: {
|
||||||
topBar,
|
topBar
|
||||||
},
|
},
|
||||||
|
mixins: [mixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
moren: "jjkx",
|
moren: 'jjkx',
|
||||||
topList: [
|
|
||||||
{
|
|
||||||
name: '奖项配置',
|
|
||||||
path: "bonus",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '直推配置',
|
|
||||||
path: "ztpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '拓展配置',
|
|
||||||
path: "kzpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '辅导分红',
|
|
||||||
path: "fdfh",
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
name: '服务补贴',
|
|
||||||
path: "fwbt",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '奖金扣项',
|
|
||||||
path: "jjkx",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '云代配置',
|
|
||||||
path: "ydpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '环球积分',
|
|
||||||
path: "hqjf",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '车奖积分',
|
|
||||||
path: "njjf",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
tableData: [
|
tableData: [
|
||||||
{
|
{
|
||||||
name: "asads",
|
name: 'asads',
|
||||||
put: 2,
|
put: 2
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
ifupdate: true,
|
ifupdate: true,
|
||||||
deductTypeList: [],
|
deductTypeList: []
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getDeductList();
|
this.getDeductList()
|
||||||
this.getDeductTypeList();
|
this.getDeductTypeList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 列表枚举对应
|
// 列表枚举对应
|
||||||
|
@ -139,43 +102,43 @@ export default {
|
||||||
// 奖金扣项列表
|
// 奖金扣项列表
|
||||||
getDeductList() {
|
getDeductList() {
|
||||||
getDeductList().then((res) => {
|
getDeductList().then((res) => {
|
||||||
this.tableData = res.data;
|
this.tableData = res.data
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 奖金扣项枚举查询
|
// 奖金扣项枚举查询
|
||||||
getDeductTypeList() {
|
getDeductTypeList() {
|
||||||
getDeductTypeList().then((res) => {
|
getDeductTypeList().then((res) => {
|
||||||
this.deductTypeList = res.data;
|
this.deductTypeList = res.data
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 保存
|
// 保存
|
||||||
savedate() {
|
savedate() {
|
||||||
this.ifupdate = true;
|
this.ifupdate = true
|
||||||
updateDeduct({ bonusDeductList: this.tableData }).then((res) => {
|
updateDeduct({ bonusDeductList: this.tableData }).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "success",
|
type: 'success'
|
||||||
});
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "warning",
|
type: 'warning'
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
this.getDeductList();
|
this.getDeductList()
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
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>
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
<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="maintable">
|
<div class="maintable">
|
||||||
<el-table
|
<el-table
|
||||||
|
@ -19,8 +19,7 @@
|
||||||
align="center"
|
align="center"
|
||||||
prop="gradeName"
|
prop="gradeName"
|
||||||
:label="'等级'"
|
:label="'等级'"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="expandRatio"
|
prop="expandRatio"
|
||||||
|
@ -28,10 +27,10 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
|
v-model="scope.row.expandRatio"
|
||||||
clearable
|
clearable
|
||||||
:disabled="ifupdate"
|
:disabled="ifupdate"
|
||||||
v-model="scope.row.expandRatio"
|
/>
|
||||||
></el-input>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -41,10 +40,10 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
|
v-model="scope.row.expandCapping"
|
||||||
clearable
|
clearable
|
||||||
:disabled="ifupdate"
|
:disabled="ifupdate"
|
||||||
v-model="scope.row.expandCapping"
|
/>
|
||||||
></el-input>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -54,10 +53,10 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
|
v-model="scope.row.repurchaseRatio"
|
||||||
clearable
|
clearable
|
||||||
:disabled="ifupdate"
|
:disabled="ifupdate"
|
||||||
v-model="scope.row.repurchaseRatio"
|
/>
|
||||||
></el-input>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -67,10 +66,10 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
|
v-model="scope.row.repurchaseCapping"
|
||||||
clearable
|
clearable
|
||||||
:disabled="ifupdate"
|
:disabled="ifupdate"
|
||||||
v-model="scope.row.repurchaseCapping"
|
/>
|
||||||
></el-input>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -80,16 +79,16 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-select
|
<el-select
|
||||||
|
v-model="scope.row.firstCalculate"
|
||||||
clearable
|
clearable
|
||||||
:disabled="ifupdate"
|
:disabled="ifupdate"
|
||||||
v-model="scope.row.firstCalculate"
|
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in yesNoList"
|
v-for="item in yesNoList"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
></el-option>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -100,16 +99,16 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-select
|
<el-select
|
||||||
|
v-model="scope.row.firstAssess"
|
||||||
clearable
|
clearable
|
||||||
:disabled="ifupdate"
|
:disabled="ifupdate"
|
||||||
v-model="scope.row.firstAssess"
|
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in ssessmentTypeList"
|
v-for="item in ssessmentTypeList"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
></el-option>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -120,16 +119,16 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-select
|
<el-select
|
||||||
|
v-model="scope.row.repurchaseCalculate"
|
||||||
clearable
|
clearable
|
||||||
:disabled="ifupdate"
|
:disabled="ifupdate"
|
||||||
v-model="scope.row.repurchaseCalculate"
|
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in yesNoList"
|
v-for="item in yesNoList"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
></el-option>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -140,16 +139,16 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-select
|
<el-select
|
||||||
|
v-model="scope.row.repurchaseAssess"
|
||||||
clearable
|
clearable
|
||||||
:disabled="ifupdate"
|
:disabled="ifupdate"
|
||||||
v-model="scope.row.repurchaseAssess"
|
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in ssessmentTypeList"
|
v-for="item in ssessmentTypeList"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
></el-option>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -167,8 +166,7 @@
|
||||||
align="center"
|
align="center"
|
||||||
prop="expandName"
|
prop="expandName"
|
||||||
:label="'4-N配置'"
|
:label="'4-N配置'"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="expandNumber"
|
prop="expandNumber"
|
||||||
|
@ -176,10 +174,10 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
|
v-model="scope.row.expandNumber"
|
||||||
clearable
|
clearable
|
||||||
:disabled="ifupdate"
|
:disabled="ifupdate"
|
||||||
v-model="scope.row.expandNumber"
|
/>
|
||||||
></el-input>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -189,14 +187,14 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
|
v-model="scope.row.expandRatio"
|
||||||
clearable
|
clearable
|
||||||
:disabled="ifupdate"
|
:disabled="ifupdate"
|
||||||
v-model="scope.row.expandRatio"
|
/>
|
||||||
></el-input>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" prop="" label=""> </el-table-column>
|
<el-table-column align="center" prop="" label="" />
|
||||||
<el-table-column align="center" prop="" label=""> </el-table-column>
|
<el-table-column align="center" prop="" label="" />
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<el-table
|
<el-table
|
||||||
|
@ -213,8 +211,8 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-select
|
<el-select
|
||||||
clearable
|
|
||||||
v-model="scope.row.value"
|
v-model="scope.row.value"
|
||||||
|
clearable
|
||||||
:placeholder="'请选择'"
|
:placeholder="'请选择'"
|
||||||
:disabled="ifupdate"
|
:disabled="ifupdate"
|
||||||
>
|
>
|
||||||
|
@ -223,23 +221,24 @@
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
></el-option>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" prop="" label=""> </el-table-column>
|
<el-table-column align="center" prop="" label="" />
|
||||||
|
|
||||||
<el-table-column align="center" prop="" label=""> </el-table-column>
|
<el-table-column align="center" prop="" label="" />
|
||||||
<el-table-column align="center" prop="" label=""> </el-table-column>
|
<el-table-column align="center" prop="" label="" />
|
||||||
<el-table-column align="center" prop="" label=""> </el-table-column>
|
<el-table-column align="center" prop="" label="" />
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div style="margin: 0 auto">
|
<div style="margin: 0 auto">
|
||||||
<el-button class="thebtn btn1" @click="ifupdate = false"
|
<el-button
|
||||||
> {{ '修改' }}</el-button
|
class="thebtn btn1"
|
||||||
>
|
@click="ifupdate = false"
|
||||||
|
> {{ '修改' }}</el-button>
|
||||||
<el-button class="thebtn btn2" @click="savedate">{{ '保存' }}</el-button>
|
<el-button class="thebtn btn2" @click="savedate">{{ '保存' }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -247,124 +246,86 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import topBar from "@/components/topBar";
|
import topBar from '@/components/topBar'
|
||||||
import {getDealerYesNo} from "@/api/delivery"
|
import { getDealerYesNo } from '@/api/delivery'
|
||||||
import { getExpandList, updateExpand, getbdBonusExpand,getAssessmentType } from "@/api/bonus";
|
import { getExpandList, updateExpand, getbdBonusExpand, getAssessmentType } from '@/api/bonus'
|
||||||
import { getzccsList } from '@/api/siteConfig'
|
import { getzccsList } from '@/api/siteConfig'
|
||||||
import { saveYfpz } from '@/api/system'
|
import { saveYfpz } from '@/api/system'
|
||||||
import {isLocals} from "@/utils/numberToCurrency";
|
import { isLocals } from '@/utils/numberToCurrency'
|
||||||
|
import { mixin } from './mixins'
|
||||||
export default {
|
export default {
|
||||||
name: "Kzpz",
|
name: 'Kzpz',
|
||||||
components: {
|
components: {
|
||||||
topBar,
|
topBar
|
||||||
},
|
},
|
||||||
|
mixins: [mixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
moren: "kzpz",
|
moren: 'kzpz',
|
||||||
topList: [
|
|
||||||
{
|
|
||||||
name: '奖项配置',
|
|
||||||
path: "bonus",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '直推配置',
|
|
||||||
path: "ztpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '拓展配置',
|
|
||||||
path: "kzpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '辅导分红',
|
|
||||||
path: "fdfh",
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
name: '服务补贴',
|
|
||||||
path: "fwbt",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '奖金扣项',
|
|
||||||
path: "jjkx",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '云代配置',
|
|
||||||
path: "ydpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '环球积分',
|
|
||||||
path: "hqjf",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '车奖积分',
|
|
||||||
path: "njjf",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
tableData: [],
|
tableData: [],
|
||||||
tableData2: [],
|
tableData2: [],
|
||||||
tableData3: [],
|
tableData3: [],
|
||||||
ifupdate: true,
|
ifupdate: true,
|
||||||
fdWayList: [
|
fdWayList: [
|
||||||
{ value: '1', label: "日" },
|
{ value: '1', label: '日' },
|
||||||
{ value: '2', label: "周" },
|
{ value: '2', label: '周' }
|
||||||
],
|
],
|
||||||
ssessmentTypeList: [],
|
ssessmentTypeList: [],
|
||||||
yesNoList: []
|
yesNoList: []
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getExpandList();
|
this.getExpandList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
isLocals,
|
isLocals,
|
||||||
// 获取拓展等级列表
|
// 获取拓展等级列表
|
||||||
getExpandList() {
|
getExpandList() {
|
||||||
getExpandList().then((res) => {
|
getExpandList().then((res) => {
|
||||||
this.tableData = res.rows;
|
this.tableData = res.rows
|
||||||
});
|
})
|
||||||
getbdBonusExpand().then((res) => {
|
getbdBonusExpand().then((res) => {
|
||||||
this.tableData2 = res.rows;
|
this.tableData2 = res.rows
|
||||||
});
|
})
|
||||||
getzccsList({ key: 'EXPAND_CAP_METHOD1' }).then(res => {
|
getzccsList({ key: 'EXPAND_CAP_METHOD1' }).then(res => {
|
||||||
this.tableData3 = res.data
|
this.tableData3 = res.data
|
||||||
})
|
})
|
||||||
// 考核类型下拉选
|
// 考核类型下拉选
|
||||||
getAssessmentType().then((res) => {
|
getAssessmentType().then((res) => {
|
||||||
this.ssessmentTypeList = res.data;
|
this.ssessmentTypeList = res.data
|
||||||
});
|
})
|
||||||
getDealerYesNo().then(res => {
|
getDealerYesNo().then(res => {
|
||||||
this.yesNoList = res.data
|
this.yesNoList = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 保存
|
// 保存
|
||||||
savedate() {
|
savedate() {
|
||||||
this.ifupdate = true;
|
this.ifupdate = true
|
||||||
updateExpand({
|
updateExpand({
|
||||||
expandList: this.tableData,
|
expandList: this.tableData,
|
||||||
bonusExpands: this.tableData2,
|
bonusExpands: this.tableData2
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "success",
|
type: 'success'
|
||||||
});
|
})
|
||||||
this.getExpandList();
|
this.getExpandList()
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
saveYfpz(this.tableData3).then(res => {
|
saveYfpz(this.tableData3).then(res => {
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
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>
|
||||||
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
export const mixin = {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
topList: [
|
||||||
|
{
|
||||||
|
name: '奖项配置',
|
||||||
|
path: 'bonus'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '直推配置',
|
||||||
|
path: 'ztpz'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '拓展配置',
|
||||||
|
path: 'kzpz'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '培育津贴',
|
||||||
|
path: 'fdfh'
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
name: '服务补贴',
|
||||||
|
path: 'fwbt'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '奖金扣项',
|
||||||
|
path: 'jjkx'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '云代配置',
|
||||||
|
path: 'ydpz'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '环球积分',
|
||||||
|
path: 'hqjf'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '车奖积分',
|
||||||
|
path: 'njjf'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -2,9 +2,9 @@
|
||||||
<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="maintable">
|
<div class="maintable">
|
||||||
<el-table
|
<el-table
|
||||||
|
@ -18,18 +18,18 @@
|
||||||
align="center"
|
align="center"
|
||||||
prop="awardsName"
|
prop="awardsName"
|
||||||
:label="'真实奖衔'"
|
:label="'真实奖衔'"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="carAwardPoints"
|
prop="carAwardPoints"
|
||||||
:label="'车奖比例'+'(%)'"
|
:label="'车奖比例'+'(%)'"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input clearable
|
<el-input
|
||||||
:disabled="ifupdate"
|
|
||||||
v-model="scope.row.carAwardPoints"
|
v-model="scope.row.carAwardPoints"
|
||||||
></el-input>
|
clearable
|
||||||
|
:disabled="ifupdate"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -37,9 +37,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div style="margin: 0 auto">
|
<div style="margin: 0 auto">
|
||||||
<el-button class="thebtn btn1" @click="ifupdate = false"
|
<el-button
|
||||||
>{{'修改'}}</el-button
|
class="thebtn btn1"
|
||||||
>
|
@click="ifupdate = false"
|
||||||
|
>{{ '修改' }}</el-button>
|
||||||
<el-button class="thebtn btn2" @click="savedate">{{ '保存' }}</el-button>
|
<el-button class="thebtn btn2" @click="savedate">{{ '保存' }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -47,104 +48,67 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import topBar from "@/components/topBar";
|
import topBar from '@/components/topBar'
|
||||||
import { getintegralList, updategCarAwardPoints } from "@/api/bonus";
|
import { getintegralList, updategCarAwardPoints } from '@/api/bonus'
|
||||||
|
import { mixin } from './mixins'
|
||||||
export default {
|
export default {
|
||||||
name: "Njjf",
|
name: 'Njjf',
|
||||||
components: {
|
components: {
|
||||||
topBar,
|
topBar
|
||||||
},
|
},
|
||||||
|
mixins: [mixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
moren: "njjf",
|
moren: 'njjf',
|
||||||
topList: [
|
|
||||||
{
|
|
||||||
name: '奖项配置',
|
|
||||||
path: "bonus",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '直推配置',
|
|
||||||
path: "ztpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '拓展配置',
|
|
||||||
path: "kzpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '辅导分红',
|
|
||||||
path: "fdfh",
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
name: '服务补贴',
|
|
||||||
path: "fwbt",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '奖金扣项',
|
|
||||||
path: "jjkx",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '云代配置',
|
|
||||||
path: "ydpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '环球积分',
|
|
||||||
path: "hqjf",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '车奖积分',
|
|
||||||
path: "njjf",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
tableData: [
|
tableData: [
|
||||||
{
|
{
|
||||||
name: "asads",
|
name: 'asads',
|
||||||
put: 2,
|
put: 2
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
ifupdate: true,
|
ifupdate: true
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getintegralList();
|
this.getintegralList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getintegralList() {
|
getintegralList() {
|
||||||
getintegralList().then((res) => {
|
getintegralList().then((res) => {
|
||||||
this.tableData = res.rows;
|
this.tableData = res.rows
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
// 保存
|
// 保存
|
||||||
savedate() {
|
savedate() {
|
||||||
this.ifupdate = true;
|
this.ifupdate = true
|
||||||
updategCarAwardPoints({ carAwardPointsList: this.tableData }).then(
|
updategCarAwardPoints({ carAwardPointsList: this.tableData }).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'
|
||||||
});
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "warning",
|
type: 'warning'
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
this.getintegralList()
|
this.getintegralList()
|
||||||
}
|
}
|
||||||
);
|
)
|
||||||
},
|
},
|
||||||
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>
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
<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="maintable">
|
<div class="maintable">
|
||||||
<el-table
|
<el-table
|
||||||
|
@ -13,11 +13,10 @@
|
||||||
:header-cell-style="{ background: '#EEEEEE' }"
|
:header-cell-style="{ background: '#EEEEEE' }"
|
||||||
:row-class-name="tableRowClassName"
|
:row-class-name="tableRowClassName"
|
||||||
>
|
>
|
||||||
<el-table-column width="200px" align="center" prop="cloudTypeVal" :label="'云代收益'">
|
<el-table-column width="200px" align="center" prop="cloudTypeVal" :label="'云代收益'" />
|
||||||
</el-table-column>
|
|
||||||
<el-table-column align="center" prop="cloudRatio" :label="'比例'+'(%)'">
|
<el-table-column align="center" prop="cloudRatio" :label="'比例'+'(%)'">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input clearable :disabled="ifupdate" v-model="scope.row.cloudRatio"></el-input>
|
<el-input v-model="scope.row.cloudRatio" clearable :disabled="ifupdate" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -33,58 +32,21 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import topBar from "@/components/topBar";
|
import topBar from '@/components/topBar'
|
||||||
import { getCloudList, updateCloud } from '@/api/bonus'
|
import { getCloudList, updateCloud } from '@/api/bonus'
|
||||||
|
import { mixin } from './mixins'
|
||||||
export default {
|
export default {
|
||||||
name: "Ydpz",
|
name: 'Ydpz',
|
||||||
components: {
|
components: {
|
||||||
topBar,
|
topBar
|
||||||
},
|
},
|
||||||
|
mixins: [mixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
moren: "ydpz",
|
moren: 'ydpz',
|
||||||
topList: [
|
|
||||||
{
|
|
||||||
name: '奖项配置',
|
|
||||||
path: "bonus",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '直推配置',
|
|
||||||
path: "ztpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '拓展配置',
|
|
||||||
path: "kzpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '辅导分红',
|
|
||||||
path: "fdfh",
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
name: '服务补贴',
|
|
||||||
path: "fwbt",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '奖金扣项',
|
|
||||||
path: "jjkx",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '云代配置',
|
|
||||||
path: "ydpz",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '环球积分',
|
|
||||||
path: "hqjf",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '车奖积分',
|
|
||||||
path: "njjf",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
tableData: [],
|
tableData: [],
|
||||||
ifupdate:true,
|
ifupdate: true
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getCloudList()
|
this.getCloudList()
|
||||||
|
@ -102,27 +64,27 @@ export default {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "success",
|
type: 'success'
|
||||||
});
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "warning",
|
type: 'warning'
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
this.getCloudList()
|
this.getCloudList()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
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>
|
||||||
|
|
|
@ -436,53 +436,16 @@ import {
|
||||||
getTakeValueTypeList,
|
getTakeValueTypeList,
|
||||||
getAlgebra
|
getAlgebra
|
||||||
} from '@/api/bonus'
|
} from '@/api/bonus'
|
||||||
|
import { mixin } from './mixins'
|
||||||
export default {
|
export default {
|
||||||
name: 'Ztpz',
|
name: 'Ztpz',
|
||||||
components: {
|
components: {
|
||||||
topBar
|
topBar
|
||||||
},
|
},
|
||||||
|
mixins: [mixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
moren: 'ztpz',
|
moren: 'ztpz',
|
||||||
topList: [
|
|
||||||
{
|
|
||||||
name: '奖项配置',
|
|
||||||
path: 'bonus'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '直推配置',
|
|
||||||
path: 'ztpz'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '拓展配置',
|
|
||||||
path: 'kzpz'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '辅导分红',
|
|
||||||
path: 'fdfh'
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
name: '服务补贴',
|
|
||||||
path: 'fwbt'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '奖金扣项',
|
|
||||||
path: 'jjkx'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '云代配置',
|
|
||||||
path: 'ydpz'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '环球积分',
|
|
||||||
path: 'hqjf'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '车奖积分',
|
|
||||||
path: 'njjf'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
form: {
|
form: {
|
||||||
bonusDirectLoopExtsList: [
|
bonusDirectLoopExtsList: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -44,9 +44,9 @@ module.exports = {
|
||||||
},
|
},
|
||||||
proxy: {
|
proxy: {
|
||||||
'/prod-api': {
|
'/prod-api': {
|
||||||
target: 'http://192.168.0.104:8080',
|
target: 'http://t-app.beida777.com',
|
||||||
changeOrigin: true,
|
changeOrigin: true
|
||||||
pathRewrite: { '^/prod-api': '' }
|
// pathRewrite: { '^/prod-api': '' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue