|
@@ -15,7 +15,8 @@
|
|
<el-form :inline="true"
|
|
<el-form :inline="true"
|
|
:model="searchForm">
|
|
:model="searchForm">
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-input placeholder="标题或学生姓名" v-model="searchForm.search"></el-input>
|
|
|
|
|
|
+ <el-input placeholder="标题或学生姓名"
|
|
|
|
+ v-model="searchForm.search"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-select v-model="searchForm.organId"
|
|
<el-select v-model="searchForm.organId"
|
|
@@ -34,12 +35,16 @@
|
|
clearable>
|
|
clearable>
|
|
<el-option label="考级"
|
|
<el-option label="考级"
|
|
:value="1"></el-option>
|
|
:value="1"></el-option>
|
|
- <el-option label="缴费"
|
|
|
|
- :value="2"></el-option>
|
|
|
|
<el-option label="声部更改"
|
|
<el-option label="声部更改"
|
|
- :value="3"></el-option>
|
|
|
|
|
|
+ :value="2"></el-option>
|
|
<el-option label="乐器更换"
|
|
<el-option label="乐器更换"
|
|
|
|
+ :value="3"></el-option>
|
|
|
|
+ <el-option label="配件销售"
|
|
:value="4"></el-option>
|
|
:value="4"></el-option>
|
|
|
|
+ <el-option label="维修费"
|
|
|
|
+ :value="5"></el-option>
|
|
|
|
+ <el-option label="福袋活动"
|
|
|
|
+ :value="6"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
@@ -54,7 +59,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button type="danger"
|
|
<el-button type="danger"
|
|
- @click="search">搜索</el-button>
|
|
|
|
|
|
+ @click="search">搜索</el-button>
|
|
<el-button @click="onReSet"
|
|
<el-button @click="onReSet"
|
|
type="primary">重置</el-button>
|
|
type="primary">重置</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -100,7 +105,7 @@
|
|
<el-table-column align='center'
|
|
<el-table-column align='center'
|
|
label="订单类型">
|
|
label="订单类型">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{ scope.row.userId ? '人个' : '公用' }}
|
|
|
|
|
|
+ {{ scope.row.userId ? '个人' : '公用' }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align='center'
|
|
<el-table-column align='center'
|
|
@@ -150,12 +155,16 @@
|
|
filterable>
|
|
filterable>
|
|
<el-option label="考级"
|
|
<el-option label="考级"
|
|
:value="1"></el-option>
|
|
:value="1"></el-option>
|
|
- <el-option label="缴费"
|
|
|
|
- :value="2"></el-option>
|
|
|
|
<el-option label="声部更改"
|
|
<el-option label="声部更改"
|
|
- :value="3"></el-option>
|
|
|
|
|
|
+ :value="2"></el-option>
|
|
<el-option label="乐器更换"
|
|
<el-option label="乐器更换"
|
|
|
|
+ :value="3"></el-option>
|
|
|
|
+ <el-option label="配件销售"
|
|
:value="4"></el-option>
|
|
:value="4"></el-option>
|
|
|
|
+ <el-option label="维修费"
|
|
|
|
+ :value="5"></el-option>
|
|
|
|
+ <el-option label="福袋活动"
|
|
|
|
+ :value="6"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="金额"
|
|
<el-form-item label="金额"
|
|
@@ -165,6 +174,14 @@
|
|
@mousewheel.native.prevent
|
|
@mousewheel.native.prevent
|
|
:disabled='!isNew'></el-input>
|
|
:disabled='!isNew'></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="减免金额"
|
|
|
|
+ v-if="maskForm.type == 6"
|
|
|
|
+ prop='money'>
|
|
|
|
+ <el-input v-model="maskForm.subMoney"
|
|
|
|
+ type="number"
|
|
|
|
+ @mousewheel.native.prevent
|
|
|
|
+ :disabled='!isNew'></el-input>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item label="分部"
|
|
<el-form-item label="分部"
|
|
prop="organId">
|
|
prop="organId">
|
|
<el-select v-model="maskForm.organId"
|
|
<el-select v-model="maskForm.organId"
|
|
@@ -229,12 +246,14 @@
|
|
filterable>
|
|
filterable>
|
|
<el-option label="考级"
|
|
<el-option label="考级"
|
|
:value="1"></el-option>
|
|
:value="1"></el-option>
|
|
- <el-option label="缴费"
|
|
|
|
- :value="2"></el-option>
|
|
|
|
<el-option label="声部更改"
|
|
<el-option label="声部更改"
|
|
- :value="3"></el-option>
|
|
|
|
|
|
+ :value="2"></el-option>
|
|
<el-option label="乐器更换"
|
|
<el-option label="乐器更换"
|
|
|
|
+ :value="3"></el-option>
|
|
|
|
+ <el-option label="配件销售"
|
|
:value="4"></el-option>
|
|
:value="4"></el-option>
|
|
|
|
+ <el-option label="维修费"
|
|
|
|
+ :value="5"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="学员编号"
|
|
<el-form-item label="学员编号"
|
|
@@ -324,7 +343,8 @@ export default {
|
|
money: '',
|
|
money: '',
|
|
desc: '',
|
|
desc: '',
|
|
title: '',
|
|
title: '',
|
|
- code: ''
|
|
|
|
|
|
+ code: '',
|
|
|
|
+ subMoney: ''
|
|
},
|
|
},
|
|
maskRules: {
|
|
maskRules: {
|
|
organId: [{ required: true, message: '请选择分部', trigger: 'change' }],
|
|
organId: [{ required: true, message: '请选择分部', trigger: 'change' }],
|
|
@@ -398,7 +418,7 @@ export default {
|
|
page: this.pageInfo.page,
|
|
page: this.pageInfo.page,
|
|
rows: this.pageInfo.limit
|
|
rows: this.pageInfo.limit
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
getZero(params).then(res => {
|
|
getZero(params).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.tableList = res.data.rows
|
|
this.tableList = res.data.rows
|
|
@@ -407,7 +427,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
onFormClose (formName) { // 关闭弹窗重置验证
|
|
onFormClose (formName) { // 关闭弹窗重置验证
|
|
- if(formName == 'maskForm') {
|
|
|
|
|
|
+ if (formName == 'maskForm') {
|
|
this.maskForm = {
|
|
this.maskForm = {
|
|
organId: null,
|
|
organId: null,
|
|
type: null,
|
|
type: null,
|
|
@@ -416,7 +436,7 @@ export default {
|
|
title: null,
|
|
title: null,
|
|
code: null
|
|
code: null
|
|
}
|
|
}
|
|
- } else if(formName == 'maskForm1') {
|
|
|
|
|
|
+ } else if (formName == 'maskForm1') {
|
|
this.maskForm1 = {
|
|
this.maskForm1 = {
|
|
type: null,
|
|
type: null,
|
|
money: null,
|
|
money: null,
|
|
@@ -440,7 +460,7 @@ export default {
|
|
this.title1 = '新增个人收费'
|
|
this.title1 = '新增个人收费'
|
|
},
|
|
},
|
|
lookVisible (row) {
|
|
lookVisible (row) {
|
|
- if(row.userId) {
|
|
|
|
|
|
+ if (row.userId) {
|
|
this.isNew1 = false;
|
|
this.isNew1 = false;
|
|
this.zeroVisible1 = true;
|
|
this.zeroVisible1 = true;
|
|
this.title1 = '查看个人收费'
|
|
this.title1 = '查看个人收费'
|
|
@@ -463,6 +483,7 @@ export default {
|
|
this.maskForm.title = row.title
|
|
this.maskForm.title = row.title
|
|
this.maskForm.organId = row.organId
|
|
this.maskForm.organId = row.organId
|
|
this.maskForm.money = row.amount
|
|
this.maskForm.money = row.amount
|
|
|
|
+ this.maskForm.subMoney = row.discountAmount
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onCreateQRCode () { // 生成报名二维码
|
|
onCreateQRCode () { // 生成报名二维码
|
|
@@ -479,7 +500,7 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
this.qrcode.clear();
|
|
this.qrcode.clear();
|
|
- if(this.activeRow.userId) {
|
|
|
|
|
|
+ if (this.activeRow.userId) {
|
|
this.qrcode.makeCode(vaildStudentUrl() + `/#/sporadicPay?id=${this.activeRow.id}&userId=${this.activeRow.userId}`)
|
|
this.qrcode.makeCode(vaildStudentUrl() + `/#/sporadicPay?id=${this.activeRow.id}&userId=${this.activeRow.userId}`)
|
|
} else {
|
|
} else {
|
|
this.qrcode.makeCode(vaildStudentUrl() + `/#/sporadicLogin?id=${this.activeRow.id}`)
|
|
this.qrcode.makeCode(vaildStudentUrl() + `/#/sporadicLogin?id=${this.activeRow.id}`)
|
|
@@ -494,7 +515,8 @@ export default {
|
|
detail: this.maskForm.desc,
|
|
detail: this.maskForm.desc,
|
|
title: this.maskForm.title,
|
|
title: this.maskForm.title,
|
|
organId: this.maskForm.organId,
|
|
organId: this.maskForm.organId,
|
|
- amount: this.maskForm.money
|
|
|
|
|
|
+ amount: this.maskForm.money,
|
|
|
|
+ discountAmount: this.maskForm.subMoney
|
|
}
|
|
}
|
|
addZero(obj).then(res => {
|
|
addZero(obj).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
@@ -510,7 +532,7 @@ export default {
|
|
this.$refs['maskForm1'].validate(item => {
|
|
this.$refs['maskForm1'].validate(item => {
|
|
if (item) {
|
|
if (item) {
|
|
let maskForm1 = this.maskForm1
|
|
let maskForm1 = this.maskForm1
|
|
- if(!maskForm1.studentName) {
|
|
|
|
|
|
+ if (!maskForm1.studentName) {
|
|
this.$message.error('学员信息不存在')
|
|
this.$message.error('学员信息不存在')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -531,16 +553,16 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- onStudentChange() {
|
|
|
|
|
|
+ onStudentChange () {
|
|
let studentId = this.maskForm1.studentId
|
|
let studentId = this.maskForm1.studentId
|
|
// 判断学生编号是否存在
|
|
// 判断学生编号是否存在
|
|
- if(!studentId) {
|
|
|
|
|
|
+ if (!studentId) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
getBasic({ userId: studentId }).then(res => {
|
|
getBasic({ userId: studentId }).then(res => {
|
|
- if(res.code == 200) {
|
|
|
|
- if(res.data) {
|
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ if (res.data) {
|
|
this.maskForm1.studentName = res.data.name
|
|
this.maskForm1.studentName = res.data.name
|
|
} else {
|
|
} else {
|
|
this.maskForm1.studentName = null
|
|
this.maskForm1.studentName = null
|
|
@@ -585,9 +607,11 @@ export default {
|
|
chargeTypeFilter (val) {
|
|
chargeTypeFilter (val) {
|
|
let template = {
|
|
let template = {
|
|
'1': '考级',
|
|
'1': '考级',
|
|
- '2': '缴费',
|
|
|
|
- '3': '声部更改',
|
|
|
|
- '4': '乐器更换'
|
|
|
|
|
|
+ '2': '声部更改',
|
|
|
|
+ '3': '乐器更换',
|
|
|
|
+ '4': '配件销售',
|
|
|
|
+ '5': '维修费',
|
|
|
|
+ '6': '福袋活动'
|
|
}
|
|
}
|
|
return template[val]
|
|
return template[val]
|
|
}
|
|
}
|