fix(kzpz): 币种改为人民币
This commit is contained in:
parent
9968bcf674
commit
99ae5a99fb
|
@ -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,23 +53,23 @@
|
||||||
>
|
>
|
||||||
<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
|
||||||
align="center"
|
align="center"
|
||||||
prop="repurchaseCapping"
|
prop="repurchaseCapping"
|
||||||
label="复购拓展封顶($)"
|
label="复购拓展封顶(¥)"
|
||||||
>
|
>
|
||||||
<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>
|
||||||
|
@ -98,18 +97,18 @@
|
||||||
prop="firstAssess"
|
prop="firstAssess"
|
||||||
label="首购考核"
|
label="首购考核"
|
||||||
>
|
>
|
||||||
<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>
|
||||||
|
@ -118,18 +117,18 @@
|
||||||
prop="repurchaseCalculate"
|
prop="repurchaseCalculate"
|
||||||
label="复购计算"
|
label="复购计算"
|
||||||
>
|
>
|
||||||
<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,148 +221,148 @@
|
||||||
: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 class="thebtn btn2" @click="savedate">{{'保存'}}</el-button>
|
> {{ '修改' }}</el-button>
|
||||||
|
<el-button class="thebtn btn2" @click="savedate">{{ '保存' }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</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'
|
||||||
export default {
|
export default {
|
||||||
name: "Kzpz",
|
name: 'Kzpz',
|
||||||
components: {
|
components: {
|
||||||
topBar,
|
topBar
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
moren: "kzpz",
|
moren: 'kzpz',
|
||||||
topList: [
|
topList: [
|
||||||
{
|
{
|
||||||
name: '奖项配置',
|
name: '奖项配置',
|
||||||
path: "bonus",
|
path: 'bonus'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '直推配置',
|
name: '直推配置',
|
||||||
path: "ztpz",
|
path: 'ztpz'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '拓展配置',
|
name: '拓展配置',
|
||||||
path: "kzpz",
|
path: 'kzpz'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '辅导分红',
|
name: '辅导分红',
|
||||||
path: "fdfh",
|
path: 'fdfh'
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: '服务补贴',
|
name: '服务补贴',
|
||||||
path: "fwbt",
|
path: 'fwbt'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '奖金扣项',
|
name: '奖金扣项',
|
||||||
path: "jjkx",
|
path: 'jjkx'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '云代配置',
|
name: '云代配置',
|
||||||
path: "ydpz",
|
path: 'ydpz'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '环球积分',
|
name: '环球积分',
|
||||||
path: "hqjf",
|
path: 'hqjf'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '车奖积分',
|
name: '车奖积分',
|
||||||
path: "njjf",
|
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>
|
||||||
|
|
Loading…
Reference in New Issue