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>
574 lines
16 KiB
JSON
574 lines
16 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "总包合同登记",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/PM_CONTRACTUALREGISTER_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "ORGID",
|
|
"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" ]
|
|
}
|
|
}, {
|
|
"name" : "PM_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" ]
|
|
},
|
|
"value" : "${currentProject}"
|
|
}, {
|
|
"name" : "CATEGORY",
|
|
"label" : "工程类别",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_PROJECT_CATEGORY"
|
|
}, {
|
|
"name" : "BUILDCOMPANY",
|
|
"label" : "建设单位",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/1964fda1-b020-4a8b-95e2-dc32de36e74a/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "CONTRACTNUMBER",
|
|
"label" : "合同编号",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "MANAGEMENTMODE",
|
|
"label" : "经营模式",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_ManagementMode"
|
|
}, {
|
|
"name" : "SIGNUPTIME",
|
|
"label" : "签约日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "STARTTIME",
|
|
"label" : "开工日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "ENDTIME",
|
|
"label" : "竣工日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "CONTRACTSTATUS",
|
|
"label" : "合同状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/CONTRACTSTATUS"
|
|
}, {
|
|
"name" : "CREATEBY",
|
|
"label" : "登记人",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/ac35b7e4-a338-4ca6-b5cd-98d5d1c54bab/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "CREATETIME",
|
|
"label" : "登记日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "交底状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/WFSTATUS"
|
|
}, {
|
|
"name" : "PUTONRECORD",
|
|
"label" : "是否备案",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO"
|
|
}, {
|
|
"name" : "START",
|
|
"label" : "合同金额(>=元)",
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1
|
|
}, {
|
|
"name" : "END",
|
|
"label" : "合同金额(<=元)",
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "PM_CONTRACTUALREGISTER_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "PRJNUMBER",
|
|
"label" : "合同备案编号",
|
|
"width" : 180,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "PM_PROJECTID_DISPLAY__",
|
|
"label" : "工程名称",
|
|
"width" : 280
|
|
}, {
|
|
"name" : "CATEGORY",
|
|
"label" : "工程类别",
|
|
"width" : 70,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "Ⅰ类工程",
|
|
"2" : "Ⅱ类工程",
|
|
"3" : "Ⅲ类工程"
|
|
}
|
|
}, {
|
|
"name" : "BUILDCOMPANY_DISPLAY__",
|
|
"label" : "建设单位",
|
|
"width" : 150
|
|
}, {
|
|
"name" : "CONTRACTNUMBER",
|
|
"label" : "合同编号",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "CONTRACTNAME",
|
|
"label" : "合同名称",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "CONTRACTUALMONEY",
|
|
"label" : "合同价款(元)",
|
|
"width" : 120
|
|
}, {
|
|
"name" : "UPDATEMONEY",
|
|
"label" : "变更后金额(元)",
|
|
"width" : 120
|
|
}, {
|
|
"name" : "WORKINGDAYS",
|
|
"label" : "工期(天)",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "UPDATEDAYS",
|
|
"label" : "变更后工期(天)",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "ACREAGE",
|
|
"label" : "建筑面积(m2)",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "FIRSTSIDEMANAGER",
|
|
"label" : "建设单位负责人",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "SIGNUPTIME",
|
|
"label" : "签约日期",
|
|
"width" : 80,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "STARTTIME",
|
|
"label" : "开工日期",
|
|
"width" : 80,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "ENDTIME",
|
|
"label" : "竣工日期",
|
|
"width" : 80,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "PREPAY",
|
|
"label" : "预付款(元)",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "PROGRESSPAYRATE",
|
|
"label" : "进度支付比例(%)",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "BALANCEPAYRATE",
|
|
"label" : "竣工结算支付比例(%)",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "CONTRACTUALFORM",
|
|
"label" : "合同形式",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "总价合同",
|
|
"2" : "单价合同"
|
|
},
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ORGID_DISPLAY__",
|
|
"label" : "(分)公司",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "MANAGEMENTMODE",
|
|
"label" : "经营模式",
|
|
"width" : 120,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "直营",
|
|
"2" : "全费用承包",
|
|
"3" : "直营过渡项目",
|
|
"4" : "直营部分分包"
|
|
}
|
|
}, {
|
|
"name" : "CONTRACTSTATUS",
|
|
"label" : "合同状态",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "签订",
|
|
"2" : "终止"
|
|
}
|
|
}, {
|
|
"name" : "CREATEBY_DISPLAY__",
|
|
"label" : "登记人",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "CREATETIME",
|
|
"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" : "作废"
|
|
}
|
|
}, {
|
|
"name" : "PUTONRECORD",
|
|
"label" : "是否备案",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "否",
|
|
"1" : "是"
|
|
}
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加",
|
|
"label" : "添加",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/81ca5026-ccd4-48f0-a504-a6584d1253a6?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/PM_CONTRACTUALREGISTER/defaults?templateId=81ca5026-ccd4-48f0-a504-a6584d1253a6"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_CONTRACTUALREGISTER_ADD?__egtpl=81ca5026-ccd4-48f0-a504-a6584d1253a6",
|
|
"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/81ca5026-ccd4-48f0-a504-a6584d1253a6?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_CONTRACTUALREGISTER_LOAD?__egtpl=81ca5026-ccd4-48f0-a504-a6584d1253a6",
|
|
"data" : {
|
|
"PM_CONTRACTUALREGISTER_ID" : "${PM_CONTRACTUALREGISTER_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
},
|
|
"onEvent" : {
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${&}",
|
|
"templateId" : "55f528a5-196d-4fef-a020-1b3dcba9d59a"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_CONTRACTUALREGISTER_UPDATE?__egtpl=81ca5026-ccd4-48f0-a504-a6584d1253a6",
|
|
"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_CONTRACTUALREGISTER_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:PM_CONTRACTUALREGISTER_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/cdeaa5bb-82d9-4b56-8e98-01198b6c0eef?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_CONTRACTUALREGISTER_LOAD(DOCUMENTS)?__egtpl=cdeaa5bb-82d9-4b56-8e98-01198b6c0eef",
|
|
"data" : {
|
|
"PM_CONTRACTUALREGISTER_ID" : "${PM_CONTRACTUALREGISTER_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"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/3a56209c-ffcb-409b-8707-631d567f8e6f?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_CONTRACTUALREGISTER_LOAD?__egtpl=3a56209c-ffcb-409b-8707-631d567f8e6f",
|
|
"data" : {
|
|
"PM_CONTRACTUALREGISTER_ID" : "${PM_CONTRACTUALREGISTER_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "确定",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_CONTRACTUALREGISTER_SENDBOOK?__egtpl=3a56209c-ffcb-409b-8707-631d567f8e6f",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "备案",
|
|
"label" : "备案",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"confirmText" : "确认要删除此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_CONTRACTUALREGISTER_UPDATE_CONFIRM",
|
|
"data" : {
|
|
"PM_CONTRACTUALREGISTER_ID" : "${selectedItems[0].PM_CONTRACTUALREGISTER_ID}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "取消备案",
|
|
"label" : "取消备案",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"confirmText" : "确认要删除此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_CONTRACTUALREGISTER_UPDATE_UNCONFIRM",
|
|
"data" : {
|
|
"PM_CONTRACTUALREGISTER_ID" : "${selectedItems[0].PM_CONTRACTUALREGISTER_ID}"
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "PM_CONTRACTUALREGISTER_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "disabled",
|
|
"componentId" : "备案"
|
|
}, {
|
|
"actionType" : "disabled",
|
|
"componentId" : "取消备案"
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 2,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "55f528a5-196d-4fef-a020-1b3dcba9d59a"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult2"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult2.commands}"
|
|
}
|
|
} ]
|
|
},
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${&}",
|
|
"templateId" : "55f528a5-196d-4fef-a020-1b3dcba9d59a"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |