diff --git a/src/views/qms/inspectionJob/addForm.vue b/src/views/qms/inspectionJob/addForm.vue index 8a2edf4eb..05f6ff589 100644 --- a/src/views/qms/inspectionJob/addForm.vue +++ b/src/views/qms/inspectionJob/addForm.vue @@ -1025,7 +1025,7 @@ const submitForm = async () => { message.error('合格数量和不合格数量之和必须等于样品份数') return } - data.value.id = data.value.jobId + data.value.id = data.value.jobId || data.value.id if (formType.value == 'create') { // 主子表——提交请求 emit('submitForm', formType.value, data.value)