Files
eip4-platform/转换产物-attach/schema/e0bf8428-d24d-44f0-81cc-dba126bb38ea.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

550 lines
16 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" : "CONTRACTNUMBER",
"label" : "合同编号",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "CONTRACTLEADER",
"label" : "合同负责人",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "CONTACTNUMBER",
"label" : "联系电话",
"required" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "CONTRACTNAME",
"label" : "合同名称",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "FIRSTPARTY",
"label" : "甲方",
"type" : "input-text"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "CREATEBY",
"label" : "申请人",
"type" : "static",
"tpl" : "${CREATEBY_DISPLAY__ ? CREATEBY_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : CREATEBY)}",
"value" : "${currentUser}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "CONTRACTCATEGORY",
"label" : "合同类别",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/CONTRACTCATEGORY"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "CONTRACTFORM",
"label" : "合同形式",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/CONTRACTFORM"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "CONTRACTTYPE",
"label" : "合同类型",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/MATERIALCONTRACTTYPE"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "MATERIALNAME",
"label" : "物资供应商",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/8fb3587d-fbdd-4f24-8976-bb85c10c89c3/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" : "OA_CONTACTPERSONINFO_ID",
"label" : "联系人",
"type" : "select",
"clearable" : true,
"source" : "/api/picker/OA_CONTACTPERSONINFO/list?perPage=500"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "PHONE",
"label" : "联系电话",
"disabled" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "CONTRACTMONEY",
"label" : "合同价款(元)",
"required" : true,
"type" : "input-number",
"precision" : 2,
"min" : 0.0,
"max" : 9.999999999E9
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "STARTDATE",
"label" : "开始日期",
"required" : true,
"type" : "input-date",
"value" : "${now}"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "ENDDATE",
"label" : "结束日期",
"required" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "PM_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" : "TYPE",
"label" : "工程类型",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_PROJECT_TYPE"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "ORGID",
"label" : "(分)公司",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/picker/SYS_ORG/list?perPage=500"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "CREATETIME",
"label" : "申请日期",
"disabled" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"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" : "REMARKS",
"label" : "备注",
"type" : "textarea"
} ]
} ]
}, {
"name" : "BUTTON",
"label" : "计算合同价款",
"hidden" : true,
"type" : "input-text"
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"type" : "flex",
"justify" : "flex-start",
"alignItems" : "center",
"style" : {
"paddingLeft" : "120px",
"marginBottom" : "4px"
},
"items" : [ {
"name" : "SELECT",
"label" : "添加",
"type" : "button",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"id" : "egadddlgSELECT",
"title" : "",
"size" : "lg",
"body" : {
"type" : "crud",
"api" : "/api/picker/28807c26-61fa-467e-88fa-d797fb8b580d/list",
"mode" : "table",
"syncLocation" : false,
"selectable" : true,
"multiple" : true,
"keepItemSelectionOnPageChange" : true,
"primaryField" : "_id",
"labelField" : "_label",
"headerToolbar" : [ {
"type" : "search-box",
"placeholder" : "输入关键字搜索",
"name" : "q"
} ],
"footerToolbar" : [ "pagination" ],
"onEvent" : {
"selectedChange" : {
"actions" : [ {
"actionType" : "setValue",
"componentId" : "egadddlgSELECT",
"args" : {
"value" : {
"__egpicked" : "${event.data.selectedItems}"
}
}
} ]
}
}
},
"actions" : [ {
"type" : "button",
"label" : "取消",
"actionType" : "close"
}, {
"type" : "button",
"label" : "确定",
"level" : "primary",
"onEvent" : {
"click" : {
"actions" : [ {
"actionType" : "addItem",
"componentId" : "eg-MATERIALDETAILS",
"args" : {
"item" : "${ARRAYMAP(__egpicked, item => ({MATERIALREPOSITORY: item.PM_MATERIALREPOSITORY_ID, SPECIFICATIONS: item.SPECIFICATIONS, UNITID: item.UNIT}))}"
}
}, {
"actionType" : "closeDialog"
} ]
}
}
} ]
},
"hiddenOn" : "${__readonly}"
} ]
}, {
"name" : "MATERIALDETAILS",
"label" : "物资名称",
"type" : "input-table",
"id" : "eg-MATERIALDETAILS",
"addable" : false,
"removable" : true,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "MATERIALREPOSITORY",
"label" : "物资名称",
"type" : "tpl",
"tpl" : "${MATERIALREPOSITORY_DISPLAY__ ? MATERIALREPOSITORY_DISPLAY__ : MATERIALREPOSITORY}",
"quickEdit" : false
}, {
"name" : "SPECIFICATIONS",
"label" : "规格",
"quickEdit" : {
"name" : "SPECIFICATIONS",
"disabled" : true,
"type" : "input-text"
}
}, {
"name" : "FEATUREDES",
"label" : "特征描述",
"quickEdit" : {
"name" : "FEATUREDES",
"type" : "input-text"
}
}, {
"name" : "UNITID",
"label" : "单位",
"quickEdit" : {
"name" : "UNITID",
"required" : true,
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/picker/PM_UNITLIST/list?perPage=500"
}
}, {
"name" : "QUANTITY",
"label" : "数量",
"quickEdit" : {
"name" : "QUANTITY",
"type" : "input-number",
"precision" : 4,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "e0bf8428-d24d-44f0-81cc-dba126bb38ea",
"editgridField" : "MATERIALDETAILS",
"scriptKey" : "48819fdb-6951-4dcd-8c20-97d740d31548",
"changedField" : "QUANTITY",
"row" : "${__rendererData}",
"parent" : {
"MATERIALDETAILS" : "${__rendererData.MATERIALDETAILS || MATERIALDETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-MATERIALDETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "UNITPRICE",
"label" : "单价(元)",
"quickEdit" : {
"name" : "UNITPRICE",
"type" : "input-number",
"precision" : 2,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "e0bf8428-d24d-44f0-81cc-dba126bb38ea",
"editgridField" : "MATERIALDETAILS",
"scriptKey" : "48819fdb-6951-4dcd-8c20-97d740d31548",
"changedField" : "UNITPRICE",
"row" : "${__rendererData}",
"parent" : {
"MATERIALDETAILS" : "${__rendererData.MATERIALDETAILS || MATERIALDETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-MATERIALDETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "TOTAL",
"label" : "合价(元)",
"quickEdit" : {
"name" : "TOTAL",
"type" : "input-number",
"precision" : 2
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "DOCUMENT",
"label" : "附件",
"required" : true,
"type" : "input-file",
"receiver" : "/api/file/upload?tableName=PM_MATERIALCONTRACTREVIEW&businessKey=${PM_MATERIALCONTRACTREVIEW_ID}",
"downloadUrl" : "/api/file/${id}",
"multiple" : true,
"staticOn" : "${__readonly}",
"joinValues" : false,
"extractValue" : false
} ]
} ]
}, {
"name" : "PM_MATERIALCONTRACTREVIEW_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "MATERIALCONTRACTVIEWID",
"label" : "付款配置表",
"type" : "input-table",
"id" : "eg-MATERIALCONTRACTVIEWID",
"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,
"hidden" : true
}, {
"type" : "group",
"body" : [ ]
} ],
"actions" : [ ]
}
}