Files
eip4-platform/转换产物-attach/schema/3911c367-13ef-4c63-8a5b-2df76a5465fc.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

223 lines
6.5 KiB
JSON

{
"type" : "page",
"title" : "周转(自购)材料盘点准备编辑界面",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "tabs",
"tabs" : [ {
"title" : "盘点信息",
"body" : [ {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "PAPERDATE",
"label" : "账面日期",
"required" : true,
"type" : "input-date",
"value" : "${now}"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "INVENTORYSTARTDATE",
"label" : "盘点开始日期",
"required" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "ATTNNAME",
"label" : "经办人",
"type" : "static",
"tpl" : "${ATTNNAME_DISPLAY__ ? ATTNNAME_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : ATTNNAME)}",
"value" : "${currentUser}"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "DEPARTID",
"label" : "部门",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/picker/SYS_DEPART/list?perPage=500",
"value" : "${currentDepart}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "REMARK",
"label" : "备注",
"type" : "textarea"
} ]
} ]
} ]
}, {
"title" : "材料明细",
"body" : [ {
"name" : "INVENTORYDETAILS",
"label" : "材料盘点明细",
"required" : true,
"type" : "input-table",
"id" : "eg-INVENTORYDETAILS",
"addable" : false,
"removable" : false,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "MATERIALCODE",
"label" : "材料编码",
"quickEdit" : {
"name" : "MATERIALCODE",
"disabled" : true,
"type" : "input-text"
}
}, {
"name" : "MATERIALID",
"label" : "材料名称",
"type" : "tpl",
"tpl" : "${MATERIALID_DISPLAY__ ? MATERIALID_DISPLAY__ : MATERIALID}",
"quickEdit" : false
}, {
"name" : "SPECIFICATIONS",
"label" : "规格",
"quickEdit" : {
"name" : "SPECIFICATIONS",
"disabled" : true,
"type" : "input-text"
}
}, {
"name" : "PAPERPURCHASENUM",
"label" : "账面数量",
"quickEdit" : {
"name" : "PAPERPURCHASENUM",
"required" : true,
"disabled" : true,
"type" : "input-number",
"precision" : 4
}
}, {
"name" : "UNIT",
"label" : "单位",
"quickEdit" : {
"name" : "UNIT",
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/picker/PM_UNITLIST/list?perPage=500"
}
}, {
"name" : "UNITPRICE",
"label" : "单价(元)",
"quickEdit" : {
"name" : "UNITPRICE",
"disabled" : true,
"type" : "input-number",
"precision" : 2
}
} ],
"needConfirm" : false
}, {
"name" : "PM_TURNOVERMATERIALBUYINVENTORY_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "FORMNO",
"label" : "盘点单号",
"required" : true,
"type" : "input-text",
"maxLength" : 50,
"hidden" : true
}, {
"name" : "STOREHOUSEINFOID",
"label" : "盘店仓库",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_MATERIAL_STOREHOUSE",
"hidden" : true
}, {
"name" : "INVENTORYENDDATE",
"label" : "盘点结束日期",
"type" : "input-date",
"hidden" : true
}, {
"name" : "INVENTORYSTATUS",
"label" : "盘点状态",
"required" : true,
"hidden" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/MATERIAL_INVENTORYSTATUS",
"value" : "1"
}, {
"name" : "OLDSTOREHOUSE",
"label" : "原选择仓库",
"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" ]
},
"hidden" : true
}, {
"name" : "EVENT",
"label" : "事件",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"value" : "1",
"hidden" : true
}, {
"name" : "ORGID",
"label" : "(分)公司",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/1a998b23-371d-4ebb-911f-6465a56a6809/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"value" : "${orgId}",
"hidden" : true
} ]
} ]
} ],
"actions" : [ ]
}
}