Files
eip4-platform/转换产物-attach/schema/94f6a5b2-1cc0-4ef3-9553-560204d68514.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

363 lines
9.5 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" : "PROJECTID",
"label" : "工程名称",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/07eef963-fd17-42a5-997c-219f0ec18cff/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" : "CONTRACTID",
"label" : "合同名称",
"type" : "static",
"tpl" : "${CONTRACTID_DISPLAY__ ? CONTRACTID_DISPLAY__ : (CONTRACTNAME ? CONTRACTNAME : CONTRACTID)}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "PAYMETHOD",
"label" : "支付方式",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PROJECTFUNDS_PAYMETHOD",
"value" : "1"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "PAYMONEYTYPE",
"label" : "收款类型",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_RECEIVABLES_PAYMONEYTYPE",
"value" : "1"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "PREPAY",
"label" : "按合同约定预付款(元)",
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "ADVANCEPRICE",
"label" : "本次预付款收款金额(元)",
"type" : "input-number",
"precision" : 2,
"min" : -9.9999999999E8,
"max" : 9.9999999999E8
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "TOTALADVANCEPRICE",
"label" : "累计已收预付款(元)",
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "RECEIVABLESPRICE",
"label" : "本次进度款收款金额(元)",
"type" : "input-number",
"precision" : 2,
"min" : -9.9999999999E8,
"max" : 9.9999999999E8
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "TOTALRECEIVABLESPRICE",
"label" : "累计已收进度款金额(元)",
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "FORAPRICE",
"label" : "本次甲供款收款金额(元)",
"type" : "input-number",
"precision" : 2,
"min" : -9.9999999999E8,
"max" : 9.9999999999E8
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "TOTALFORAPRICE",
"label" : "累计已收甲供款金额(元)",
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "PROJECTFUND",
"label" : "本次工程款收款金额(元)",
"required" : true,
"validationErrors" : {
"required" : "预付款、进度款、甲供款至少需要填写一项!"
},
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "TOTALPROJECTFUND",
"label" : "累计已收工程款金额(元)",
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "PAYMONEY",
"label" : "本次垫资金额(元)",
"type" : "input-number",
"precision" : 2,
"min" : -9.999999999E9,
"max" : 9.999999999E9
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "SUMPAYMONEY",
"label" : "累计垫资金额",
"disabled" : true,
"type" : "input-number",
"precision" : 2,
"min" : -9.999999999E9,
"max" : 9.999999999E9
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "CUTPAYMONEY",
"label" : "本次扣款金额(元)",
"type" : "input-number",
"precision" : 2,
"min" : -9.999999999E9,
"max" : 9.999999999E9
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "SUMCUTPAYMONEY",
"label" : "累计扣款金额",
"disabled" : true,
"type" : "input-number",
"precision" : 2,
"min" : -9.999999999E9,
"max" : 9.999999999E9
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "SPLITMONEY",
"label" : "本次拆借金额(元)",
"type" : "input-number",
"precision" : 2,
"min" : 0.0,
"max" : 9.999999999E9
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "TURNTOPROJECTID",
"label" : "转入项目名称",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/07eef963-fd17-42a5-997c-219f0ec18cff/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "SUMSPLITMONEY",
"label" : "累计拆借金额(元)",
"disabled" : true,
"type" : "input-number",
"precision" : 2,
"min" : -9.999999999E9,
"max" : 9.999999999E9
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "REGISTERDATE",
"label" : "登记日期",
"required" : true,
"type" : "input-date",
"value" : "${now}"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "OPERATOR",
"label" : "登记人",
"type" : "static",
"tpl" : "${OPERATOR_DISPLAY__ ? OPERATOR_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : OPERATOR)}",
"value" : "${currentUser}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "REMARK",
"label" : "备注",
"type" : "textarea"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "DOCUMENT",
"label" : "附件",
"required" : true,
"type" : "input-file",
"receiver" : "/api/file/upload?tableName=PM_RECEIVABLES&businessKey=${PM_RECEIVABLES_ID}",
"downloadUrl" : "/api/file/${id}",
"multiple" : true,
"staticOn" : "${__readonly}",
"joinValues" : false,
"extractValue" : false
} ]
} ]
}, {
"name" : "RECORDTOTALRECEIVABLESPRICE",
"label" : "RECORDTOTALRECEIVABLESPRICE",
"disabled" : true,
"hidden" : true,
"type" : "input-number",
"precision" : 2
}, {
"name" : "RECORDTOTALFORAPRICE",
"label" : "RECORDTOTALFORAPRICE",
"disabled" : true,
"hidden" : true,
"type" : "input-number",
"precision" : 2
}, {
"name" : "RECORDTOTALPROJECTFUND",
"label" : "RECORDTOTALPROJECTFUND",
"disabled" : true,
"hidden" : true,
"type" : "input-number",
"precision" : 2
}, {
"name" : "RECORDTOTALADVANCEPRICE",
"label" : "RECORDTOTALADVANCEPRICE",
"disabled" : true,
"hidden" : true,
"type" : "input-number",
"precision" : 2
}, {
"name" : "PM_RECEIVABLES_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "ISAFFIRMDATE",
"label" : "是否已确认",
"required" : true,
"hidden" : true,
"type" : "checkbox",
"value" : "0"
} ],
"actions" : [ ]
}
}