Files
eip4-platform/转换产物-attach/schema/15e33b61-d6f9-4e97-b4ef-583c724e1ca6.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

398 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" : 4,
"body" : [ {
"name" : "PM_PROJECTID",
"label" : "工程名称",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/66e57e6d-0cbb-40cf-8b84-c512345734b7/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"value" : "${currentProject}"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "VIEW_PM_CONTRACT_ID",
"label" : "合同名称",
"type" : "static",
"tpl" : "${VIEW_PM_CONTRACT_ID_DISPLAY__ ? VIEW_PM_CONTRACT_ID_DISPLAY__ : (CONTRACTNAME ? CONTRACTNAME : VIEW_PM_CONTRACT_ID)}"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "WORKTYPE",
"label" : "工种",
"required" : true,
"disabled" : true,
"type" : "select",
"clearable" : true
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "PARTB",
"label" : "用款单位",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/94e2dda5-c733-46c9-95ea-097688b8736d/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "ACCOUNTNUMBER",
"label" : "银行账号",
"type" : "select",
"clearable" : true,
"source" : "/api/picker/OA_BANKACCOUNTINFO/list?perPage=500"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "OPENINGBANK",
"label" : "开户银行",
"disabled" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "PAYEEUNITNAME",
"label" : "用款单位全称",
"disabled" : true,
"type" : "input-text"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "PAYMETHOD",
"label" : "支付方式",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PROJECTFUNDS_PAYMETHOD",
"value" : "1"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "SUBTYPE",
"label" : "承包方式",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/bycontracttype"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "AMOUNT",
"label" : "发放金额(元)",
"required" : true,
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
}, {
"md" : 8,
"body" : [ {
"name" : "CAPITAL",
"label" : "大写",
"disabled" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "ISSUEDATE",
"label" : "发放日期",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "REGISTRANT",
"label" : "登记人",
"type" : "static",
"tpl" : "${REGISTRANT_DISPLAY__ ? REGISTRANT_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : REGISTRANT)}",
"value" : "${currentUser}"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "REGISTERDATE",
"label" : "登记日期",
"required" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "REMARK",
"label" : "备注",
"type" : "textarea"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"type" : "flex",
"justify" : "flex-start",
"alignItems" : "center",
"style" : {
"paddingLeft" : "120px",
"marginBottom" : "4px"
},
"items" : [ {
"name" : "SELECT",
"label" : "添加",
"type" : "button",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"id" : "egadddlgSELECT",
"title" : "",
"size" : "lg",
"body" : {
"type" : "crud",
"api" : "/api/picker/9a1f8f03-0f20-4894-bb0f-60ac2e9b4386/list",
"mode" : "table",
"syncLocation" : false,
"selectable" : true,
"multiple" : true,
"keepItemSelectionOnPageChange" : true,
"primaryField" : "_id",
"labelField" : "_label",
"headerToolbar" : [ {
"type" : "search-box",
"placeholder" : "输入关键字搜索",
"name" : "q"
} ],
"footerToolbar" : [ "pagination" ],
"onEvent" : {
"selectedChange" : {
"actions" : [ {
"actionType" : "setValue",
"componentId" : "egadddlgSELECT",
"args" : {
"value" : {
"__egpicked" : "${event.data.selectedItems}"
}
}
} ]
}
}
},
"actions" : [ {
"type" : "button",
"label" : "取消",
"actionType" : "close"
}, {
"type" : "button",
"label" : "确定",
"level" : "primary",
"onEvent" : {
"click" : {
"actions" : [ {
"actionType" : "addItem",
"componentId" : "eg-RECORDDETAILS",
"args" : {
"item" : "${ARRAYMAP(__egpicked, item => ({NAME: item.NAME, IDNUMBER: item.IDNUMBER, MATERIALID: item.PM_MATERIALREPOSITORY_ID, MATERIALNAME: item.MATERIALNAME, SPECIFICATIONS: item.SPECIFICATIONS, UNIT: item.UNIT, MATERIALCODE: item.MATERIALCODE}))}"
}
}, {
"actionType" : "closeDialog"
} ]
}
}
} ]
},
"hiddenOn" : "${__readonly}"
} ]
}, {
"name" : "RECORDDETAILS",
"label" : "记录明细",
"required" : true,
"type" : "input-table",
"id" : "eg-RECORDDETAILS",
"addable" : false,
"removable" : true,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "NAME",
"label" : "姓名",
"quickEdit" : {
"name" : "NAME",
"required" : true,
"disabled" : true,
"type" : "input-text"
}
}, {
"name" : "IDNUMBER",
"label" : "身份证号",
"quickEdit" : {
"name" : "IDNUMBER",
"required" : true,
"disabled" : true,
"type" : "input-text"
}
}, {
"name" : "SINGLEAMOUNT",
"label" : "生活费/工资(元)",
"quickEdit" : {
"name" : "SINGLEAMOUNT",
"required" : true,
"type" : "input-number",
"precision" : 2,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "15e33b61-d6f9-4e97-b4ef-583c724e1ca6",
"editgridField" : "RECORDDETAILS",
"scriptKey" : "c8810845-f4c6-4992-b9af-37cd0aaaa409",
"changedField" : "SINGLEAMOUNT",
"row" : "${__rendererData}",
"parent" : {
"RECORDDETAILS" : "${__rendererData.RECORDDETAILS || RECORDDETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-RECORDDETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "BANKOFDEPOSIT",
"label" : "开户行",
"quickEdit" : {
"name" : "BANKOFDEPOSIT",
"required" : true,
"type" : "input-text"
}
}, {
"name" : "ACCOUNTNUMBER",
"label" : "卡号",
"quickEdit" : {
"name" : "ACCOUNTNUMBER",
"required" : true,
"type" : "input-text"
}
}, {
"name" : "SINGLEREMARK",
"label" : "备注",
"quickEdit" : {
"name" : "SINGLEREMARK",
"type" : "input-text"
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "DOCUMENT",
"label" : "附件",
"required" : true,
"type" : "input-file",
"receiver" : "/api/file/upload?tableName=PM_WAGERECORDOFWORKERS&businessKey=${PM_WAGERECORDOFWORKERS_ID}",
"downloadUrl" : "/api/file/${id}",
"multiple" : true,
"staticOn" : "${__readonly}",
"joinValues" : false,
"extractValue" : false
} ]
} ]
}, {
"name" : "PM_WAGERECORDOFWORKERS_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"type" : "group",
"body" : [ ]
} ],
"actions" : [ ]
}
}