|
@@ -581,8 +581,8 @@ export default {
|
|
|
this.$message.error(res.msg)
|
|
|
}
|
|
|
})
|
|
|
- }).catch(() =>{})
|
|
|
-
|
|
|
+ }).catch(() => { })
|
|
|
+
|
|
|
},
|
|
|
onCreateQRCode () { // 生成报名二维码
|
|
|
this.qrcodeStatus = true
|
|
@@ -622,7 +622,7 @@ export default {
|
|
|
}, 500)
|
|
|
}
|
|
|
},
|
|
|
- onDownLoadExecl() { // 报表导出
|
|
|
+ onDownLoadExecl () { // 报表导出
|
|
|
studentApplyDetailExport({
|
|
|
musicGroupId: this.$route.query.id,
|
|
|
page: 1,
|
|
@@ -734,17 +734,32 @@ export default {
|
|
|
this.orderForm.subject = row.subjectName;
|
|
|
getStudentFeeDetail({ musicGroupId: this.id, studentId: row.studentId }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.orderForm.totalAmount = res.data.totalAmount;
|
|
|
- this.orderForm.subjectFee = res.data.courseFee;
|
|
|
- for (let i in res.data.goods) {
|
|
|
- if (res.data.goods[i].goodsType == 'ACCESSORIES') {
|
|
|
- this.orderForm.axe = res.data.goods[i].goodsName;
|
|
|
- this.orderForm.axePrice = res.data.goods[i].musicalFee;
|
|
|
- } else if (res.data.goods[i].goodsType == 'INSTRUMENT') {
|
|
|
- this.orderForm.others = res.data.goods[i].goodsName;
|
|
|
- this.orderForm.othersPrice = res.data.goods[i].musicalFee;
|
|
|
+ if (res.data) {
|
|
|
+ this.orderForm.totalAmount = res.data.totalAmount;
|
|
|
+ this.orderForm.subjectFee = res.data.courseFee;
|
|
|
+ let goodStr = '';
|
|
|
+ let goodPrice = 0;
|
|
|
+ let otherStr = '';
|
|
|
+ let othersPrice = 0;
|
|
|
+ for (let i in res.data.goods) {
|
|
|
+ if (res.data.goods[i].goodsType == 'INSTRUMENT') {
|
|
|
+ goodStr += res.data.goods[i].goodsName + ',';
|
|
|
+ goodPrice += parseFloat(res.data.goods[i].musicalFee);
|
|
|
+ // this.orderForm.axe = res.data.goods[i].goodsName;
|
|
|
+ // this.orderForm.axePrice = res.data.goods[i].musicalFee;
|
|
|
+ } else if (res.data.goods[i].goodsType == 'ACCESSORIES') {
|
|
|
+ otherStr += res.data.goods[i].goodsName + ',';
|
|
|
+ othersPrice += parseFloat(res.data.goods[i].musicalFee);
|
|
|
+ // this.orderForm.others = res.data.goods[i].goodsName;
|
|
|
+ // this.orderForm.othersPrice = res.data.goods[i].musicalFee;
|
|
|
+ }
|
|
|
}
|
|
|
+ this.orderForm.others = otherStr.substring(0, otherStr.length - 1);
|
|
|
+ this.orderForm.othersPrice = othersPrice;
|
|
|
+ this.orderForm.axe = goodStr.substring(0, goodStr.length - 1);
|
|
|
+ this.orderForm.axePrice = goodPrice;
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
|