Commit c202b7e3 authored by 罗超's avatar 罗超

1

parent f764486f
...@@ -216,6 +216,7 @@ ...@@ -216,6 +216,7 @@
PerDiscountMoney: 0, //每人优惠金额 PerDiscountMoney: 0, //每人优惠金额
CourseConsultantId:0,//课程顾问 CourseConsultantId:0,//课程顾问
CustomerId:0,//同行 CustomerId:0,//同行
OrderIdentify:1,//标识参数, 1产品下单 2客户转订单
}, },
Unit_PriceRemark: "", //单价规则 Unit_PriceRemark: "", //单价规则
IsShowUpPrice: false, //是否显示高于定价 IsShowUpPrice: false, //是否显示高于定价
......
...@@ -70,8 +70,17 @@ ...@@ -70,8 +70,17 @@
map-options map-options
label="学习课程" label="学习课程"
clearable clearable
/> >
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
未找到相关数据
</q-item-section>
</q-item>
</template>
</q-select>
</div> </div>
<div class="col-6"> <div class="col-6">
<div class="col-3 Sysuser_Date"> <div class="col-3 Sysuser_Date">
<q-field filled> <q-field filled>
...@@ -139,7 +148,12 @@ ...@@ -139,7 +148,12 @@
v-if="step > 1" v-if="step > 1"
/> />
<q-btn @click="next" color="primary" label="下一步" v-if="step < 2" /> <q-btn @click="next" color="primary" label="下一步" v-if="step < 2" />
<q-btn label="保存" color="primary" @click="saveOrderForm" v-if="step == 2" /> <q-btn
label="保存"
color="primary"
@click="saveOrderForm"
v-if="step == 2"
/>
</q-card-actions> </q-card-actions>
</q-card> </q-card>
</q-dialog> </q-dialog>
...@@ -229,7 +243,8 @@ export default { ...@@ -229,7 +243,8 @@ export default {
//关联校区列表 //关联校区列表
schoolList: [], schoolList: [],
ClassList: [], //关联课程下拉数据 ClassList: [], //关联课程下拉数据
myClassList: [] myClassList: [],
allClassList:[],
}; };
}, },
mounted() { mounted() {
...@@ -355,30 +370,36 @@ export default { ...@@ -355,30 +370,36 @@ export default {
CourseName: "不限" CourseName: "不限"
}); });
this.myClassList = this.ClassList; this.myClassList = this.ClassList;
this.allClassList= res.Data
} }
}); });
}, },
//课程筛选 //课程筛选
filterCourseFn(val, update, abort) { filterCourseFn(val, update, abort) {
update(() => { update(() => {
this.myClassList = this.ClassList.filter( if (val === "") {
v => v.CourseName.indexOf(val) > -1 this.myClassList = JSON.parse(JSON.stringify(this.allClassList));
); } else {
const needle = val.toLowerCase();
this.myClassList = this.allClassList.filter(
v => v.CourseName.toLowerCase().indexOf(needle) > -1
);
}
}); });
}, },
resetSearch() { resetSearch() {
this.courseMsg.pageIndex = 1; this.courseMsg.pageIndex = 1;
this.getCourseList(); this.getCourseList();
}, },
saveOrderForm(){ saveOrderForm() {
this.$refs.orderForm.saveOrderInfo() this.$refs.orderForm.saveOrderInfo();
} }
} }
}; };
</script> </script>
<style scoped> <style scoped>
/deep/.el-input__inner{ /deep/.el-input__inner {
background-color: transparent; background-color: transparent;
border:none; border: none;
} }
</style> </style>
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
@update:selected ="emitSel" @update:selected ="emitSel"
> >
<!-- <template v-slot:body-cell-ClassName="props"> <!-- <template v-slot:body-cell-ClassName="props">
<q-td :props="props" style="padding-right: 0px"> <q-td :props="props">
{{ props.row.ClassName }} {{ props.row.ClassNo }} {{ props.row.ClassName }}
</q-td> </q-td>
</template> --> </template> -->
<template v-slot:bottom> </template> <template v-slot:bottom> </template>
......
...@@ -331,15 +331,6 @@ ...@@ -331,15 +331,6 @@
label="备注" label="备注"
/> />
</div> </div>
<!-- <div style="margin:30px 10px 70px 0;" class="flex justify-end savebtn">
<q-btn
color="accent"
class="q-mr-md"
label="保存"
@click="saveOrderInfo()"
/>
</div> -->
</div> </div>
<div <div
...@@ -494,6 +485,7 @@ export default { ...@@ -494,6 +485,7 @@ export default {
let temp = this.CourseList.find( let temp = this.CourseList.find(
x => x.CourseId == this.OrderMsg.CourseId x => x.CourseId == this.OrderMsg.CourseId
); );
console.log('tagtemp', this.CourseList)
if (temp) { if (temp) {
this.courseObj = temp; this.courseObj = temp;
var tempDiscountMoney = 0; //优惠金额 var tempDiscountMoney = 0; //优惠金额
...@@ -567,6 +559,7 @@ export default { ...@@ -567,6 +559,7 @@ export default {
this.OrderMsg.SourceId = this.saveObj.SourceId; this.OrderMsg.SourceId = this.saveObj.SourceId;
} }
this.courseObj = {}; this.courseObj = {};
} }
/**计算少价---开始*/ /**计算少价---开始*/
...@@ -663,7 +656,7 @@ export default { ...@@ -663,7 +656,7 @@ export default {
} }
}); });
} else { } else {
this.OrderMsg.SaleRemark = ""; //清空备注
this.OrderMsg.HelpEnterId = 0; this.OrderMsg.HelpEnterId = 0;
this.OrderMsg.GeneralOccupation = ""; this.OrderMsg.GeneralOccupation = "";
this.OrderMsg.EduOccupation = ""; this.OrderMsg.EduOccupation = "";
...@@ -720,7 +713,14 @@ export default { ...@@ -720,7 +713,14 @@ export default {
} }
} }
this.IsShowEditOrder = true; this.IsShowEditOrder = true;
this.calcPrice(); this.calcPrice();
if(this.stuData.RenewNum>0){
this.OrderMsg.SaleRemark = `直客首次报名优惠比例${this.saveObj.B2CRatio ?? 0}%;直客续费优惠比例${this.saveObj.B2CReNewRatio ?? 0}%`; //备注
}else{
this.OrderMsg.SaleRemark = `直客首次报名优惠比例${this.saveObj.B2CRatio ?? 0}%`; //备注
}
} }
}, },
//筛选员工 //筛选员工
......
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