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>
152 lines
4.2 KiB
JSON
152 lines
4.2 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "物资供应商临时合格设置",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/VIEW_PM_MATERIALSUPPLIER_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "UNITNAME",
|
|
"label" : "企业名称",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/93a5fb27-fdf1-41fb-9ce5-cec44826a6fa/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "ABC_TYPE",
|
|
"label" : "ABC分类",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/ABC_type"
|
|
}, {
|
|
"name" : "ELIGIBILITY",
|
|
"label" : "供应商状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/eligibility",
|
|
"value" : "3"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "VIEW_PM_MATERIALSUPPLIER_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "UNITNAME",
|
|
"label" : "企业名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "ABC_TYPE",
|
|
"label" : "ABC分类",
|
|
"width" : 50,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "A",
|
|
"2" : "B",
|
|
"3" : "C"
|
|
}
|
|
}, {
|
|
"name" : "ELIGIBILITY",
|
|
"label" : "供应商状态",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "待调查",
|
|
"2" : "未评审",
|
|
"3" : "评审中",
|
|
"4" : "合格",
|
|
"5" : "不合格",
|
|
"6" : "黑名"
|
|
}
|
|
} ],
|
|
"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/6000d02f-2069-4e5b-9a7f-a5ba2b560828?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_PM_MATERIALSUPPLIER_LOAD?__egtpl=6000d02f-2069-4e5b-9a7f-a5ba2b560828",
|
|
"data" : {
|
|
"VIEW_PM_MATERIALSUPPLIER_ID" : "${VIEW_PM_MATERIALSUPPLIER_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "修改状态",
|
|
"label" : "修改状态",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "修改状态",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"&" : "${selectedItems[0]}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/2ded7949-5669-49fd-af35-41d3a293023f?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_PM_MATERIALSUPPLIER_LOAD?__egtpl=2ded7949-5669-49fd-af35-41d3a293023f",
|
|
"data" : {
|
|
"VIEW_PM_MATERIALSUPPLIER_ID" : "${VIEW_PM_MATERIALSUPPLIER_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_MATERIALSUPPLIER_UPDATE?__egtpl=2ded7949-5669-49fd-af35-41d3a293023f",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "VIEW_PM_MATERIALSUPPLIER_ID"
|
|
}
|
|
} |