Commit c2eaa66a authored by Mac's avatar Mac

处理字段绑错的问题

parent 875de38a
...@@ -48,6 +48,71 @@ ...@@ -48,6 +48,71 @@
<span v-html="props.value"></span> <span v-html="props.value"></span>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-B2CRatio="props">
<q-td :props="props">
<span>{{props.row.B2CRatio}}%</span>
</q-td>
</template>
<template v-slot:body-cell-B2CReNewRatio="props">
<q-td :props="props">
<span>{{props.row.B2CReNewRatio}}%</span>
</q-td>
</template>
<template v-slot:body-cell-B2BRebateRatio="props">
<q-td :props="props">
<span>{{props.row.B2BRebateRatio}}{{props.row.CommissionReType==1?'%':''}}</span>
</q-td>
</template>
<template v-slot:body-cell-B2BReNewRatio="props">
<q-td :props="props">
<span>{{props.row.B2BReNewRatio}}{{props.row.CommissionReType==1?'%':''}}</span>
</q-td>
</template>
<template v-slot:body-cell-SchoolRebateRatio="props">
<q-td :props="props">
<span>{{props.row.SchoolRebateRatio}}{{props.row.CommissionReType==1?'%':''}}</span>
</q-td>
</template>
<template v-slot:body-cell-SchoolReNewRatio="props">
<q-td :props="props">
<span>{{props.row.SchoolReNewRatio}}{{props.row.CommissionReType==1?'%':''}}</span>
</q-td>
</template>
<template v-slot:body-cell-TransIntroductceRatio="props">
<q-td :props="props">
<span>{{props.row.TransIntroductceRatio}}{{props.row.CommissionReType==1?'%':''}}</span>
</q-td>
</template>
<template v-slot:body-cell-TransIntroductceReNewRatio="props">
<q-td :props="props">
<span>{{props.row.TransIntroductceReNewRatio}}{{props.row.CommissionReType==1?'%':''}}</span>
</q-td>
</template>
<template v-slot:body-cell-InnerRecommendRatio="props">
<q-td :props="props">
<span>{{props.row.InnerRecommendRatio}}{{props.row.CommissionReType==1?'%':''}}</span>
</q-td>
</template>
<template v-slot:body-cell-InnerRecommendReNewRatio="props">
<q-td :props="props">
<span>{{props.row.InnerRecommendReNewRatio}}{{props.row.CommissionReType==1?'%':''}}</span>
</q-td>
</template>
<template v-slot:body-cell-B2CRbRatio="props">
<q-td :props="props">
<span>{{props.row.B2CRbRatio}}{{props.row.CommissionReType==1?'%':''}}</span>
</q-td>
</template>
<template v-slot:body-cell-B2CRNRatio="props">
<q-td :props="props">
<span>{{props.row.B2CRNRatio}}{{props.row.CommissionReType==1?'%':''}}</span>
</q-td>
</template>
<template v-slot:body-cell-PreferentialList="props"> <template v-slot:body-cell-PreferentialList="props">
<q-td :props="props" style="padding-right: 0px"> <q-td :props="props" style="padding-right: 0px">
<div v-for="x in props.value"> <div v-for="x in props.value">
...@@ -258,72 +323,72 @@ ...@@ -258,72 +323,72 @@
{ {
name: "B2BRebateRatio", name: "B2BRebateRatio",
required: true, required: true,
label: "一般同行返佣比例", label: "一般同行返佣",
align: "left", align: "left",
field: (row) => row.B2BRebateRatio field: (row) => row.B2BRebateRatio
}, },
{ {
name: "B2BReNewRatio", name: "B2BReNewRatio",
required: true, required: true,
label: "一般同行续费返佣比例", label: "一般同行续费返佣",
align: "left", align: "left",
field: (row) => row.B2BReNewRatio field: (row) => row.B2BReNewRatio
}, },
{ {
name: "SchoolRebateRatio", name: "SchoolRebateRatio",
required: true, required: true,
label: "校园同行返佣比例", label: "校园同行返佣",
align: "left", align: "left",
field: (row) => row.SchoolRebateRatio field: (row) => row.SchoolRebateRatio
}, },
{ {
name: "SchoolReNewRatio", name: "SchoolReNewRatio",
required: true, required: true,
label: "校园同行续费返佣比例", label: "校园同行续费返佣",
align: "left", align: "left",
field: (row) => row.SchoolReNewRatio field: (row) => row.SchoolReNewRatio
}, },
{ {
name: "TransIntroductceRatio", name: "TransIntroductceRatio",
required: true, required: true,
label: "转介返佣比例", label: "转介返佣",
align: "left", align: "left",
field: (row) => row.TransIntroductceRatio field: (row) => row.TransIntroductceRatio
}, },
{ {
name: "TransIntroductceReNewRatio", name: "TransIntroductceReNewRatio",
required: true, required: true,
label: "转介续费返佣比例", label: "转介续费返佣",
align: "left", align: "left",
field: (row) => row.TransIntroductceReNewRatio field: (row) => row.TransIntroductceReNewRatio
}, },
{ {
name: "InnerRecommendRatio", name: "InnerRecommendRatio",
required: true, required: true,
label: "内推返佣比例", label: "内推返佣",
align: "left", align: "left",
field: (row) => row.InnerRecommendRatio field: (row) => row.InnerRecommendRatio
}, },
{ {
name: "B2CRbRatio", name: "InnerRecommendReNewRatio",
required: true, required: true,
label: "内推续费返佣比例", label: "内推续费返佣",
align: "left", align: "left",
field: (row) => row.B2CRbRatio field: (row) => row.InnerRecommendReNewRatio
}, },
{ {
name: "B2CRbRatioValue", name: "B2CRbRatio",
required: true, required: true,
label: "直客返佣", label: "直客返佣",
align: "left", align: "left",
field: (row) => row.B2CRbRatioValue field: (row) => row.B2CRbRatio
}, },
{ {
name: "InnerRecommendReNewRatio", name: "B2CRNRatio",
required: true, required: true,
label: "直客续费返佣", label: "直客续费返佣",
align: "left", align: "left",
field: (row) => row.InnerRecommendReNewRatio field: (row) => row.B2CRNRatio
}, },
// { // {
......
...@@ -136,6 +136,7 @@ ...@@ -136,6 +136,7 @@
<q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="创建报价单" @click="createQuotation" /> <q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="创建报价单" @click="createQuotation" />
</div> </div>
</template> </template>
<template v-slot:body="props"> <template v-slot:body="props">
<q-tr :props="props"> <q-tr :props="props">
<q-td auto-width> <q-td auto-width>
...@@ -212,6 +213,17 @@ ...@@ -212,6 +213,17 @@
<div class="remark-font">暂无佣金信息</div> <div class="remark-font">暂无佣金信息</div>
</div> </div>
</q-td> </q-td>
<q-td v-else-if="col.name == 'B2CRatio'" style="padding-left:0px" :key="col.name">
{{col.value}}%
</q-td>
<q-td v-else-if="col.name == 'B2CReNewRatio' " style="padding-left:0px" :key="col.name">
{{col.value}}%
</q-td>
<q-td v-else-if="col.name == 'CommissionReType' " style="padding-left:0px" :key="col.name">
<span v-if="col.value==1">比例返佣</span>
<span v-if="col.value==2">固定金额</span>
</q-td>
<q-td v-else-if="col.name == 'TeacherList'" :key="col.name"> <q-td v-else-if="col.name == 'TeacherList'" :key="col.name">
<div v-for="(x,index) in col.value" :key="index"> <div v-for="(x,index) in col.value" :key="index">
<q-chip> <q-chip>
...@@ -368,6 +380,14 @@ ...@@ -368,6 +380,14 @@
align: "left", align: "left",
field: (row) => row.B2CReNewRatio field: (row) => row.B2CReNewRatio
}, },
{
name: "CommissionReType",
required: true,
label: "返佣类型",
align: "left",
field: (row) => row.CommissionReType
},
{ {
name: "B2BRebateRatio", name: "B2BRebateRatio",
required: true, required: true,
...@@ -432,11 +452,11 @@ ...@@ -432,11 +452,11 @@
field: (row) => row.B2CRbRatio field: (row) => row.B2CRbRatio
}, },
{ {
name: "B2CRbRatioValue", name: "B2CRNRatio",
required: true, required: true,
label: "直客续费返佣", label: "直客续费返佣",
align: "left", align: "left",
field: (row) => row.B2CRbRatioValue field: (row) => row.B2CRNRatio
}, },
{ {
......
...@@ -59,10 +59,10 @@ ...@@ -59,10 +59,10 @@
{{props.row.SellPrice}} {{props.row.SellPrice}}
</q-td> </q-td>
<q-td key="B2CRatio" :props="props"> <q-td key="B2CRatio" :props="props">
{{props.row.B2CRatio}}{{props.row.CommissionReType==1?'%':''}} {{props.row.B2CRatio}}%
</q-td> </q-td>
<q-td key="B2CReNewRatio" :props="props"> <q-td key="B2CReNewRatio" :props="props">
{{props.row.B2CReNewRatio}}{{props.row.CommissionReType==1?'%':''}} {{props.row.B2CReNewRatio}}%
</q-td> </q-td>
<q-td key="B2BRebateRatio" :props="props"> <q-td key="B2BRebateRatio" :props="props">
{{props.row.B2BRebateRatio}}{{props.row.CommissionReType==1?'%':''}} {{props.row.B2BRebateRatio}}{{props.row.CommissionReType==1?'%':''}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment