diff --git a/src/api/base/qjApi.ts b/src/api/base/qjApi.ts index 814a67f..66a653b 100644 --- a/src/api/base/qjApi.ts +++ b/src/api/base/qjApi.ts @@ -4,23 +4,59 @@ import { get, post } from "@/utils/request"; /** - * 发起请假 + * 申请 */ -export const addQjApi = async (params: any) => { - return await post("/api/jsQj/save", params); +export const jsQjSqApi = async (params: any) => { + return await post("/api/qj/sq", params); +}; + +/** + * 审批 + */ +export const jsQjSpApi = async (params: any) => { + return await post("/api/qj/sp", params); +}; + +/** + * 教务处确认 + */ +export const jsQjJwcQrApi = async (params: any) => { + return await post("/api/qj/jwc/qr", params); +}; + +/** + * 教务处协调 + */ +export const jsQjJwcXtApi = async (params: any) => { + return await post("/api/qj/jwc/xt", params); +}; + +/** + * 代课确认 + */ +export const jsQjDkQrApi = async (params: any) => { + return await post("/api/qj/dk/qr", params); }; /** * 查询请假信息 */ export const findQjById = async (params: any) => { - return await get("/api/jsQj/findById", params); + return await get("/api/qj/findById", params); +}; + +/** + * 查询代课信息 + * params: { jsId, startTime, endTime } + */ +export const getPkkbByJsRangeTimeApi = async (params: any) => { + return await get("/mobile/js/pkkb/getListByJsRangeTime", params); }; /** * 查询代课信息 */ -export const findDkById = async (params: any) => { +export const findDkByIdApi = async (params: any) => { return await get("/api/qjDk/findById", params); }; @@ -28,7 +64,7 @@ export const findDkById = async (params: any) => { * 查询请假列表 */ export const findQjListApi = async (params: any) => { - return await get("/api/jsQj/findPage", params); + return await get("/api/qj/findPage", params); }; /** diff --git a/src/components/BasicForm/components/BasicCheckbox.vue b/src/components/BasicForm/components/BasicCheckbox.vue index 6398f84..d810d03 100644 --- a/src/components/BasicForm/components/BasicCheckbox.vue +++ b/src/components/BasicForm/components/BasicCheckbox.vue @@ -6,6 +6,7 @@ diff --git a/src/pages/base/service/index.vue b/src/pages/base/service/index.vue index d726a4a..96ed9a9 100644 --- a/src/pages/base/service/index.vue +++ b/src/pages/base/service/index.vue @@ -284,7 +284,7 @@ const sections = reactive([ icon: "draftfill", text: "请假申请", show: true, - path: "/pages/view/hr/leaveApplication/index", + path: "/pages/view/hr/qj/index", }, { id: "hr2", diff --git a/src/pages/view/hr/qj/components/jsQjDkEdit.vue b/src/pages/view/hr/qj/components/jsQjDkEdit.vue new file mode 100644 index 0000000..b93a02c --- /dev/null +++ b/src/pages/view/hr/qj/components/jsQjDkEdit.vue @@ -0,0 +1,238 @@ + + + + + diff --git a/src/pages/view/hr/qj/components/jsQjEdit.vue b/src/pages/view/hr/qj/components/jsQjEdit.vue index a4b7ab8..5a0fb63 100644 --- a/src/pages/view/hr/qj/components/jsQjEdit.vue +++ b/src/pages/view/hr/qj/components/jsQjEdit.vue @@ -3,27 +3,7 @@ @@ -39,33 +19,39 @@ diff --git a/src/pages/view/hr/qj/index.vue b/src/pages/view/hr/qj/index.vue index 212d895..c1edd3d 100644 --- a/src/pages/view/hr/qj/index.vue +++ b/src/pages/view/hr/qj/index.vue @@ -6,18 +6,18 @@ :current="curTabIndex" @change="switchTab" /> - + - +