Files
eip4-platform/转换产物-attach/schema/c32c7f0b-35f9-4d89-acc0-08af3bf3c9e3.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

331 lines
11 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" : "FORMNO",
"label" : "盘点单号",
"required" : true,
"type" : "input-text",
"maxLength" : 50
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "STOREHOUSEINFOID",
"label" : "盘店仓库",
"type" : "static",
"tpl" : "${STOREHOUSEINFOID_DISPLAY__ ? STOREHOUSEINFOID_DISPLAY__ : (STORENAME ? STORENAME : STOREHOUSEINFOID)}"
} ]
} ]
}, {
"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
}
}, {
"name" : "INVENTORYPURCHASENUM",
"label" : "盘点数量",
"quickEdit" : {
"name" : "INVENTORYPURCHASENUM",
"required" : true,
"type" : "input-number",
"precision" : 4,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "c32c7f0b-35f9-4d89-acc0-08af3bf3c9e3",
"editgridField" : "INVENTORYDETAILS",
"scriptKey" : "17f1ac69-62ca-4f6c-bc53-c19c793cba67",
"changedField" : "INVENTORYPURCHASENUM",
"row" : "${__rendererData}",
"parent" : {
"INVENTORYDETAILS" : "${__rendererData.INVENTORYDETAILS || INVENTORYDETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-INVENTORYDETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "ADJUSTMENTIMPORTPURCHASENUM",
"label" : "调整入库数量",
"quickEdit" : {
"name" : "ADJUSTMENTIMPORTPURCHASENUM",
"type" : "input-number",
"precision" : 4,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "c32c7f0b-35f9-4d89-acc0-08af3bf3c9e3",
"editgridField" : "INVENTORYDETAILS",
"scriptKey" : "17f1ac69-62ca-4f6c-bc53-c19c793cba67",
"changedField" : "ADJUSTMENTIMPORTPURCHASENUM",
"row" : "${__rendererData}",
"parent" : {
"INVENTORYDETAILS" : "${__rendererData.INVENTORYDETAILS || INVENTORYDETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-INVENTORYDETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "ADJUSTMENTCOLLARPURCHASENUM",
"label" : "调整出库数量",
"quickEdit" : {
"name" : "ADJUSTMENTCOLLARPURCHASENUM",
"type" : "input-number",
"precision" : 4,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "c32c7f0b-35f9-4d89-acc0-08af3bf3c9e3",
"editgridField" : "INVENTORYDETAILS",
"scriptKey" : "17f1ac69-62ca-4f6c-bc53-c19c793cba67",
"changedField" : "ADJUSTMENTCOLLARPURCHASENUM",
"row" : "${__rendererData}",
"parent" : {
"INVENTORYDETAILS" : "${__rendererData.INVENTORYDETAILS || INVENTORYDETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-INVENTORYDETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "INVENTORYLOSEPURCHASENUM",
"label" : "盘亏数量",
"quickEdit" : {
"name" : "INVENTORYLOSEPURCHASENUM",
"disabled" : true,
"type" : "input-number",
"precision" : 4
}
}, {
"name" : "REASON",
"label" : "原因",
"quickEdit" : {
"name" : "REASON",
"type" : "input-text"
}
} ],
"needConfirm" : false
}, {
"name" : "PM_TURNOVERMATERIALBUYINVENTORY_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"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" : "2"
} ]
} ]
} ],
"actions" : [ ]
}
}