|
@@ -10,12 +10,11 @@
|
|
|
type="info"
|
|
|
>
|
|
|
</el-alert>
|
|
|
+ <!-- && courseViewType != 2 -->
|
|
|
<userBaseinfo
|
|
|
:form.sync="form"
|
|
|
:isCommon="isCommon"
|
|
|
- v-if="
|
|
|
- paymentTypeString !== 'SPAN_GROUP_CLASS_ADJUST' && courseViewType != 2
|
|
|
- "
|
|
|
+ v-if="paymentTypeString !== 'SPAN_GROUP_CLASS_ADJUST'"
|
|
|
:isUserType="isUserType"
|
|
|
@getCharges="getCharges"
|
|
|
@changeActive="changeActive"
|
|
@@ -48,7 +47,7 @@
|
|
|
@moneyChange="syncAllMoney"
|
|
|
/>
|
|
|
</template>
|
|
|
- <!-- isCommon不为报名 -->
|
|
|
+ <!-- isCommon不为报名 1.报名或3.加学生-->
|
|
|
<template v-else-if="!isCommon">
|
|
|
<el-alert
|
|
|
title="加课信息设置"
|
|
@@ -73,6 +72,7 @@
|
|
|
/>
|
|
|
</template>
|
|
|
<!-- 续费或临时加课 -->
|
|
|
+
|
|
|
<template v-else-if="(!isCommon && eclass.length) || isCommon">
|
|
|
<!-- 会员团的续费不显现 -->
|
|
|
<div v-if="!(courseViewType == 2 && paymentType == 1)">
|
|
@@ -101,12 +101,12 @@
|
|
|
class="alert"
|
|
|
style="margin-top: 20px"
|
|
|
type="info"
|
|
|
- v-if="courseViewType == 2 && paymentType && paymentType != 2"
|
|
|
+ v-if="courseViewType == 2 && paymentType && paymentType != 2&&form.leixing !=2"
|
|
|
>
|
|
|
</el-alert>
|
|
|
<memberSetting
|
|
|
ref="memberSetting"
|
|
|
- v-if="courseViewType == 2 && paymentType && paymentType != 2"
|
|
|
+ v-if="courseViewType == 2 && paymentType && paymentType != 2&&form.leixing !=2"
|
|
|
:form="memberForm"
|
|
|
:viewDetail="nowDetail"
|
|
|
:isUserType="isUserType"
|
|
@@ -114,7 +114,7 @@
|
|
|
:addStudent="showMember"
|
|
|
:showTime="paymentType == 1"
|
|
|
/>
|
|
|
- <div v-if="!(courseViewType == 2 && paymentType == 1)">
|
|
|
+ <div v-if="!(courseViewType == 2 && paymentType == 1&&form.leixing !=2)">
|
|
|
<el-alert title="缴费设置" :closable="false" class="alert" type="info">
|
|
|
</el-alert>
|
|
|
<!-- 缴费设置的 不是会员团切不是续费 续费{{form.leixing}} -->
|
|
@@ -142,7 +142,7 @@
|
|
|
style="width: 100% !important"
|
|
|
v-model="payment.paymentPattern"
|
|
|
placeholder="请选择缴费方式"
|
|
|
- :disabled="courseViewType == 2 && paymentType !== undefined"
|
|
|
+ :disabled="courseViewType == 2 && paymentType !=0"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in paymentPatternTypeOptions"
|
|
@@ -205,7 +205,7 @@
|
|
|
:hidePaymentPattern="true"
|
|
|
:isUserType="isUserType"
|
|
|
:isDisabled="
|
|
|
- form.leixing === '1' || form.leixing === '2' || paymentType === '0'
|
|
|
+ form.leixing === '1' || form.leixing === '2' || paymentType === '0' || form.leixing === '3'
|
|
|
"
|
|
|
:courseViewType="courseViewType"
|
|
|
v-else
|
|
@@ -335,7 +335,7 @@ export default {
|
|
|
return this.viewDetail;
|
|
|
},
|
|
|
isCommon() {
|
|
|
- return this.form.leixing === "1";
|
|
|
+ return this.form.leixing === "1" || this.form.leixing === "3" || (this.courseViewType !=2&&this.form.leixing === "0");
|
|
|
},
|
|
|
isDisabled() {
|
|
|
return this.form.leixing === "1" || String(this.paymentType) === "0";
|
|
@@ -418,6 +418,7 @@ export default {
|
|
|
if (val === "1") {
|
|
|
this.eclass = [];
|
|
|
} else if (val === "2") {
|
|
|
+ this.payment.paymentPattern = '1'
|
|
|
this.eclass = [{}];
|
|
|
}
|
|
|
},
|
|
@@ -465,6 +466,7 @@ export default {
|
|
|
this.$set(this.form, "leixing", "2");
|
|
|
this.addExtraClass();
|
|
|
}
|
|
|
+
|
|
|
this.getCharges();
|
|
|
if (this.rowDetail) {
|
|
|
for (const key in paymentTypeFormat) {
|
|
@@ -472,6 +474,7 @@ export default {
|
|
|
const item = paymentTypeFormat[key];
|
|
|
if (item === this.rowDetail.paymentType) {
|
|
|
this.$emit('changePaymentType',key)
|
|
|
+ this.$set(this.form, "leixing", key+'');
|
|
|
// this.paymentType = key;
|
|
|
}
|
|
|
}
|