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>
443 lines
14 KiB
JSON
443 lines
14 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" ]
|
|
},
|
|
"value" : "${currentProject}"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "ACCOUNTNUMBER",
|
|
"label" : "银行账号",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-text"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "BATCHSERIALNO",
|
|
"label" : "批次流水号",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "TOTALAMT",
|
|
"label" : "总金额",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "TOTALNUMBER",
|
|
"label" : "总笔数",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "AVAILBAL",
|
|
"label" : "可用余额(当日)",
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"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-TRANSFERDTLS",
|
|
"args" : {
|
|
"item" : "${ARRAYMAP(__egpicked, item => ({...item}))}"
|
|
}
|
|
}, {
|
|
"actionType" : "closeDialog"
|
|
} ]
|
|
}
|
|
}
|
|
} ]
|
|
},
|
|
"hiddenOn" : "${__readonly}"
|
|
} ]
|
|
}, {
|
|
"name" : "TRANSFERDTLS",
|
|
"label" : "转账付款明细",
|
|
"required" : true,
|
|
"type" : "input-table",
|
|
"id" : "eg-TRANSFERDTLS",
|
|
"addable" : false,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "PM_PAYMENTAPPLY_ID",
|
|
"label" : "付款申请单号",
|
|
"type" : "tpl",
|
|
"tpl" : "${PM_PAYMENTAPPLY_ID_DISPLAY__ ? PM_PAYMENTAPPLY_ID_DISPLAY__ : PM_PAYMENTAPPLY_ID}",
|
|
"quickEdit" : false
|
|
}, {
|
|
"name" : "DTLSERIALNO",
|
|
"label" : "明细流水号",
|
|
"quickEdit" : {
|
|
"name" : "DTLSERIALNO",
|
|
"disabled" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "RCVACC",
|
|
"label" : "收款账号",
|
|
"quickEdit" : {
|
|
"name" : "RCVACC",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "RCVBANK",
|
|
"label" : "收款方银行名",
|
|
"quickEdit" : {
|
|
"name" : "RCVBANK",
|
|
"disabled" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "RCVBANKCODE",
|
|
"label" : "收款方联行号",
|
|
"quickEdit" : {
|
|
"name" : "RCVBANKCODE",
|
|
"disabled" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "RCVNAME",
|
|
"label" : "收款方户名",
|
|
"quickEdit" : {
|
|
"name" : "RCVNAME",
|
|
"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" : "e382b6a5-4f6f-44e1-aee2-ddb3e475af2e",
|
|
"editgridField" : "TRANSFERDTLS",
|
|
"scriptKey" : "a1b8898e-7e67-4be4-a133-f56dd6470f5a",
|
|
"changedField" : "APPLYPRICE",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"TRANSFERDTLS" : "${__rendererData.TRANSFERDTLS || TRANSFERDTLS}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-TRANSFERDTLS",
|
|
"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" : "e382b6a5-4f6f-44e1-aee2-ddb3e475af2e",
|
|
"editgridField" : "TRANSFERDTLS",
|
|
"scriptKey" : "a1b8898e-7e67-4be4-a133-f56dd6470f5a",
|
|
"changedField" : "PAIDPRICE",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"TRANSFERDTLS" : "${__rendererData.TRANSFERDTLS || TRANSFERDTLS}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-TRANSFERDTLS",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"name" : "AMT",
|
|
"label" : "本次付款金额(元)",
|
|
"quickEdit" : {
|
|
"name" : "AMT",
|
|
"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" : "e382b6a5-4f6f-44e1-aee2-ddb3e475af2e",
|
|
"editgridField" : "TRANSFERDTLS",
|
|
"scriptKey" : "a1b8898e-7e67-4be4-a133-f56dd6470f5a",
|
|
"changedField" : "AMT",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"TRANSFERDTLS" : "${__rendererData.TRANSFERDTLS || TRANSFERDTLS}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-TRANSFERDTLS",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"name" : "REMARK",
|
|
"label" : "备注",
|
|
"quickEdit" : {
|
|
"name" : "REMARK",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "APPLYSTATUS",
|
|
"label" : "申请状态",
|
|
"quickEdit" : {
|
|
"name" : "APPLYSTATUS",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/WJ_BANK_APPLYSTATUS"
|
|
}
|
|
}, {
|
|
"name" : "RESULTMSG",
|
|
"label" : "返回结果",
|
|
"quickEdit" : {
|
|
"name" : "RESULTMSG",
|
|
"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_BATCHTRANSFER_ID",
|
|
"label" : "主键",
|
|
"disabled" : true,
|
|
"type" : "input-text",
|
|
"hidden" : true
|
|
}, {
|
|
"name" : "CUSTID",
|
|
"label" : "客户号",
|
|
"disabled" : true,
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "BUSINESSCODE",
|
|
"label" : "业务类型",
|
|
"disabled" : true,
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "UNITCODE",
|
|
"label" : "单位代码",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"type" : "group",
|
|
"body" : [ ]
|
|
} ],
|
|
"actions" : [ ]
|
|
}
|
|
} |