diff --git a/src/views/IO/delayPatrol/allDelayPatrol/api.ts b/src/views/IO/delayPatrol/allDelayPatrol/api.ts new file mode 100644 index 0000000..90a5083 --- /dev/null +++ b/src/views/IO/delayPatrol/allDelayPatrol/api.ts @@ -0,0 +1,58 @@ +import { ID, IDS, PageQuery, commonExport } from '@/api/base'; +import { defHttp } from '@/utils/http/axios'; +import { Dayjs } from 'dayjs'; + +enum Api { + root = '/workflow/leave', + list = '/workflow/leave/list', + export = '/workflow/leave/export', +} + +export interface Leave { + id: string; + leaveType: string; + startDate: string; + endDate: string; + leaveDays: number; + remark: string; + processInstanceVo?: any; + dateTime?: [string, string] | [Dayjs, Dayjs]; +} + +export interface Resp { + createDept: number; + createBy: number; + createTime: string; + updateBy: number; + updateTime: string; + id: string; + leaveType: string; + startDate: string; + endDate: string; + leaveDays: number; + remark?: any; +} + +export function list(params?: PageQuery) { + return defHttp.get({ url: Api.list, params }); +} + +export function exportExcel(data: any) { + return commonExport(Api.export, data); +} + +export function getInfo(id: ID) { + return defHttp.get({ url: `${Api.root}/${id}` }); +} + +export function add(data: any) { + return defHttp.post({ url: Api.root, data }); +} + +export function update(data: any) { + return defHttp.put({ url: Api.root, data }); +} + +export function removeByIds(ids: IDS) { + return defHttp.deleteWithMsg({ url: `${Api.root}/${ids.join(',')}` }); +} diff --git a/src/views/IO/delayPatrol/allDelayPatrol/data.ts b/src/views/IO/delayPatrol/allDelayPatrol/data.ts new file mode 100644 index 0000000..444d829 --- /dev/null +++ b/src/views/IO/delayPatrol/allDelayPatrol/data.ts @@ -0,0 +1,119 @@ +import { BasicColumn } from '@/components/Table'; +import { FormSchema } from '@/components/Form'; + +export const formSchemas: FormSchema[] = [ + { + field: 'projectName', + label: '项目名称', + component: 'Select', + componentProps: { + options: [ + { + value: '1', + label: '2323', + }, + { + value: '2', + label: '2323', + }, + { + value: '3', + label: '2323', + }, + ], + }, + }, + { + field: 'ioCompany', + label: '运维单位', + component: 'Select', + componentProps: { + options: [ + { + value: '1', + label: '2323', + }, + { + value: '2', + label: '2323', + }, + { + value: '3', + label: '2323', + }, + ], + }, + }, + { + field: 'plaDate', + label: '计划日期', + component: 'RangePicker', + }, + { + field: 'deliverContent', + label: '交付内容', + component: 'Input', + componentProps: { + placeholder: '请输入', + }, + }, + { + field: 'serviceProject', + label: '服务项目', + component: 'Input', + componentProps: { + placeholder: '请输入', + }, + }, + { + field: 'code', + label: '代码', + component: 'Input', + componentProps: { + placeholder: '请输入', + }, + }, + { + field: 'serviceContent', + label: '服务内容', + component: 'Input', + componentProps: { + placeholder: '请输入', + }, + }, +]; + +export const columns: BasicColumn[] = [ + { + title: '项目名称', + dataIndex: 'projectName', + }, + { + title: '服务项目', + dataIndex: 'serviceProject', + }, + { + title: '计划描述', + dataIndex: 'description', + }, + { + title: '交付内容', + dataIndex: 'deliverContent', + }, + { + title: '代码', + dataIndex: 'code', + }, + { + title: '开始日期', + dataIndex: 'startDate', + }, + { + title: '结束日期', + dataIndex: 'endDate', + }, + { + title: '状态', + dataIndex: 'status', + }, +]; diff --git a/src/views/IO/delayPatrol/allDelayPatrol/detailDrawer.vue b/src/views/IO/delayPatrol/allDelayPatrol/detailDrawer.vue new file mode 100644 index 0000000..1c816ea --- /dev/null +++ b/src/views/IO/delayPatrol/allDelayPatrol/detailDrawer.vue @@ -0,0 +1,164 @@ + + + + + diff --git a/src/views/IO/delayPatrol/allDelayPatrol/index.vue b/src/views/IO/delayPatrol/allDelayPatrol/index.vue new file mode 100644 index 0000000..d8a03f2 --- /dev/null +++ b/src/views/IO/delayPatrol/allDelayPatrol/index.vue @@ -0,0 +1,60 @@ + + + + + diff --git a/src/views/IO/delayPatrol/waitAudit/api.ts b/src/views/IO/delayPatrol/waitAudit/api.ts new file mode 100644 index 0000000..90a5083 --- /dev/null +++ b/src/views/IO/delayPatrol/waitAudit/api.ts @@ -0,0 +1,58 @@ +import { ID, IDS, PageQuery, commonExport } from '@/api/base'; +import { defHttp } from '@/utils/http/axios'; +import { Dayjs } from 'dayjs'; + +enum Api { + root = '/workflow/leave', + list = '/workflow/leave/list', + export = '/workflow/leave/export', +} + +export interface Leave { + id: string; + leaveType: string; + startDate: string; + endDate: string; + leaveDays: number; + remark: string; + processInstanceVo?: any; + dateTime?: [string, string] | [Dayjs, Dayjs]; +} + +export interface Resp { + createDept: number; + createBy: number; + createTime: string; + updateBy: number; + updateTime: string; + id: string; + leaveType: string; + startDate: string; + endDate: string; + leaveDays: number; + remark?: any; +} + +export function list(params?: PageQuery) { + return defHttp.get({ url: Api.list, params }); +} + +export function exportExcel(data: any) { + return commonExport(Api.export, data); +} + +export function getInfo(id: ID) { + return defHttp.get({ url: `${Api.root}/${id}` }); +} + +export function add(data: any) { + return defHttp.post({ url: Api.root, data }); +} + +export function update(data: any) { + return defHttp.put({ url: Api.root, data }); +} + +export function removeByIds(ids: IDS) { + return defHttp.deleteWithMsg({ url: `${Api.root}/${ids.join(',')}` }); +} diff --git a/src/views/IO/delayPatrol/waitAudit/data.ts b/src/views/IO/delayPatrol/waitAudit/data.ts new file mode 100644 index 0000000..444d829 --- /dev/null +++ b/src/views/IO/delayPatrol/waitAudit/data.ts @@ -0,0 +1,119 @@ +import { BasicColumn } from '@/components/Table'; +import { FormSchema } from '@/components/Form'; + +export const formSchemas: FormSchema[] = [ + { + field: 'projectName', + label: '项目名称', + component: 'Select', + componentProps: { + options: [ + { + value: '1', + label: '2323', + }, + { + value: '2', + label: '2323', + }, + { + value: '3', + label: '2323', + }, + ], + }, + }, + { + field: 'ioCompany', + label: '运维单位', + component: 'Select', + componentProps: { + options: [ + { + value: '1', + label: '2323', + }, + { + value: '2', + label: '2323', + }, + { + value: '3', + label: '2323', + }, + ], + }, + }, + { + field: 'plaDate', + label: '计划日期', + component: 'RangePicker', + }, + { + field: 'deliverContent', + label: '交付内容', + component: 'Input', + componentProps: { + placeholder: '请输入', + }, + }, + { + field: 'serviceProject', + label: '服务项目', + component: 'Input', + componentProps: { + placeholder: '请输入', + }, + }, + { + field: 'code', + label: '代码', + component: 'Input', + componentProps: { + placeholder: '请输入', + }, + }, + { + field: 'serviceContent', + label: '服务内容', + component: 'Input', + componentProps: { + placeholder: '请输入', + }, + }, +]; + +export const columns: BasicColumn[] = [ + { + title: '项目名称', + dataIndex: 'projectName', + }, + { + title: '服务项目', + dataIndex: 'serviceProject', + }, + { + title: '计划描述', + dataIndex: 'description', + }, + { + title: '交付内容', + dataIndex: 'deliverContent', + }, + { + title: '代码', + dataIndex: 'code', + }, + { + title: '开始日期', + dataIndex: 'startDate', + }, + { + title: '结束日期', + dataIndex: 'endDate', + }, + { + title: '状态', + dataIndex: 'status', + }, +]; diff --git a/src/views/IO/delayPatrol/waitAudit/detailDrawer.vue b/src/views/IO/delayPatrol/waitAudit/detailDrawer.vue new file mode 100644 index 0000000..6909b2c --- /dev/null +++ b/src/views/IO/delayPatrol/waitAudit/detailDrawer.vue @@ -0,0 +1,164 @@ + + + + + diff --git a/src/views/IO/delayPatrol/waitAudit/index.vue b/src/views/IO/delayPatrol/waitAudit/index.vue new file mode 100644 index 0000000..3eb1c53 --- /dev/null +++ b/src/views/IO/delayPatrol/waitAudit/index.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/src/views/IO/delayPatrol/waitPatrol/api.ts b/src/views/IO/delayPatrol/waitPatrol/api.ts new file mode 100644 index 0000000..90a5083 --- /dev/null +++ b/src/views/IO/delayPatrol/waitPatrol/api.ts @@ -0,0 +1,58 @@ +import { ID, IDS, PageQuery, commonExport } from '@/api/base'; +import { defHttp } from '@/utils/http/axios'; +import { Dayjs } from 'dayjs'; + +enum Api { + root = '/workflow/leave', + list = '/workflow/leave/list', + export = '/workflow/leave/export', +} + +export interface Leave { + id: string; + leaveType: string; + startDate: string; + endDate: string; + leaveDays: number; + remark: string; + processInstanceVo?: any; + dateTime?: [string, string] | [Dayjs, Dayjs]; +} + +export interface Resp { + createDept: number; + createBy: number; + createTime: string; + updateBy: number; + updateTime: string; + id: string; + leaveType: string; + startDate: string; + endDate: string; + leaveDays: number; + remark?: any; +} + +export function list(params?: PageQuery) { + return defHttp.get({ url: Api.list, params }); +} + +export function exportExcel(data: any) { + return commonExport(Api.export, data); +} + +export function getInfo(id: ID) { + return defHttp.get({ url: `${Api.root}/${id}` }); +} + +export function add(data: any) { + return defHttp.post({ url: Api.root, data }); +} + +export function update(data: any) { + return defHttp.put({ url: Api.root, data }); +} + +export function removeByIds(ids: IDS) { + return defHttp.deleteWithMsg({ url: `${Api.root}/${ids.join(',')}` }); +} diff --git a/src/views/IO/delayPatrol/waitPatrol/data.ts b/src/views/IO/delayPatrol/waitPatrol/data.ts new file mode 100644 index 0000000..444d829 --- /dev/null +++ b/src/views/IO/delayPatrol/waitPatrol/data.ts @@ -0,0 +1,119 @@ +import { BasicColumn } from '@/components/Table'; +import { FormSchema } from '@/components/Form'; + +export const formSchemas: FormSchema[] = [ + { + field: 'projectName', + label: '项目名称', + component: 'Select', + componentProps: { + options: [ + { + value: '1', + label: '2323', + }, + { + value: '2', + label: '2323', + }, + { + value: '3', + label: '2323', + }, + ], + }, + }, + { + field: 'ioCompany', + label: '运维单位', + component: 'Select', + componentProps: { + options: [ + { + value: '1', + label: '2323', + }, + { + value: '2', + label: '2323', + }, + { + value: '3', + label: '2323', + }, + ], + }, + }, + { + field: 'plaDate', + label: '计划日期', + component: 'RangePicker', + }, + { + field: 'deliverContent', + label: '交付内容', + component: 'Input', + componentProps: { + placeholder: '请输入', + }, + }, + { + field: 'serviceProject', + label: '服务项目', + component: 'Input', + componentProps: { + placeholder: '请输入', + }, + }, + { + field: 'code', + label: '代码', + component: 'Input', + componentProps: { + placeholder: '请输入', + }, + }, + { + field: 'serviceContent', + label: '服务内容', + component: 'Input', + componentProps: { + placeholder: '请输入', + }, + }, +]; + +export const columns: BasicColumn[] = [ + { + title: '项目名称', + dataIndex: 'projectName', + }, + { + title: '服务项目', + dataIndex: 'serviceProject', + }, + { + title: '计划描述', + dataIndex: 'description', + }, + { + title: '交付内容', + dataIndex: 'deliverContent', + }, + { + title: '代码', + dataIndex: 'code', + }, + { + title: '开始日期', + dataIndex: 'startDate', + }, + { + title: '结束日期', + dataIndex: 'endDate', + }, + { + title: '状态', + dataIndex: 'status', + }, +]; diff --git a/src/views/IO/delayPatrol/waitPatrol/detailDrawer.vue b/src/views/IO/delayPatrol/waitPatrol/detailDrawer.vue new file mode 100644 index 0000000..1c816ea --- /dev/null +++ b/src/views/IO/delayPatrol/waitPatrol/detailDrawer.vue @@ -0,0 +1,164 @@ + + + + + diff --git a/src/views/IO/delayPatrol/waitPatrol/index.vue b/src/views/IO/delayPatrol/waitPatrol/index.vue new file mode 100644 index 0000000..b0cda04 --- /dev/null +++ b/src/views/IO/delayPatrol/waitPatrol/index.vue @@ -0,0 +1,60 @@ + + + + + diff --git a/src/views/IO/patrol/allPatrol/allPatrolapi.ts b/src/views/IO/patrol/allPatrol/allPatrolapi.ts new file mode 100644 index 0000000..90a5083 --- /dev/null +++ b/src/views/IO/patrol/allPatrol/allPatrolapi.ts @@ -0,0 +1,58 @@ +import { ID, IDS, PageQuery, commonExport } from '@/api/base'; +import { defHttp } from '@/utils/http/axios'; +import { Dayjs } from 'dayjs'; + +enum Api { + root = '/workflow/leave', + list = '/workflow/leave/list', + export = '/workflow/leave/export', +} + +export interface Leave { + id: string; + leaveType: string; + startDate: string; + endDate: string; + leaveDays: number; + remark: string; + processInstanceVo?: any; + dateTime?: [string, string] | [Dayjs, Dayjs]; +} + +export interface Resp { + createDept: number; + createBy: number; + createTime: string; + updateBy: number; + updateTime: string; + id: string; + leaveType: string; + startDate: string; + endDate: string; + leaveDays: number; + remark?: any; +} + +export function list(params?: PageQuery) { + return defHttp.get({ url: Api.list, params }); +} + +export function exportExcel(data: any) { + return commonExport(Api.export, data); +} + +export function getInfo(id: ID) { + return defHttp.get({ url: `${Api.root}/${id}` }); +} + +export function add(data: any) { + return defHttp.post({ url: Api.root, data }); +} + +export function update(data: any) { + return defHttp.put({ url: Api.root, data }); +} + +export function removeByIds(ids: IDS) { + return defHttp.deleteWithMsg({ url: `${Api.root}/${ids.join(',')}` }); +} diff --git a/src/views/IO/patrol/allPatrol/allPatroldata.ts b/src/views/IO/patrol/allPatrol/allPatroldata.ts new file mode 100644 index 0000000..22c7fe5 --- /dev/null +++ b/src/views/IO/patrol/allPatrol/allPatroldata.ts @@ -0,0 +1,87 @@ +import { BasicColumn } from '@/components/Table'; +import { FormSchema } from '@/components/Form'; + +export const formSchemas: FormSchema[] = [ + { + field: 'projectName', + label: '项目名称', + component: 'Select', + componentProps: { + options: [ + { + value: '1', + label: '2323', + }, + { + value: '2', + label: '2323', + }, + { + value: '3', + label: '2323', + }, + ], + }, + }, + { + field: 'ioCompany', + label: '运维单位', + component: 'Select', + componentProps: { + options: [ + { + value: '1', + label: '2323', + }, + { + value: '2', + label: '2323', + }, + { + value: '3', + label: '2323', + }, + ], + }, + }, + { + field: 'plaDate', + label: '计划日期', + component: 'RangePicker', + }, +]; + +export const columns: BasicColumn[] = [ + { + title: '合同名称', + dataIndex: 'contractName', + }, + { + title: '项目名称', + dataIndex: 'projectName', + }, + { + title: '计划描述', + dataIndex: 'description', + }, + { + title: '开始日期', + dataIndex: 'startDate', + }, + { + title: '结束日期', + dataIndex: 'endDate', + }, + { + title: '频次', + dataIndex: 'frequency', + }, + { + title: '状态', + dataIndex: 'status', + }, + { + title: '完成情况', + dataIndex: 'progress', + }, +]; diff --git a/src/views/IO/patrol/allPatrol/api.ts b/src/views/IO/patrol/allPatrol/api.ts deleted file mode 100644 index e69de29..0000000 diff --git a/src/views/IO/patrol/allPatrol/data.ts b/src/views/IO/patrol/allPatrol/data.ts deleted file mode 100644 index e69de29..0000000 diff --git a/src/views/IO/patrol/allPatrol/detailDrawer.vue b/src/views/IO/patrol/allPatrol/detailDrawer.vue new file mode 100644 index 0000000..a5e0d9d --- /dev/null +++ b/src/views/IO/patrol/allPatrol/detailDrawer.vue @@ -0,0 +1,152 @@ + + + + + diff --git a/src/views/IO/patrol/allPatrol/index.vue b/src/views/IO/patrol/allPatrol/index.vue index 441ab2c..3dc305a 100644 --- a/src/views/IO/patrol/allPatrol/index.vue +++ b/src/views/IO/patrol/allPatrol/index.vue @@ -2,120 +2,41 @@ + diff --git a/src/views/IO/patrol/patroling/data.ts b/src/views/IO/patrol/patroling/data.ts index b522286..22c7fe5 100644 --- a/src/views/IO/patrol/patroling/data.ts +++ b/src/views/IO/patrol/patroling/data.ts @@ -24,7 +24,7 @@ export const formSchemas: FormSchema[] = [ }, }, { - field: 'IOCompany', + field: 'ioCompany', label: '运维单位', component: 'Select', componentProps: { diff --git a/src/views/IO/patrol/patroling/detailDrawer.vue b/src/views/IO/patrol/patroling/detailDrawer.vue new file mode 100644 index 0000000..5cd6c53 --- /dev/null +++ b/src/views/IO/patrol/patroling/detailDrawer.vue @@ -0,0 +1,152 @@ + + + + + diff --git a/src/views/IO/patrol/patroling/index.vue b/src/views/IO/patrol/patroling/index.vue index a51b9a6..0abfb7c 100644 --- a/src/views/IO/patrol/patroling/index.vue +++ b/src/views/IO/patrol/patroling/index.vue @@ -2,34 +2,30 @@ + diff --git a/src/views/IO/patrolReport/api.ts b/src/views/IO/patrolReport/api.ts new file mode 100644 index 0000000..90a5083 --- /dev/null +++ b/src/views/IO/patrolReport/api.ts @@ -0,0 +1,58 @@ +import { ID, IDS, PageQuery, commonExport } from '@/api/base'; +import { defHttp } from '@/utils/http/axios'; +import { Dayjs } from 'dayjs'; + +enum Api { + root = '/workflow/leave', + list = '/workflow/leave/list', + export = '/workflow/leave/export', +} + +export interface Leave { + id: string; + leaveType: string; + startDate: string; + endDate: string; + leaveDays: number; + remark: string; + processInstanceVo?: any; + dateTime?: [string, string] | [Dayjs, Dayjs]; +} + +export interface Resp { + createDept: number; + createBy: number; + createTime: string; + updateBy: number; + updateTime: string; + id: string; + leaveType: string; + startDate: string; + endDate: string; + leaveDays: number; + remark?: any; +} + +export function list(params?: PageQuery) { + return defHttp.get({ url: Api.list, params }); +} + +export function exportExcel(data: any) { + return commonExport(Api.export, data); +} + +export function getInfo(id: ID) { + return defHttp.get({ url: `${Api.root}/${id}` }); +} + +export function add(data: any) { + return defHttp.post({ url: Api.root, data }); +} + +export function update(data: any) { + return defHttp.put({ url: Api.root, data }); +} + +export function removeByIds(ids: IDS) { + return defHttp.deleteWithMsg({ url: `${Api.root}/${ids.join(',')}` }); +} diff --git a/src/views/IO/patrolReport/index.vue b/src/views/IO/patrolReport/index.vue new file mode 100644 index 0000000..afa7b79 --- /dev/null +++ b/src/views/IO/patrolReport/index.vue @@ -0,0 +1,64 @@ + + + + + diff --git a/src/views/IO/patrolReport/patrolReportdata.ts b/src/views/IO/patrolReport/patrolReportdata.ts new file mode 100644 index 0000000..4da9090 --- /dev/null +++ b/src/views/IO/patrolReport/patrolReportdata.ts @@ -0,0 +1,57 @@ +import { BasicColumn } from '@/components/Table'; +import { FormSchema } from '@/components/Form'; + +export const columns: BasicColumn[] = [ + { + title: '项目名称', + dataIndex: 'projectName', + }, + { + title: '巡检单位', + dataIndex: 'inspectionUnit', + }, + { + title: '类型', + dataIndex: 'type', + }, + { + title: '巡检时间', + dataIndex: 'inspectionTime', + }, + { + title: '巡检人员', + dataIndex: 'inspectionPeople', + }, +]; + +export const formSchemas: FormSchema[] = [ + { + field: 'projectName', + label: '项目名称', + component: 'Select', + componentProps: { + options: [ + { + value: '1', + label: '2323', + }, + { + value: '2', + label: '2323', + }, + { + value: '3', + label: '2323', + }, + ], + }, + }, + { + field: 'inspectionPeople', + label: '巡检人员', + component: 'Input', + componentProps: { + placeholder: '输入巡检人员', + }, + }, +]; diff --git a/src/views/IO/patrolReport/reportModal.vue b/src/views/IO/patrolReport/reportModal.vue new file mode 100644 index 0000000..2c64df6 --- /dev/null +++ b/src/views/IO/patrolReport/reportModal.vue @@ -0,0 +1,200 @@ + + + + + diff --git a/src/views/IO/workOrder/delayAudit/faultModal.vue b/src/views/IO/workOrder/delayAudit/faultModal.vue index ee6ce00..d6ddd87 100644 --- a/src/views/IO/workOrder/delayAudit/faultModal.vue +++ b/src/views/IO/workOrder/delayAudit/faultModal.vue @@ -1,10 +1,14 @@