Commit 561fa599 authored by 吴春's avatar 吴春

1

parent ee3cd3f3
...@@ -200,9 +200,7 @@ ...@@ -200,9 +200,7 @@
<template v-if="item.OrderType == 1"> <template v-if="item.OrderType == 1">
<div v-if="item.ClassList&&item.ClassList.length>0"> <div v-if="item.ClassList&&item.ClassList.length>0">
课程名称: 课程名称:
<span v-for="(itemc, indexc) in item.ClassList"> <span v-for="(itemc, indexc) in item.ClassList">{{indexc>0?',':""}}{{itemc.CourseName }}</span>
{{indexc>1?',':""}}{{ itemc.CourseName }}
</span>
</div> </div>
<div v-else="item.CourseName"> <div v-else="item.CourseName">
课程名称:{{ item.CourseName }} 课程名称:{{ item.CourseName }}
......
...@@ -297,22 +297,28 @@ export default { ...@@ -297,22 +297,28 @@ export default {
// 选择班级 // 选择班级
selectClass(val) { selectClass(val) {
this.selectedCourseList = [] this.selectedCourseList = []
if (val.length > 0) { if (val.length > 0) {
this.saveObj = val[0]; this.saveObj = val[0];
this.saveObj.Unit_Price = this.saveObj.SellPrice; this.saveObj.Unit_Price = this.saveObj.SellPrice;
this.defaultCourse = val; this.defaultCourse = val;
this.saveObj.OrderCourseList =[];
this.saveObj.OrderCourseList.push(JSON.parse(JSON.stringify(this.saveObj)));
console.log("this.saveObj.OrderCourseList",this.saveObj.OrderCourseList);
this.saveObj.TextbookFee=0;
this.saveObj.CoursewareFee=0;
} else { } else {
this.saveObj = {}; this.saveObj = {};
this.saveObj.Unit_Price = 0; this.saveObj.Unit_Price = 0;
this.defaultCourse = []; this.defaultCourse = [];
} }
}, },
// 选择课程 // 选择课程
selectCourse(val) { selectCourse(val) {
this.selectedCourseList = [] this.selectedCourseList = []
if (val.length > 0) { if (val.length > 0) {
// this.saveObj = val[0];
// this.saveObj.Unit_Price = this.saveObj.SellPrice;
this.selectedCourseList = val; this.selectedCourseList = val;
} }
this.saveObj = {}; this.saveObj = {};
...@@ -322,10 +328,8 @@ export default { ...@@ -322,10 +328,8 @@ export default {
this.selectedCourseList.forEach((item,index) => { this.selectedCourseList.forEach((item,index) => {
if(index==0){ if(index==0){
this.saveObj = JSON.parse(JSON.stringify(item)); this.saveObj = JSON.parse(JSON.stringify(item));
console.log("this.saveObj111",this.saveObj);
this.saveObj.Unit_Price = item.SellPrice; this.saveObj.Unit_Price = item.SellPrice;
this.saveObj.PreferPrice = item.SellPrice; this.saveObj.PreferPrice = item.SellPrice;
console.log("this.saveObj111.Unit_Price",this.saveObj.Unit_Price);
} }
else{ else{
this.saveObj.CourseName+=","+item.CourseName this.saveObj.CourseName+=","+item.CourseName
......
...@@ -196,6 +196,7 @@ ...@@ -196,6 +196,7 @@
/> />
</template> </template>
<q-input <q-input
v-if="mode!=1"
filled filled
stack-label stack-label
:dense="false" :dense="false"
...@@ -207,6 +208,7 @@ ...@@ -207,6 +208,7 @@
label="课件费" label="课件费"
/> />
<q-input <q-input
v-if="mode!=1"
filled filled
stack-label stack-label
:dense="false" :dense="false"
...@@ -348,6 +350,7 @@ ...@@ -348,6 +350,7 @@
label="协助老师" label="协助老师"
/> --> /> -->
<q-select <q-select
v-if="mode!=1"
v-model="OrderMsg.HelpEnterId" v-model="OrderMsg.HelpEnterId"
:options="AssistList" :options="AssistList"
filled filled
......
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
Vue.prototype.domainManager = function () { Vue.prototype.domainManager = function () {
//let domainUrl = 'http://192.168.10.214'; //let domainUrl = 'http://192.168.10.214';
let domainUrl = 'http://192.168.5.34'; let domainUrl = 'http://192.168.5.57';
let viewFileUrl = 'http://192.168.5.214:8120'; let viewFileUrl = 'http://192.168.5.214:8120';
let mallUrl = "http://192.168.5.2:8088"; let mallUrl = "http://192.168.5.2:8088";
......
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