Browse Source

修复bug

hella_online_20240829
zhaoyiran 4 months ago
parent
commit
a4cc7f638a
  1. 5
      src/api/qms/inspectionRecord/inspectionRecordMain/index.ts
  2. 2
      src/views/qms/inspectionRecord/index.vue

5
src/api/qms/inspectionRecord/inspectionRecordMain/index.ts

@ -77,3 +77,8 @@ export const publishInspectionRecordMain = async (id) => {
return await request.put({ url: `/qms/inspection-record-main/publish?id=`+id })
}
// 执行检验任务
export const executeInspectionRecordMain = async (data) => {
return await request.put({ url: `/qms/inspection-record-main/execute`, data })
}

2
src/views/qms/inspectionRecord/index.vue

@ -387,7 +387,7 @@ const submitFormExecute = async (formType, data) => {
await InspectionJobMainApi.createInspectionJobMain(data)
message.success(t('common.createSuccess'))
} else if (formType === 'execute') {
await InspectionJobMainApi.executeInspectionJobMain(data)
await InspectionRecordMainApi.executeInspectionRecordMain(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false

Loading…
Cancel
Save