|
@@ -1213,7 +1213,7 @@ const clickInspection = (row) => {
|
|
|
},
|
|
|
],
|
|
|
ehsdQualityWorkshipList: [],
|
|
|
- SampleCollectionRecordFileList: [],
|
|
|
+ sampleCollectionRecordFileList: [],
|
|
|
workshipPhotoFileList: [],
|
|
|
defectPhotosOfItemsFileList: [],
|
|
|
supportDocumentationFileList: [],
|
|
@@ -1228,9 +1228,9 @@ const clickInspectionTwo = (row) => {
|
|
|
proxy.post("/ehsdQuality/detail", { id: row.id }).then((res) => {
|
|
|
formData.data = res;
|
|
|
proxy.post("/fileInfo/getList", { businessIdList: [res.id], fileType: 10 }).then((fileObj) => {
|
|
|
- formData.data.SampleCollectionRecordFileList = fileObj[res.id] || [];
|
|
|
- if (formData.data.SampleCollectionRecordFileList && formData.data.SampleCollectionRecordFileList.length > 0) {
|
|
|
- fileListOne.value = formData.data.SampleCollectionRecordFileList.map((item) => {
|
|
|
+ formData.data.sampleCollectionRecordFileList = fileObj[res.id] || [];
|
|
|
+ if (formData.data.sampleCollectionRecordFileList && formData.data.sampleCollectionRecordFileList.length > 0) {
|
|
|
+ fileListOne.value = formData.data.sampleCollectionRecordFileList.map((item) => {
|
|
|
return {
|
|
|
raw: item,
|
|
|
name: item.fileName,
|
|
@@ -1302,7 +1302,7 @@ const submitFollow = (status) => {
|
|
|
formData.data.inspectionSummary = JSON.stringify(formData.data.inspectionSummaryList);
|
|
|
} else if (selectSteps.value === 3) {
|
|
|
if (fileListOne.value && fileListOne.value.length > 0) {
|
|
|
- formData.data.SampleCollectionRecordFileList = fileListOne.value.map((item) => {
|
|
|
+ formData.data.sampleCollectionRecordFileList = fileListOne.value.map((item) => {
|
|
|
return {
|
|
|
id: item.raw.id,
|
|
|
fileName: item.raw.fileName,
|
|
@@ -1311,7 +1311,7 @@ const submitFollow = (status) => {
|
|
|
};
|
|
|
});
|
|
|
} else {
|
|
|
- formData.data.SampleCollectionRecordFileList = [];
|
|
|
+ formData.data.sampleCollectionRecordFileList = [];
|
|
|
}
|
|
|
} else if (selectSteps.value === 5) {
|
|
|
formData.data.ehsdQualityCartonsList = formData.data.ehsdQualityCartonsList.map((item) => {
|
|
@@ -1366,9 +1366,9 @@ const submitFollow = (status) => {
|
|
|
proxy.post("/ehsdQuality/detail", { id: formData.data.businessId }).then((res) => {
|
|
|
formData.data = res;
|
|
|
proxy.post("/fileInfo/getList", { businessIdList: [res.id], fileType: 10 }).then((fileObj) => {
|
|
|
- formData.data.SampleCollectionRecordFileList = fileObj[res.id] || [];
|
|
|
- if (formData.data.SampleCollectionRecordFileList && formData.data.SampleCollectionRecordFileList.length > 0) {
|
|
|
- fileListOne.value = formData.data.SampleCollectionRecordFileList.map((item) => {
|
|
|
+ formData.data.sampleCollectionRecordFileList = fileObj[res.id] || [];
|
|
|
+ if (formData.data.sampleCollectionRecordFileList && formData.data.sampleCollectionRecordFileList.length > 0) {
|
|
|
+ fileListOne.value = formData.data.sampleCollectionRecordFileList.map((item) => {
|
|
|
return {
|
|
|
raw: item,
|
|
|
name: item.fileName,
|
|
@@ -1412,7 +1412,7 @@ const submitFollow = (status) => {
|
|
|
formData.data.inspectionSummary = JSON.stringify(formData.data.inspectionSummaryList);
|
|
|
} else if (selectSteps.value === 3) {
|
|
|
if (fileListOne.value && fileListOne.value.length > 0) {
|
|
|
- formData.data.SampleCollectionRecordFileList = fileListOne.value.map((item) => {
|
|
|
+ formData.data.sampleCollectionRecordFileList = fileListOne.value.map((item) => {
|
|
|
return {
|
|
|
id: item.raw.id,
|
|
|
fileName: item.raw.fileName,
|
|
@@ -1421,7 +1421,7 @@ const submitFollow = (status) => {
|
|
|
};
|
|
|
});
|
|
|
} else {
|
|
|
- formData.data.SampleCollectionRecordFileList = [];
|
|
|
+ formData.data.sampleCollectionRecordFileList = [];
|
|
|
}
|
|
|
} else if (selectSteps.value === 5) {
|
|
|
formData.data.ehsdQualityCartonsList = formData.data.ehsdQualityCartonsList.map((item) => {
|