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>
274 lines
7.6 KiB
JSON
274 lines
7.6 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "福利保险缴交(项目)",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/HR_WELFAREPAY_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "FORMNO",
|
|
"label" : "单据号",
|
|
"type" : "input-text",
|
|
"minLength" : 50
|
|
}, {
|
|
"name" : "PAYYEAR",
|
|
"label" : "缴交年度",
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1
|
|
}, {
|
|
"name" : "PAYMONTH",
|
|
"label" : "缴交月份",
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1,
|
|
"min" : 1.0,
|
|
"max" : 12.0
|
|
}, {
|
|
"name" : "PAYDATE",
|
|
"label" : "缴交日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "APPLYNAME",
|
|
"label" : "申请人",
|
|
"hidden" : true,
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/090981ba-0c10-4d84-92dc-80e226594480/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
},
|
|
"placeholder" : "请点击右侧的图标"
|
|
}, {
|
|
"name" : "DEPARTID",
|
|
"label" : "申请部门",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "APPLYDATE",
|
|
"label" : "申请日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "审批状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/WFSTATUS"
|
|
}, {
|
|
"name" : "ORGIDLIST",
|
|
"label" : "(分)公司",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"multiple" : true,
|
|
"overflowConfig" : {
|
|
"displayPosition" : [ "select" ],
|
|
"maxTagCount" : 1
|
|
},
|
|
"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" ]
|
|
}
|
|
}, {
|
|
"name" : "PROJECTID",
|
|
"label" : "工程名称",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/66e57e6d-0cbb-40cf-8b84-c512345734b7/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "HR_WELFAREPAY_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "PROJECTID_DISPLAY__",
|
|
"label" : "工程名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "FORMNO",
|
|
"label" : "单据号",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "PAYYEAR",
|
|
"label" : "缴交年度",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "PAYMONTH",
|
|
"label" : "缴交月份",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "SUMMONEY",
|
|
"label" : "缴交金额",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "PAYDATE",
|
|
"label" : "缴交日期",
|
|
"width" : 100,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "APPLYNAME_DISPLAY__",
|
|
"label" : "申请人",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "DEPARTID_DISPLAY__",
|
|
"label" : "申请部门",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "APPLYDATE",
|
|
"label" : "申请日期",
|
|
"width" : 100,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "审批状态",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "未提交",
|
|
"2" : "处理中",
|
|
"3" : "通过",
|
|
"4" : "未通过",
|
|
"5" : "重新提交",
|
|
"6" : "作废"
|
|
}
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "删除",
|
|
"label" : "删除",
|
|
"level" : "danger",
|
|
"actionType" : "ajax",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"confirmText" : "确认要删除此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_WELFAREPAY_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:HR_WELFAREPAY_ID|join:','}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "提交审批",
|
|
"label" : "提交审批",
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_WELFAREPAY_SUBMIT",
|
|
"data" : {
|
|
"HR_WELFAREPAY_ID" : "${selectedItems[0].HR_WELFAREPAY_ID}"
|
|
}
|
|
},
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0 || (selectedItems[0].STATUS && selectedItems[0].STATUS != 1 && selectedItems[0].STATUS != 4 && selectedItems[0].STATUS != 5)}"
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "打印",
|
|
"label" : "打印",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "福利保险缴交明细",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"HR_WELFAREPAY_ID" : "${selectedItems[0].HR_WELFAREPAY_ID}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/62388491-f533-41a2-a108-78ab6b39f23a?format=amis"
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "关闭",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "查看审批",
|
|
"label" : "查看审批",
|
|
"icon" : "fa fa-search",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"onEvent" : {
|
|
"click" : {
|
|
"actions" : [ {
|
|
"actionType" : "openApprovalDrawer",
|
|
"args" : {
|
|
"taskName" : "审批详情",
|
|
"processInstanceId" : "${selectedItems[0].processInstanceId || selectedItems[0].PROCESSINSTANCEID || ''}",
|
|
"businessKey" : "${selectedItems[0].HR_WELFAREPAY_ID}",
|
|
"businessTable" : "HR_WELFAREPAY",
|
|
"readOnly" : true,
|
|
"mode" : "read"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "HR_WELFAREPAY_ID",
|
|
"onEvent" : {
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${&}",
|
|
"templateId" : "44397c5d-ea09-4354-9dc1-0b9d01e8f89e"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |