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>
527 lines
15 KiB
JSON
527 lines
15 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" : "COSTNUMBER",
|
||
"label" : "对应成本编号",
|
||
"type" : "input-text"
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"type" : "grid",
|
||
"columns" : [ {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "PM_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" : "FIRSTPARTY",
|
||
"label" : "甲方",
|
||
"type" : "input-text"
|
||
} ]
|
||
}, {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "CREATEBY",
|
||
"label" : "申请人",
|
||
"type" : "static",
|
||
"tpl" : "${CREATEBY_DISPLAY__ ? CREATEBY_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : CREATEBY)}",
|
||
"value" : "${currentUser}"
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"type" : "grid",
|
||
"columns" : [ {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "CONTRACTCATEGORY",
|
||
"label" : "合同类别",
|
||
"required" : true,
|
||
"type" : "select",
|
||
"clearable" : true,
|
||
"source" : "/api/poc/dict/CONTRACTCATEGORY"
|
||
} ]
|
||
}, {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "CONTRACTFORM",
|
||
"label" : "合同形式",
|
||
"required" : true,
|
||
"type" : "select",
|
||
"clearable" : true,
|
||
"source" : "/api/poc/dict/CONTRACTFORM"
|
||
} ]
|
||
}, {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "BYCONTRACTTYPE",
|
||
"label" : "承包方式",
|
||
"required" : true,
|
||
"type" : "select",
|
||
"clearable" : true,
|
||
"source" : "/api/poc/dict/bycontracttype",
|
||
"value" : "1"
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"type" : "grid",
|
||
"columns" : [ {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "LABOURNAME",
|
||
"label" : "劳务公司",
|
||
"required" : true,
|
||
"type" : "picker",
|
||
"clearable" : true,
|
||
"source" : "/api/picker/d20bca21-31d5-421b-8676-3a7ed28d9262/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" : "CONTACTPERSONID",
|
||
"label" : "联系人",
|
||
"type" : "select",
|
||
"clearable" : true,
|
||
"source" : "/api/picker/OA_CONTACTPERSONINFO/list?perPage=500"
|
||
} ]
|
||
}, {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "CONTACTPHONENUMBER",
|
||
"label" : "联系电话",
|
||
"disabled" : true,
|
||
"type" : "input-text"
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"type" : "grid",
|
||
"columns" : [ {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "CONTRACTMONEY",
|
||
"label" : "合同价款(元)",
|
||
"required" : true,
|
||
"type" : "input-number",
|
||
"precision" : 2,
|
||
"min" : 0.0
|
||
} ]
|
||
}, {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "STARTDATE",
|
||
"label" : "开始日期",
|
||
"required" : true,
|
||
"type" : "input-date",
|
||
"value" : "${now}"
|
||
} ]
|
||
}, {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "ENDDATE",
|
||
"label" : "结束日期",
|
||
"required" : true,
|
||
"type" : "input-date",
|
||
"value" : "${now}"
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"name" : "LC_COMANY",
|
||
"label" : "劳务公司-不用",
|
||
"hidden" : true,
|
||
"type" : "static",
|
||
"tpl" : "${LC_COMANY_DISPLAY__ ? LC_COMANY_DISPLAY__ : (UNITNAME ? UNITNAME : LC_COMANY)}"
|
||
}, {
|
||
"type" : "grid",
|
||
"columns" : [ {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "SUBCONTRACTNAME",
|
||
"label" : "分包合同名称",
|
||
"required" : true,
|
||
"type" : "input-text"
|
||
} ]
|
||
}, {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "ORGID",
|
||
"label" : "(分)公司",
|
||
"required" : true,
|
||
"type" : "select",
|
||
"clearable" : true,
|
||
"source" : "/api/picker/SYS_ORG/list?perPage=500"
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"type" : "grid",
|
||
"columns" : [ {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "SEALCOUNT",
|
||
"label" : " 合同份数",
|
||
"type" : "input-number",
|
||
"precision" : 0,
|
||
"step" : 1
|
||
} ]
|
||
}, {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "APPROVALTYPE",
|
||
"label" : "审批类型",
|
||
"required" : true,
|
||
"type" : "select",
|
||
"clearable" : true,
|
||
"source" : "/api/poc/dict/PM_SPECIALTYSUBCON_APPROVERTYPE"
|
||
} ]
|
||
}, {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "CREATETIME",
|
||
"label" : "申请日期",
|
||
"disabled" : true,
|
||
"type" : "input-date",
|
||
"value" : "${now}"
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"type" : "grid",
|
||
"columns" : [ {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "TOTALCONTROLCOST",
|
||
"label" : "劳务成本总额",
|
||
"disabled" : true,
|
||
"type" : "input-number",
|
||
"precision" : 2
|
||
} ]
|
||
}, {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "TOTALCONTRACTMONEY",
|
||
"label" : "累计已签劳务合同总额",
|
||
"disabled" : true,
|
||
"type" : "input-number",
|
||
"precision" : 2
|
||
} ]
|
||
}, {
|
||
"md" : 4,
|
||
"body" : [ {
|
||
"name" : "TOTALREVIEWMONEY",
|
||
"label" : "累计评审金额",
|
||
"disabled" : true,
|
||
"type" : "input-number",
|
||
"precision" : 2
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"type" : "grid",
|
||
"columns" : [ {
|
||
"md" : 12,
|
||
"body" : [ {
|
||
"name" : "SUBCONTENT",
|
||
"label" : "分包内容",
|
||
"required" : true,
|
||
"type" : "textarea"
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"type" : "grid",
|
||
"columns" : [ {
|
||
"md" : 12,
|
||
"body" : [ {
|
||
"name" : "AGREEDTERMS",
|
||
"label" : "合同约定付款条款",
|
||
"type" : "textarea"
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"type" : "grid",
|
||
"columns" : [ {
|
||
"md" : 12,
|
||
"body" : [ {
|
||
"name" : "REMARK",
|
||
"label" : "备注",
|
||
"type" : "textarea"
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"name" : "BUTTON",
|
||
"label" : "根据分包明细计算合同价款",
|
||
"hidden" : true,
|
||
"type" : "input-text"
|
||
}, {
|
||
"type" : "grid",
|
||
"columns" : [ {
|
||
"md" : 12,
|
||
"body" : [ {
|
||
"name" : "CONTENTS",
|
||
"label" : "分包详情",
|
||
"type" : "input-table",
|
||
"id" : "eg-CONTENTS",
|
||
"addable" : true,
|
||
"removable" : true,
|
||
"staticOn" : "${__readonly}",
|
||
"columns" : [ {
|
||
"name" : "PROJECTNAME",
|
||
"label" : "项目名称",
|
||
"quickEdit" : {
|
||
"name" : "PROJECTNAME",
|
||
"required" : true,
|
||
"type" : "input-text"
|
||
}
|
||
}, {
|
||
"name" : "CONTENT",
|
||
"label" : "工作内容",
|
||
"quickEdit" : {
|
||
"name" : "CONTENT",
|
||
"required" : true,
|
||
"type" : "input-text"
|
||
}
|
||
}, {
|
||
"name" : "CALCULATIONRULES",
|
||
"label" : "工程量计算规则",
|
||
"quickEdit" : {
|
||
"name" : "CALCULATIONRULES",
|
||
"type" : "input-text"
|
||
}
|
||
}, {
|
||
"name" : "UNIT",
|
||
"label" : "单位",
|
||
"quickEdit" : {
|
||
"name" : "UNIT",
|
||
"required" : true,
|
||
"type" : "select",
|
||
"clearable" : true,
|
||
"source" : "/api/poc/dict/SUB_CONTENT_UNIT"
|
||
}
|
||
}, {
|
||
"name" : "ENGINEERINGQUANTITY",
|
||
"label" : "工程量",
|
||
"quickEdit" : {
|
||
"name" : "ENGINEERINGQUANTITY",
|
||
"type" : "input-number",
|
||
"precision" : 4,
|
||
"onEvent" : {
|
||
"change" : {
|
||
"actions" : [ {
|
||
"actionType" : "ajax",
|
||
"outputVar" : "egRow",
|
||
"args" : {
|
||
"api" : {
|
||
"method" : "post",
|
||
"url" : "/api/script/execute-editgrid-row",
|
||
"data" : {
|
||
"templateId" : "2f429840-960f-4264-be26-4e7f6be10ccb",
|
||
"editgridField" : "CONTENTS",
|
||
"scriptKey" : "fd442e1d-c2d5-44s8-b955-5cca79c98956",
|
||
"changedField" : "ENGINEERINGQUANTITY",
|
||
"row" : "${__rendererData}",
|
||
"parent" : {
|
||
"CONTENTS" : "${__rendererData.CONTENTS || CONTENTS}"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}, {
|
||
"actionType" : "setValue",
|
||
"componentId" : "eg-CONTENTS",
|
||
"args" : {
|
||
"index" : "${index}",
|
||
"value" : "${egRow.rowSetValues}"
|
||
}
|
||
}, {
|
||
"actionType" : "setValue",
|
||
"componentId" : "eip4-edit-form",
|
||
"args" : {
|
||
"value" : "${egRow.parentSetValues}"
|
||
}
|
||
} ]
|
||
}
|
||
}
|
||
}
|
||
}, {
|
||
"name" : "UNITPRICE",
|
||
"label" : "单价(元)",
|
||
"quickEdit" : {
|
||
"name" : "UNITPRICE",
|
||
"type" : "input-number",
|
||
"precision" : 2,
|
||
"onEvent" : {
|
||
"change" : {
|
||
"actions" : [ {
|
||
"actionType" : "ajax",
|
||
"outputVar" : "egRow",
|
||
"args" : {
|
||
"api" : {
|
||
"method" : "post",
|
||
"url" : "/api/script/execute-editgrid-row",
|
||
"data" : {
|
||
"templateId" : "2f429840-960f-4264-be26-4e7f6be10ccb",
|
||
"editgridField" : "CONTENTS",
|
||
"scriptKey" : "fd442e1d-c2d5-44s8-b955-5cca79c98956",
|
||
"changedField" : "UNITPRICE",
|
||
"row" : "${__rendererData}",
|
||
"parent" : {
|
||
"CONTENTS" : "${__rendererData.CONTENTS || CONTENTS}"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}, {
|
||
"actionType" : "setValue",
|
||
"componentId" : "eg-CONTENTS",
|
||
"args" : {
|
||
"index" : "${index}",
|
||
"value" : "${egRow.rowSetValues}"
|
||
}
|
||
}, {
|
||
"actionType" : "setValue",
|
||
"componentId" : "eip4-edit-form",
|
||
"args" : {
|
||
"value" : "${egRow.parentSetValues}"
|
||
}
|
||
} ]
|
||
}
|
||
}
|
||
}
|
||
}, {
|
||
"name" : "VALENCE",
|
||
"label" : "合价(元)",
|
||
"quickEdit" : {
|
||
"name" : "VALENCE",
|
||
"required" : true,
|
||
"type" : "input-number",
|
||
"precision" : 2
|
||
}
|
||
}, {
|
||
"name" : "REMARK",
|
||
"label" : "备注",
|
||
"quickEdit" : {
|
||
"name" : "REMARK",
|
||
"type" : "input-text"
|
||
}
|
||
} ],
|
||
"needConfirm" : false
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"type" : "grid",
|
||
"columns" : [ {
|
||
"md" : 12,
|
||
"body" : [ {
|
||
"name" : "LABOURSUBCONTRACTVIEWID",
|
||
"label" : "劳务分包合同评审表ID(外键)",
|
||
"type" : "input-table",
|
||
"id" : "eg-LABOURSUBCONTRACTVIEWID",
|
||
"addable" : false,
|
||
"removable" : false,
|
||
"staticOn" : "${__readonly}",
|
||
"columns" : [ {
|
||
"name" : "RATEITEM",
|
||
"label" : "付款节点",
|
||
"quickEdit" : {
|
||
"name" : "RATEITEM",
|
||
"required" : true,
|
||
"disabled" : true,
|
||
"type" : "select",
|
||
"clearable" : true,
|
||
"source" : "/api/poc/dict/SUBCONTRACT_BASICSCONFIG"
|
||
}
|
||
}, {
|
||
"name" : "RATEVALUE",
|
||
"label" : "付款比例(%)",
|
||
"quickEdit" : {
|
||
"name" : "RATEVALUE",
|
||
"required" : true,
|
||
"type" : "input-number",
|
||
"precision" : 4,
|
||
"min" : 0.0,
|
||
"max" : 100.0
|
||
}
|
||
} ],
|
||
"needConfirm" : false
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"type" : "grid",
|
||
"columns" : [ {
|
||
"md" : 12,
|
||
"body" : [ {
|
||
"name" : "DOCUMENT",
|
||
"label" : "附件",
|
||
"type" : "input-file",
|
||
"receiver" : "/api/file/upload?tableName=PM_LABOURSUBCONTRACTREVIEW&businessKey=${PM_LABOURSUBCONTRACTREVIEW_ID}",
|
||
"downloadUrl" : "/api/file/${id}",
|
||
"multiple" : true,
|
||
"staticOn" : "${__readonly}",
|
||
"joinValues" : false,
|
||
"extractValue" : false
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"name" : "PM_LABOURSUBCONTRACTREVIEW_ID",
|
||
"label" : "主键",
|
||
"hidden" : true,
|
||
"type" : "input-text"
|
||
}, {
|
||
"name" : "APPROVER",
|
||
"label" : "批准人",
|
||
"hidden" : true,
|
||
"type" : "select",
|
||
"clearable" : true,
|
||
"searchable" : true,
|
||
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
|
||
}, {
|
||
"name" : "REVIEWDATE",
|
||
"label" : "批准日期",
|
||
"hidden" : true,
|
||
"type" : "input-date"
|
||
} ],
|
||
"actions" : [ ]
|
||
}
|
||
} |