Files
eip4-platform/转换产物-attach/schema/20c2c897-c965-4030-83ed-0fc1cf49f091.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

656 lines
20 KiB
JSON

{
"type" : "page",
"title" : "银行付款确认-批量票据转让页面",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "PROJECTID",
"label" : "工程名称",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/07eef963-fd17-42a5-997c-219f0ec18cff/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "ACCOUNTNUMBER",
"label" : "银行账号",
"required" : true,
"disabled" : true,
"type" : "input-text"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "APIBATCHNO",
"label" : "批次流水号",
"required" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "MONEYSTART",
"label" : "票面金额起",
"type" : "input-number",
"precision" : 2,
"min" : 0.0
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "MONEYEND",
"label" : "票面金额止",
"type" : "input-number",
"precision" : 2,
"min" : 0.0
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "DRAFTTYPE",
"label" : "票据种类",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/WJ_BANK_DRAFTTYPE"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "REGISTERDATESTART",
"label" : "出票日起日期",
"type" : "input-date"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "REGISTERDATEEND",
"label" : "出票日期止日",
"type" : "input-date"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "TOTALAMT",
"label" : "总金额",
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "ENDDATESTART",
"label" : "到期日期起日",
"type" : "input-date"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "ENDDATEEND",
"label" : "到期日期止日",
"type" : "input-date"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"type" : "flex",
"justify" : "flex-start",
"alignItems" : "center",
"style" : {
"paddingLeft" : "120px",
"marginBottom" : "4px"
},
"items" : [ {
"name" : "SELECT",
"label" : "选择",
"type" : "button",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"id" : "egadddlgSELECT",
"title" : "未付讫付款申请",
"size" : "lg",
"body" : {
"type" : "crud",
"api" : "/api/picker/3f77bb7a-5f68-4924-ad59-7522fd07904e/list",
"mode" : "table",
"syncLocation" : false,
"selectable" : true,
"multiple" : true,
"keepItemSelectionOnPageChange" : true,
"primaryField" : "_id",
"labelField" : "_label",
"headerToolbar" : [ {
"type" : "search-box",
"placeholder" : "输入关键字搜索",
"name" : "q"
} ],
"footerToolbar" : [ "pagination" ],
"onEvent" : {
"selectedChange" : {
"actions" : [ {
"actionType" : "setValue",
"componentId" : "egadddlgSELECT",
"args" : {
"value" : {
"__egpicked" : "${event.data.selectedItems}"
}
}
} ]
}
}
},
"actions" : [ {
"type" : "button",
"label" : "取消",
"actionType" : "close"
}, {
"type" : "button",
"label" : "确定",
"level" : "primary",
"onEvent" : {
"click" : {
"actions" : [ {
"actionType" : "addItem",
"componentId" : "eg-DETAILS",
"args" : {
"item" : "${ARRAYMAP(__egpicked, item => ({PM_PAYMENTAPPLY_ID: item.PM_PAYMENTAPPLY_ID, PM_PAYMENTAPPLY_ID_DISPLAY__: item._label, APIDTLNO: item.PAYMENTAPPLYCODE}))}"
}
}, {
"actionType" : "closeDialog"
} ]
}
}
} ]
},
"hiddenOn" : "${__readonly}"
} ]
}, {
"name" : "DETAILS",
"label" : "票据明细",
"disabled" : true,
"type" : "input-table",
"id" : "eg-DETAILS",
"addable" : false,
"removable" : false,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "DRAFTCODE",
"label" : "票据(包)号",
"quickEdit" : {
"name" : "DRAFTCODE",
"type" : "input-text"
}
}, {
"name" : "CHILDRANGE",
"label" : "子票区间",
"quickEdit" : {
"name" : "CHILDRANGE",
"type" : "input-text"
}
}, {
"name" : "SYNCFLAG",
"label" : "票据种类",
"quickEdit" : {
"name" : "SYNCFLAG",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/WJ_BANK_DRAFTTYPE"
}
}, {
"name" : "DRAFTAMOUNT",
"label" : "票据(包)金额",
"quickEdit" : {
"name" : "DRAFTAMOUNT",
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "EXCHANGEFLAG",
"label" : "可否转让",
"quickEdit" : {
"name" : "EXCHANGEFLAG",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO"
}
}, {
"name" : "ISSPLIT",
"label" : "可否拆分",
"quickEdit" : {
"name" : "ISSPLIT",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO"
}
}, {
"name" : "OPERATESTATUS",
"label" : "操作状态",
"quickEdit" : {
"name" : "OPERATESTATUS",
"type" : "input-text"
}
}, {
"name" : "REGISTERDATE",
"label" : "出票日",
"quickEdit" : {
"name" : "REGISTERDATE",
"type" : "input-date"
}
}, {
"name" : "ENDDATE",
"label" : "到期日",
"quickEdit" : {
"name" : "ENDDATE",
"type" : "input-date"
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "DRAFTLIST",
"label" : "票据付款明细",
"required" : true,
"type" : "input-table",
"id" : "eg-DRAFTLIST",
"addable" : false,
"removable" : true,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "RECACCOUNTNUMBER",
"label" : "被背书人账号",
"quickEdit" : {
"name" : "RECACCOUNTNUMBER",
"disabled" : true,
"type" : "input-text"
}
}, {
"name" : "RECACCOUNTNAME",
"label" : "账号名称",
"quickEdit" : {
"name" : "RECACCOUNTNAME",
"disabled" : true,
"type" : "input-text"
}
}, {
"name" : "RECNAME",
"label" : " 背书人名称",
"quickEdit" : {
"name" : "RECNAME",
"disabled" : true,
"type" : "input-text"
}
}, {
"name" : "RECBANKCODE",
"label" : "开户行行号",
"quickEdit" : {
"name" : "RECBANKCODE",
"disabled" : true,
"type" : "input-text"
}
}, {
"name" : "RECBANKNAME",
"label" : "开户行行名",
"quickEdit" : {
"name" : "RECBANKNAME",
"disabled" : true,
"type" : "input-text"
}
}, {
"name" : "EXCHANGEFLAG",
"label" : "可否转让",
"quickEdit" : {
"name" : "EXCHANGEFLAG",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO",
"value" : "1"
}
}, {
"name" : "DRAFTCODESELECT",
"label" : "票据(包)号",
"quickEdit" : {
"name" : "DRAFTCODESELECT",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/9ab14dd0-5bad-43f3-bf34-fd905d946d6c/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "20c2c897-c965-4030-83ed-0fc1cf49f091",
"editgridField" : "DRAFTLIST",
"scriptKey" : "99150c1a-4a4c-49a2-88aa-fefc1e4ae268",
"changedField" : "DRAFTCODESELECT",
"row" : "${__rendererData}",
"parent" : {
"DRAFTLIST" : "${__rendererData.DRAFTLIST || DRAFTLIST}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-DRAFTLIST",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "CHILDRANGE",
"label" : "初始子票区间",
"quickEdit" : {
"name" : "CHILDRANGE",
"required" : true,
"disabled" : true,
"type" : "input-text"
}
}, {
"name" : "APPLYPRICE",
"label" : "本次申请金额(元)",
"quickEdit" : {
"name" : "APPLYPRICE",
"disabled" : true,
"type" : "input-number",
"precision" : 2,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "20c2c897-c965-4030-83ed-0fc1cf49f091",
"editgridField" : "DRAFTLIST",
"scriptKey" : "a1b8898e-7e67-4be4-a133-f56dd6470f5a",
"changedField" : "APPLYPRICE",
"row" : "${__rendererData}",
"parent" : {
"DRAFTLIST" : "${__rendererData.DRAFTLIST || DRAFTLIST}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-DRAFTLIST",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "PAIDPRICE",
"label" : "累计已付金额(元)",
"quickEdit" : {
"name" : "PAIDPRICE",
"disabled" : true,
"type" : "input-number",
"precision" : 2,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "20c2c897-c965-4030-83ed-0fc1cf49f091",
"editgridField" : "DRAFTLIST",
"scriptKey" : "a1b8898e-7e67-4be4-a133-f56dd6470f5a",
"changedField" : "PAIDPRICE",
"row" : "${__rendererData}",
"parent" : {
"DRAFTLIST" : "${__rendererData.DRAFTLIST || DRAFTLIST}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-DRAFTLIST",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "OPERATEMONEY",
"label" : "背书金额(元)",
"quickEdit" : {
"name" : "OPERATEMONEY",
"required" : true,
"type" : "input-number",
"precision" : 2,
"min" : 0.0,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "20c2c897-c965-4030-83ed-0fc1cf49f091",
"editgridField" : "DRAFTLIST",
"scriptKey" : "a1b8898e-1028-4be4-a133-f56dd6470f5a",
"changedField" : "OPERATEMONEY",
"row" : "${__rendererData}",
"parent" : {
"DRAFTLIST" : "${__rendererData.DRAFTLIST || DRAFTLIST}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-DRAFTLIST",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "REMARK",
"label" : "备注",
"quickEdit" : {
"name" : "REMARK",
"required" : true,
"type" : "input-text"
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "APPLYOPERATOR",
"label" : "付款人",
"type" : "static",
"tpl" : "${APPLYOPERATOR_DISPLAY__ ? APPLYOPERATOR_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : APPLYOPERATOR)}",
"value" : "${currentUser}"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "APPLYDATE",
"label" : "付款日期",
"required" : true,
"disabled" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"name" : "PM_ENDORSEAPPLY_ID",
"label" : "主键",
"disabled" : true,
"hidden" : true,
"type" : "input-text"
}, {
"name" : "CUSTID",
"label" : "客户号",
"disabled" : true,
"hidden" : true,
"type" : "input-text"
}, {
"name" : "CORPCODE",
"label" : "单位编码",
"required" : true,
"type" : "input-text",
"hidden" : true
}, {
"name" : "CORPORGID",
"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" ]
},
"hidden" : true
}, {
"name" : "EXCHANGEFLAG",
"label" : "可否转让",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO",
"hidden" : true
}, {
"name" : "SYNCFLAG",
"label" : "发查标识",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/WJ_BANK_SYNCFLAG",
"value" : "0",
"hidden" : true
}, {
"type" : "group",
"body" : [ ]
} ],
"actions" : [ ]
}
}