Files
eip4-platform/转换产物-attach/schema/0f7ec0af-0d91-4b7b-a71c-26e8bf4162db.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

214 lines
5.8 KiB
JSON

{
"type" : "page",
"title" : "选择周转材料采购申请材料信息",
"body" : {
"type" : "crud",
"api" : "/api/flow/VIEW_PM_GETTURNOVERMATERIALPURCHASEAPPLYDETAILS_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "FORMNO",
"label" : "表单号",
"type" : "input-text"
}, {
"name" : "STOREHOUSE",
"label" : "STOREHOUSE",
"hidden" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/4e901c80-8a74-42b8-80ef-2e496e536fc3/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"name" : "PROJECTID",
"label" : "工程名称",
"hidden" : 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}"
}, {
"name" : "APPLYDATE",
"label" : "申请日期",
"type" : "input-date-range"
}, {
"name" : "MATERIALCODE",
"label" : "材料编码",
"type" : "input-text"
}, {
"name" : "MATERIALNAME",
"label" : "材料名称",
"type" : "input-text"
}, {
"name" : "SPECIFICATIONS",
"label" : "规格",
"type" : "input-text"
}, {
"name" : "ISIMPORT",
"label" : "是否进场完毕",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO",
"value" : "0"
}, {
"name" : "APPLYTYPE",
"label" : "申请类型",
"hidden" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/materialApply-applytype"
}, {
"name" : "CONTRACTID",
"label" : "合同名称",
"hidden" : true,
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
}, {
"name" : "UNITINFOID",
"label" : "物资供应商",
"hidden" : true,
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
}, {
"name" : "MATERIALID",
"label" : "材料名称",
"hidden" : true,
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
}, {
"name" : "MATERIALALIASID",
"label" : "材料别名",
"hidden" : true,
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
} ]
},
"columns" : [ {
"name" : "VIEW_PM_GETTURNOVERMATERIALPURCHASEAPPLYDETAILS_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "FORMNO",
"label" : "表单号",
"width" : 150
}, {
"name" : "STOREHOUSE_DISPLAY__",
"label" : "仓库",
"width" : 200,
"toggled" : false
}, {
"name" : "PROJECTID_DISPLAY__",
"label" : "工程名称",
"width" : 200,
"toggled" : false
}, {
"name" : "APPLYTYPE",
"label" : "申请类型",
"width" : 200,
"type" : "mapping",
"map" : {
"1" : "租赁周材",
"2" : "自购周材-公司申请",
"3" : "自购周材-项目申请"
},
"toggled" : false
}, {
"name" : "APPLYDATE",
"label" : "申请日期",
"width" : 100,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "CONTRACTID_DISPLAY__",
"label" : "合同名称",
"width" : 160
}, {
"name" : "UNITINFOID_DISPLAY__",
"label" : "物资供应商",
"width" : 160
}, {
"name" : "ISIMPORT",
"label" : "是否进场完毕",
"width" : 200,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是"
},
"toggled" : false
}, {
"name" : "MATERIALID_DISPLAY__",
"label" : "材料名称",
"width" : 200,
"toggled" : false
}, {
"name" : "MATERIALCODE",
"label" : "材料编码",
"width" : 100
}, {
"name" : "MATERIALNAME",
"label" : "材料名称",
"width" : 180
}, {
"name" : "MATERIALALIASID_DISPLAY__",
"label" : "材料别名",
"width" : 150,
"toggled" : false
}, {
"name" : "SPECIFICATIONS",
"label" : "规格",
"width" : 120
}, {
"name" : "PURCHASENUM",
"label" : "采购数量",
"width" : 100
}, {
"name" : "UNIT_DISPLAY__",
"label" : "计量单位",
"width" : 60
}, {
"name" : "IMPORTNUMBERSUM",
"label" : "已进场数量",
"width" : 100
} ],
"headerToolbar" : [ "pagination" ],
"primaryField" : "VIEW_PM_GETTURNOVERMATERIALPURCHASEAPPLYDETAILS_ID"
}
}