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>
627 lines
20 KiB
JSON
627 lines
20 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" : 5,
|
|
"body" : [ {
|
|
"name" : "PM_PROJECTID",
|
|
"label" : "工程名称",
|
|
"required" : true,
|
|
"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}"
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "BUILDCOMPANY",
|
|
"label" : "建设单位",
|
|
"required" : true,
|
|
"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" ]
|
|
}
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "ORGID",
|
|
"label" : "(分)公司",
|
|
"type" : "static",
|
|
"tpl" : "${ORGID_DISPLAY__ ? ORGID_DISPLAY__ : (NAME ? NAME : ORGID)}"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 5,
|
|
"body" : [ {
|
|
"name" : "TYPE",
|
|
"label" : "工程类型",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_PROJECT_TYPE"
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "CATEGORY",
|
|
"label" : "工程类别",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_PROJECT_CATEGORY"
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "ADDRESS",
|
|
"label" : "工程地址",
|
|
"type" : "input-text"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 5,
|
|
"body" : [ {
|
|
"name" : "STRUCTURE",
|
|
"label" : "结构",
|
|
"type" : "input-text"
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "NUMBER",
|
|
"label" : "层次",
|
|
"type" : "input-text"
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "ACREAGE",
|
|
"label" : "建筑面积(m2)",
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 5,
|
|
"body" : [ {
|
|
"name" : "PROJECTMANAGER",
|
|
"label" : "项目经理",
|
|
"required" : true,
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
},
|
|
"placeholder" : "请点击右侧的图标"
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "FIRSTSIDEMANAGER",
|
|
"label" : "建设单位负责人",
|
|
"type" : "input-text"
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "INVOICEFORM",
|
|
"label" : "征税方式",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/INVOICE_INVOICEFORM"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 5,
|
|
"body" : [ {
|
|
"name" : "TAXRATE",
|
|
"label" : "税率(%)",
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 5,
|
|
"body" : [ {
|
|
"name" : "SIGNUPTIME",
|
|
"label" : "签约日期",
|
|
"required" : true,
|
|
"type" : "input-date"
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "CONTRACTNUMBER",
|
|
"label" : "合同编号",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "CONTRACTUALMODE",
|
|
"label" : "承包方式",
|
|
"type" : "input-text"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 5,
|
|
"body" : [ {
|
|
"name" : "CONTRACTUALFORM",
|
|
"label" : "合同形式",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/CONTRACTFORM"
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "GENERALCONTRACTOR",
|
|
"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" ]
|
|
}
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "PRJNUMBER",
|
|
"label" : "合同备案编号",
|
|
"type" : "input-text"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 5,
|
|
"body" : [ {
|
|
"name" : "STARTTIME",
|
|
"label" : "开工日期",
|
|
"type" : "input-date"
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "ENDTIME",
|
|
"label" : "竣工日期",
|
|
"type" : "input-date"
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "WORKINGDAYS",
|
|
"label" : "工期(天)",
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 5,
|
|
"body" : [ {
|
|
"name" : "CONTRACTUALMONEY",
|
|
"label" : "合同价款(元)",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2,
|
|
"max" : 9.99999999999E9
|
|
} ]
|
|
}, {
|
|
"md" : 7,
|
|
"body" : [ {
|
|
"name" : "CAPITAL",
|
|
"label" : "大写",
|
|
"disabled" : true,
|
|
"type" : "input-text"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 5,
|
|
"body" : [ {
|
|
"name" : "PUTONRECORD",
|
|
"label" : "是否备案",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO"
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "CREATEBY",
|
|
"label" : "登记人",
|
|
"type" : "static",
|
|
"tpl" : "${CREATEBY_DISPLAY__ ? CREATEBY_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : CREATEBY)}"
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "CREATETIME",
|
|
"label" : "登记日期",
|
|
"disabled" : true,
|
|
"type" : "input-date"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "TYPEOFPAYMENT",
|
|
"label" : "付款方式",
|
|
"type" : "textarea"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "CONTRACTUALSCOPE",
|
|
"label" : "承包范围",
|
|
"required" : true,
|
|
"type" : "textarea"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 5,
|
|
"body" : [ {
|
|
"name" : "QUALITYSTANDARD",
|
|
"label" : "质量标准",
|
|
"type" : "input-text"
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "SECURITYDESIRE",
|
|
"label" : "安全要求",
|
|
"type" : "input-text"
|
|
} ]
|
|
}, {
|
|
"md" : 3,
|
|
"body" : [ {
|
|
"name" : "DEPOSITRATE",
|
|
"label" : "合同履约金",
|
|
"type" : "input-text"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "MEMBERUSERS",
|
|
"label" : "合同备案人员",
|
|
"type" : "input-table",
|
|
"id" : "eg-MEMBERUSERS",
|
|
"addable" : true,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "PROJECTROLE",
|
|
"label" : "项目角色",
|
|
"quickEdit" : {
|
|
"name" : "PROJECTROLE",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_PROJECTMANAGERROLE",
|
|
"onEvent" : {
|
|
"change" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"outputVar" : "egRow",
|
|
"args" : {
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-editgrid-row",
|
|
"data" : {
|
|
"templateId" : "cdeaa5bb-82d9-4b56-8e98-01198b6c0eef",
|
|
"editgridField" : "MEMBERUSERS",
|
|
"scriptKey" : "2884336e-0637-4a49-908d-d96cf811c8b2",
|
|
"changedField" : "PROJECTROLE",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"MEMBERUSERS" : "${__rendererData.MEMBERUSERS || MEMBERUSERS}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-MEMBERUSERS",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"name" : "USERID",
|
|
"label" : "姓名",
|
|
"type" : "tpl",
|
|
"tpl" : "${USERID_DISPLAY__ ? USERID_DISPLAY__ : USERID}",
|
|
"quickEdit" : false
|
|
}, {
|
|
"name" : "SELECT",
|
|
"label" : "SELECT",
|
|
"quickEdit" : {
|
|
"name" : "SELECT",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/a801e436-9176-4794-a48b-5c7020697697/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" : "cdeaa5bb-82d9-4b56-8e98-01198b6c0eef",
|
|
"editgridField" : "MEMBERUSERS",
|
|
"scriptKey" : "d2f3163a-73c7-4072-9ab9-bfe28e4cbb54",
|
|
"changedField" : "SELECT",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"MEMBERUSERS" : "${__rendererData.MEMBERUSERS || MEMBERUSERS}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-MEMBERUSERS",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "NOTE",
|
|
"label" : "备注",
|
|
"type" : "textarea"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "DOCUMENT",
|
|
"label" : "附件",
|
|
"required" : true,
|
|
"type" : "input-file",
|
|
"receiver" : "/api/file/upload?tableName=PM_CONTRACTUALREGISTER&businessKey=${PM_CONTRACTUALREGISTER_ID}",
|
|
"downloadUrl" : "/api/file/${id}",
|
|
"multiple" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"joinValues" : false,
|
|
"extractValue" : false
|
|
} ]
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"title" : "交底信息",
|
|
"body" : [ {
|
|
"name" : "CONTRACTBOOKS",
|
|
"label" : "交底书",
|
|
"type" : "input-table",
|
|
"id" : "eg-CONTRACTBOOKS",
|
|
"addable" : true,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ ],
|
|
"needConfirm" : false
|
|
}, {
|
|
"name" : "CONTRACTBOOKRECEIVER",
|
|
"label" : "交底接收人",
|
|
"type" : "input-table",
|
|
"id" : "eg-CONTRACTBOOKRECEIVER",
|
|
"addable" : true,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "RECEIVER",
|
|
"label" : "接收人",
|
|
"quickEdit" : {
|
|
"name" : "RECEIVER",
|
|
"required" : true,
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
},
|
|
"placeholder" : "请点击右侧的图标"
|
|
}
|
|
}, {
|
|
"name" : "CREATETIME",
|
|
"label" : "接收时间",
|
|
"quickEdit" : {
|
|
"name" : "CREATETIME",
|
|
"type" : "input-datetime"
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
}, {
|
|
"name" : "PM_CONTRACTUALREGISTER_ID",
|
|
"label" : "主键",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "CONTRACTNAME",
|
|
"label" : "合同名称",
|
|
"required" : true,
|
|
"type" : "input-text",
|
|
"hidden" : true
|
|
}, {
|
|
"name" : "PREPAY",
|
|
"label" : "预付款(元)",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2,
|
|
"max" : 9.99999999999E9,
|
|
"hidden" : true
|
|
}, {
|
|
"name" : "PROGRESSPAYRATE",
|
|
"label" : "进度支付比例(%)",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2,
|
|
"max" : 100.0,
|
|
"hidden" : true
|
|
}, {
|
|
"name" : "BALANCEPAYRATE",
|
|
"label" : "竣工结算支付比例(%)",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2,
|
|
"max" : 100.0,
|
|
"hidden" : true
|
|
}, {
|
|
"name" : "ISSTART",
|
|
"label" : "项目是否启动",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"hidden" : true,
|
|
"type" : "checkbox"
|
|
} ]
|
|
} ]
|
|
} ],
|
|
"actions" : [ ]
|
|
}
|
|
} |