保安服务企业管理项目备份
Administrator
2022-03-04 4f304851889c401d5b46ff0b809be869d460d399
新增批量缴费
2 files modified
41 ■■■■■ changed files
src/api/trainingRegistration/trainingRegistration.js 8 ●●●●● patch | view | raw | blame | history
src/views/trainingRegistration/index.vue 33 ●●●●● patch | view | raw | blame | history
src/api/trainingRegistration/trainingRegistration.js
@@ -89,4 +89,12 @@
        method: 'post',
        data: row
    })
}
export const vipSignBatch = (row) => {
    return request({
        url: '/api/trainingRegistration/vipSignBatch',
        method: 'post',
        data: row
    })
}
src/views/trainingRegistration/index.vue
@@ -65,6 +65,14 @@
          @click="handleApplyInfoExport"
          >报名信息导出
        </el-button>
        <el-button
          type="primary"
          size="small"
          plain
          icon="el-icon-checked"
          @click="usesVipConfirmBatch"
          >批量缴费
        </el-button>
      </template>
      <template slot-scope="{ type, size, row }" slot="menu">
        <el-button
@@ -150,7 +158,8 @@
  remove,
  cancelTrain,
  addExam,
  vipSign
  vipSign,
  vipSignBatch
} from "@/api/trainingRegistration/trainingRegistration";
import { mapGetters } from "vuex";
import { getRoleDetail } from "@/api/system/role";
@@ -596,6 +605,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 = [];