Jelajahi Sumber

feat(lakala): add receiver agreement file upload configuration

- Added new upload field for receiver agreement files
- Configured file upload props including action URL and headers
- Set allowed file types to PDF, PNG, JPG, JPEG, DOC, and DOCX
- Implemented onSuccess callback for file URL assignment
- Enabled single file upload mode
- Integrated with existing form configuration structure
runphp 4 bulan lalu
induk
melakukan
088eed90a8
1 mengubah file dengan 20 tambahan dan 0 penghapusan
  1. 20 0
      config.php

+ 20 - 0
config.php

@@ -185,6 +185,26 @@ return json_decode(<<<'JSON'
         "name": "ref_Fognmh2zkilk14qc",
         "name": "ref_Fognmh2zkilk14qc",
         "display": true,
         "display": true,
         "hidden": false
         "hidden": false
+      },
+      {
+         "type": "upload",
+        "field": "receiver_agreement_file",
+        "title": "分账接收方默认合作协议文件",
+        "props": {
+          "action": "{{API_BASE_URL}}/admin/filesystem/file",
+          "name":"file",
+          "headers": {
+            "Authorization": "Bearer {{API_TOKEN}}"
+          },
+          "onSuccess": "$FNX:const res = $inject.args[0];\nconst file = $inject.args[1];\n\nfile.url = res.data.file_url;",
+          "multiple": false,
+          "accept": ".pdf,.png,.jpg,.jpeg,.doc,.docx"
+        },
+        "_fc_drag_tag": "upload",
+        "_fc_id": "id_F8rlmh2zkilk14pc",
+        "name": "ref_Fognmh2zkilk14qc",
+        "display": true,
+        "hidden": false
       },
       },
        {
        {
     "type": "input",
     "type": "input",