保安服务企业管理项目备份
guoshilong
2023-11-30 81e1b297b1fabec596c1cb7187ce2d6199026429
src/views/trainingRegistration/index.vue
@@ -65,6 +65,15 @@
          @click="handleApplyInfoExport"
          >报名信息导出
        </el-button>
        <el-button
          type="primary"
          size="small"
          plain
          icon="el-icon-checked"
          v-if="permission.batch_vip"
          @click="usesVipConfirmBatch"
          >批量缴费
        </el-button>
      </template>
      <template slot-scope="{ type, size, row }" slot="menu">
        <el-button
@@ -150,7 +159,8 @@
  remove,
  cancelTrain,
  addExam,
  vipSign
  vipSign,
  vipSignBatch
} from "@/api/trainingRegistration/trainingRegistration";
import { mapGetters } from "vuex";
import { getRoleDetail } from "@/api/system/role";
@@ -596,6 +606,28 @@
          });
        });
    },
    usesVipConfirmBatch(){
        this.$confirm("确定已缴费?", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning"
      })
        .then(() => {
          var data = {
            cancel : 1,
            isExam: 1,
            vipStatus :2
          }
          return vipSignBatch(data);
        })
        .then(() => {
          this.onLoad(this.page);
          this.$message({
            type: "success",
            message: "操作成功!"
          });
        });
    },
    selectionChange(list) {
      // this.selectionList = list;
      this.choiceName = [];
@@ -657,6 +689,10 @@
            //如果是培训公司管理员
            params["trainingUnitId"] = that.userInfo.dept_id;
          }
          if (roleAlias == "公安管理员" || roleAlias == "民警") {
            //如果公安
            params["jurisdiction"] = that.userInfo.jurisdiction;
          }
          // params["isExam"] = 1;
          getdata(
            page.currentPage,