Commit 431fd722 authored by 黄奎's avatar 黄奎

课程价格隐藏

parent 8fecbccf
......@@ -87,7 +87,7 @@
<div class="col-6">
<q-select filled stack-label option-value="CourseId" option-label="CourseName" v-model="objOption.CouseId"
ref="CouseId" :options="CourseList" label="关联课程" :dense="false" class="col-6 q-pr-lg q-pb-lg" emit-value
map-options />
map-options @input="changeCourse()" />
</div>
</div>
<div class="row wrap">
......@@ -150,7 +150,7 @@
emit-value map-options />
</div>
</div>
<div class="row wrap" style="margin:20px 0;">
<div class="row wrap" style="margin:20px 0;display:none;">
<div class="col-6">
阶梯定价
<q-toggle size="md" label="" color="primary" :false-value="0" :true-value="1"
......@@ -159,7 +159,7 @@
color="primary" icon="iconfont icon-img_haha" />
</div>
</div>
<template v-if="objOption.IsStepPrice==1">
<template v-if="objOption.IsStepPrice==1" style="display:none;">
<div class="row wrap" v-for="(item,index) in ladderPriceList" :key="index">
<div class="col-6">
<q-input filled stack-label maxlength="3" v-model="item.PersionNum"
......@@ -175,7 +175,7 @@
</div>
</div>
</template>
<div class="row wrap">
<div class="row wrap" style="display:none;">
<div class="col-6">
提成设置
<q-toggle size="md" label="" color="primary" :false-value="0" :true-value="1"
......@@ -186,7 +186,7 @@
</div>
</div>
</div>
<div class="row wrap" style="margin:20px 0" v-if="objOption.IsOpenCommission==1">
<div class="row wrap" style="margin:20px 0;display:none;" v-if="objOption.IsOpenCommission==1">
<div class="col-12">
<q-field filled class="col-6 q-pr-lg q-pb-lg">
 <template v-slot:control>
......@@ -429,6 +429,16 @@
this.initObj()
},
methods: {
//选择课程改变事件
changeCourse() {
if (this.objOption.CouseId > 0) {
let val = this.CourseList.find(x => x.CourseId == this.objOption.CouseId);
if (val) {
this.objOption.OriginalPrice = val.OriginalPrice;
this.objOption.SellPrice = val.SellPrice;
}
}
},
//初始化日期-天
initDayList() {
this.dayList = [];
......@@ -547,7 +557,9 @@
},
//获取课程
getCourseList() {
queryCourseDropdownList({}).then(res => {
queryCourseDropdownList({
IsQPrice: 1
}).then(res => {
if (res.Code == 1) {
this.CourseList = res.Data;
var obj = {
......
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