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>
177 lines
5.1 KiB
JSON
177 lines
5.1 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "变更查看界面",
|
|
"body" : {
|
|
"type" : "form",
|
|
"id" : "eip4-edit-form",
|
|
"title" : "",
|
|
"mode" : "horizontal",
|
|
"horizontal" : {
|
|
"leftFixed" : 120
|
|
},
|
|
"body" : [ {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 6,
|
|
"body" : [ {
|
|
"name" : "PROJECTID",
|
|
"label" : "工程名称",
|
|
"type" : "static",
|
|
"tpl" : "${PROJECTID_DISPLAY__ ? PROJECTID_DISPLAY__ : (PROJECTNAME ? PROJECTNAME : PROJECTID)}"
|
|
} ]
|
|
}, {
|
|
"md" : 6,
|
|
"body" : [ {
|
|
"name" : "BUDGETUNITID",
|
|
"label" : "施工预算单元",
|
|
"type" : "static",
|
|
"tpl" : "${BUDGETUNITID_DISPLAY__ ? BUDGETUNITID_DISPLAY__ : (BUDGETUNITNAME ? BUDGETUNITNAME : BUDGETUNITID)}"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 6,
|
|
"body" : [ {
|
|
"name" : "BUDGETLISTID",
|
|
"label" : "施工预算清单",
|
|
"type" : "static",
|
|
"tpl" : "${BUDGETLISTID_DISPLAY__ ? BUDGETLISTID_DISPLAY__ : (LISTNAME ? LISTNAME : BUDGETLISTID)}"
|
|
} ]
|
|
}, {
|
|
"md" : 6,
|
|
"body" : [ {
|
|
"name" : "CHANGETYPE",
|
|
"label" : "变更类型",
|
|
"disabled" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_CONSTRUCTCHANGE_TYPE"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 6,
|
|
"body" : [ {
|
|
"name" : "CHANGEQUANTITY",
|
|
"label" : "清单变更工程量",
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "VISALISTS",
|
|
"label" : "签证单",
|
|
"type" : "static",
|
|
"tpl" : "${VISALISTS_DISPLAY__ ? VISALISTS_DISPLAY__ : (VISANODISPLAYNAME ? VISANODISPLAYNAME : VISALISTS)}"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"name" : "PM_CONSTRUCTCHANGE_ID",
|
|
"label" : "主键",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "CHANGEDETAILS",
|
|
"label" : "变更明细",
|
|
"disabled" : true,
|
|
"type" : "input-table",
|
|
"id" : "eg-CHANGEDETAILS",
|
|
"addable" : true,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "QUOTANO",
|
|
"label" : "定额编码",
|
|
"quickEdit" : {
|
|
"name" : "QUOTANO",
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "QUOTACONTENT",
|
|
"label" : "含量",
|
|
"quickEdit" : {
|
|
"name" : "QUOTACONTENT",
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
}
|
|
}, {
|
|
"name" : "CBUDGETQUOTAID",
|
|
"label" : "定额名称",
|
|
"quickEdit" : {
|
|
"name" : "CBUDGETQUOTAID",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/1d36ab80-b430-4294-b7f3-c6aab3efa625/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" : "5b6dc78d-5114-4a70-9879-636fb19ce20c",
|
|
"editgridField" : "CHANGEDETAILS",
|
|
"scriptKey" : "70e2dd4f-e200-40b4-bae6-aabe864c4f39",
|
|
"changedField" : "CBUDGETQUOTAID",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"CHANGEDETAILS" : "${__rendererData.CHANGEDETAILS || CHANGEDETAILS}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-CHANGEDETAILS",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"name" : "CHANGEQUANTITY",
|
|
"label" : "变更工程量",
|
|
"quickEdit" : {
|
|
"name" : "CHANGEQUANTITY",
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
}
|
|
} ],
|
|
"needConfirm" : false,
|
|
"hidden" : true
|
|
} ],
|
|
"actions" : [ ]
|
|
}
|
|
} |