Commit a9f448ad authored by zhengke's avatar zhengke

页面修改

parents 11098f75 af7bf440
...@@ -304,15 +304,7 @@ ...@@ -304,15 +304,7 @@
</q-input> </q-input>
</td> </td>
<td> <td>
<q-input filled disable class="col-6 q-pb-lg" mask="date">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
<q-popup-proxy ref="qDateProxy3" transition-show="scale" transition-hide="scale">
<q-date @input="() => $refs.qDateProxy3.hide()" />
</q-popup-proxy>
</q-icon>
</template>
</q-input>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -353,8 +345,8 @@ ...@@ -353,8 +345,8 @@
persistent: true, persistent: true,
objOption: { objOption: {
Id: 0, Id: 0,
OrderId:0, OrderId: 0,
GuestId:0, GuestId: 0,
CType: 1, //类型1培训 2留学 CType: 1, //类型1培训 2留学
StudentName: '', //学生姓名 StudentName: '', //学生姓名
StuBirth: '', //学生生日 StuBirth: '', //学生生日
...@@ -407,29 +399,27 @@ ...@@ -407,29 +399,27 @@
fourthTotal: 0, // 培训课件费总计 fourthTotal: 0, // 培训课件费总计
fifthTotal: 0, // 折让价格 fifthTotal: 0, // 折让价格
sixthTotal: 0, // 费用总计 sixthTotal: 0, // 费用总计
firstFYXJ: 0, firstFYXJ: 0,
secondFYXJ: 0, secondFYXJ: 0,
thirdFYXJ: 0, thirdFYXJ: 0,
fyxjTotal: 0, fyxjTotal: 0,
saveLoading: false, saveLoading: false,
StudentMsg:{ StudentMsg: {
OrderId:0, OrderId: 0,
GuestId:0 GuestId: 0
} }
} }
}, },
created() {}, created() {},
mounted() { mounted() {
if(this.setingObj){ if (this.setingObj) {
this.StudentMsg.OrderId = this.setingObj.OrderId; this.StudentMsg.OrderId = this.setingObj.OrderId;
this.StudentMsg.GuestId = this.setingObj.GuestId; this.StudentMsg.GuestId = this.setingObj.GuestId;
this.objOption.OrderId = this.setingObj.OrderId; this.objOption.OrderId = this.setingObj.OrderId;
this.objOption.GuestId = this.setingObj.GuestId; this.objOption.GuestId = this.setingObj.GuestId;
if(this.setingObj.ContractId>0){ if (this.setingObj.ContractId > 0) {
this.getInfoList(); this.getInfoList();
}else{ } else {
this.getStudentContract(); this.getStudentContract();
} }
} }
...@@ -463,7 +453,6 @@ ...@@ -463,7 +453,6 @@
} }
}) })
}, },
//计算培训课件费总价 //计算培训课件费总价
getTotalClassFee() { getTotalClassFee() {
let arr = [this.objOption.FirstClassFee, this.objOption.SecondClassFee, this.objOption.ThirdClassFee]; let arr = [this.objOption.FirstClassFee, this.objOption.SecondClassFee, this.objOption.ThirdClassFee];
...@@ -474,7 +463,6 @@ ...@@ -474,7 +463,6 @@
} }
}) })
}, },
//计算折让价格总价 //计算折让价格总价
getTotalDiscountMoney() { getTotalDiscountMoney() {
let arr = [this.objOption.FirstDiscountMoney, this.objOption.SecondDiscountMoney, this.objOption let arr = [this.objOption.FirstDiscountMoney, this.objOption.SecondDiscountMoney, this.objOption
...@@ -487,8 +475,6 @@ ...@@ -487,8 +475,6 @@
} }
}) })
}, },
//计算第一列费用小计 //计算第一列费用小计
getFirstFYXJ() { getFirstFYXJ() {
let arr = [this.objOption.FirstCourseFee, this.objOption.FirstBookFee, this.objOption.FirstClassFee]; let arr = [this.objOption.FirstCourseFee, this.objOption.FirstBookFee, this.objOption.FirstClassFee];
...@@ -500,7 +486,6 @@ ...@@ -500,7 +486,6 @@
}) })
this.getTotalFYXJ(); this.getTotalFYXJ();
}, },
//计算第二列费用小计 //计算第二列费用小计
getSecondFYXJ() { getSecondFYXJ() {
let arr = [this.objOption.SecondCourseFee, this.objOption.SecondBookFee, this.objOption.SecondClassFee]; let arr = [this.objOption.SecondCourseFee, this.objOption.SecondBookFee, this.objOption.SecondClassFee];
...@@ -512,7 +497,6 @@ ...@@ -512,7 +497,6 @@
}) })
this.getTotalFYXJ(); this.getTotalFYXJ();
}, },
//计算第三列费用小计 //计算第三列费用小计
getthirdFYXJ() { getthirdFYXJ() {
let arr = [this.objOption.ThirdCourseFee, this.objOption.ThirdBookFee, this.objOption.ThirdClassFee]; let arr = [this.objOption.ThirdCourseFee, this.objOption.ThirdBookFee, this.objOption.ThirdClassFee];
...@@ -524,8 +508,6 @@ ...@@ -524,8 +508,6 @@
}) })
this.getTotalFYXJ(); this.getTotalFYXJ();
}, },
//获取费用小计总计 //获取费用小计总计
getTotalFYXJ() { getTotalFYXJ() {
let arr = [this.firstFYXJ, this.secondFYXJ, this.thirdFYXJ]; let arr = [this.firstFYXJ, this.secondFYXJ, this.thirdFYXJ];
...@@ -536,7 +518,6 @@ ...@@ -536,7 +518,6 @@
} }
}) })
}, },
//计算第一列费用总计 //计算第一列费用总计
getfirstFeiyongTotal() { getfirstFeiyongTotal() {
if (this.firstFYXJ != '' && this.objOption.FirstDiscountMoney != '') { if (this.firstFYXJ != '' && this.objOption.FirstDiscountMoney != '') {
...@@ -545,7 +526,6 @@ ...@@ -545,7 +526,6 @@
} }
this.getTotal(); this.getTotal();
}, },
//计算第二列费用总计 //计算第二列费用总计
getsecondFeiyongTotal() { getsecondFeiyongTotal() {
if (this.secondFYXJ != '' && this.objOption.SecondDiscountMoney != '') { if (this.secondFYXJ != '' && this.objOption.SecondDiscountMoney != '') {
...@@ -562,7 +542,6 @@ ...@@ -562,7 +542,6 @@
} }
this.getTotal(); this.getTotal();
}, },
//获取费用总计合计 //获取费用总计合计
getTotal() { getTotal() {
let arr = [this.objOption.FirstMoney, this.objOption.SecondMoney, this.objOption.ThirdMoney] let arr = [this.objOption.FirstMoney, this.objOption.SecondMoney, this.objOption.ThirdMoney]
...@@ -573,9 +552,9 @@ ...@@ -573,9 +552,9 @@
} }
}) })
}, },
//保存合同 //保存合同
saveContract() { saveContract() {
this.objOption.Money = this.sixthTotal;
SetEducationContractInfo(this.objOption).then(res => { SetEducationContractInfo(this.objOption).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.$q.notify({ this.$q.notify({
...@@ -595,7 +574,7 @@ ...@@ -595,7 +574,7 @@
this.persistent = false this.persistent = false
}, },
//获取学生信息 //获取学生信息
getStudentContract(){ getStudentContract() {
GetStudentInfo(this.StudentMsg).then(res => { GetStudentInfo(this.StudentMsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
var tempData = res.Data; var tempData = res.Data;
...@@ -633,19 +612,19 @@ ...@@ -633,19 +612,19 @@
}) })
}, },
//获取详情 //获取详情
getInfoList(){ getInfoList() {
let msg = { let msg = {
ContractId:this.setingObj.ContractId ContractId: this.setingObj.ContractId
} }
GetEducationContractInfo(msg).then(res => { GetEducationContractInfo(msg).then(res => {
console.log(res,'详情数据');
if (res.Code == 1) { if (res.Code == 1) {
var tempData = res.Data; var tempData = res.Data;
this.objOption.Id = tempData.Id;
this.objOption.StudentName = tempData.StudentName; this.objOption.StudentName = tempData.StudentName;
this.objOption.StuTel = tempData.StuTel; this.objOption.StuTel = tempData.StuTel;
this.objOption.StuSex = tempData.StuSex; this.objOption.StuSex = tempData.StuSex;
this.objOption.StuEmail = tempData.StuEmail; this.objOption.StuEmail = tempData.StuEmail;
this.objOption.StuBirth = tempData.StuBirth; this.objOption.StuBirth = tempData.StuBirthStr;
this.objOption.StuAddress = tempData.StuAddress; this.objOption.StuAddress = tempData.StuAddress;
this.objOption.StartLevel = tempData.StartLevel; this.objOption.StartLevel = tempData.StartLevel;
this.objOption.SchoolPrincipal = tempData.SchoolPrincipal; this.objOption.SchoolPrincipal = tempData.SchoolPrincipal;
...@@ -653,7 +632,7 @@ ...@@ -653,7 +632,7 @@
this.objOption.Payee = tempData.Payee; this.objOption.Payee = tempData.Payee;
this.objOption.Money = tempData.Money; this.objOption.Money = tempData.Money;
this.objOption.FirstMoney = tempData.FirstMoney; this.objOption.FirstMoney = tempData.FirstMoney;
this.objOption.FirstPayDate = tempData.FirstPayDate; this.objOption.FirstPayDate = tempData.FirstPayDateStr;
this.objOption.FirstDiscountMoney = tempData.FirstDiscountMoney; this.objOption.FirstDiscountMoney = tempData.FirstDiscountMoney;
this.objOption.FirstCourseFee = tempData.FirstCourseFee; this.objOption.FirstCourseFee = tempData.FirstCourseFee;
this.objOption.FirstClassHours = tempData.FirstClassHours; this.objOption.FirstClassHours = tempData.FirstClassHours;
...@@ -665,14 +644,14 @@ ...@@ -665,14 +644,14 @@
this.objOption.SecondClassFee = tempData.SecondClassFee; this.objOption.SecondClassFee = tempData.SecondClassFee;
this.objOption.SecondDiscountMoney = tempData.SecondDiscountMoney; this.objOption.SecondDiscountMoney = tempData.SecondDiscountMoney;
this.objOption.SecondMoney = tempData.SecondMoney; this.objOption.SecondMoney = tempData.SecondMoney;
this.objOption.SecondPayDate = tempData.SecondPayDate; this.objOption.SecondPayDate = tempData.SecondPayDateStr;
this.objOption.ThirdClassHours = tempData.ThirdClassHours; this.objOption.ThirdClassHours = tempData.ThirdClassHours;
this.objOption.ThirdCourseFee = tempData.ThirdCourseFee; this.objOption.ThirdCourseFee = tempData.ThirdCourseFee;
this.objOption.ThirdBookFee = tempData.ThirdBookFee; this.objOption.ThirdBookFee = tempData.ThirdBookFee;
this.objOption.ThirdClassFee = tempData.ThirdClassFee; this.objOption.ThirdClassFee = tempData.ThirdClassFee;
this.objOption.ThirdDiscountMoney = tempData.ThirdDiscountMoney; this.objOption.ThirdDiscountMoney = tempData.ThirdDiscountMoney;
this.objOption.ThirdMoney = tempData.ThirdMoney; this.objOption.ThirdMoney = tempData.ThirdMoney;
this.objOption.ThirdPayDate = tempData.ThirdPayDate; this.objOption.ThirdPayDate = tempData.ThirdPayDateStr;
this.objOption.CourseName = tempData.CourseName; this.objOption.CourseName = tempData.CourseName;
this.objOption.CourseConsultant = tempData.CourseConsultant; this.objOption.CourseConsultant = tempData.CourseConsultant;
this.objOption.CNYCaps = tempData.CNYCaps; this.objOption.CNYCaps = tempData.CNYCaps;
...@@ -699,13 +678,11 @@ ...@@ -699,13 +678,11 @@
this.getTotal(); this.getTotal();
} }
}) })
} }
}, },
} }
</script> </script>
<style> <style>
</style> </style>
...@@ -549,7 +549,7 @@ ...@@ -549,7 +549,7 @@
<viewquotation-form v-if="isShowviewQuo" :rId="offerId" :isShowCancle="1" @close="closeQuota" <viewquotation-form v-if="isShowviewQuo" :rId="offerId" :isShowCancle="1" @close="closeQuota"
@success="refreshOrder"> @success="refreshOrder">
</viewquotation-form> </viewquotation-form>
<!--合同信息-->
<eduinfo-form v-if="isShowEduForm" :seting-obj="eduObj" @close="closeEdudia" @success="refreshPage"> <eduinfo-form v-if="isShowEduForm" :seting-obj="eduObj" @close="closeEdudia" @success="refreshPage">
</eduinfo-form> </eduinfo-form>
......
<style scoped> <style scoped>
@import "../css/cssReset.css";
.page_fnDm{background-color: white} .page_fnDm{background-color: white}
.query-box{overflow: inherit} .query-box{overflow: inherit}
._nav{margin: 20px 0 0 0 ;background-color: #f5f5f5;} ._nav{margin: 20px 0 0 0 ;background-color: #f5f5f5;}
......
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