Files
eip4-platform/转换产物-attach/schema/a883973a-4d71-4b1d-ae7f-76200d228cb2.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

320 lines
9.0 KiB
JSON

{
"type" : "page",
"title" : "周转(项目自购)材料采购申请(查看)",
"body" : {
"type" : "crud",
"api" : "/api/flow/PM_TURNOVERMATERIALPURCHASEAPPLY_SEARCH_PROJECT",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "FORMNO",
"label" : "表单号",
"type" : "input-text"
}, {
"name" : "PROJECTID",
"label" : "工程名称",
"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" ]
},
"value" : "${currentProject}"
}, {
"name" : "APPLYTYPE",
"label" : "申请类型",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/materialApply-applytype"
}, {
"name" : "APPLYNAME",
"label" : "申请人",
"hidden" : true,
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
}, {
"name" : "APPLYDATE",
"label" : "申请日期",
"type" : "input-date-range"
}, {
"name" : "LISTERNAME",
"label" : "制表人",
"hidden" : true,
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
}, {
"name" : "DELIVERYREQUIRE",
"label" : "交货要求",
"type" : "input-date-range"
}, {
"name" : "DELIVERYPLACE",
"label" : "送货地点",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "CONSIGNEE",
"label" : "收货联系人",
"hidden" : true,
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
}, {
"name" : "EXPLAIN",
"label" : "说明",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "STATUS",
"label" : "审批状态",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/WFSTATUS"
}, {
"name" : "ISIMPORT",
"label" : "是否全部进场",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO"
} ]
},
"columns" : [ {
"name" : "PM_TURNOVERMATERIALPURCHASEAPPLY_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "FORMNO",
"label" : "表单号",
"width" : 250
}, {
"name" : "PROJECTID_DISPLAY__",
"label" : "工程名称",
"width" : 250
}, {
"name" : "DEPARTID_DISPLAY__",
"label" : "申请部门",
"width" : 150
}, {
"name" : "APPLYTYPE",
"label" : "申请类型",
"width" : 200,
"type" : "mapping",
"map" : {
"1" : "租赁周材",
"2" : "自购周材-公司申请",
"3" : "自购周材-项目申请"
},
"toggled" : false
}, {
"name" : "APPLYNAME_DISPLAY__",
"label" : "申请人",
"width" : 80
}, {
"name" : "APPLYDATE",
"label" : "申请日期",
"width" : 100,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "LISTERNAME",
"label" : "制表人",
"width" : 200,
"toggled" : false
}, {
"name" : "DELIVERYREQUIRE",
"label" : "交货要求",
"width" : 200,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
"toggled" : false
}, {
"name" : "DELIVERYPLACE",
"label" : "送货地点",
"width" : 200,
"toggled" : false
}, {
"name" : "CONSIGNEE_DISPLAY__",
"label" : "收货联系人",
"width" : 200,
"toggled" : false
}, {
"name" : "EXPLAIN",
"label" : "说明",
"width" : 200,
"toggled" : false
}, {
"name" : "STATUS",
"label" : "审批状态",
"width" : 80,
"type" : "mapping",
"map" : {
"1" : "未提交",
"2" : "处理中",
"3" : "通过",
"4" : "未通过",
"5" : "重新提交",
"6" : "作废"
}
}, {
"name" : "ISIMPORT",
"label" : "确认进场完毕",
"width" : 100,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是"
}
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "查看",
"label" : "查看",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "查看",
"size" : "lg",
"data" : {
"&" : "${selectedItems[0]}",
"__readonly" : true
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/36580cc8-6bce-4728-9310-55f8d49e44b7?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/PM_TURNOVERMATERIALPURCHASEAPPLY_LOAD?__egtpl=36580cc8-6bce-4728-9310-55f8d49e44b7",
"data" : {
"PM_TURNOVERMATERIALPURCHASEAPPLY_ID" : "${PM_TURNOVERMATERIALPURCHASEAPPLY_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, {
"type" : "button",
"id" : "确认进场完毕",
"label" : "确认进场完毕",
"actionType" : "ajax",
"disabled" : true,
"confirmText" : "确认进场完毕吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_TURNOVERMATERIALPURCHASEAPPLY_STATUSUPDATE",
"data" : {
"PM_TURNOVERMATERIALPURCHASEAPPLY_ID" : "${selectedItems[0].PM_TURNOVERMATERIALPURCHASEAPPLY_ID}"
}
}
}, {
"type" : "button",
"id" : "取消进场",
"label" : "取消进场",
"actionType" : "ajax",
"disabled" : true,
"confirmText" : "确认要取消进场?",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_TURNOVERMATERIALPURCHASEAPPLY_STATUSUPDATECANCEL",
"data" : {
"PM_TURNOVERMATERIALPURCHASEAPPLY_ID" : "${selectedItems[0].PM_TURNOVERMATERIALPURCHASEAPPLY_ID}"
}
}
}, {
"type" : "button",
"id" : "打印",
"label" : "打印",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "打印周转材料采购申请",
"size" : "lg",
"data" : {
"PM_TURNOVERMATERIALPURCHASEAPPLY_ID" : "${selectedItems[0].PM_TURNOVERMATERIALPURCHASEAPPLY_ID}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/b012adac-28e3-446a-86c0-980fff7bbbe0?format=amis"
},
"actions" : [ {
"type" : "button",
"label" : "关闭",
"actionType" : "close"
} ]
}
}, "pagination" ],
"primaryField" : "PM_TURNOVERMATERIALPURCHASEAPPLY_ID",
"onEvent" : {
"selectedChange" : {
"actions" : [ {
"actionType" : "disabled",
"componentId" : "确认进场完毕"
}, {
"actionType" : "disabled",
"componentId" : "取消进场"
}, {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 2,
"item" : "${event.data.selectedItems[0]}",
"templateId" : "a883973a-4d71-4b1d-ae7f-76200d228cb2"
}
},
"outputVar" : "scriptResult2"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult2.commands}"
}
} ]
},
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 3,
"item" : "${&}",
"templateId" : "a883973a-4d71-4b1d-ae7f-76200d228cb2"
}
},
"outputVar" : "scriptResult3"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult3.commands}"
}
} ]
}
}
}
}