| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- import request from "@/utils/request";
- /**
- * 查询打卡任务列表
- */
- export function queryPunchIns() {
- return request({
- url: "/punchIn/queryPunchIns"
- });
- }
- /**
- * 新增打卡任务
- * @param {Object} data
- */
- export function addPunchIn(data) {
- return request({
- url: "/punchIn/savePunchIn",
- method: "post",
- data,
- loading: true,
- loadingText: "正在保存打卡任务,请稍后..."
- });
- }
- /**
- * 更新打卡任务
- * @param {Object} data
- */
- export function updatePunchIn(data) {
- return request({
- url: "/punchIn/updatePunchIn",
- method: "post",
- data,
- loading: true,
- loadingText: "正在更新打卡任务,请稍后..."
- });
- }
- /**
- * 删除打卡任务
- * @param {Object} data
- */
- export function deletePunchIn(data) {
- return request({
- url: "/punchIn/deletePunchIn",
- method: "post",
- data,
- loading: true,
- loadingText: "正在删除打卡任务,请稍后..."
- });
- }
- /**
- * 打卡
- * @param {Object} data
- */
- export function doPunchIn(data) {
- return request({
- url: "/punchIn/doPunchIn",
- method: "post",
- data,
- loading: true,
- loadingText: "正在打卡,请稍后..."
- });
- }
- /**
- * 根据ID查询打卡任务
- * @param {Object} data
- */
- export function queryPunchInById(data) {
- return request({
- url: "/punchIn/queryPunchInById",
- method: "post",
- data
- });
- }
- /**
- * 归档打卡任务
- * @param {Object} data
- */
- export function archivePunchIn(data) {
- return request({
- url: "/punchIn/archivePunchIn",
- method: "post",
- data
- });
- }
- /**
- * 补卡
- * @param {Object} data
- */
- export function remakPunchIn(data) {
- return request({
- url: "/punchIn/remakPunchIn",
- method: "post",
- data
- });
- }
- /**
- * 撤销打卡
- * @param {Object} data
- */
- export function revokePunchIn(data) {
- return request({
- url: "/punchIn/revokePunchIn",
- method: "post",
- data
- });
- }
|