Browse Source

维修工单bug

master
zhang_li 10 months ago
parent
commit
25897f936f
  1. 2
      src/api/eam/device/deviceMaintenanceMain/index.ts
  2. 3
      src/views/eam/device/deviceMaintenanceMain/index.vue

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

@ -34,7 +34,7 @@ export const getDeviceMaintenanceMain = async (id: number) => {
// 新增维修工单主
export const createDeviceMaintenanceMain = async (data: DeviceMaintenanceMainVO) => {
return await request.post({ url: `/eam/device-maintenance-main/create`, data })
return await request.post({ url: `/eam/device-maintenance-main/createPC`, data })
}
// 修改维修工单主

3
src/views/eam/device/deviceMaintenanceMain/index.vue

@ -136,6 +136,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
str = str.substring(0, str.length - 1)
row['itemNumbers1'] = str
row['itemNumbers'] = val
console.log(row)
}
} else {
// const setV = {}
@ -376,7 +377,7 @@ const submitForm = async (formType, data) => {
return {
describes: item.describes,
describes1: item.describes1,
itemNumbers: item.itemNumbers1,
itemNumbers: item.itemNumbers,
maintenances: item.maintenances.join(','),
workOut: item.workOut,
}

Loading…
Cancel
Save