Files
eip4-platform/转换产物-attach/schema/aef00e46-5eb9-488b-8743-da0c8ff5ef81.json
zhengwr 8fe377b0c8 feat(blueprint): master-detail-v1 编译器分支 + PageBlueprintChild
PageBlueprint 加 RECIPE_MASTER_DETAIL 常量与可空 child 组件(14-arg,
保留 13-arg 兼容构造);新增 PageBlueprintChild record。
PageBlueprintCompiler.masterDetail 复用 maintenance 列表骨架,
新增/编辑表单内联 house-style input-table 子表(name=listColumn,
quickEdit 控件),编辑表单 initApi 走 _LOAD 回显主+子行。
validate 接受 master-detail 并要求 child 非空/childTable/listColumn
非空/fields 非空。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 15:16:30 +08:00

466 lines
12 KiB
JSON

{
"type" : "page",
"title" : "固定资产卡片添加页面",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "grid",
"columns" : [ {
"md" : 2,
"body" : [ {
"name" : "SELECT",
"label" : "SELECT",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/89d80a59-7711-4baf-b72e-70a73e3c9a62/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
} ]
}, {
"md" : 7,
"body" : [ {
"name" : "BATCHCREATENUM",
"label" : "批量生成数量",
"required" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1,
"min" : 1.0,
"value" : "1"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 2,
"body" : [ {
"name" : "ASSETSCARDNO",
"label" : "卡片编号",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 2,
"body" : [ {
"name" : "ASSETSNAME",
"label" : "资产名称",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 7,
"body" : [ {
"name" : "ASSETSSORT_ID",
"label" : "资产类别",
"required" : true,
"type" : "tree-select",
"clearable" : true,
"source" : "/api/template/97ea277b-3b6a-49e7-ba5c-edfa28cb1cc2/tree",
"searchable" : true,
"onlyLeaf" : true
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 2,
"body" : [ {
"name" : "ASSETSNO",
"label" : "资产编码",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 2,
"body" : [ {
"name" : "STANDARD",
"label" : "规格型号",
"type" : "input-text"
} ]
}, {
"md" : 7,
"body" : [ {
"name" : "INSTALLATIONSITE",
"label" : "安装地点",
"required" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 2,
"body" : [ {
"name" : "USESTATUS",
"label" : "使用状况",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/USE_STATUS",
"value" : "1"
} ]
}, {
"md" : 2,
"body" : [ {
"name" : "OA_FIXEDASSETS_LEDGERMANAGE_ADDMODE",
"label" : "增加方式",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/OA_FIXEDASSETS_LEDGERMANAGE_ADDMODE"
} ]
}, {
"md" : 7,
"body" : [ {
"name" : "DEPRECIATIONMETHOD",
"label" : "折旧方法",
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 2,
"body" : [ {
"name" : "DEPRECIATIONBEARDEPT",
"label" : "折旧承担部门",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/DEPRECIATIONMETHOD",
"value" : "0"
} ]
}, {
"md" : 2,
"body" : [ {
"name" : "MANAGEDEPARTID",
"label" : "管理部门",
"required" : true,
"type" : "tree-select",
"clearable" : true,
"source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree",
"searchable" : true,
"onlyLeaf" : true
} ]
}, {
"md" : 7,
"body" : [ {
"name" : "USEDEPARTID",
"label" : "使用部门",
"type" : "tree-select",
"clearable" : true,
"source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree",
"searchable" : true,
"onlyLeaf" : true
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 2,
"body" : [ {
"name" : "KEEPER",
"label" : "保管人",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"placeholder" : "请点击右侧的图标"
} ]
}, {
"md" : 2,
"body" : [ {
"name" : "STARTUSERDATE",
"label" : "开始使用日期",
"type" : "input-date",
"value" : "${now}"
} ]
}, {
"md" : 2,
"body" : [ {
"name" : "USERYEARLIMIT",
"label" : "使用月限(年)",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"min" : 0,
"max" : 999
} ]
}, {
"md" : 2,
"body" : [ {
"name" : "USERMONTHLIMIT",
"label" : "使用月限(月)",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"min" : 0,
"max" : 11
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 2,
"body" : [ {
"name" : "ALREADYPROVISIONMONTH",
"label" : "已计提月数",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"max" : 12
} ]
}, {
"md" : 2,
"body" : [ {
"name" : "TOTALWORK",
"label" : "工作总量",
"type" : "input-number",
"precision" : 2,
"min" : 0,
"max" : 9.9999999999E8
} ]
}, {
"md" : 7,
"body" : [ {
"name" : "CUMULATIVEWORKLOAD",
"label" : "累计工作量",
"type" : "input-number",
"precision" : 2,
"min" : 0,
"max" : 9.9999999999E8
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 2,
"body" : [ {
"name" : "WORKLOADUNIT",
"label" : "工作量单位",
"type" : "input-text"
} ]
}, {
"md" : 2,
"body" : [ {
"name" : "CURRENCYTYPE",
"label" : "币种",
"type" : "input-text"
} ]
}, {
"md" : 7,
"body" : [ {
"name" : "DEPRECIATIONEXCHANGERATE",
"label" : "折旧汇率",
"type" : "input-number",
"precision" : 2,
"max" : 99.99
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 2,
"body" : [ {
"name" : "ORIGINALCURRENCYVALUE",
"label" : "原币原值",
"type" : "input-number",
"precision" : 2,
"max" : 9.9999999999E8
} ]
}, {
"md" : 2,
"body" : [ {
"name" : "CURRENCYVALUE",
"label" : "本币原值",
"type" : "input-number",
"precision" : 2,
"max" : 9.9999999999E8
} ]
}, {
"md" : 7,
"body" : [ {
"name" : "CUMULATIVEDEPRECIATION",
"label" : "累计折旧",
"type" : "input-number",
"precision" : 2,
"max" : 9.9999999999E8
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 2,
"body" : [ {
"name" : "NETWORTH",
"label" : "净值",
"type" : "input-number",
"precision" : 2,
"max" : 9.9999999999E8
} ]
}, {
"md" : 2,
"body" : [ {
"name" : "REDUCTIONVALUEGETREADY",
"label" : "减值准备",
"type" : "input-number",
"precision" : 2,
"max" : 9.9999999999E8
} ]
}, {
"md" : 7,
"body" : [ {
"name" : "NETVALUE",
"label" : "净额",
"type" : "input-number",
"precision" : 2,
"max" : 9.9999999999E8
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 2,
"body" : [ {
"name" : "MONTHLYDEPRECIATIONRATE",
"label" : "月折旧率",
"type" : "input-number",
"precision" : 2,
"max" : 99.99
} ]
}, {
"md" : 2,
"body" : [ {
"name" : "MONTHLYDEPRECIATIONAMOUNT",
"label" : "月折旧额",
"type" : "input-number",
"precision" : 2,
"max" : 9.9999999999E8
} ]
}, {
"md" : 7,
"body" : [ {
"name" : "UNITDEPRECIATION",
"label" : "单位折旧",
"type" : "input-number",
"precision" : 2,
"max" : 9.9999999999E8
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 2,
"body" : [ {
"name" : "NETSALVAGERATE",
"label" : "净残值率%",
"type" : "input-number",
"precision" : 4,
"max" : 0.9999
} ]
}, {
"md" : 2,
"body" : [ {
"name" : "NETSALVAGEVALUE",
"label" : "净残值",
"type" : "input-number",
"precision" : 2,
"max" : 9.9999999999E8
} ]
}, {
"md" : 7,
"body" : [ {
"name" : "REGISTER_NAME",
"label" : "登记人",
"type" : "static",
"tpl" : "${REGISTER_NAME_DISPLAY__ ? REGISTER_NAME_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : REGISTER_NAME)}",
"value" : "${currentUser}"
} ]
} ]
}, {
"name" : "FIXEDASSETS_PURCHASEDETAILID",
"label" : "物资采购申请明细ID",
"hidden" : true,
"type" : "input-text"
}, {
"type" : "grid",
"columns" : [ {
"md" : 2,
"body" : [ {
"name" : "REGISTER_DATE",
"label" : "登记日期",
"required" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "REMARK",
"label" : "备注",
"type" : "textarea"
} ]
} ]
}, {
"name" : "ORGID",
"label" : "组织",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/1a998b23-371d-4ebb-911f-6465a56a6809/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"value" : "${orgId}",
"hidden" : true
}, {
"name" : "OA_FIXEDASSETS_LEDGERMANAGE_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
} ],
"actions" : [ ]
}
}