Files
eip4-platform/转换产物-attach/schema/2fb53bc0-ec8e-425d-a75e-7369f77200cc.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

146 lines
3.7 KiB
JSON

{
"type" : "page",
"title" : "收发存明细",
"body" : {
"type" : "crud",
"api" : "/api/flow/VIEW_OA_OFFICE_GOODSDETAILS_SEARCH?page=${page}&perPage=${perPage}",
"syncLocation" : false,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "STORE_ID",
"label" : "办公用品库",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/picker/OA_OFFICE_STOREHOUSE/list?perPage=500"
}, {
"name" : "GOODS_NAME",
"label" : "用品名称",
"type" : "input-text"
}, {
"name" : "USER_ID",
"label" : "相关人员",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/1b6820ad-bc7c-4eef-ac63-652cdf52c75f/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"name" : "BUYORCOLLAR",
"label" : "购买/领用",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/OA_OFFICE_BUYCOLLAR_TYPE"
}, {
"name" : "REGISTER_DATE",
"label" : "发生日期",
"type" : "input-date-range"
}, {
"name" : "ISKEEPACCOUNT",
"label" : "是否记账",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO"
}, {
"name" : "ISNOLYCURRENT",
"label" : "只列出本期",
"required" : true,
"type" : "checkbox",
"value" : "1"
} ]
},
"columns" : [ {
"name" : "VIEW_OA_OFFICE_GOODSDETAILS_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "GOODSSORT_ID",
"label" : "用品类别id",
"width" : 200,
"toggled" : false
}, {
"name" : "GOODS_ID",
"label" : "用品id",
"width" : 200,
"toggled" : false
}, {
"name" : "STORE_ID_DISPLAY__",
"label" : "办公用品库Id",
"width" : 200,
"toggled" : false
}, {
"name" : "SORTFULLNAME",
"label" : "用品类别",
"width" : 100,
"className" : "text-center"
}, {
"name" : "GOODS_NAME",
"label" : "用品名称",
"width" : 100,
"className" : "text-center"
}, {
"name" : "GOODS_STANDARD",
"label" : "规格",
"width" : 100,
"className" : "text-center"
}, {
"name" : "GOODS_UNIT",
"label" : "计量单位",
"width" : 100,
"className" : "text-center"
}, {
"name" : "USER_ID_DISPLAY__",
"label" : "相关人员",
"width" : 80,
"className" : "text-center"
}, {
"name" : "REGISTER_DATE",
"label" : "发生日期",
"width" : 80,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
"className" : "text-center"
}, {
"name" : "BUYORCOLLAR",
"label" : "购买/领用",
"width" : 70,
"type" : "mapping",
"map" : {
"1" : "购买",
"2" : "领用"
},
"className" : "text-center"
}, {
"name" : "AMOUNT",
"label" : "数量",
"width" : 100,
"className" : "text-right"
}, {
"name" : "ISKEEPACCOUNT",
"label" : "是否记账",
"width" : 70,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是",
"false" : "否",
"true" : "是"
},
"className" : "text-center"
} ]
}
}