trunk/pc4mobx/organization/apis/numberSet.js

116 lines
2.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* Author: 黎永顺
* Description:
* Date: 2022-06-07 09:52:01
* LastEditTime: 2022-06-08 14:57:56
*/
import { WeaTools } from "ecCom";
/**
* name:获取编号设置
* param {*} params serialtype SUBCOMPANY分部
* return {*}
*/
export const getCodeSetting = (params) => {
return WeaTools.callApi("/api/hrm/codeSetting/getCodeSetting", "GET", params);
};
/**
* name: 保存编号设置
* param {*} params
* return {*}
*/
export const saveOrUpdateCodeSetting = (params) => {
return WeaTools.callApi(
"/api/hrm/codeSetting/saveOrUpdateCodeSetting",
"POST",
params
);
};
/**
* name: 保存起始编号设置
* param {*} params
* return {*}
*/
export const saveStartNum = (params) => {
return WeaTools.callApi("/api/hrm/codeSetting/saveStartNum", "POST", params);
};
/**
* name: 起始编号设置
* param {*} params
* return {*}
*/
export const getStartNumForm = (params) => {
return WeaTools.callApi(
"/api/hrm/codeSetting/getStartNumForm",
"GET",
params
);
};
/**
* name: 高级搜索条件
* param {*} params
* return {*}
*/
export const getAdvanceSearchCondition = (params) => {
return WeaTools.callApi(
"/api/hrm/codeSetting/getAdvanceSearchCondition",
"GET",
params
);
};
/**
* name: 预留编号设置列表查询
* param {*} params
* return {*}
*/
export const getSearchReservedCodeList = (params) => {
return WeaTools.callApi(
"/api/hrm/codeSetting/getSearchReservedCodeList",
"POST",
params
);
};
/**
* name: 保存预留编号设置
* param {*} params
* return {*}
*/
export const saveReservedCode = (params) => {
return WeaTools.callApi(
"/api/hrm/codeSetting/saveReservedCode",
"POST",
params
);
};
/**
* name: 新增预留编号表单查询
* param {*} params
* return {*}
*/
export const getReservedCodeFrom = (params) => {
return WeaTools.callApi(
"/api/hrm/codeSetting/getReservedCodeFrom",
"GET",
params
);
};
/**
* name: 删除预留编号
* param {*} params
* return {*}
*/
export const deleteReservedCodeById = (params) => {
return WeaTools.callApi(
"/api/hrm/codeSetting/deleteReservedCodeById",
"POST",
params
);
};