Commit a0f193e1 authored by 吴春's avatar 吴春

1

parent 7c79d3fa
...@@ -34,8 +34,15 @@ ...@@ -34,8 +34,15 @@
<div> <div>
<table style="margin-left:10px;"> <table style="margin-left:10px;">
<tr> <tr>
<td style="width:70px;text-align:right;"> <td style="width:110px;text-align:right;">
卖价 <el-select v-model="priceObj.courseObj.SellPriceType" placeholder="请选择报价类型">
<el-option
v-for="item in PriceTypeList"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</td> </td>
<td colspan="2"> <td colspan="2">
<q-input filled stack-label maxlength="8" style="padding-bottom:0;width:390px;margin-left:10px;" dense <q-input filled stack-label maxlength="8" style="padding-bottom:0;width:390px;margin-left:10px;" dense
...@@ -45,6 +52,35 @@ ...@@ -45,6 +52,35 @@
</tr> </tr>
</table> </table>
</div> </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 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>
优惠 优惠
...@@ -364,6 +400,13 @@ ...@@ -364,6 +400,13 @@
}, },
data() { data() {
return { return {
PriceTypeList:[{
value: 1,
label: '课程总价'
}, {
value: 2,
label: '课时单价'
}],
persistent: true, persistent: true,
optionTitle: "", optionTitle: "",
saveCourseLoading: false, saveCourseLoading: false,
...@@ -373,6 +416,9 @@ ...@@ -373,6 +416,9 @@
CourseId: 0, //课程编号 CourseId: 0, //课程编号
OriginalPrice: 0, //原价 OriginalPrice: 0, //原价
SellPrice: 0, //售价 SellPrice: 0, //售价
SellPriceType:1,//价格类型:基础售价1/课时售价2
TextbookFee:0,//教材费
CoursewareFee:0,//课件费
CommissionReType: 1, //返佣类型(1比例返佣,2-固定金额返佣) CommissionReType: 1, //返佣类型(1比例返佣,2-固定金额返佣)
B2CRatio: 0, //直客首次报名优惠比例 B2CRatio: 0, //直客首次报名优惠比例
B2CReNewRatio: 0, //直客续费优惠比例 B2CReNewRatio: 0, //直客续费优惠比例
...@@ -475,6 +521,9 @@ ...@@ -475,6 +521,9 @@
this.priceObj.courseObj.CourseId = res.Data.CourseId; this.priceObj.courseObj.CourseId = res.Data.CourseId;
this.priceObj.courseObj.OriginalPrice = res.Data.OriginalPrice; this.priceObj.courseObj.OriginalPrice = res.Data.OriginalPrice;
this.priceObj.courseObj.SellPrice = res.Data.SellPrice; this.priceObj.courseObj.SellPrice = res.Data.SellPrice;
this.priceObj.courseObj.SellPriceType = res.Data.SellPriceType;
this.priceObj.courseObj.TextbookFee = res.Data.TextbookFee;
this.priceObj.courseObj.CoursewareFee = res.Data.CoursewareFee;
this.priceObj.courseObj.CommissionReType = res.Data.CommissionReType; this.priceObj.courseObj.CommissionReType = res.Data.CommissionReType;
this.priceObj.courseObj.B2CRatio = res.Data.B2CRatio; this.priceObj.courseObj.B2CRatio = res.Data.B2CRatio;
this.priceObj.courseObj.B2CRatioType = res.Data.B2CRatioType; this.priceObj.courseObj.B2CRatioType = res.Data.B2CRatioType;
...@@ -526,6 +575,7 @@ ...@@ -526,6 +575,7 @@
this.priceObj.courseObj.CourseId = 0; this.priceObj.courseObj.CourseId = 0;
this.priceObj.courseObj.OriginalPrice = 0; this.priceObj.courseObj.OriginalPrice = 0;
this.priceObj.courseObj.SellPrice = 0; this.priceObj.courseObj.SellPrice = 0;
this.priceObj.courseObj.SellPriceType = 1;
} }
}, },
//关闭弹窗 //关闭弹窗
......
...@@ -137,7 +137,16 @@ export default { ...@@ -137,7 +137,16 @@ export default {
label: "直客价", label: "直客价",
align: "left", align: "left",
field: row => row.SellPrice.toFixed(2) field: row => row.SellPrice.toFixed(2)
},
{
name: "SellPriceType",
required: true,
label: "价格类型",
align: "left",
field: row => row.SellPriceType == 1 ? '课程总价' : (row.SellPriceType==2?'课时单价':'')
} }
], ],
// msg: { // msg: {
// pageIndex: 1, // pageIndex: 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