{
  "approval_name": "@i18n@approval_name",
  "description": "@i18n@description",
  "viewers": [
    {
      "viewer_type": "USER",
      "viewer_user_id": "__VIEWER_USER_ID__"
    }
  ],
  "form": {
    "form_content": "[{\"id\":\"projectCode\",\"type\":\"input\",\"required\":true,\"name\":\"@i18n@FIN_ALLOCATION_RULE.projectCode.name\",\"placeholder\":\"@i18n@FIN_ALLOCATION_RULE.projectCode.placeholder\"},{\"id\":\"projectName\",\"type\":\"input\",\"required\":true,\"name\":\"@i18n@FIN_ALLOCATION_RULE.projectName.name\",\"placeholder\":\"@i18n@FIN_ALLOCATION_RULE.projectName.placeholder\"},{\"id\":\"targetAccountName\",\"type\":\"input\",\"required\":true,\"name\":\"@i18n@FIN_ALLOCATION_RULE.targetAccountName.name\",\"placeholder\":\"@i18n@FIN_ALLOCATION_RULE.targetAccountName.placeholder\"},{\"id\":\"method\",\"type\":\"radio\",\"required\":true,\"name\":\"@i18n@FIN_ALLOCATION_RULE.method.name\",\"placeholder\":\"@i18n@FIN_ALLOCATION_RULE.method.placeholder\",\"option\":[{\"key\":\"method_0\",\"text\":\"固定金额\"},{\"key\":\"method_1\",\"text\":\"百分比\"},{\"key\":\"method_2\",\"text\":\"手动调整\"}]},{\"id\":\"percent\",\"type\":\"number\",\"required\":false,\"name\":\"@i18n@FIN_ALLOCATION_RULE.percent.name\",\"placeholder\":\"@i18n@FIN_ALLOCATION_RULE.percent.placeholder\"},{\"id\":\"fixedAmount\",\"type\":\"number\",\"required\":false,\"name\":\"@i18n@FIN_ALLOCATION_RULE.fixedAmount.name\",\"placeholder\":\"@i18n@FIN_ALLOCATION_RULE.fixedAmount.placeholder\"},{\"id\":\"manualAmount\",\"type\":\"number\",\"required\":false,\"name\":\"@i18n@FIN_ALLOCATION_RULE.manualAmount.name\",\"placeholder\":\"@i18n@FIN_ALLOCATION_RULE.manualAmount.placeholder\"},{\"id\":\"priority\",\"type\":\"number\",\"required\":true,\"name\":\"@i18n@FIN_ALLOCATION_RULE.priority.name\",\"placeholder\":\"@i18n@FIN_ALLOCATION_RULE.priority.placeholder\"},{\"id\":\"countsAsPublicDisposable\",\"type\":\"checkbox\",\"required\":true,\"name\":\"@i18n@FIN_ALLOCATION_RULE.countsAsPublicDisposable.name\",\"placeholder\":\"@i18n@FIN_ALLOCATION_RULE.countsAsPublicDisposable.placeholder\"},{\"id\":\"effectiveMonth\",\"type\":\"date\",\"required\":false,\"name\":\"@i18n@FIN_ALLOCATION_RULE.effectiveMonth.name\",\"placeholder\":\"@i18n@FIN_ALLOCATION_RULE.effectiveMonth.placeholder\"},{\"id\":\"remark\",\"type\":\"textarea\",\"required\":false,\"name\":\"@i18n@FIN_ALLOCATION_RULE.remark.name\",\"placeholder\":\"@i18n@FIN_ALLOCATION_RULE.remark.placeholder\"}]"
  },
  "node_list": [
    {
      "id": "START"
    },
    {
      "id": "APPROVAL_1",
      "name": "@i18n@node_name",
      "node_type": "AND",
      "approver": [
        {
          "type": "Personal",
          "user_id": "__APPROVER_USER_ID__"
        }
      ],
      "privilege_field": {
        "writable": [
          "projectCode",
          "projectName",
          "targetAccountName",
          "method",
          "percent",
          "fixedAmount",
          "manualAmount",
          "priority",
          "countsAsPublicDisposable",
          "effectiveMonth",
          "remark"
        ],
        "readable": [
          "projectCode",
          "projectName",
          "targetAccountName",
          "method",
          "percent",
          "fixedAmount",
          "manualAmount",
          "priority",
          "countsAsPublicDisposable",
          "effectiveMonth",
          "remark"
        ]
      }
    },
    {
      "id": "END"
    }
  ],
  "settings": {},
  "config": {
    "can_update_form": true,
    "can_update_process": false,
    "can_update_revert": false,
    "can_update_viewer": false
  },
  "i18n_resources": [
    {
      "locale": "zh-CN",
      "is_default": true,
      "texts": [
        {
          "key": "@i18n@approval_name",
          "value": "财务-利润分配规则审批"
        },
        {
          "key": "@i18n@description",
          "value": "维护某项目的固定金额/百分比/手动调整分配规则；通过后写入 ProfitAllocationRule。"
        },
        {
          "key": "@i18n@node_name",
          "value": "财务审批"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.projectCode.name",
          "value": "项目编号"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.projectCode.placeholder",
          "value": "请填写项目编号"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.projectName.name",
          "value": "项目名称"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.projectName.placeholder",
          "value": "请填写项目名称"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.targetAccountName.name",
          "value": "分配对象/权益账户"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.targetAccountName.placeholder",
          "value": "请填写分配对象/权益账户"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.method.name",
          "value": "分配方式"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.method.placeholder",
          "value": "请填写分配方式"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.percent.name",
          "value": "分配比例%"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.percent.placeholder",
          "value": "请填写分配比例%"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.fixedAmount.name",
          "value": "固定金额"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.fixedAmount.placeholder",
          "value": "请填写固定金额"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.manualAmount.name",
          "value": "手动调整金额"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.manualAmount.placeholder",
          "value": "请填写手动调整金额"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.priority.name",
          "value": "优先级"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.priority.placeholder",
          "value": "请填写优先级"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.countsAsPublicDisposable.name",
          "value": "是否计入公共可支配"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.countsAsPublicDisposable.placeholder",
          "value": "请填写是否计入公共可支配"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.effectiveMonth.name",
          "value": "生效月份"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.effectiveMonth.placeholder",
          "value": "请填写生效月份"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.remark.name",
          "value": "备注"
        },
        {
          "key": "@i18n@FIN_ALLOCATION_RULE.remark.placeholder",
          "value": "请填写备注"
        }
      ]
    }
  ],
  "process_manager_ids": [
    "__VIEWER_USER_ID__"
  ],
  "metadata": {
    "finance_template_code": "FIN_ALLOCATION_RULE",
    "target_tables": [
      "Project",
      "EquityAccount",
      "ProfitAllocationRule"
    ]
  }
}