Commit 652551f9 authored by 罗超's avatar 罗超

1

parent 47245765
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</div> </div>
</div> </div>
<div style="padding:20px 15px;"> <div style="padding:20px 15px;">
<q-select standout="bg-primary text-white" v-model="OrderMsg.EduStudentId" class="col-12 q-mb-lg" :options="stuList" <q-select standout="bg-primary text-white" v-model="OrderMsg.EduStudentId" class="col-12 q-mb-lg" :options="stuList" clearable
emit-value map-options label="学员" option-value="StuId" option-label="StuName" @input="stuChange"/> emit-value map-options label="学员" option-value="StuId" option-label="StuName" @input="stuChange"/>
<q-input filled stack-label maxlength="30" :dense="false" <q-input filled stack-label maxlength="30" :dense="false"
v-model="OrderMsg.LinkMan" class="col-12" ref="LinkMan" label="姓名" :disable="isdisable" v-model="OrderMsg.LinkMan" class="col-12" ref="LinkMan" label="姓名" :disable="isdisable"
...@@ -103,6 +103,11 @@ ...@@ -103,6 +103,11 @@
} }
}, },
mounted() { mounted() {
let data=JSON.parse(localStorage.getItem("loginUserInfo")).data
this.loginId=data.Id
this.OrderMsg.EduUserId=data.Id
this.OrderMsg.TenantId=data.JHTenantId
this.OrderMsg.MallBaseId=data.JHMallBaseId
console.log(66,this.saveObj) console.log(66,this.saveObj)
if(this.saveObj){ if(this.saveObj){
if(this.sourceType===1){ if(this.sourceType===1){
...@@ -113,17 +118,14 @@ ...@@ -113,17 +118,14 @@
this.OrderMsg.ActivityId=this.saveObj.ActivityId this.OrderMsg.ActivityId=this.saveObj.ActivityId
this.OrderMsg.UnitPrice=this.saveObj.UnitPrice this.OrderMsg.UnitPrice=this.saveObj.UnitPrice
this.OrderMsg.EduStudentId=this.saveObj.EduStudentId this.OrderMsg.EduStudentId=this.saveObj.EduStudentId
// this.OrderMsg.EduUserId=this.saveObj.EduUserIds
} }
this.OrderMsg.LinkMan=this.saveObj.LinkMan this.OrderMsg.LinkMan=this.saveObj.LinkMan
this.OrderMsg.LinkTel=this.saveObj.LinkTel this.OrderMsg.LinkTel=this.saveObj.LinkTel
this.OrderMsg.Remark=this.saveObj.Remark this.OrderMsg.Remark=this.saveObj.Remark
} }
let data=JSON.parse(localStorage.getItem("loginUserInfo")).data
this.loginId=data.Id
this.OrderMsg.EduUserId=data.JHTenantId
this.OrderMsg.TenantId=data.JHTenantId
this.OrderMsg.MallBaseId=data.JHMallBaseId
this.getStu(); this.getStu();
}, },
watch: { watch: {
...@@ -142,14 +144,17 @@ ...@@ -142,14 +144,17 @@
if (!this.$refs.LinkMan.hasError && if (!this.$refs.LinkMan.hasError &&
!this.$refs.LinkTel.hasError !this.$refs.LinkTel.hasError
){ ){
if(this.saveObj.LnsideLimit===1&&!this.OrderMsg.EduStudentId){ // if(this.saveObj.LnsideLimit===1&&!this.OrderMsg.EduStudentId){
this.Error("请选择学员"); // this.Error("请选择学员");
return // return
} // }
if(this.OrderMsg.EduStudentId===null||!this.OrderMsg.EduStudentId){
this.OrderMsg.EduStudentId=0
}
this.OrderMsg.Money= this.OrderMsg.UnitPrice*this.OrderMsg.PeopleNum this.OrderMsg.Money= this.OrderMsg.UnitPrice*this.OrderMsg.PeopleNum
this.apipostDS("/api/Education/SetActivityEnrollInfo", this.OrderMsg, (res) => { this.apipostDS("/api/Education/SetActivityEnrollInfo", this.OrderMsg, (res) => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.Success("报名成功"); this.Success("操作成功");
this.closeEditOrder(); this.closeEditOrder();
// this.$emit('success'); // this.$emit('success');
} else { } else {
......
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