diff --git a/src/main/resources/templates/admin/business/process-detail.ftl b/src/main/resources/templates/admin/business/process-detail.ftl
index e83459b..e589921 100644
--- a/src/main/resources/templates/admin/business/process-detail.ftl
+++ b/src/main/resources/templates/admin/business/process-detail.ftl
@@ -126,9 +126,9 @@
-
-
- {{scope.row.attachment.name}}
+
+
+ {{attachment.name}}
@@ -252,6 +252,19 @@
...detail, type: computeType(detail.type)
}))
+ const mapAttachment = attachment => {
+ if (hasText(attachment)) {
+ try {
+ return JSON.parse(attachment)
+ } catch (e) {
+ return []
+ }
+ }
+ else {
+ return []
+ }
+ }
+
this.process = process
this.project = project
this.isPrepaid = isPrepaid
@@ -260,7 +273,9 @@
this.processId = processId
this.projectType = projectType
this.cooperationType = cooperationType
- this.supplierMaterials = supplierMaterials
+ this.supplierMaterials = supplierMaterials.map(item => ({
+ ...item, attachment: mapAttachment(item.attachment)
+ }))
this.procurementDetails = procurementDetails
this.attachments = attachments