Commit c3ae3960 authored by 黄奎's avatar 黄奎

页面调整

parent df74261e
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
.courseMainTbale td { .courseMainTbale td {
padding: 0 3px; padding: 0 3px;
} }
</style> </style>
<template> <template>
<q-dialog v-model="persistent" persistent content-class="bg-grey-1" transition-show="scale" transition-hide="scale"> <q-dialog v-model="persistent" persistent content-class="bg-grey-1" transition-show="scale" transition-hide="scale">
...@@ -31,55 +32,21 @@ ...@@ -31,55 +32,21 @@
<span class="course_Line"></span> <span class="course_Line"></span>
基础价格设置 基础价格设置
</div> </div>
<div> <div class="row">
<table style="margin-left:10px;"> <q-select filled stack-label dense class="col-2 q-pr-lg q-pb-lg" v-model="priceObj.courseObj.SellPriceType"
<tr> :options="PriceTypeList" emit-value map-options option-value="Id" option-label="Name" label="价格类型" />
<td style="width:110px;text-align:right;"> <q-input filled stack-label dense class="col-2 q-pr-lg q-pb-lg" maxlength="8"
<el-select v-model="priceObj.courseObj.SellPriceType" placeholder="请选择报价类型"> v-model="priceObj.courseObj.SellPrice" ref="SellPrice"
<el-option :label="priceObj.courseObj.SellPriceType==1?'课程总价':'课时单价'"
v-for="item in PriceTypeList" @keyup.native="checkPrice(priceObj.courseObj, 'SellPrice')" :rules="[val => !!val || '请填写卖价']" />
:key="item.value" <template v-if="priceObj.courseObj.SellPriceType==1">
:label="item.label" <q-input filled stack-label class="col-2 q-pr-lg q-pb-lg" maxlength="8" dense
:value="item.value"> v-model="priceObj.courseObj.TextbookFee" ref="TextbookFee" label="教材费"
</el-option> @keyup.native="checkPrice(priceObj.courseObj, 'TextbookFee')" />
</el-select> <q-input filled stack-label class="col-2 q-pr-lg q-pb-lg" maxlength="8" dense
</td> v-model="priceObj.courseObj.CoursewareFee" ref="CoursewareFee" label="课件费"
<td colspan="2"> @keyup.native="checkPrice(priceObj.courseObj, 'CoursewareFee')" />
<q-input filled stack-label maxlength="8" style="padding-bottom:0;width:390px;margin-left:10px;" dense </template>
v-model="priceObj.courseObj.SellPrice" ref="SellPrice" label="卖价"
@keyup.native="checkPrice(priceObj.courseObj, 'SellPrice')" :rules="[val => !!val || '请填写卖价']" />
</td>
</tr>
</table>
</div>
<div class="text-caption q-mb-lg q-mt-lg text-grey-6 row wrap">
<span class="course_Line"></span>
其他价格设置
</div>
<div>
<table style="margin-left:10px;">
<tr>
<td style="width:110px;text-align:right;">
教材费
</td>
<td colspan="2">
<q-input filled stack-label maxlength="8" style="padding-bottom:0;width:390px;margin-left:10px;" dense
v-model="priceObj.courseObj.TextbookFee" ref="TextbookFee" label="价格"
@keyup.native="checkPrice(priceObj.courseObj, 'TextbookFee')" :rules="[val => !!val || '请填写教材费价格']" />
</td>
</tr>
<tr>
<td style="width:110px;text-align:right;">
课件费
</td>
<td colspan="2">
<q-input filled stack-label maxlength="8" style="padding-bottom:0;width:390px;margin-left:10px;" dense
v-model="priceObj.courseObj.CoursewareFee" ref="CoursewareFee" label="价格"
@keyup.native="checkPrice(priceObj.courseObj, 'CoursewareFee')" :rules="[val => !!val || '请填写课件费价格']" />
</td>
</tr>
</table>
</div> </div>
<div class="text-caption q-mb-lg q-mt-lg text-grey-6" v-if="false"> <div class="text-caption q-mb-lg q-mt-lg text-grey-6" v-if="false">
<span class="course_Line"></span> <span class="course_Line"></span>
...@@ -122,7 +89,7 @@ ...@@ -122,7 +89,7 @@
<div class="text-caption q-mb-lg q-mt-lg text-grey-6 row wrap" style="align-items:center;"> <div class="text-caption q-mb-lg q-mt-lg text-grey-6 row wrap" style="align-items:center;">
<div> <div>
<span class="course_Line"></span> <span class="course_Line"></span>
返佣 返佣设置
</div> </div>
<!--只保留内部介绍返佣和学员介绍返佣。--> <!--只保留内部介绍返佣和学员介绍返佣。-->
<q-select style="width:200px;margin-left:35px;" filled dense v-model="priceObj.courseObj.CommissionReType" <q-select style="width:200px;margin-left:35px;" filled dense v-model="priceObj.courseObj.CommissionReType"
...@@ -130,8 +97,7 @@ ...@@ -130,8 +97,7 @@
</div> </div>
<table style="border-collapse: collapse;width:100%;" class="coursePrice_table courseMainTbale"> <table style="border-collapse: collapse;width:100%;" class="coursePrice_table courseMainTbale">
<tr style="height:40px;"> <tr style="height:40px;">
<th>同行 <th>返佣类型</th>
</th>
<th> <th>
首报名返佣比例 首报名返佣比例
</th> </th>
...@@ -400,12 +366,12 @@ ...@@ -400,12 +366,12 @@
}, },
data() { data() {
return { return {
PriceTypeList:[{ PriceTypeList: [{
value: 1, Id: 1,
label: '课程总价' Name: '课程总价'
}, { }, {
value: 2, Id: 2,
label: '课时单价' Name: '课时单价'
}], }],
persistent: true, persistent: true,
optionTitle: "", optionTitle: "",
...@@ -416,9 +382,9 @@ ...@@ -416,9 +382,9 @@
CourseId: 0, //课程编号 CourseId: 0, //课程编号
OriginalPrice: 0, //原价 OriginalPrice: 0, //原价
SellPrice: 0, //售价 SellPrice: 0, //售价
SellPriceType:1,//价格类型:基础售价1/课时售价2 SellPriceType: 1, //价格类型:基础售价1/课时售价2
TextbookFee:0,//教材费 TextbookFee: 0, //教材费
CoursewareFee:0,//课件费 CoursewareFee: 0, //课件费
CommissionReType: 1, //返佣类型(1比例返佣,2-固定金额返佣) CommissionReType: 1, //返佣类型(1比例返佣,2-固定金额返佣)
B2CRatio: 0, //直客首次报名优惠比例 B2CRatio: 0, //直客首次报名优惠比例
B2CReNewRatio: 0, //直客续费优惠比例 B2CReNewRatio: 0, //直客续费优惠比例
...@@ -654,7 +620,7 @@ ...@@ -654,7 +620,7 @@
var Count = '' var Count = ''
var currentPrice = Number(100 - this.priceObj.courseObj.B2CRatio) * this.priceObj.courseObj.SellPrice / 100; var currentPrice = Number(100 - this.priceObj.courseObj.B2CRatio) * this.priceObj.courseObj.SellPrice / 100;
var currrntXufei = Number(100 - this.priceObj.courseObj.B2CReNewRatio) * this.priceObj.courseObj.SellPrice / var currrntXufei = Number(100 - this.priceObj.courseObj.B2CReNewRatio) * this.priceObj.courseObj.SellPrice /
100; 100;
if (type == 3) { if (type == 3) {
if (this.priceObj.courseObj.B2BRebateRatio) { if (this.priceObj.courseObj.B2BRebateRatio) {
let num = currentPrice * Number(this.priceObj.courseObj.B2BRebateRatio) / 100; let num = currentPrice * Number(this.priceObj.courseObj.B2BRebateRatio) / 100;
...@@ -728,4 +694,5 @@ ...@@ -728,4 +694,5 @@
} }
} }
}; };
</script>
\ No newline at end of file </script>
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