diff --git a/src/api/mes/ordermonthplan/index.ts b/src/api/mes/ordermonthplan/index.ts
new file mode 100644
index 000000000..3c86a1a5c
--- /dev/null
+++ b/src/api/mes/ordermonthplan/index.ts
@@ -0,0 +1,60 @@
+import request from '@/config/axios'
+
+export interface MesOrderMonthMainVO {
+ deleteTime: Date
+ id: number
+ status: string
+ concurrencyStamp: number
+ remark: string
+ deleter: string
+ siteId: number
+ sourceType: string
+ planMasterCode: string
+ planSubCode: string
+ planType: string
+ checker: string
+ checkDate: string
+ factoryCode: string
+ factoryName: string
+}
+
+// 查询订单计划月主列表
+export const getMesOrderMonthMainPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/plan/mes-order-month-main/senior', data })
+ } else {
+ return await request.get({ url: `/plan/mes-order-month-main/page`, params })
+ }
+}
+
+// 查询订单计划月主详情
+export const getMesOrderMonthMain = async (id: number) => {
+ return await request.get({ url: `/plan/mes-order-month-main/get?id=` + id })
+}
+
+// 新增订单计划月主
+export const createMesOrderMonthMain = async (data: MesOrderMonthMainVO) => {
+ return await request.post({ url: `/plan/mes-order-month-main/create`, data })
+}
+
+// 修改订单计划月主
+export const updateMesOrderMonthMain = async (data: MesOrderMonthMainVO) => {
+ return await request.put({ url: `/plan/mes-order-month-main/update`, data })
+}
+
+// 删除订单计划月主
+export const deleteMesOrderMonthMain = async (id: number) => {
+ return await request.delete({ url: `/plan/mes-order-month-main/delete?id=` + id })
+}
+
+// 导出订单计划月主 Excel
+export const exportMesOrderMonthMain = async (params) => {
+ return await request.download({ url: `/plan/mes-order-month-main/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/plan/mes-order-month-main/get-import-template' })
+}
diff --git a/src/views/mes/ordermonthplan/index.vue b/src/views/mes/ordermonthplan/index.vue
new file mode 100644
index 000000000..31e9bca22
--- /dev/null
+++ b/src/views/mes/ordermonthplan/index.vue
@@ -0,0 +1,244 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.code }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/mes/ordermonthplan/mesOrderMonthMain.data.ts b/src/views/mes/ordermonthplan/mesOrderMonthMain.data.ts
new file mode 100644
index 000000000..b30b0fc88
--- /dev/null
+++ b/src/views/mes/ordermonthplan/mesOrderMonthMain.data.ts
@@ -0,0 +1,86 @@
+import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
+import { dateFormatter } from '@/utils/formatTime'
+
+// 表单校验
+export const MesOrderMonthMainRules = reactive({
+})
+
+export const MesOrderMonthMain = useCrudSchemas(reactive([
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ isTable: false
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: true,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ isForm: false
+ },
+ {
+ label: '创建者用户名',
+ field: 'creator',
+ sort: 'custom',
+ isSearch: true,
+ isForm: false
+ },
+ {
+ label: '主计划编码',
+ field: 'planMasterCode',
+ sort: 'custom',
+ isSearch: true
+ },
+ {
+ label: '计划辅助编码',
+ field: 'planSubCode',
+ sort: 'custom',
+ isSearch: true
+ },
+ {
+ label: '计划类型',
+ field: 'planType',
+ sort: 'custom',
+ isSearch: true,
+ form: {
+ component: 'SelectV2'
+ }
+ },
+ {
+ label: '审核人',
+ field: 'checker',
+ sort: 'custom',
+ isSearch: true
+ },
+ {
+ label: '工厂编码',
+ field: 'factoryCode',
+ sort: 'custom',
+ isSearch: true
+ },
+ {
+ label: '工厂名称',
+ field: 'factoryName',
+ sort: 'custom',
+ isSearch: true
+ },
+ {
+ label: '操作',
+ field: 'action',
+ isForm: false,
+ table: {
+ width: 150,
+ fixed: 'right'
+ }
+ }
+]))
diff --git a/src/views/mes/workstation/mesOrderMonthMain.data.ts b/src/views/mes/workstation/mesOrderMonthMain.data.ts
new file mode 100644
index 000000000..d766ae00a
--- /dev/null
+++ b/src/views/mes/workstation/mesOrderMonthMain.data.ts
@@ -0,0 +1,83 @@
+import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
+import { dateFormatter } from '@/utils/formatTime'
+
+// 表单校验
+export const MesOrderMonthMainRules = reactive({
+})
+
+export const MesOrderMonthMain = useCrudSchemas(reactive([
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ isTable: false
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: true,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ isForm: false
+ },
+ {
+ label: '创建者用户名',
+ field: 'creator',
+ sort: 'custom',
+ isSearch: true,
+ isForm: false
+ },
+ {
+ label: '主计划编码',
+ field: 'planMasterCode',
+ sort: 'custom',
+ isTable: false,
+ isSearch: true
+ },
+ {
+ label: '计划辅助编码',
+ field: 'planSubCode',
+ sort: 'custom',
+ isTable: false,
+ isSearch: true
+ },
+ {
+ label: '计划类型',
+ field: 'planType',
+ sort: 'custom',
+ isSearch: true,
+ form: {
+ component: 'SelectV2'
+ }
+ },
+ {
+ label: '工厂编码',
+ field: 'factoryCode',
+ sort: 'custom',
+ isTable: false
+ },
+ {
+ label: '工厂名称',
+ field: 'factoryName',
+ sort: 'custom',
+ isSearch: true,
+ isForm: false
+ },
+ {
+ label: '操作',
+ field: 'action',
+ isForm: false,
+ table: {
+ width: 150,
+ fixed: 'right'
+ }
+ }
+]))
diff --git a/src/views/mes/workstation/workstation.data.ts b/src/views/mes/workstation/workstation.data.ts
index e5ac54c59..013f12c8d 100644
--- a/src/views/mes/workstation/workstation.data.ts
+++ b/src/views/mes/workstation/workstation.data.ts
@@ -228,7 +228,7 @@ export const popList = useCrudSchemas(reactive([
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '仓库信息', // 查询弹窗标题
searchAllSchemas: Team.allSchemas, // 查询弹窗所需类
- searchPage: WorkstationApi.getTeamPage, // 查询弹窗所需分页方法
+ searchPage: WorkstationApi.checkTeamPageList, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',