Files
eip4-platform/转换产物-attach/schema/38e8e3c0-e8e0-4f06-876c-fe7ffc37686d.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

355 lines
9.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"type" : "page",
"title" : "机械合同登记-需要评审编辑",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "grid",
"columns" : [ {
"md" : 3,
"body" : [ {
"name" : "CONTRACTNAME",
"label" : "合同名称",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "REVIEWID",
"label" : "合同评审",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/13fcdb5a-6dca-425e-a994-3c5d52787d5a/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "CONTRACTNUMBER",
"label" : "合同编号",
"required" : true,
"disabled" : true,
"type" : "input-text"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "A_PART",
"label" : "甲方",
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "CONTRACTCATEGORY",
"label" : "合同类别",
"required" : true,
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/CONTRACTCATEGORY"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "CONTRACTFORM",
"label" : "合同形式",
"required" : true,
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/CONTRACTFORM"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "CONTRACTTYPE",
"label" : "合同类型",
"required" : true,
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/MACH_CONTRACTTYPE"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "MACHINENAME",
"label" : "机械供应商",
"type" : "static",
"tpl" : "${MACHINENAME_DISPLAY__ ? MACHINENAME_DISPLAY__ : (UNITNAME ? UNITNAME : MACHINENAME)}"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "CONTACTPERSONID",
"label" : "联系人",
"type" : "select",
"clearable" : true,
"source" : "/api/picker/OA_CONTACTPERSONINFO/list?perPage=500"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "LXDH",
"label" : "联系电话",
"disabled" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "CONTRACTMONEY",
"label" : "合同价款",
"required" : true,
"type" : "input-number",
"precision" : 2,
"min" : 0.0
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "STARTTIME",
"label" : "开始日期",
"required" : true,
"type" : "input-date",
"value" : "${now}"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "ENDTIME",
"label" : "结束日期",
"required" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "EQUIPMENTCODE",
"label" : "设备编码",
"type" : "input-text"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "EQUIPMENTNAME",
"label" : "设备名称",
"type" : "input-text"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "EQUIPMENTNORMS",
"label" : "设备规格",
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "PROJECTID",
"label" : "工程名称",
"type" : "static",
"tpl" : "${PROJECTID_DISPLAY__ ? PROJECTID_DISPLAY__ : (PROJECTNAME ? PROJECTNAME : PROJECTID)}",
"value" : "${currentProject}"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "DEPART",
"label" : "(分)公司",
"required" : true,
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/picker/SYS_ORG/list?perPage=500"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "SIGNUPTIME",
"label" : "签约日期",
"required" : true,
"type" : "input-date"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "PUTONRECORD",
"label" : "是否备案",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "CREATEBY",
"label" : "登记人",
"type" : "static",
"tpl" : "${CREATEBY_DISPLAY__ ? CREATEBY_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : CREATEBY)}",
"value" : "${currentUser}"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "CREATETIME",
"label" : "登记日期",
"disabled" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "SEALCOUNT",
"label" : "合同份数",
"type" : "input-number",
"precision" : 0,
"step" : 1
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "CONTRACTCONTENT",
"label" : "合同内容",
"required" : true,
"type" : "textarea"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "AGREEDTERMS",
"label" : "合同约定付款条款",
"type" : "textarea"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "REMARK",
"label" : "备注",
"type" : "textarea"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "MACHINECONTRACTREGISTERID",
"label" : "机械合同登记表ID(外键)",
"type" : "input-table",
"id" : "eg-MACHINECONTRACTREGISTERID",
"addable" : false,
"removable" : false,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "RATEITEM",
"label" : "付款节点",
"quickEdit" : {
"name" : "RATEITEM",
"required" : true,
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/SUBCONTRACT_BASICSCONFIG"
}
}, {
"name" : "RATEVALUE",
"label" : "付款比例(%)",
"quickEdit" : {
"name" : "RATEVALUE",
"required" : true,
"type" : "input-number",
"precision" : 4,
"min" : 0.0,
"max" : 100.0
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "DOCUMENT",
"label" : "附件",
"required" : true,
"type" : "input-file",
"receiver" : "/api/file/upload?tableName=PM_MACHINECONTRACTREGISTER&businessKey=${PM_MACHINECONTRACTREGISTER_ID}",
"downloadUrl" : "/api/file/${id}",
"multiple" : true,
"staticOn" : "${__readonly}",
"joinValues" : false,
"extractValue" : false
} ]
} ]
}, {
"name" : "PM_MACHINECONTRACTREGISTER_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "CONTRACTSTATUS",
"label" : "合同状态",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/CONTRACTSTATUS",
"value" : "1",
"hidden" : true
} ],
"actions" : [ ]
}
}