|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
<!-- <h2>折扣设置</h2> -->
|
|
<!-- <h2>折扣设置</h2> -->
|
|
- <div v-if="(tableList.length>0 || pageInfo.page>1)&&contextFlag">
|
|
|
|
|
|
+ <div v-if="(tableList.length > 0 || pageInfo.page > 1) && contextFlag">
|
|
<save-form
|
|
<save-form
|
|
:inline="true"
|
|
:inline="true"
|
|
@submit="search"
|
|
@submit="search"
|
|
@@ -31,7 +31,6 @@
|
|
v-model="searchForm.courseScheduleType"
|
|
v-model="searchForm.courseScheduleType"
|
|
clearable
|
|
clearable
|
|
filterable
|
|
filterable
|
|
-
|
|
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="(item, index) in musicCourseType"
|
|
v-for="(item, index) in musicCourseType"
|
|
@@ -109,11 +108,17 @@
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <emptyPage @submit="newVisiable = true" title='乐团课价格设置' btnTitle='新建乐团课价格设置' :context='context' v-if="!(tableList.length>0 || pageInfo.page>1)&&contextFlag" />
|
|
|
|
|
|
+ <emptyPage
|
|
|
|
+ @submit="newVisiable = true"
|
|
|
|
+ title="乐团课价格设置"
|
|
|
|
+ btnTitle="新建乐团课价格设置"
|
|
|
|
+ :context="context"
|
|
|
|
+ v-if="!(tableList.length > 0 || pageInfo.page > 1) && contextFlag"
|
|
|
|
+ />
|
|
<el-dialog
|
|
<el-dialog
|
|
title="新建"
|
|
title="新建"
|
|
- destroy-on-close
|
|
|
|
:visible.sync="newVisiable"
|
|
:visible.sync="newVisiable"
|
|
|
|
+ v-if="newVisiable"
|
|
width="600px"
|
|
width="600px"
|
|
>
|
|
>
|
|
<el-form :model="createForm" class="createForm" ref="ruleForm">
|
|
<el-form :model="createForm" class="createForm" ref="ruleForm">
|
|
@@ -151,7 +156,7 @@
|
|
filterable
|
|
filterable
|
|
placeholder="请选择课程类型"
|
|
placeholder="请选择课程类型"
|
|
@change="changeCourseScheduleType"
|
|
@change="changeCourseScheduleType"
|
|
- :disabled="!createForm.organId"
|
|
|
|
|
|
+ :disabled="!createForm.organId"
|
|
clearable
|
|
clearable
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
@@ -197,7 +202,7 @@
|
|
title="修改"
|
|
title="修改"
|
|
:visible.sync="resetVisible"
|
|
:visible.sync="resetVisible"
|
|
width="500px"
|
|
width="500px"
|
|
- destroy-on-close
|
|
|
|
|
|
+ v-if="resetVisible"
|
|
>
|
|
>
|
|
<el-form :model="resetForm" class="resetForm" ref="resetForm">
|
|
<el-form :model="resetForm" class="resetForm" ref="resetForm">
|
|
<el-form-item
|
|
<el-form-item
|
|
@@ -277,7 +282,7 @@
|
|
<script>
|
|
<script>
|
|
import pagination from "@/components/Pagination/index";
|
|
import pagination from "@/components/Pagination/index";
|
|
import { getEmployeeOrgan } from "@/api/buildTeam";
|
|
import { getEmployeeOrgan } from "@/api/buildTeam";
|
|
-import emptyPage from '@/components/emptyPage'
|
|
|
|
|
|
+import emptyPage from "@/components/emptyPage";
|
|
import {
|
|
import {
|
|
chargeTypeList,
|
|
chargeTypeList,
|
|
getOrganizationCourseUnitPriceSettings,
|
|
getOrganizationCourseUnitPriceSettings,
|
|
@@ -290,7 +295,7 @@ import createDiscount from "./modals/create-discount";
|
|
import { musicCourseType } from "@/utils/searchArray";
|
|
import { musicCourseType } from "@/utils/searchArray";
|
|
export default {
|
|
export default {
|
|
name: "typesManager",
|
|
name: "typesManager",
|
|
- components: { pagination, createDiscount,emptyPage },
|
|
|
|
|
|
+ components: { pagination, createDiscount, emptyPage },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
musicCourseType,
|
|
musicCourseType,
|
|
@@ -323,8 +328,9 @@ export default {
|
|
},
|
|
},
|
|
formLabelWidth: "120px",
|
|
formLabelWidth: "120px",
|
|
actvieRow: null,
|
|
actvieRow: null,
|
|
- context:'系统支持不同分部在不同的乐团模式中设置各课程类型的不同价格标准,该标准为具体课程类型每分钟的收费价格,在创建乐团课程组合包或乐团临时加课时,根据组合包中的课程时长或临时加课的课程时长计算应该向学员收费的标准费用。不以此标准价格创建学员缴费,则需要审核才可生效。',
|
|
|
|
- contextFlag:false
|
|
|
|
|
|
+ context:
|
|
|
|
+ "系统支持不同分部在不同的乐团模式中设置各课程类型的不同价格标准,该标准为具体课程类型每分钟的收费价格,在创建乐团课程组合包或乐团临时加课时,根据组合包中的课程时长或临时加课的课程时长计算应该向学员收费的标准费用。不以此标准价格创建学员缴费,则需要审核才可生效。",
|
|
|
|
+ contextFlag: false,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -335,7 +341,10 @@ export default {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.dataList = res.data.rows;
|
|
this.dataList = res.data.rows;
|
|
this.dataList.forEach((item) => {
|
|
this.dataList.forEach((item) => {
|
|
- this.$set(this.createForm.unitPriceJson, item.id, {price:null,id:null});
|
|
|
|
|
|
+ this.$set(this.createForm.unitPriceJson, item.id, {
|
|
|
|
+ price: null,
|
|
|
|
+ id: null,
|
|
|
|
+ });
|
|
});
|
|
});
|
|
if (this.dataList.length <= 0) {
|
|
if (this.dataList.length <= 0) {
|
|
this.$bus.$emit("showguide", ["teamPayType"]);
|
|
this.$bus.$emit("showguide", ["teamPayType"]);
|
|
@@ -377,7 +386,7 @@ export default {
|
|
organId: this.searchForm.organId,
|
|
organId: this.searchForm.organId,
|
|
courseScheduleType: this.searchForm.courseScheduleType,
|
|
courseScheduleType: this.searchForm.courseScheduleType,
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- this.contextFlag = true
|
|
|
|
|
|
+ this.contextFlag = true;
|
|
let result = res.data;
|
|
let result = res.data;
|
|
this.tableList = result.rows;
|
|
this.tableList = result.rows;
|
|
this.pageInfo.total = result.total;
|
|
this.pageInfo.total = result.total;
|
|
@@ -391,13 +400,13 @@ export default {
|
|
for (const key in this.createForm.unitPriceJson) {
|
|
for (const key in this.createForm.unitPriceJson) {
|
|
if (this.createForm.unitPriceJson.hasOwnProperty(key)) {
|
|
if (this.createForm.unitPriceJson.hasOwnProperty(key)) {
|
|
const item = this.createForm.unitPriceJson[key].price;
|
|
const item = this.createForm.unitPriceJson[key].price;
|
|
- const id = this.createForm.unitPriceJson[key].id
|
|
|
|
|
|
+ const id = this.createForm.unitPriceJson[key].id;
|
|
data.push({
|
|
data.push({
|
|
chargeTypeId: key,
|
|
chargeTypeId: key,
|
|
courseType: this.createForm.courseType,
|
|
courseType: this.createForm.courseType,
|
|
organId: this.createForm.organId,
|
|
organId: this.createForm.organId,
|
|
unitPrice: item,
|
|
unitPrice: item,
|
|
- id
|
|
|
|
|
|
+ id,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -413,7 +422,10 @@ export default {
|
|
unitPriceJson: {},
|
|
unitPriceJson: {},
|
|
};
|
|
};
|
|
this.dataList.forEach((item) => {
|
|
this.dataList.forEach((item) => {
|
|
- this.$set(this.createForm.unitPriceJson, item.id, {price:null,id:null});
|
|
|
|
|
|
+ this.$set(this.createForm.unitPriceJson, item.id, {
|
|
|
|
+ price: null,
|
|
|
|
+ id: null,
|
|
|
|
+ });
|
|
});
|
|
});
|
|
} catch (error) {}
|
|
} catch (error) {}
|
|
}
|
|
}
|
|
@@ -462,18 +474,16 @@ export default {
|
|
item.chargeTypeId
|
|
item.chargeTypeId
|
|
)
|
|
)
|
|
) {
|
|
) {
|
|
- this.$set(
|
|
|
|
- this.createForm.unitPriceJson,
|
|
|
|
- item.chargeTypeId,
|
|
|
|
- {price:item.unitPrice,id:item.id}
|
|
|
|
- );
|
|
|
|
|
|
+ this.$set(this.createForm.unitPriceJson, item.chargeTypeId, {
|
|
|
|
+ price: item.unitPrice,
|
|
|
|
+ id: item.id,
|
|
|
|
+ });
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- this.$forceUpdate();
|
|
|
|
|
|
+ this.$forceUpdate();
|
|
} catch (e) {
|
|
} catch (e) {
|
|
console.log(e);
|
|
console.log(e);
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -497,7 +507,6 @@ export default {
|
|
);
|
|
);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
-
|
|
|
|
} catch (e) {
|
|
} catch (e) {
|
|
console.log(e);
|
|
console.log(e);
|
|
}
|
|
}
|