From b6d70fd9329b1c5fee415713e7ca5d9dcab66526 Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Wed, 02 Mar 2022 09:01:06 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/zhba_enterprises

---
 src/views/trainingRegistration/index.vue |   39 +++++++++++++++++++++++++++++++++++++--
 1 files changed, 37 insertions(+), 2 deletions(-)

diff --git a/src/views/trainingRegistration/index.vue b/src/views/trainingRegistration/index.vue
index 9c7c4f8..a3a234e 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 = [];
@@ -626,6 +657,10 @@
             //如果是培训公司管理员
             params["trainingUnitId"] = that.userInfo.dept_id;
           }
+          if (roleAlias == "公安管理员" || roleAlias == "民警") {
+            //如果公安
+            params["jurisdiction"] = that.userInfo.jurisdiction;
+          }
           // params["isExam"] = 1;
           getdata(
             page.currentPage,

--
Gitblit v1.9.3