Files
eip4-platform/转换产物-attach/schema/1d235a46-1603-4274-9aeb-9052314ecd8c.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

216 lines
5.2 KiB
JSON

{
"type" : "page",
"title" : "历史价格信息编辑页面",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "ISMAJORPRODUCTS",
"label" : "是否主要供产品",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO",
"value" : "1"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "ISTURNOVERMATERIAL",
"label" : "是否周材",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO",
"value" : "0"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "SUPPLIERID",
"label" : "物资供应商",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/0b4c9b2a-32b3-4951-ae79-57c833ef6333/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "ELIGIBILITY",
"label" : "供应商状态",
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/eligibility"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "SURFACEPREPARATION",
"label" : "表面处理",
"type" : "input-text"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "COLOURNUMBER",
"label" : "色泽色号",
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "EDGINGPREPARATION",
"label" : "磨边处理",
"type" : "input-text"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "BRAND",
"label" : "品牌",
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "SUPPLYPERIOD",
"label" : "供货周期(天)",
"required" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1,
"min" : 1,
"max" : 999
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "REGISTERDATE",
"label" : "登记日期",
"required" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "MARKETPRICE",
"label" : "市场标价(元)",
"required" : true,
"type" : "input-number",
"precision" : 2,
"min" : 0,
"max" : 9.9999999999E8
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "MARKETPREFERENTIALPRICE",
"label" : "市场优惠价(元)",
"type" : "input-number",
"precision" : 2,
"min" : 0,
"max" : 9.9999999999E8
} ]
} ]
}, {
"name" : "MATERIALREPOSITORYID",
"label" : "材料信息库",
"hidden" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/1d3c0d8c-b74b-45f4-87c4-79ff17fdd180/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "COMPANYPRICE",
"label" : "公司价(元)",
"type" : "input-number",
"precision" : 2,
"min" : 0,
"max" : 9.9999999999E8
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "COMPOUNDPRICE",
"label" : "合成单价",
"type" : "textarea"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "REMARK",
"label" : "备注",
"type" : "textarea"
} ]
} ]
}, {
"name" : "PM_MATERIALHISTORYPRICE_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
} ],
"actions" : [ ]
}
}