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>
251 lines
7.1 KiB
JSON
251 lines
7.1 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "租赁机械历史价格信息",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/PM_RENTALSUPPLIER_MACHINEHISTORYPRICE_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "SUPPLIERID",
|
|
"label" : "机械供应商",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/e9a4713a-5427-4c4f-875d-b16994b79f29/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "MACHINENAME",
|
|
"label" : "机械名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "SUPPLYPERIOD",
|
|
"label" : "供货周期(天)",
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1
|
|
}, {
|
|
"name" : "BRAND",
|
|
"label" : "品牌",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "ISMAJORPRODUCTS",
|
|
"label" : "是否主要供应产品",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "PM_RENTALSUPPLIER_MACHINEHISTORYPRICE_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "MACHINEID_DISPLAY__",
|
|
"label" : "机械名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "SUPPLIERID_DISPLAY__",
|
|
"label" : "机械供应商",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "SUPPLYPERIOD",
|
|
"label" : "供货周期(天)",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "REGISTERDATE",
|
|
"label" : "登记日期",
|
|
"width" : 200,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "CHARGEMODE",
|
|
"label" : "计费方式",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "按月",
|
|
"2" : "按日",
|
|
"3" : "按小时"
|
|
}
|
|
}, {
|
|
"name" : "UNITPRICEOFLEASE",
|
|
"label" : "租赁单价(元)",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "BRAND",
|
|
"label" : "品牌",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "ISMAJORPRODUCTS",
|
|
"label" : "是否主要供应产品",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "否",
|
|
"1" : "是",
|
|
"false" : "否",
|
|
"true" : "是"
|
|
}
|
|
}, {
|
|
"name" : "COMPANYPRICE",
|
|
"label" : "公司价(元)",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "MARKETPREFERENTIALPRICE",
|
|
"label" : "市场优惠价(元)",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "MARKETPRICE",
|
|
"label" : "市场标价(元)",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "OPERATORNUMBER",
|
|
"label" : "操作人员数",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "REMARK",
|
|
"label" : "备注",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加",
|
|
"label" : "添加",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/b357adcf-f808-4c0e-97e2-f1cc6dd969cd?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/PM_RENTALSUPPLIER_MACHINEHISTORYPRICE/defaults?templateId=b357adcf-f808-4c0e-97e2-f1cc6dd969cd"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_RENTALSUPPLIER_MACHINEHISTORYPRICE_ADD?__egtpl=b357adcf-f808-4c0e-97e2-f1cc6dd969cd",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"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/b357adcf-f808-4c0e-97e2-f1cc6dd969cd?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_RENTALSUPPLIER_MACHINEHISTORYPRICE_LOAD?__egtpl=b357adcf-f808-4c0e-97e2-f1cc6dd969cd",
|
|
"data" : {
|
|
"PM_RENTALSUPPLIER_MACHINEHISTORYPRICE_ID" : "${PM_RENTALSUPPLIER_MACHINEHISTORYPRICE_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_RENTALSUPPLIER_MACHINEHISTORYPRICE_UPDATE?__egtpl=b357adcf-f808-4c0e-97e2-f1cc6dd969cd",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "删除",
|
|
"label" : "删除",
|
|
"level" : "danger",
|
|
"actionType" : "ajax",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"confirmText" : "确认要删除此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_RENTALSUPPLIER_MACHINEHISTORYPRICE_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:PM_RENTALSUPPLIER_MACHINEHISTORYPRICE_ID|join:','}"
|
|
}
|
|
}
|
|
}, {
|
|
"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/b357adcf-f808-4c0e-97e2-f1cc6dd969cd?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_RENTALSUPPLIER_MACHINEHISTORYPRICE_LOAD?__egtpl=b357adcf-f808-4c0e-97e2-f1cc6dd969cd",
|
|
"data" : {
|
|
"PM_RENTALSUPPLIER_MACHINEHISTORYPRICE_ID" : "${PM_RENTALSUPPLIER_MACHINEHISTORYPRICE_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "PM_RENTALSUPPLIER_MACHINEHISTORYPRICE_ID"
|
|
}
|
|
} |