From 404136b0310181bd10ab488d7dae2b8a6d37d7fd Mon Sep 17 00:00:00 2001
From: 钟日健 <5689795+arsn@user.noreply.gitee.com>
Date: Tue, 22 Feb 2022 19:13:41 +0800
Subject: [PATCH] 报名列表,报名清册新增缴费确认
---
src/views/trainingRegistration/index.vue | 35 +++++++++++++++++++++++++++++++++--
1 files changed, 33 insertions(+), 2 deletions(-)
diff --git a/src/views/trainingRegistration/index.vue b/src/views/trainingRegistration/index.vue
index 9c7c4f8..50f5ee5 100644
--- a/src/views/trainingRegistration/index.vue
+++ b/src/views/trainingRegistration/index.vue
@@ -93,6 +93,14 @@
:type="type"
>确认报名</el-button
>
+ <el-button
+ v-if="row.vipStatus!=1 && permission.trainingRegistration_vip"
+ icon="el-icon-folder-checked"
+ @click="usesVipConfirm(row)"
+ :size="size"
+ :type="type"
+ >缴费确认</el-button
+ >
</template>
</avue-crud>
@@ -141,7 +149,8 @@
update,
remove,
cancelTrain,
- addExam
+ addExam,
+ vipSign
} from "@/api/trainingRegistration/trainingRegistration";
import { mapGetters } from "vuex";
import { getRoleDetail } from "@/api/system/role";
@@ -339,7 +348,7 @@
}
},
labelWidth: "120",
- menuWidth: 200,
+ menuWidth: 280,
align: "center",
reserveSelection: true,
selection: true,
@@ -565,6 +574,28 @@
});
});
},
+ usesVipConfirm(row){
+ this.$confirm("确定将选择当前人员确认已缴费?", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning"
+ })
+ .then(() => {
+ var data = {
+ id : row.id,
+ userId:row.userId,
+ vipStatus :1
+ }
+ return vipSign(data);
+ })
+ .then(() => {
+ this.onLoad(this.page);
+ this.$message({
+ type: "success",
+ message: "操作成功!"
+ });
+ });
+ },
selectionChange(list) {
// this.selectionList = list;
this.choiceName = [];
--
Gitblit v1.9.3