From 8bc7961919ce96ebf7b8b0073ff3c43df2b65f16 Mon Sep 17 00:00:00 2001 From: hebo Date: Sun, 26 Oct 2025 22:48:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=80=BC=E7=8F=AD=E5=B7=A1=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/pbApi.ts | 7 + src/api/base/xcXmApi.ts | 7 + src/api/base/zbXcApi.ts | 37 + src/pages.json | 21 + .../view/routine/kefuxuncha/xcPbList.vue | 5 + .../view/routine/kefuxuncha/zbDetail.vue | 977 ++++++++++++++++++ src/pages/view/routine/kefuxuncha/zbList.vue | 720 +++++++++++++ .../view/routine/kefuxuncha/zbRecord.vue | 421 ++++++++ 8 files changed, 2195 insertions(+) create mode 100644 src/api/base/zbXcApi.ts create mode 100644 src/pages/view/routine/kefuxuncha/zbDetail.vue create mode 100644 src/pages/view/routine/kefuxuncha/zbList.vue create mode 100644 src/pages/view/routine/kefuxuncha/zbRecord.vue diff --git a/src/api/base/pbApi.ts b/src/api/base/pbApi.ts index a966b47..7a8c71b 100644 --- a/src/api/base/pbApi.ts +++ b/src/api/base/pbApi.ts @@ -55,3 +55,10 @@ export const getXcCourseListApi = async (params: any) => { export const getKyXcCourseListApi = async (params: any) => { return await get("/api/pb/getKyXcCourseList", params); }; + +/** + * 值周巡查接口 - 获取值周排班数据 + */ +export const getZbXcListApi = async (params: any) => { + return await get("/api/pbZb/getZbXcList", params); +}; diff --git a/src/api/base/xcXmApi.ts b/src/api/base/xcXmApi.ts index c9b1bf5..3cb7a34 100644 --- a/src/api/base/xcXmApi.ts +++ b/src/api/base/xcXmApi.ts @@ -41,3 +41,10 @@ export const xcXmFindAllApi = async () => { export const xcXmFindByXcLxApi = async (xcLx: string) => { return await get("/api/xcXm/findByXcLx", { xcLx }); }; + +/** + * 根据排班类型ID查询项目列表 + */ +export const xcXmFindByPbLxIdApi = async (pbLxId: string) => { + return await get("/api/xcXm/findByPbLxId", { pbLxId }); +}; \ No newline at end of file diff --git a/src/api/base/zbXcApi.ts b/src/api/base/zbXcApi.ts new file mode 100644 index 0000000..7cb5d46 --- /dev/null +++ b/src/api/base/zbXcApi.ts @@ -0,0 +1,37 @@ +import { get, post } from "@/utils/request"; + +/** + * 分页查询值周巡查记录 + */ +export const zbXcFindPageApi = async (params: any) => { + return await get("/api/zbXc/findPage", params); +}; + +/** + * 新增/修改值周巡查记录 + */ +export const zbXcSaveApi = async (params: any) => { + return await post("/api/zbXc/save", params); +}; + +/** + * 删除值周巡查记录 + */ +export const zbXcLogicDeleteApi = async (params: any) => { + return await post("/api/zbXc/logicDelete", params); +}; + +/** + * 根据id查询值周巡查记录 + */ +export const zbXcFindByIdApi = async (params: any) => { + return await get("/api/zbXc/findById", params); +}; + +/** + * 查询全部值周巡查记录 + */ +export const zbXcFindAllApi = async () => { + return await get("/api/zbXc/findAll"); +}; + diff --git a/src/pages.json b/src/pages.json index db0cebe..ce6d5d0 100644 --- a/src/pages.json +++ b/src/pages.json @@ -871,6 +871,27 @@ "navigationBarTitleText": "课业巡查记录" } }, + { + "path": "pages/view/routine/kefuxuncha/zbList", + "style": { + "navigationBarTitleText": "值周巡查", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/view/routine/kefuxuncha/zbDetail", + "style": { + "navigationBarTitleText": "值周巡查详情", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/view/routine/kefuxuncha/zbRecord", + "style": { + "navigationBarTitleText": "值周巡查记录", + "enablePullDownRefresh": false + } + }, { "path": "pages/base/xs/qj/sp", "style": { diff --git a/src/pages/view/routine/kefuxuncha/xcPbList.vue b/src/pages/view/routine/kefuxuncha/xcPbList.vue index 5614b73..12f091e 100644 --- a/src/pages/view/routine/kefuxuncha/xcPbList.vue +++ b/src/pages/view/routine/kefuxuncha/xcPbList.vue @@ -264,6 +264,11 @@ const goXc = (pb: any) => { uni.navigateTo({ url: `/pages/view/routine/kefuxuncha/kyXkList`, }); + } else if (pb.xclx === 'C') { + // 值周巡查,跳转到值周巡查列表 + uni.navigateTo({ + url: `/pages/view/routine/kefuxuncha/zbList`, + }); } else { uni.showToast({ title: '未知的巡查类型', diff --git a/src/pages/view/routine/kefuxuncha/zbDetail.vue b/src/pages/view/routine/kefuxuncha/zbDetail.vue new file mode 100644 index 0000000..9f4560a --- /dev/null +++ b/src/pages/view/routine/kefuxuncha/zbDetail.vue @@ -0,0 +1,977 @@ +