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>
659 lines
20 KiB
JSON
659 lines
20 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" : "工程名称",
|
|
"type" : "static",
|
|
"tpl" : "${PROJECTID_DISPLAY__ ? PROJECTID_DISPLAY__ : (PROJECTNAME ? PROJECTNAME : PROJECTID)}",
|
|
"value" : "${currentProject}"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "ACTUALSTARTDATE",
|
|
"label" : "开工日期",
|
|
"disabled" : true,
|
|
"type" : "input-date"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "ACTUALENDDATE",
|
|
"label" : "竣工日期",
|
|
"disabled" : true,
|
|
"type" : "input-date"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "PUTRECORDDATE",
|
|
"label" : "竣工备案日期",
|
|
"disabled" : true,
|
|
"type" : "input-date"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 8,
|
|
"body" : [ {
|
|
"name" : "USERS",
|
|
"label" : "人员",
|
|
"type" : "static",
|
|
"tpl" : "${USERS_DISPLAY__ ? USERS_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : USERS)}"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "DETAILS1",
|
|
"label" : "质量及相关创优奖罚情况",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-table",
|
|
"id" : "eg-DETAILS1",
|
|
"addable" : true,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "REWARDNAME",
|
|
"label" : "奖项名称",
|
|
"quickEdit" : {
|
|
"name" : "REWARDNAME",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "FILENUM",
|
|
"label" : "文件号",
|
|
"quickEdit" : {
|
|
"name" : "FILENUM",
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "APPROVEDATE",
|
|
"label" : "批复日期",
|
|
"quickEdit" : {
|
|
"name" : "APPROVEDATE",
|
|
"type" : "input-date"
|
|
}
|
|
}, {
|
|
"name" : "MONEY",
|
|
"label" : "奖罚金额(元)",
|
|
"quickEdit" : {
|
|
"name" : "MONEY",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2,
|
|
"min" : -9.999999999E9,
|
|
"max" : 9.999999999E9,
|
|
"onEvent" : {
|
|
"change" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"outputVar" : "egRow",
|
|
"args" : {
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-editgrid-row",
|
|
"data" : {
|
|
"templateId" : "f5c6a5a1-0a5a-4e19-b918-afbf2f6d6bde",
|
|
"editgridField" : "DETAILS1",
|
|
"scriptKey" : "dd24c181-fa50-4979-b3c6-37ecb3b2f09e",
|
|
"changedField" : "MONEY",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"DETAILS1" : "${__rendererData.DETAILS1 || DETAILS1}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-DETAILS1",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "SIGNUSER1",
|
|
"label" : "奖罚单签发人1",
|
|
"type" : "static",
|
|
"tpl" : "${SIGNUSER1_DISPLAY__ ? SIGNUSER1_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : SIGNUSER1)}",
|
|
"value" : "${currentUser}"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "SIGNTIME1",
|
|
"label" : "签发日期1",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-date",
|
|
"value" : "${now}"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "DETAILS2",
|
|
"label" : "安全方面奖罚情况",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-table",
|
|
"id" : "eg-DETAILS2",
|
|
"addable" : true,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "REWARDNAME",
|
|
"label" : "奖项名称",
|
|
"quickEdit" : {
|
|
"name" : "REWARDNAME",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "FILENUM",
|
|
"label" : "文件号",
|
|
"quickEdit" : {
|
|
"name" : "FILENUM",
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "APPROVEDATE",
|
|
"label" : "批复日期",
|
|
"quickEdit" : {
|
|
"name" : "APPROVEDATE",
|
|
"type" : "input-date"
|
|
}
|
|
}, {
|
|
"name" : "MONEY",
|
|
"label" : "奖罚金额(元)",
|
|
"quickEdit" : {
|
|
"name" : "MONEY",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2,
|
|
"min" : -9.999999999E9,
|
|
"max" : 9.999999999E9,
|
|
"onEvent" : {
|
|
"change" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"outputVar" : "egRow",
|
|
"args" : {
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-editgrid-row",
|
|
"data" : {
|
|
"templateId" : "f5c6a5a1-0a5a-4e19-b918-afbf2f6d6bde",
|
|
"editgridField" : "DETAILS2",
|
|
"scriptKey" : "dd24c181-fa50-4979-b3c6-37ecb3b2f09e",
|
|
"changedField" : "MONEY",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"DETAILS2" : "${__rendererData.DETAILS2 || DETAILS2}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-DETAILS2",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "SIGNUSER2",
|
|
"label" : "奖罚单签发人2",
|
|
"type" : "static",
|
|
"tpl" : "${SIGNUSER2_DISPLAY__ ? SIGNUSER2_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : SIGNUSER2)}",
|
|
"value" : "${currentUser}"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "SIGNTIME2",
|
|
"label" : "签发日期2",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-date",
|
|
"value" : "${now}"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "DETAILS3",
|
|
"label" : "劳务方面奖罚情况",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-table",
|
|
"id" : "eg-DETAILS3",
|
|
"addable" : true,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "REWARDNAME",
|
|
"label" : "奖项名称",
|
|
"quickEdit" : {
|
|
"name" : "REWARDNAME",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "FILENUM",
|
|
"label" : "文件号",
|
|
"quickEdit" : {
|
|
"name" : "FILENUM",
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "APPROVEDATE",
|
|
"label" : "批复日期",
|
|
"quickEdit" : {
|
|
"name" : "APPROVEDATE",
|
|
"type" : "input-date"
|
|
}
|
|
}, {
|
|
"name" : "MONEY",
|
|
"label" : "奖罚金额(元)",
|
|
"quickEdit" : {
|
|
"name" : "MONEY",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2,
|
|
"min" : -9.999999999E9,
|
|
"max" : 9.999999999E9,
|
|
"onEvent" : {
|
|
"change" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"outputVar" : "egRow",
|
|
"args" : {
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-editgrid-row",
|
|
"data" : {
|
|
"templateId" : "f5c6a5a1-0a5a-4e19-b918-afbf2f6d6bde",
|
|
"editgridField" : "DETAILS3",
|
|
"scriptKey" : "dd24c181-fa50-4979-b3c6-37ecb3b2f09e",
|
|
"changedField" : "MONEY",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"DETAILS3" : "${__rendererData.DETAILS3 || DETAILS3}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-DETAILS3",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "SIGNUSER3",
|
|
"label" : "奖罚单签发人3",
|
|
"type" : "static",
|
|
"tpl" : "${SIGNUSER3_DISPLAY__ ? SIGNUSER3_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : SIGNUSER3)}",
|
|
"value" : "${currentUser}"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "SIGNTIME3",
|
|
"label" : "签发日期3",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-date",
|
|
"value" : "${now}"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "DETAILS4",
|
|
"label" : "合同履约情况",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-table",
|
|
"id" : "eg-DETAILS4",
|
|
"addable" : true,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "REWARDNAME",
|
|
"label" : "奖项名称",
|
|
"quickEdit" : {
|
|
"name" : "REWARDNAME",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "FILENUM",
|
|
"label" : "文件号",
|
|
"quickEdit" : {
|
|
"name" : "FILENUM",
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "APPROVEDATE",
|
|
"label" : "批复日期",
|
|
"quickEdit" : {
|
|
"name" : "APPROVEDATE",
|
|
"type" : "input-date"
|
|
}
|
|
}, {
|
|
"name" : "MONEY",
|
|
"label" : "奖罚金额(元)",
|
|
"quickEdit" : {
|
|
"name" : "MONEY",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2,
|
|
"min" : -9.999999999E9,
|
|
"max" : 9.999999999E9,
|
|
"onEvent" : {
|
|
"change" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"outputVar" : "egRow",
|
|
"args" : {
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-editgrid-row",
|
|
"data" : {
|
|
"templateId" : "f5c6a5a1-0a5a-4e19-b918-afbf2f6d6bde",
|
|
"editgridField" : "DETAILS4",
|
|
"scriptKey" : "dd24c181-fa50-4979-b3c6-37ecb3b2f09e",
|
|
"changedField" : "MONEY",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"DETAILS4" : "${__rendererData.DETAILS4 || DETAILS4}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-DETAILS4",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "SIGNUSER4",
|
|
"label" : "奖罚单签发人4",
|
|
"type" : "static",
|
|
"tpl" : "${SIGNUSER4_DISPLAY__ ? SIGNUSER4_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : SIGNUSER4)}",
|
|
"value" : "${currentUser}"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "SIGNTIME4",
|
|
"label" : "签发日期4",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-date",
|
|
"value" : "${now}"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "DETAILS5",
|
|
"label" : "其他方面情况",
|
|
"required" : true,
|
|
"type" : "input-table",
|
|
"id" : "eg-DETAILS5",
|
|
"addable" : true,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "REWARDNAME",
|
|
"label" : "奖项名称",
|
|
"quickEdit" : {
|
|
"name" : "REWARDNAME",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "FILENUM",
|
|
"label" : "文件号",
|
|
"quickEdit" : {
|
|
"name" : "FILENUM",
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "APPROVEDATE",
|
|
"label" : "批复日期",
|
|
"quickEdit" : {
|
|
"name" : "APPROVEDATE",
|
|
"type" : "input-date"
|
|
}
|
|
}, {
|
|
"name" : "MONEY",
|
|
"label" : "奖罚金额(元)",
|
|
"quickEdit" : {
|
|
"name" : "MONEY",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2,
|
|
"min" : -9.999999999E9,
|
|
"max" : 9.999999999E9,
|
|
"onEvent" : {
|
|
"change" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"outputVar" : "egRow",
|
|
"args" : {
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-editgrid-row",
|
|
"data" : {
|
|
"templateId" : "f5c6a5a1-0a5a-4e19-b918-afbf2f6d6bde",
|
|
"editgridField" : "DETAILS5",
|
|
"scriptKey" : "dd24c181-fa50-1115-b3c6-37ecb3b2f09e",
|
|
"changedField" : "MONEY",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"DETAILS5" : "${__rendererData.DETAILS5 || DETAILS5}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-DETAILS5",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "SIGNUSER5",
|
|
"label" : "奖罚单签发人5",
|
|
"type" : "static",
|
|
"tpl" : "${SIGNUSER5_DISPLAY__ ? SIGNUSER5_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : SIGNUSER5)}",
|
|
"value" : "${currentUser}"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "SIGNTIME5",
|
|
"label" : "签发日期5",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-date",
|
|
"value" : "${now}"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "MONEY",
|
|
"label" : "金额",
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 8,
|
|
"body" : [ {
|
|
"name" : "CNMONEY",
|
|
"label" : "中文金额",
|
|
"disabled" : true,
|
|
"type" : "input-text"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "DOCUMENT",
|
|
"label" : "附件",
|
|
"disabled" : true,
|
|
"type" : "input-file",
|
|
"receiver" : "/api/file/upload?tableName=PM_REWARDSANDPUNISHMENTS&businessKey=${PM_REWARDSANDPUNISHMENTS_ID}",
|
|
"downloadUrl" : "/api/file/${id}",
|
|
"multiple" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"joinValues" : false,
|
|
"extractValue" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"name" : "PM_REWARDSANDPUNISHMENTS_ID",
|
|
"label" : "主键",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
} ],
|
|
"actions" : [ ]
|
|
}
|
|
} |