|
@@ -37,19 +37,19 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="visitTime">
|
|
|
- <el-date-picker
|
|
|
- v-model.trim="searchForm.visitTime"
|
|
|
- style="width: 410px"
|
|
|
- type="daterange"
|
|
|
- :picker-options="{
|
|
|
- firstDayOfWeek: 1,
|
|
|
- }"
|
|
|
- :default-time="['00:00:00', '23:59:59']"
|
|
|
- range-separator="至"
|
|
|
- start-placeholder="创建开始日期"
|
|
|
- end-placeholder="创建结束日期"
|
|
|
- ></el-date-picker>
|
|
|
- </el-form-item>
|
|
|
+ <el-date-picker
|
|
|
+ v-model.trim="searchForm.visitTime"
|
|
|
+ style="width: 410px"
|
|
|
+ type="daterange"
|
|
|
+ :picker-options="{
|
|
|
+ firstDayOfWeek: 1,
|
|
|
+ }"
|
|
|
+ :default-time="['00:00:00', '23:59:59']"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="创建开始日期"
|
|
|
+ end-placeholder="创建结束日期"
|
|
|
+ ></el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button @click="search" type="danger">搜索</el-button>
|
|
|
<el-button @click="onReSet" type="primary">重置</el-button>
|
|
@@ -85,11 +85,7 @@
|
|
|
{{ scope.row.actualAmount | moneyFormat(true) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- align="center"
|
|
|
- prop="type"
|
|
|
- label="已缴费人数/总人数"
|
|
|
- >
|
|
|
+ <el-table-column align="center" prop="type" label="已缴费人数/总人数">
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.paymentUserNum }}/{{ scope.row.userNum }}
|
|
|
</template>
|
|
@@ -106,27 +102,40 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- align="center"
|
|
|
- label="创建人"
|
|
|
- prop="operatorName"
|
|
|
- >
|
|
|
+ <el-table-column align="center" label="创建人" prop="operatorName">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
prop="createTime"
|
|
|
label="创建时间"
|
|
|
></el-table-column>
|
|
|
- <el-table-column
|
|
|
- align="center"
|
|
|
- prop="remark"
|
|
|
- label="备注"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column align="center"
|
|
|
- label="操作">
|
|
|
+ <el-table-column align="center" prop="remark" label="备注" width="220px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <overflow-text width="200px" :text="scope.row.remark" />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" v-if="scope.row.status == 'REJECT' && $helpers.permission('cloudCoachPaymentProgram/update')" @click="onUpdate(scope.row)">修改</el-button>
|
|
|
- <el-button type="text" v-if="scope.row.status != 'REJECT' && $helpers.permission('studentCloudCoachPaymentDetails/queryPage')" @click="onDetail(scope.row)">详情</el-button>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ v-if="
|
|
|
+ scope.row.status == 'REJECT' &&
|
|
|
+ $helpers.permission('cloudCoachPaymentProgram/update')
|
|
|
+ "
|
|
|
+ @click="onUpdate(scope.row)"
|
|
|
+ >修改</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ v-if="
|
|
|
+ scope.row.status != 'REJECT' &&
|
|
|
+ $helpers.permission(
|
|
|
+ 'studentCloudCoachPaymentDetails/queryPage'
|
|
|
+ )
|
|
|
+ "
|
|
|
+ @click="onDetail(scope.row)"
|
|
|
+ >详情</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -148,7 +157,7 @@
|
|
|
v-if="recordVisible"
|
|
|
append-to-body
|
|
|
>
|
|
|
- <recordDetail :detail="selectDetail" @close="recordVisible = false" />
|
|
|
+ <recordDetail :detail="selectDetail" @close="recordVisible = false" />
|
|
|
</el-dialog>
|
|
|
|
|
|
<el-dialog
|
|
@@ -159,7 +168,7 @@
|
|
|
<createMember
|
|
|
ref="addMember"
|
|
|
v-if="memberVisible"
|
|
|
- type='update'
|
|
|
+ type="update"
|
|
|
:multipleSelection="selectDetail"
|
|
|
@close="memberVisible = false"
|
|
|
@submited="getList"
|
|
@@ -173,8 +182,8 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
-import recordDetail from '@/views/studentManager/modals/recordDetail'
|
|
|
-import { cloudCoachPaymentProgramQueryPage } from './api'
|
|
|
+import recordDetail from "@/views/studentManager/modals/recordDetail";
|
|
|
+import { cloudCoachPaymentProgramQueryPage } from "./api";
|
|
|
import createMember from "./modals/createMember";
|
|
|
import { getTimes } from "@/utils";
|
|
|
export default {
|
|
@@ -201,12 +210,12 @@ export default {
|
|
|
},
|
|
|
async mounted() {
|
|
|
await this.$store.dispatch("setBranchs");
|
|
|
- this.getList()
|
|
|
+ this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
async getList() {
|
|
|
try {
|
|
|
- const { visitTime, ...search } = this.searchForm
|
|
|
+ const { visitTime, ...search } = this.searchForm;
|
|
|
const res = await cloudCoachPaymentProgramQueryPage({
|
|
|
...search,
|
|
|
...getTimes(visitTime, ["startTime", "endTime"]),
|
|
@@ -215,7 +224,7 @@ export default {
|
|
|
});
|
|
|
this.rules.total = res.data.total;
|
|
|
this.tableList = res.data.rows;
|
|
|
- } catch (e) { }
|
|
|
+ } catch (e) {}
|
|
|
},
|
|
|
search() {
|
|
|
this.rules.page = 1;
|
|
@@ -225,16 +234,16 @@ export default {
|
|
|
this.searchForm = {
|
|
|
visitTime: [],
|
|
|
period: null,
|
|
|
- }
|
|
|
- this.search()
|
|
|
+ };
|
|
|
+ this.search();
|
|
|
},
|
|
|
onDetail(row) {
|
|
|
- this.selectDetail = row
|
|
|
- this.recordVisible = true
|
|
|
+ this.selectDetail = row;
|
|
|
+ this.recordVisible = true;
|
|
|
},
|
|
|
onUpdate(row) {
|
|
|
- this.memberVisible = true
|
|
|
- this.selectDetail = row
|
|
|
+ this.memberVisible = true;
|
|
|
+ this.selectDetail = row;
|
|
|
},
|
|
|
submitAddMember() {
|
|
|
this.$refs.addMember.submit();
|