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>
393 lines
12 KiB
JSON
393 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" : 8,
|
|
"body" : [ {
|
|
"name" : "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" ]
|
|
}
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "FILIALE",
|
|
"label" : "所属(分)公司",
|
|
"type" : "static",
|
|
"tpl" : "${FILIALE_DISPLAY__ ? FILIALE_DISPLAY__ : (NAME ? NAME : FILIALE)}"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "ACTUALSTARTDATE",
|
|
"label" : "计划开工日期",
|
|
"disabled" : true,
|
|
"type" : "input-date"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "ACTUALENDDATE",
|
|
"label" : "计划竣工日期",
|
|
"disabled" : true,
|
|
"type" : "input-date"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "CONTRACTPROJECTNUM",
|
|
"label" : "承包项目数",
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 0
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "CONTRACTUNITNUM",
|
|
"label" : "分包单位数",
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 0
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "QUANTITYNUM",
|
|
"label" : "已备案数",
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 0
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "UNQUANTITYNUM",
|
|
"label" : "未备案数",
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 0
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "DETAILS",
|
|
"label" : "承包内容明细子表",
|
|
"required" : true,
|
|
"type" : "input-table",
|
|
"id" : "eg-DETAILS",
|
|
"addable" : true,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "CONTENT",
|
|
"label" : "承包范围",
|
|
"quickEdit" : {
|
|
"name" : "CONTENT",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "CONTRACTMODE",
|
|
"label" : "承包类别",
|
|
"quickEdit" : {
|
|
"name" : "CONTRACTMODE",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_PROJECTSUBCONTRACT_CONTRACTMODE",
|
|
"onEvent" : {
|
|
"change" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"outputVar" : "egRow",
|
|
"args" : {
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-editgrid-row",
|
|
"data" : {
|
|
"templateId" : "54d2eb6c-dbcf-403d-a511-07056ee4eb47",
|
|
"editgridField" : "DETAILS",
|
|
"scriptKey" : "eca88a71-4641-4c0e-9681-ff12c736528e",
|
|
"changedField" : "CONTRACTMODE",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"DETAILS" : "${__rendererData.DETAILS || DETAILS}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-DETAILS",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"name" : "UNITNAME",
|
|
"label" : "分包单位名称",
|
|
"quickEdit" : {
|
|
"name" : "UNITNAME",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "SELECT",
|
|
"label" : "SELECT",
|
|
"quickEdit" : {
|
|
"name" : "SELECT",
|
|
"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" ]
|
|
},
|
|
"onEvent" : {
|
|
"change" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"outputVar" : "egRow",
|
|
"args" : {
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-editgrid-row",
|
|
"data" : {
|
|
"templateId" : "54d2eb6c-dbcf-403d-a511-07056ee4eb47",
|
|
"editgridField" : "DETAILS",
|
|
"scriptKey" : "3b070ecf-8c64-4538-bb4e-6571e91b11dc",
|
|
"changedField" : "SELECT",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"DETAILS" : "${__rendererData.DETAILS || DETAILS}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-DETAILS",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"name" : "CONTRACTPERSON",
|
|
"label" : "合同负责人",
|
|
"quickEdit" : {
|
|
"name" : "CONTRACTPERSON",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "CONTRACTPHONE",
|
|
"label" : "合同联系方式",
|
|
"quickEdit" : {
|
|
"name" : "CONTRACTPHONE",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "ONSITEPERSON",
|
|
"label" : "现场负责人",
|
|
"quickEdit" : {
|
|
"name" : "ONSITEPERSON",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "ONSITEPHONE",
|
|
"label" : "现场联系方式",
|
|
"quickEdit" : {
|
|
"name" : "ONSITEPHONE",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "LOCKSTATE",
|
|
"label" : "是否备案",
|
|
"quickEdit" : {
|
|
"name" : "LOCKSTATE",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO",
|
|
"value" : "0",
|
|
"onEvent" : {
|
|
"change" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"outputVar" : "egRow",
|
|
"args" : {
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-editgrid-row",
|
|
"data" : {
|
|
"templateId" : "54d2eb6c-dbcf-403d-a511-07056ee4eb47",
|
|
"editgridField" : "DETAILS",
|
|
"scriptKey" : "eca88a71-4641-4c0e-9681-ff12c736528e",
|
|
"changedField" : "LOCKSTATE",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"DETAILS" : "${__rendererData.DETAILS || DETAILS}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-DETAILS",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"name" : "REMARK",
|
|
"label" : "备注",
|
|
"quickEdit" : {
|
|
"name" : "REMARK",
|
|
"type" : "input-text"
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "REMARK",
|
|
"label" : "备注",
|
|
"type" : "textarea"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "DOCUMENT",
|
|
"label" : "附件",
|
|
"type" : "input-file",
|
|
"receiver" : "/api/file/upload?tableName=PM_PROJECTSUBCONTRACT&businessKey=${PM_PROJECTSUBCONTRACT_ID}",
|
|
"downloadUrl" : "/api/file/${id}",
|
|
"multiple" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"joinValues" : false,
|
|
"extractValue" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "REGISTER",
|
|
"label" : "登记人",
|
|
"type" : "static",
|
|
"tpl" : "${REGISTER_DISPLAY__ ? REGISTER_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : REGISTER)}",
|
|
"value" : "${currentUser}"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "REGISTERDATE",
|
|
"label" : "登记日期",
|
|
"disabled" : true,
|
|
"type" : "input-date",
|
|
"value" : "${now}"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"name" : "PM_PROJECTSUBCONTRACT_ID",
|
|
"label" : "主键",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "CONFIRMTYPE",
|
|
"label" : "确认状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_PROJECTSUBCONTRACT_CONFIRMTYPE",
|
|
"value" : "1",
|
|
"hidden" : true
|
|
} ],
|
|
"actions" : [ ]
|
|
}
|
|
} |