Browse Source

保养子工单添加人数和预计完成时间

master
ljlong_2630 9 months ago
parent
commit
5b547ea6d7
  1. 1
      src/api/eam/device/deviceInspectionMain/index.ts
  2. 1
      src/api/eam/device/deviceMaintainOrderMain/index.ts
  3. 2
      src/api/eam/device/deviceRepair/index.ts
  4. 1
      src/api/eam/device/deviceSpotInspectionRecordMain/index.ts
  5. 1
      src/api/eam/mold/moldInspectionMain/index.ts
  6. 2
      src/api/eam/mold/moldMaintainOrderMain/index.ts
  7. 1
      src/api/eam/mold/moldMaintainPlan/index.ts
  8. 2
      src/api/eam/mold/moldRepair/index.ts
  9. 2
      src/views/eam/device/problemSolving/index.vue
  10. 11
      src/views/eam/mold/moldRepair/moldRepair.data.ts

1
src/api/eam/device/deviceInspectionMain/index.ts

@ -17,6 +17,7 @@ export interface DeviceInspectionMainVO {
// 查询检修工单主列表 // 查询检修工单主列表
export const getDeviceInspectionMainPage = async (params) => { export const getDeviceInspectionMainPage = async (params) => {
params.type = 'DEVICE'
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}

1
src/api/eam/device/deviceMaintainOrderMain/index.ts

@ -20,6 +20,7 @@ export interface DeviceMaintainOrderMainVO {
} }
// 查询保养工单主列表 // 查询保养工单主列表
export const getDeviceMaintainOrderMainPage = async (params) => { export const getDeviceMaintainOrderMainPage = async (params) => {
params.type = 'DEVICE'
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}

2
src/api/eam/device/deviceRepair/index.ts

@ -17,12 +17,12 @@ export interface DeviceRepairVO {
// 查询报修申请列表 // 查询报修申请列表
export const getDeviceRepairPage = async (params) => { export const getDeviceRepairPage = async (params) => {
params.type = 'DEVICE'
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = { ...params } const data = { ...params }
return await request.post({ url: '/eam/device-repair-request/senior', data }) return await request.post({ url: '/eam/device-repair-request/senior', data })
} else { } else {
params.type = 'DEVICE'
return await request.get({ url: `/eam/device-repair-request/page`, params }) return await request.get({ url: `/eam/device-repair-request/page`, params })
} }
} }

1
src/api/eam/device/deviceSpotInspectionRecordMain/index.ts

@ -15,6 +15,7 @@ export interface DeviceSpotInspectionRecordMainVO {
// 查询检修工单主列表 // 查询检修工单主列表
export const getDeviceSpotInspectionRecordMainPage = async (params) => { export const getDeviceSpotInspectionRecordMainPage = async (params) => {
params.type = 'DEVICE'
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}

1
src/api/eam/mold/moldInspectionMain/index.ts

@ -17,6 +17,7 @@ export interface MoldInspectionMainVO {
// 查询检修工单主列表 // 查询检修工单主列表
export const getMoldInspectionMainPage = async (params) => { export const getMoldInspectionMainPage = async (params) => {
params.type = 'MOLD'
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}

2
src/api/eam/mold/moldMaintainOrderMain/index.ts

@ -20,11 +20,13 @@ export interface MoldMaintainOrderMainVO {
} }
// 查询保养工单主列表 // 查询保养工单主列表
export const getMoldMaintainOrderMainPage = async (params) => { export const getMoldMaintainOrderMainPage = async (params) => {
params.type = 'MOLD'
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/eam/device-maintain-job-main/senior', data }) return await request.post({ url: '/eam/device-maintain-job-main/senior', data })
} else { } else {
params.type = 'MOLD'
return await request.get({ url: `/eam/device-maintain-job-main/page`, params }) return await request.get({ url: `/eam/device-maintain-job-main/page`, params })
} }
} }

1
src/api/eam/mold/moldMaintainPlan/index.ts

@ -14,6 +14,7 @@ export interface MoldMaintainPlanVO {
// 查询保养计划列表 // 查询保养计划列表
export const getMoldMaintainPlanPage = async (params) => { export const getMoldMaintainPlanPage = async (params) => {
params.type = 'MOLD'
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}

2
src/api/eam/mold/moldRepair/index.ts

@ -16,12 +16,12 @@ export interface MoldRepairVO {
// 查询报修申请列表 // 查询报修申请列表
export const getMoldRepairPage = async (params) => { export const getMoldRepairPage = async (params) => {
params.type = 'MOLD'
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = { ...params } const data = { ...params }
return await request.post({ url: '/eam/device-repair-request/senior', data }) return await request.post({ url: '/eam/device-repair-request/senior', data })
} else { } else {
params.type = 'MOLD'
return await request.get({ url: `/eam/device-repair-request/page`, params }) return await request.get({ url: `/eam/device-repair-request/page`, params })
} }
} }

2
src/views/eam/device/problemSolving/index.vue

@ -125,7 +125,7 @@
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type : string, row ?: any) => { const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row) basicFormRef.value.open(type, row)
} }

11
src/views/eam/mold/moldRepair/moldRepair.data.ts

@ -181,6 +181,17 @@ export const MoldRepair = useCrudSchemas(reactive<CrudSchema[]>([
component: 'Select', component: 'Select',
}, },
}, },
{
label: '图片',
field: 'upload',
isForm: true,
form: {
component: 'UploadImgs',
componentProps: {
limit:3,
}
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

Loading…
Cancel
Save