{
  "type": "page",
  "pullRefresh": {
    "disabled": true
  },
  "regions": [
    "body"
  ],
  "aside": [],
  "asideResizor": false,
  "initApi": {
    "method": "get",
    "adaptor": "",
    "messages": {},
    "requestAdaptor": "",
    "url": "/Opportunity/initData"
  },
  "id": 10,
  "title": "",
  "body": [
    {
      "themeCss": {
        "titleControlClassName": {
          "font:default": {
            "text-align": "center"
          }
        }
      },
      "affixFooter": false,
      "visible": true,
      "tabs": [
        {
          "affixFooter": false,
          "visible": true,
          "hidden": false,
          "id": "u:ba1e0e9b7549",
          "type": "panel",
          "title": "订单详情",
          "body": [
            {
              "themeCss": {
                "formControlClassName": {
                  "padding-and-margin": {}
                }
              },
              "static": true,
              "dsType": "api",
              "initApi": {
                "method": "get",
                "adaptor": "",
                "messages": {},
                "requestAdaptor": "",
                "url": "/Opportunity/get/${OPPORTUNITY_ID}"
              },
              "columnCount": 5,
              "type": "form",
              "title": "表单",
              "body": [
                {
                  "name": "serialNumber",
                  "label": "订单编号",
                  "id": "u:0e03b270128d",
                  "type": "input-text"
                },
                {
                  "name": "createdDate",
                  "label": "创建日期",
                  "id": "u:78471eaa0efc",
                  "type": "input-text"
                },
                {
                  "name": "modifiedDate",
                  "label": "修改日期",
                  "id": "u:4ca9d69dc252",
                  "type": "input-text"
                },
                {
                  "keyboard": true,
                  "name": "product_name",
                  "step": 1,
                  "label": "关联产品",
                  "id": "u:fd218b10f934",
                  "type": "input-text",
                  "showSteps": true
                },
                {
                  "keyboard": true,
                  "name": "account_name",
                  "step": 1,
                  "label": "关联企业",
                  "id": "u:8b2c154db204",
                  "type": "input-text",
                  "showSteps": true
                },
                {
                  "name": "status",
                  "label": "订单状态",
                  "id": "u:72b7bf4f3a71",
                  "type": "input-text"
                },
                {
                  "name": "memo",
                  "label": "订单备注",
                  "id": "u:d029f8c56b81",
                  "type": "input-text"
                },
                {
                  "keyboard": true,
                  "name": "user_full_name",
                  "step": 1,
                  "label": "报单人",
                  "id": "u:691b27d3bac2",
                  "type": "input-text",
                  "showSteps": true
                }
              ],
              "mode": "inline",
              "labelAlign": "left",
              "id": "u:dc267ca41965",
              "feat": "View",
              "actions": [
                {
                  "level": "primary",
                  "onEvent": {
                    "click": {
                      "actions": [
                        {
                          "actionType": "submit",
                          "componentId": "u:5c22675e429a"
                        }
                      ]
                    }
                  },
                  "label": "提交",
                  "id": "u:6e18c11e10f0",
                  "type": "button"
                }
              ],
              "wrapWithPanel": false
            }
          ],
          "actions": [
            {
              "buttons": [
                {
                  "id": "u:c625d3f82058",
                  "type": "button",
                  "body": {
                    "actionType": "dialog",
                    "dialog": {
                      "closeOnEsc": false,
                      "type": "dialog",
                      "title": "发起业务",
                      "body": [
                        {
                          "mode": "horizontal",
                          "labelAlign": "left",
                          "dsType": "api",
                          "resetAfterSubmit": true,
                          "api": {
                            "method": "post",
                            "data": {
                              "workflow_id": "${workflow_id}",
                              "opportunity_id": "${OPPORTUNITY_ID}",
                              "&": "$$"
                            },
                            "dataType": "form",
                            "adaptor": "",
                            "messages": {},
                            "requestAdaptor": "",
                            "url": "/WorkflowInstance/save"
                          },
                          "id": "u:743734488bd8",
                          "type": "form",
                          "body": [
                            {
                              "selectFirst": true,
                              "name": "workflow_id",
                              "multiple": false,
                              "label": "工作流程",
                              "id": "u:e516e0bac5b0",
                              "source": "/Workflow/select",
                              "type": "select",
                              "valueField": "id",
                              "searchable": true,
                              "labelField": "name"
                            }
                          ],
                          "title": "表单",
                          "actions": [
                            {
                              "level": "default",
                              "onEvent": {
                                "click": {
                                  "actions": [
                                    {
                                      "actionType": "cancel",
                                      "componentId": "u:743734488bd8"
                                    }
                                  ]
                                }
                              },
                              "label": "取消",
                              "type": "button"
                            },
                            {
                              "level": "primary",
                              "onEvent": {
                                "click": {
                                  "actions": [
                                    {
                                      "actionType": "submit",
                                      "componentId": "u:743734488bd8"
                                    }
                                  ]
                                }
                              },
                              "label": "提交",
                              "type": "button"
                            }
                          ],
                          "feat": "Insert"
                        }
                      ],
                      "showLoading": true,
                      "actionType": "dialog",
                      "draggable": false,
                      "editorSetting": {
                        "displayName": "发起订单"
                      },
                      "showErrorMsg": true,
                      "showCloseButton": true,
                      "id": "u:ae913d18b18f",
                      "actions": [
                        {
                          "actionType": "cancel",
                          "disabledOnAction": false,
                          "size": "xs",
                          "label": "取消",
                          "id": "u:a357a0d03b44",
                          "type": "button"
                        },
                        {
                          "actionType": "confirm",
                          "disabledOnAction": false,
                          "size": "xs",
                          "label": "确定",
                          "id": "u:b556e174d4eb",
                          "type": "button",
                          "primary": true
                        }
                      ],
                      "closeOnOutside": false
                    },
                    "disabledOnAction": false,
                    "size": "xs",
                    "visibleOn": "${ARRAYSOME(roles, item => item === 'ROLE_WORKFLOW')}",
                    "label": "发起流程",
                    "id": "u:9c17813ac2ce",
                    "type": "button"
                  }
                }
              ],
              "size": "sm",
              "id": "u:d94d29112214",
              "type": "button-group"
            }
          ]
        },
        {
          "affixFooter": false,
          "name": "opportunity_info1_panel",
          "id": "u:d8ea7f85aeb9",
          "type": "panel",
          "title": "融资担保详情",
          "body": [
            {
              "static": true,
              "dsType": "api",
              "resetAfterSubmit": true,
              "initApi": {
                "method": "post",
                "data": {
                  "opportunity_id": "${OPPORTUNITY_ID}",
                  "&": "$$"
                },
                "dataType": "form",
                "adaptor": "",
                "messages": {},
                "requestAdaptor": "",
                "url": "/OpportunityInfo/getInfo1"
              },
              "columnCount": 5,
              "type": "form",
              "title": "表单",
              "body": [
                {
                  "name": "project_type",
                  "label": "项目类型",
                  "id": "u:bc36457819b0",
                  "type": "input-text"
                },
                {
                  "name": "amount",
                  "label": "放款金额",
                  "id": "u:13defee77d60",
                  "type": "input-number"
                },
                {
                  "name": "from_time",
                  "label": "项目开始时间",
                  "id": "u:d7d7c86bd715",
                  "type": "input-date"
                },
                {
                  "name": "to_time",
                  "label": "项目结束时间",
                  "id": "u:ce9b55b96254",
                  "type": "input-date"
                },
                {
                  "name": "start_time",
                  "label": "放款/出函日期",
                  "id": "u:e117841adbe8",
                  "type": "input-date"
                },
                {
                  "name": "end_time",
                  "label": "还款/收函日期",
                  "id": "u:ed6fac28b24b",
                  "type": "input-date"
                },
                {
                  "name": "beneficiary",
                  "label": "受益人",
                  "id": "u:fab1184c4730",
                  "type": "input-text"
                },
                {
                  "name": "status",
                  "label": "状态",
                  "id": "u:d4f6b3dc2652",
                  "type": "input-text"
                },
                {
                  "name": "rate",
                  "label": "费率",
                  "id": "u:624e5095213d",
                  "type": "input-text"
                },
                {
                  "name": "income",
                  "label": "收益",
                  "id": "u:45752bf44e83",
                  "type": "input-number"
                },
                {
                  "name": "memo",
                  "label": "备注",
                  "id": "u:85e9072f6ca5",
                  "type": "input-text"
                }
              ],
              "mode": "inline",
              "affixFooter": false,
              "labelAlign": "top",
              "id": "u:e712359cd52c",
              "api": {
                "method": "get",
                "url": "/OpportunityInfo/saveInfo1"
              },
              "feat": "View",
              "actions": [
                {
                  "level": "primary",
                  "onEvent": {
                    "click": {
                      "actions": [
                        {
                          "actionType": "submit",
                          "componentId": "u:d077118114b5"
                        }
                      ]
                    }
                  },
                  "label": "提交",
                  "type": "button"
                }
              ],
              "wrapWithPanel": false
            }
          ],
          "actions": [
            {
              "buttons": [
                {
                  "disabledOnAction": false,
                  "actionType": "dialog",
                  "dialog": {
                    "closeOnEsc": false,
                    "type": "dialog",
                    "title": "",
                    "body": [
                      {
                        "dsType": "api",
                        "resetAfterSubmit": true,
                        "initApi": {
                          "method": "post",
                          "data": {
                            "opportunity_id": "${OPPORTUNITY_ID}",
                            "&": "$$"
                          },
                          "dataType": "form",
                          "adaptor": "",
                          "messages": {},
                          "requestAdaptor": "",
                          "url": "/OpportunityInfo/getInfo1"
                        },
                        "columnCount": 4,
                        "type": "form",
                        "title": "表单",
                        "body": [
                          {
                            "name": "project_type",
                            "label": "项目类别",
                            "id": "u:9a0468f273b2",
                            "row": 0,
                            "type": "input-text",
                            "colSize": "1/3"
                          },
                          {
                            "name": "amount",
                            "label": "金额",
                            "id": "u:04996b992bfc",
                            "row": 0,
                            "type": "input-text",
                            "colSize": "1/3"
                          },
                          {
                            "name": "from_time",
                            "label": "项目开始日期",
                            "id": "u:33a6a6dc0188",
                            "row": 0,
                            "type": "input-text",
                            "colSize": "1/3"
                          },
                          {
                            "name": "to_time",
                            "label": "项目截止日期",
                            "id": "u:739b43ea87fd",
                            "row": 1,
                            "type": "input-text",
                            "colSize": "1/3"
                          },
                          {
                            "name": "start_time",
                            "label": "放款/出函日期",
                            "id": "u:d9384df2c401",
                            "row": 1,
                            "type": "input-text",
                            "colSize": "1/3"
                          },
                          {
                            "name": "end_time",
                            "label": "还款/收函日期",
                            "id": "u:ec183ad25bdd",
                            "row": 1,
                            "type": "input-text",
                            "colSize": "1/3"
                          },
                          {
                            "name": "beneficiary",
                            "label": "受益人",
                            "id": "u:9dc32e5c374d",
                            "row": 2,
                            "type": "input-text",
                            "colSize": "1/3"
                          },
                          {
                            "name": "status",
                            "label": "担保状态",
                            "id": "u:17c21d6f9eb1",
                            "row": 2,
                            "type": "input-text",
                            "colSize": "1/3"
                          },
                          {
                            "name": "rate",
                            "label": "费率",
                            "id": "u:97baaa6ceb5c",
                            "row": 2,
                            "type": "input-text",
                            "colSize": "1/3"
                          },
                          {
                            "name": "income",
                            "label": "收益",
                            "id": "u:68c56b316c87",
                            "row": 3,
                            "type": "input-text",
                            "colSize": "1/3"
                          },
                          {
                            "name": "memo",
                            "label": "备注",
                            "id": "u:883ade742266",
                            "row": 3,
                            "type": "input-text",
                            "colSize": "1/3"
                          },
                          {
                            "name": "opportunity_info1_id",
                            "label": "ID",
                            "id": "u:e35508f456ad",
                            "row": 3,
                            "type": "input-number",
                            "colSize": "1/3"
                          }
                        ],
                        "mode": "flex",
                        "labelAlign": "top",
                        "id": "u:d3340dcc0b69",
                        "api": {
                          "method": "post",
                          "data": {
                            "income": "${income}",
                            "amount": "${amount}",
                            "&": "$$",
                            "projectType": "${projectType}",
                            "memo": "${memo}",
                            "beneficiary": "${beneficiary}",
                            "rate": "${rate}",
                            "fromTime": "${fromTime}",
                            "startTime": "${startTime}",
                            "id": "${opportunity_info1_id}",
                            "endTime": "${endTime}",
                            "toTime": "${toTime}",
                            "status": "${status}"
                          },
                          "dataType": "form",
                          "adaptor": "",
                          "messages": {},
                          "requestAdaptor": "",
                          "url": "/OpportunityInfo/saveInfo1"
                        },
                        "feat": "Edit",
                        "actions": [
                          {
                            "level": "primary",
                            "onEvent": {
                              "click": {
                                "actions": [
                                  {
                                    "actionType": "submit",
                                    "componentId": "u:d3340dcc0b69"
                                  }
                                ]
                              }
                            },
                            "label": "提交",
                            "type": "button"
                          }
                        ]
                      }
                    ],
                    "showLoading": true,
                    "actionType": "dialog",
                    "draggable": false,
                    "size": "md",
                    "editorSetting": {
                      "displayName": "修改"
                    },
                    "showErrorMsg": true,
                    "showCloseButton": true,
                    "id": "u:8aa661d87205",
                    "actions": [
                      {
                        "actionType": "cancel",
                        "disabledOnAction": false,
                        "label": "取消",
                        "id": "u:0f0881a20fa7",
                        "type": "button"
                      },
                      {
                        "actionType": "confirm",
                        "disabledOnAction": false,
                        "label": "确定",
                        "id": "u:7b006eb386ef",
                        "type": "button",
                        "primary": true
                      }
                    ],
                    "closeOnOutside": false
                  },
                  "visible": true,
                  "label": "修改",
                  "id": "u:95682942a305",
                  "type": "button"
                },
                {
                  "disabledOnAction": false,
                  "dialog": {
                    "title": "弹框",
                    "body": "这是个简单的弹框。"
                  },
                  "label": "查看变更记录",
                  "id": "u:9b4425d5149b",
                  "type": "button"
                }
              ],
              "id": "u:db91b2fdd6dc",
              "type": "button-group"
            }
          ]
        },
        {
          "affixFooter": false,
          "id": "u:d7afb093200e",
          "type": "panel",
          "title": "工作流程",
          "body": [
            {
              "syncLocation": false,
              "perPageAvailable": [
                5,
                10,
                20,
                50,
                100
              ],
              "columns": [
                {
                  "name": "instance_name",
                  "label": "流程名称",
                  "id": "u:57c1b6399fc8",
                  "placeholder": "-",
                  "type": "text"
                },
                {
                  "name": "status",
                  "label": "流程状态",
                  "id": "u:e5895b602b5b",
                  "type": "text"
                },
                {
                  "name": "created_date",
                  "format": "YYYY年MM月DD日 HH时mm分ss秒",
                  "label": "创建时间",
                  "id": "u:06285d77e78f",
                  "placeholder": "-",
                  "type": "date"
                },
                {
                  "name": "modified_date",
                  "format": "YYYY年MM月DD日 HH时mm分ss秒",
                  "label": "修改时间",
                  "id": "u:be4949e01e49",
                  "placeholder": "-",
                  "type": "date"
                },
                {
                  "name": "stage_name",
                  "label": "当前阶段",
                  "id": "u:34184fb40f78",
                  "type": "text"
                },
                {
                  "name": "full_name",
                  "label": "发起人",
                  "id": "u:0ad008eb231f",
                  "type": "text"
                },
                {
                  "buttons": [
                    {
                      "actionType": "dialog",
                      "dialog": {
                        "closeOnEsc": false,
                        "type": "dialog",
                        "title": "查看详情",
                        "body": [
                          {
                            "mode": "right",
                            "name": "timeline",
                            "label": "时间轴",
                            "id": "u:ac1392c0b2bc",
                            "source": {
                              "method": "get",
                              "adaptor": "",
                              "messages": {},
                              "requestAdaptor": "",
                              "url": "/WorkflowInstance/getWorkflowInstanceStageAndCommentsForTimeline/${id}"
                            },
                            "type": "timeline",
                            "reverse": false,
                            "direction": "vertical"
                          }
                        ],
                        "showLoading": true,
                        "actionType": "dialog",
                        "draggable": false,
                        "size": "md",
                        "showErrorMsg": true,
                        "showCloseButton": true,
                        "id": "u:4a96e141441f",
                        "actions": [
                          {
                            "actionType": "cancel",
                            "label": "取消",
                            "id": "u:47c8ae3c16a0",
                            "type": "button"
                          },
                          {
                            "actionType": "confirm",
                            "label": "确定",
                            "id": "u:8e1253998b71",
                            "type": "button",
                            "primary": true
                          }
                        ],
                        "closeOnOutside": false
                      },
                      "disabledOnAction": false,
                      "level": "link",
                      "editorSetting": {
                        "behavior": "view"
                      },
                      "label": "查看",
                      "id": "u:40221fe2c912",
                      "type": "button"
                    }
                  ],
                  "label": "操作",
                  "id": "u:5ca4ea363d72",
                  "type": "operation"
                }
              ],
              "itemActions": [],
              "bulkActions": [],
              "messages": {},
              "api": {
                "method": "post",
                "data": {
                  "&": "$$",
                  "id": "${OPPORTUNITY_ID}"
                },
                "dataType": "form",
                "messages": {},
                "adaptor": "",
                "requestAdaptor": "",
                "url": "/WorkflowInstance/getWorkflowInstanceListByOpportunity"
              },
              "id": "u:f93e170e2068",
              "type": "crud",
              "headerToolbar": []
            }
          ],
          "actions": []
        },
        {
          "affixFooter": false,
          "id": "u:74b5b9d5aba0",
          "type": "panel",
          "title": "合同信息",
          "body": [],
          "actions": [
            {
              "buttons": [
                {
                  "disabledOnAction": false,
                  "onEvent": {
                    "click": {
                      "actions": []
                    }
                  },
                  "label": "下载模板",
                  "id": "u:fff01801ac55",
                  "type": "button"
                },
                {
                  "disabledOnAction": false,
                  "onEvent": {
                    "click": {
                      "actions": []
                    }
                  },
                  "label": "导入数据",
                  "id": "u:ae0e96b376f7",
                  "type": "button"
                }
              ],
              "id": "u:1ce8b3d61c95",
              "type": "button-group"
            }
          ]
        },
        {
          "id": "u:8ffd0c967df3",
          "title": "附件信息",
          "body": [
            {
              "filterSettingSource": [
                "id",
                "description",
                "file_url",
                "label"
              ],
              "alwaysShowPagination": true,
              "syncLocation": false,
              "perPageAvailable": [
                5,
                10,
                20,
                50,
                100
              ],
              "columns": [
                {
                  "name": "description",
                  "label": "文件名",
                  "id": "u:a7a0b5546af7",
                  "placeholder": "-",
                  "type": "text"
                },
                {
                  "name": "file_path",
                  "label": "系统路径",
                  "id": "u:1457cd23656c",
                  "placeholder": "-",
                  "type": "text"
                },
                {
                  "name": "label",
                  "label": "附件类型",
                  "id": "u:1e5af218b2ec",
                  "placeholder": "-",
                  "type": "text"
                },
                {
                  "buttons": [
                    {
                      "actionType": "dialog",
                      "dialog": {
                        "closeOnEsc": false,
                        "type": "dialog",
                        "title": "查看附件详情",
                        "body": [
                          {
                            "maxScale": 200,
                            "src": "${file_url}",
                            "visibleOn": "${OR(extension == 'jpg', extension == 'png')}",
                            "style": {
                              "display": "inline-block"
                            },
                            "id": "u:0c7390b4ae3c",
                            "minScale": 50,
                            "imageMode": "original",
                            "type": "image",
                            "enlargeAble": true
                          }
                        ],
                        "showLoading": true,
                        "actionType": "dialog",
                        "draggable": false,
                        "size": "lg",
                        "showErrorMsg": true,
                        "showCloseButton": true,
                        "id": "u:a678efe52bc8",
                        "actions": [],
                        "closeOnOutside": false
                      },
                      "disabledOnAction": false,
                      "level": "link",
                      "visibleOn": "",
                      "editorSetting": {
                        "behavior": "view"
                      },
                      "label": "查看",
                      "id": "u:747196a767f0",
                      "type": "button"
                    },
                    {
                      "actionType": "download",
                      "level": "link",
                      "label": "下载",
                      "api": "${file_url}",
                      "id": "u:24af49b8d02c",
                      "type": "button"
                    },
                    {
                      "actionType": "ajax",
                      "disabledOnAction": false,
                      "level": "link",
                      "editorSetting": {
                        "behavior": "delete"
                      },
                      "className": "text-danger",
                      "confirmText": "确定要删除?",
                      "label": "删除",
                      "api": {
                        "method": "post",
                        "data": {
                          "opportunity_id": 302,
                          "&": "$$"
                        },
                        "dataType": "form",
                        "messages": {},
                        "adaptor": "",
                        "requestAdaptor": "",
                        "url": "/Attachments/delete/${id}"
                      },
                      "id": "u:9f70640a2bbe",
                      "type": "button"
                    }
                  ],
                  "label": "操作",
                  "id": "u:2c52fa31a7bd",
                  "placeholder": "-",
                  "type": "operation"
                }
              ],
              "itemActions": [],
              "type": "crud",
              "columnsTogglable": true,
              "mode": "table",
              "filter": {
                "mode": "horizontal",
                "labelAlign": "left",
                "columnCount": 3,
                "id": "u:0a3b3ed14e52",
                "title": "查询条件",
                "body": [
                  {
                    "name": "description",
                    "label": "文件名",
                    "id": "u:9551fb7c554a",
                    "type": "input-text"
                  },
                  {
                    "name": "label",
                    "label": "文件类型",
                    "id": "u:f2541e40e67f",
                    "type": "input-text"
                  }
                ],
                "actions": [
                  {
                    "disabledOnAction": false,
                    "size": "xs",
                    "label": "搜索",
                    "id": "u:529405c46df6",
                    "type": "submit",
                    "primary": true
                  }
                ],
                "feat": "Insert"
              },
              "filterEnabledList": [
                {
                  "label": "description",
                  "value": "description"
                },
                {
                  "label": "label",
                  "value": "label"
                }
              ],
              "bulkActions": [],
              "messages": {},
              "api": {
                "method": "post",
                "data": {
                  "opportunity_id": 302,
                  "&": "$$"
                },
                "dataType": "form",
                "messages": {},
                "adaptor": "",
                "requestAdaptor": "",
                "url": "/Attachments/getListByOpportunity"
              },
              "id": "u:f3614faecde2",
              "headerToolbar": [
                {
                  "actionType": "dialog",
                  "dialog": {
                    "actionType": "dialog",
                    "closeOnEsc": false,
                    "draggable": false,
                    "showErrorMsg": true,
                    "showCloseButton": true,
                    "id": "u:54ac343afe08",
                    "type": "dialog",
                    "title": "新增",
                    "body": [
                      {
                        "labelAlign": "left",
                        "dsType": "api",
                        "api": {
                          "method": "post",
                          "data": {
                            "opportunity_id": "${OPPORTUNITY_ID}",
                            "&": "$$",
                            "dict_data_id": "${type}"
                          },
                          "dataType": "form",
                          "messages": {},
                          "adaptor": "",
                          "requestAdaptor": "",
                          "url": "/Attachments/uploadLocal"
                        },
                        "id": "u:beef6fc365b3",
                        "type": "form",
                        "body": [
                          {
                            "name": "type",
                            "multiple": false,
                            "label": "附件类型",
                            "id": "u:b1517270b502",
                            "source": {
                              "method": "get",
                              "dataType": "json",
                              "adaptor": "",
                              "messages": {},
                              "requestAdaptor": "",
                              "url": "/Dict/get/AttachmentType"
                            },
                            "type": "select",
                            "valueField": "id",
                            "labelField": "label"
                          },
                          {
                            "formType": "asBlob",
                            "bos": "default",
                            "multiple": true,
                            "asBase64": false,
                            "label": "文件上传",
                            "type": "input-file",
                            "autoUpload": true,
                            "btnLabel": "文件上传",
                            "accept": "",
                            "proxy": true,
                            "asBlob": true,
                            "useChunk": false,
                            "delimiter": ",",
                            "name": "file",
                            "uploadType": "asForm",
                            "id": "u:bad16886de7d",
                            "drag": false
                          }
                        ],
                        "actions": [
                          {
                            "label": "提交",
                            "type": "submit",
                            "primary": true
                          }
                        ],
                        "feat": "Insert"
                      }
                    ],
                    "showLoading": true,
                    "actions": [
                      {
                        "actionType": "cancel",
                        "label": "取消",
                        "id": "u:6baea20ac25b",
                        "type": "button"
                      },
                      {
                        "actionType": "confirm",
                        "label": "确定",
                        "id": "u:7593a1b3fed8",
                        "type": "button",
                        "primary": true
                      }
                    ],
                    "closeOnOutside": false
                  },
                  "disabledOnAction": false,
                  "size": "xs",
                  "level": "primary",
                  "editorSetting": {
                    "behavior": "create"
                  },
                  "label": "新增",
                  "id": "u:969ebaae7295",
                  "type": "button"
                },
                "bulkActions"
              ]
            }
          ]
        },
        {
          "visible": true,
          "visibleOn": "${ARRAYSOME(roles, item => item === 'ROLE_DUE_DILIGENCE')}",
          "id": "u:8f41e0102783",
          "title": "尽职调查",
          "body": [
            {
              "accordion": false,
              "enableFieldSetStyle": true,
              "activeKey": [
                "4"
              ],
              "id": "u:1fe636f2027f",
              "type": "collapse-group",
              "body": [
                {
                  "active": true,
                  "header": "企业基本信息",
                  "id": "u:e28972a23f04",
                  "type": "collapse",
                  "body": [
                    {
                      "tpl": "内容",
                      "wrapperComponent": "",
                      "inline": false,
                      "id": "u:997ebec2b975",
                      "type": "tpl"
                    }
                  ],
                  "key": "4"
                },
                {
                  "collapseHeader": "",
                  "header": "甲方项目信息",
                  "active": false,
                  "id": "u:745a5e144c50",
                  "type": "collapse",
                  "body": [
                    {
                      "tpl": "",
                      "wrapperComponent": "",
                      "inline": false,
                      "id": "u:6030625573d8",
                      "type": "tpl"
                    }
                  ],
                  "key": "1"
                },
                {
                  "collapseHeader": "",
                  "header": "乙方项目信息",
                  "active": false,
                  "id": "u:9606194f1909",
                  "type": "collapse",
                  "body": [
                    {
                      "dsType": "api",
                      "resetAfterSubmit": false,
                      "initApi": {
                        "method": "get",
                        "adaptor": "",
                        "messages": {},
                        "requestAdaptor": "",
                        "url": "/DueDiligence/getByOpportunity/${OPPORTUNITY_ID}"
                      },
                      "type": "form",
                      "title": "表单",
                      "body": [
                        {
                          "id": "u:22b19e16523c",
                          "type": "group",
                          "body": [
                            {
                              "keyboard": true,
                              "static": true,
                              "name": "opportunity",
                              "multiple": false,
                              "step": 1,
                              "label": "所属项目",
                              "id": "u:ab858d3f294e",
                              "source": "/Opportunity/select",
                              "type": "select",
                              "valueField": "id",
                              "showSteps": true,
                              "labelField": "serial_number"
                            },
                            {
                              "name": "project_name",
                              "label": "甲方项目名称",
                              "id": "u:5145f23ba8f2",
                              "type": "input-text"
                            },
                            {
                              "name": "contract_issuing_party",
                              "label": "发包方/机构",
                              "id": "u:1d518e509add",
                              "type": "input-text"
                            },
                            {
                              "name": "address",
                              "label": "供应区域",
                              "id": "u:ef4b5f58226b",
                              "type": "input-text"
                            }
                          ]
                        },
                        {
                          "id": "u:c02e83dc81ea",
                          "type": "group",
                          "body": [
                            {
                              "name": "amount",
                              "label": "合同金额",
                              "id": "u:d54d52f6aa15",
                              "type": "input-text"
                            },
                            {
                              "name": "material",
                              "label": "材料信息",
                              "id": "u:0a0a6bd7f2fb",
                              "type": "input-text"
                            },
                            {
                              "name": "quality_level",
                              "label": "质量标准",
                              "id": "u:6746d5708781",
                              "type": "input-text"
                            },
                            {
                              "minDate": "",
                              "name": "duration_of_delivery",
                              "valueFormat": "YYYY-MM-DD HH:mm:ss",
                              "displayFormat": "YYYY-MM-DD",
                              "maxDate": "",
                              "label": "供货期限",
                              "id": "u:27c1174aa458",
                              "placeholder": "请选择日期以及时间",
                              "type": "input-datetime",
                              "value": ""
                            }
                          ]
                        },
                        {
                          "id": "u:a45d8891384c",
                          "type": "group",
                          "body": [
                            {
                              "name": "settlement_mode",
                              "label": "结算方式",
                              "id": "u:b9c4b6606c75",
                              "type": "input-text"
                            },
                            {
                              "name": "payment_method",
                              "label": "支付方式",
                              "id": "u:13a7ef8c35d6",
                              "type": "input-text"
                            },
                            {
                              "name": "contract_signed_status",
                              "label": "合同签署情况",
                              "id": "u:ae455729cf86",
                              "type": "input-text"
                            },
                            {
                              "name": "contract_perform_status",
                              "label": "合同履行情况",
                              "id": "u:1bb46ecdfa36",
                              "type": "input-text"
                            }
                          ]
                        },
                        {
                          "id": "u:f7cd10e86e7a",
                          "type": "group",
                          "body": [
                            {
                              "name": "project_level",
                              "label": "项目难易度",
                              "id": "u:3e8adce6162d",
                              "type": "input-text"
                            },
                            {
                              "name": "remark",
                              "id": "u:10644e2c2c74",
                              "label": "特殊条款",
                              "type": "input-text"
                            },
                            {
                              "keyboard": true,
                              "hidden": true,
                              "name": "id",
                              "step": 1,
                              "id": "u:36ce8b1b7a59",
                              "label": "id",
                              "type": "input-number",
                              "showSteps": true
                            },
                            {
                              "keyboard": true,
                              "hidden": true,
                              "name": "id",
                              "step": 1,
                              "id": "u:09e59583774c",
                              "label": "id",
                              "type": "input-number",
                              "showSteps": true
                            }
                          ]
                        },
                        {
                          "id": "u:804ed84e0bd6",
                          "type": "group",
                          "body": [
                            {
                              "name": "points",
                              "columnRatio": 100,
                              "label": "保(贷)后要点",
                              "id": "u:f742c3c96d48",
                              "type": "textarea"
                            }
                          ]
                        },
                        {
                          "id": "u:a6d481039ad9",
                          "type": "group",
                          "body": [
                            {
                              "name": "result",
                              "label": "尽调结论",
                              "id": "u:54a9282a2e54",
                              "type": "textarea"
                            }
                          ]
                        }
                      ],
                      "mode": "horizontal",
                      "labelAlign": "left",
                      "api": {
                        "method": "post",
                        "dataType": "form",
                        "messages": {},
                        "adaptor": "",
                        "requestAdaptor": "",
                        "url": "/DueDiligence/update/${id}"
                      },
                      "id": "u:05cd1402b369",
                      "feat": "Edit",
                      "actions": [
                        {
                          "disabledOnAction": false,
                          "size": "xs",
                          "level": "primary",
                          "onEvent": {
                            "click": {
                              "actions": [
                                {
                                  "actionType": "submit",
                                  "componentId": "u:05cd1402b369"
                                }
                              ]
                            }
                          },
                          "label": "保存",
                          "id": "u:0f66a7f0fb24",
                          "type": "button"
                        }
                      ],
                      "wrapWithPanel": true
                    }
                  ],
                  "key": "2"
                },
                {
                  "header": "历史合作情况",
                  "active": false,
                  "id": "u:6cd92c05145d",
                  "type": "collapse",
                  "body": [
                    {
                      "filterSettingSource": [
                        "id",
                        "version",
                        "product_id",
                        "perform_status",
                        "opportunity_id",
                        "amount"
                      ],
                      "syncLocation": false,
                      "perPageAvailable": [
                        5,
                        10,
                        20,
                        50,
                        100
                      ],
                      "columns": [
                        {
                          "static": true,
                          "name": "product_id",
                          "multiple": false,
                          "label": "产品",
                          "id": "u:dcd923a164c2",
                          "placeholder": "-",
                          "source": "/Product/select",
                          "type": "select",
                          "valueField": "id",
                          "labelField": "name"
                        },
                        {
                          "name": "perform_status",
                          "label": "状态",
                          "id": "u:899a4290b114",
                          "placeholder": "-",
                          "type": "text"
                        },
                        {
                          "name": "opportunity_id",
                          "label": "业务",
                          "id": "u:432f62f5263f",
                          "type": "text"
                        },
                        {
                          "name": "amount",
                          "label": "金额",
                          "id": "u:9fdea67f5c14",
                          "type": "text"
                        }
                      ],
                      "itemActions": [],
                      "onEvent": {},
                      "bulkActions": [],
                      "messages": {},
                      "id": "u:50b73db65bb5",
                      "api": {
                        "method": "get",
                        "messages": {},
                        "adaptor": "",
                        "requestAdaptor": "",
                        "url": "/CollaborationHistory/page?opportunity_id=${OPPORTUNITY_ID}"
                      },
                      "type": "crud"
                    }
                  ],
                  "key": "3"
                }
              ],
              "expandIconPosition": "left"
            }
          ]
        }
      ],
      "id": "u:e918039722e0",
      "type": "tabs",
      "mountOnEnter": true
    }
  ],
  "asidePosition": "left",
  "definitions": {}
}