Commit aa996562 authored by 黄奎's avatar 黄奎

页面修改

parent 740d29cc
...@@ -214,7 +214,6 @@ ...@@ -214,7 +214,6 @@
align: "left", align: "left",
format: (val, row) => `${val}课时` format: (val, row) => `${val}课时`
}, },
{ {
name: "CreateByName", name: "CreateByName",
label: "创建人", label: "创建人",
......
...@@ -21,20 +21,35 @@ ...@@ -21,20 +21,35 @@
<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">
<div class="border-bottom"> <div class="border-bottom" v-if="x.PriceDiscountType == 1">
{{ x.B2BCommissionMoney }} {{ x.BuyNum }}{{ x.SendNum }}
</div> </div>
<div class="border-bottom" v-if="x.PriceDiscountType == 2">
单人报名享{{ 100 - x.PriceMoney }}折优惠
</div>
<div class="border-bottom" v-if="x.PriceDiscountType == 3">
双人报名享{{ 100 - x.PriceMoney }}折优惠
</div>
<div class="border-bottom" v-if="x.PriceDiscountType == 4">
续费享{{ 100 - x.PriceMoney }}折优惠
</div>
<div class="remark-font" v-if="x.PriceDiscountType == 0">
暂无优惠政策
</div>
</div>
<div v-if="!props.value || props.value.length == 0">
<div class="remark-font">暂无优惠政策</div>
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-PreferentialListB2BCommissionType="props"> <template v-slot:body-cell-PreferentialListSellCommission="props">
<q-td :props="props" style="padding-right:0px"> <q-td :props="props" style="padding-right:0px;padding-left:0px">
<div v-for="x in props.value"> <div v-for="x in props.value">
<div class="border-bottom" style="padding-left: 16px" :class="{ 'text-red': x.B2BCommissionType == 1 }" <div class="border-bottom" style="padding-left: 16px;padding-right: 16px"
v-if="x.PriceDiscountType != 0"> :class="{ 'text-red': x.SaleCommissionType == 1 }" v-if="x.PriceDiscountType != 0">
{{ x.B2BCommissionType == 1 ? "¥" : "" {{ x.SaleCommissionType == 1 ? "¥" : ""
}}{{ x.B2BCommissionMoney }}{{ x.SaleCommissionMoney
}}{{ x.B2BCommissionType == 0 ? "%" : "" }} }}{{ x.SaleCommissionType == 0 ? "%" : "" }}
</div> </div>
<div v-if="x.PriceDiscountType == 0"> <div v-if="x.PriceDiscountType == 0">
<div class="remark-font">暂无佣金信息</div> <div class="remark-font">暂无佣金信息</div>
...@@ -43,26 +58,16 @@ ...@@ -43,26 +58,16 @@
<div v-if="!props.value || props.value.length == 0"> <div v-if="!props.value || props.value.length == 0">
<div class="remark-font">暂无佣金信息</div> <div class="remark-font">暂无佣金信息</div>
</div> </div>
</div>
</q-td>
</template>
<template v-slot:body-cell-PreferentialList="props">
<q-td :props="props" style="padding-right:0px">
<div v-for="x in props.value">
<div class="border-bottom">
{{ x.SaleCommissionMoney }}
</div>
</div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-PreferentialListB2BCommissionType="props"> <template v-slot:body-cell-PreferentialListB2BCommission="props">
<q-td :props="props" style="padding-right:0px"> <q-td :props="props" style="padding-left:0px">
<div v-for="x in props.value"> <div v-for="x in props.value">
<div class="border-bottom" style="padding-left: 16px;padding-right: 16px" <div class="border-bottom" style="padding-left: 16px" :class="{ 'text-red': x.B2BCommissionType == 1 }"
:class="{ 'text-red': x.SaleCommissionType == 1 }" v-if="x.PriceDiscountType != 0"> v-if="x.PriceDiscountType != 0">
{{ x.SaleCommissionType == 1 ? "¥" : "" {{ x.B2BCommissionType == 1 ? "¥" : ""
}}{{ x.SaleCommissionMoney }}{{ x.B2BCommissionMoney
}}{{ x.SaleCommissionType == 0 ? "%" : "" }} }}{{ x.B2BCommissionType == 0 ? "%" : "" }}
</div> </div>
<div v-if="x.PriceDiscountType == 0"> <div v-if="x.PriceDiscountType == 0">
<div class="remark-font">暂无佣金信息</div> <div class="remark-font">暂无佣金信息</div>
...@@ -145,40 +150,37 @@ ...@@ -145,40 +150,37 @@
name: 'SuggestPrice', name: 'SuggestPrice',
label: '建议卖价', label: '建议卖价',
field: 'SuggestPrice', field: 'SuggestPrice',
align: 'left' align: 'left',
field: row => row.SuggestPrice.toFixed(2)
}, },
{ {
name: 'SellPrice', name: 'SellPrice',
label: '实际卖价', label: '实际卖价',
field: 'SellPrice', field: 'SellPrice',
align: 'left' align: 'left',
field: row => row.SellPrice.toFixed(2)
}, },
{ {
name: 'B2BCommission', name: "PreferentialList",
label: '同行返佣', required: true,
field: 'B2BCommission', label: "优惠政策",
align: 'left' align: "left",
field: row => row.PreferentialList
}, },
{ {
name: 'B2BCommissionType', name: "PreferentialListSellCommission",
label: '同行返佣类型', required: true,
field: 'B2BCommissionType', label: "销售佣金",
align: 'left' align: "left",
field: row => row.PreferentialList
}, },
{ {
name: 'SaleCommission', name: "PreferentialListB2BCommission",
label: '销售返佣', required: true,
field: 'SaleCommission', label: "同行佣金",
align: 'left' align: "left",
field: row => row.PreferentialList
}, },
{
name: 'SaleCommissionType',
label: '销售返佣类型',
field: 'SaleCommissionType',
align: 'left'
},
{ {
name: 'Remark', name: 'Remark',
label: '备注', label: '备注',
......
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