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>
376 lines
9.2 KiB
JSON
376 lines
9.2 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "劳务公司信息的添加页面2",
|
|
"body" : {
|
|
"type" : "form",
|
|
"title" : "",
|
|
"mode" : "horizontal",
|
|
"horizontal" : {
|
|
"leftFixed" : 120
|
|
},
|
|
"body" : [ {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "UNITNAME",
|
|
"label" : "企业名称",
|
|
"required" : true,
|
|
"type" : "input-text",
|
|
"maxLength" : 50
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "UNITNO",
|
|
"label" : "企业编码",
|
|
"type" : "input-text",
|
|
"maxLength" : 50
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "UNITABBREVIATION",
|
|
"label" : "企业简称",
|
|
"type" : "input-text",
|
|
"maxLength" : 50
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "UNITPROPERTY",
|
|
"label" : "单位性质",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/UNITPROPERTY"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "UNITFOUNDDATE",
|
|
"label" : "企业成立日期",
|
|
"type" : "input-date",
|
|
"value" : "${now}"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "REGISTERCAPITAL",
|
|
"label" : "注册资本(万元)",
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "UNITAPTITUDE",
|
|
"label" : "企业资质",
|
|
"type" : "input-text",
|
|
"maxLength" : 200
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "BUSINESSLICENSEPERIOD",
|
|
"label" : "营业执照期限",
|
|
"type" : "input-text",
|
|
"maxLength" : 10
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "UNITPHONE",
|
|
"label" : "单位电话",
|
|
"type" : "input-text",
|
|
"maxLength" : 100
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "UNITFAX",
|
|
"label" : "传真",
|
|
"type" : "input-text",
|
|
"maxLength" : 20
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "UNITADDRESS",
|
|
"label" : "地址",
|
|
"type" : "input-text",
|
|
"maxLength" : 100
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "UNITZIPCODE",
|
|
"label" : "邮编",
|
|
"type" : "input-text",
|
|
"maxLength" : 10
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "UNITEMAIL",
|
|
"label" : "单位邮箱",
|
|
"type" : "input-text",
|
|
"maxLength" : 50
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "UNITURL",
|
|
"label" : "网址",
|
|
"type" : "input-text",
|
|
"maxLength" : 200
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "CORPORATE",
|
|
"label" : "法人代表",
|
|
"type" : "input-text",
|
|
"maxLength" : 20
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "CORPORATEPHONE",
|
|
"label" : "法人代表电话",
|
|
"type" : "input-text",
|
|
"maxLength" : 100
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "CORPORATEFAX",
|
|
"label" : "法人代表传真",
|
|
"type" : "input-text",
|
|
"maxLength" : 20
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "CORPORATEEMAIL",
|
|
"label" : "法人代表邮箱",
|
|
"type" : "input-text",
|
|
"maxLength" : 50
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "WORKERAMOUNT",
|
|
"label" : "劳务人数(人)",
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "SKILLEDWORKERAMOUNT",
|
|
"label" : "技术人员数(人)",
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "BUILDERSLICENSENO",
|
|
"label" : "施工许可证编号",
|
|
"type" : "input-text"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"name" : "UNITID",
|
|
"label" : "单位",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "WORKSAFETYLICENSENO",
|
|
"label" : "安全生产许可证编号",
|
|
"type" : "input-text"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "REGISTERDATE",
|
|
"label" : "登记日期",
|
|
"required" : true,
|
|
"type" : "input-date",
|
|
"value" : "${now}"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "BANKS",
|
|
"label" : "银行账户信息",
|
|
"type" : "input-table",
|
|
"id" : "eg-BANKS",
|
|
"addable" : true,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "PAYEEUNITNAME",
|
|
"label" : "收款单位全称",
|
|
"quickEdit" : {
|
|
"name" : "PAYEEUNITNAME",
|
|
"required" : true,
|
|
"type" : "input-text",
|
|
"maxLength" : 50
|
|
}
|
|
}, {
|
|
"name" : "OPENINGBANK",
|
|
"label" : "开户银行",
|
|
"quickEdit" : {
|
|
"name" : "OPENINGBANK",
|
|
"type" : "input-text",
|
|
"maxLength" : 50
|
|
}
|
|
}, {
|
|
"name" : "ACCOUNTNUMBER",
|
|
"label" : "银行账号",
|
|
"quickEdit" : {
|
|
"name" : "ACCOUNTNUMBER",
|
|
"type" : "input-text",
|
|
"maxLength" : 50
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "PERSONS",
|
|
"label" : "联系人信息",
|
|
"type" : "input-table",
|
|
"id" : "eg-PERSONS",
|
|
"addable" : true,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "NAME",
|
|
"label" : "姓名",
|
|
"quickEdit" : {
|
|
"name" : "NAME",
|
|
"required" : true,
|
|
"type" : "input-text",
|
|
"maxLength" : 50
|
|
}
|
|
}, {
|
|
"name" : "POSITIONTITLE",
|
|
"label" : "职位职称",
|
|
"quickEdit" : {
|
|
"name" : "POSITIONTITLE",
|
|
"type" : "input-text",
|
|
"maxLength" : 20
|
|
}
|
|
}, {
|
|
"name" : "PHONE",
|
|
"label" : "电话",
|
|
"quickEdit" : {
|
|
"name" : "PHONE",
|
|
"type" : "input-text",
|
|
"maxLength" : 100
|
|
}
|
|
}, {
|
|
"name" : "FAX",
|
|
"label" : "传真",
|
|
"quickEdit" : {
|
|
"name" : "FAX",
|
|
"type" : "input-text",
|
|
"maxLength" : 20
|
|
}
|
|
}, {
|
|
"name" : "EMAIL",
|
|
"label" : "邮箱",
|
|
"quickEdit" : {
|
|
"name" : "EMAIL",
|
|
"type" : "input-text",
|
|
"maxLength" : 50
|
|
}
|
|
}, {
|
|
"name" : "ISPRINCIPALPERSON",
|
|
"label" : "负责人",
|
|
"quickEdit" : {
|
|
"name" : "ISPRINCIPALPERSON",
|
|
"required" : true,
|
|
"type" : "checkbox",
|
|
"value" : "0"
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "REMARK",
|
|
"label" : "备注",
|
|
"type" : "textarea"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "DOCUMENT",
|
|
"label" : "附件",
|
|
"type" : "input-file",
|
|
"receiver" : "/api/file/upload?tableName=PM_LABORCOMPANY&businessKey=${PM_LABORCOMPANY_ID}",
|
|
"downloadUrl" : "/api/file/${id}",
|
|
"multiple" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"joinValues" : false,
|
|
"extractValue" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"name" : "VIEW_PM_LABORCOMPANY_ID",
|
|
"label" : "主键",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "ELIGIBILITY",
|
|
"label" : "分包商状态",
|
|
"hidden" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/eligibility",
|
|
"value" : "1"
|
|
} ],
|
|
"actions" : [ ]
|
|
}
|
|
} |