Files
eip4-platform/转换产物-attach/schema/b614076b-159a-4c3d-9ce6-6e6e1fb5fa0b.json
zhengwr 8fe377b0c8 feat(blueprint): master-detail-v1 编译器分支 + PageBlueprintChild
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>
2026-06-20 15:16:30 +08:00

520 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" : 5,
"body" : [ {
"name" : "SELECTUNIT",
"label" : "选择收款单位",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/06fe97fa-6ebe-41e7-9f88-c6a635c1887e/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" : "PAYMENTMETHOD",
"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" : "INVOICERISE",
"label" : "发票抬头",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "UNITPHONE",
"label" : "电话",
"type" : "input-text"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "UNITADDRESS",
"label" : "购货方经营地址",
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "INVOICETYPE",
"label" : "开票类型",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/INVOICE_INVOICETYPE",
"value" : "6"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "RECEIPTTYPE",
"label" : "发票类型",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/INVOICEMANAGEMENT_INVOICETYPE"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "TAXNUMBER",
"label" : "购货方税务登记证号",
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "TAXPAYERIDNO",
"label" : "纳税人识别号",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "BANKOFDEPOSIT",
"label" : "开户银行",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "BANKACCOUNT",
"label" : "银行账号",
"required" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "NO",
"label" : "申请单号",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "INVOICEMONEY",
"label" : "本次开票金额(元)",
"required" : true,
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "SUBMONEY",
"label" : "抵扣分包(元)",
"required" : true,
"type" : "input-number",
"precision" : 2
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "TOTALAMOUNTTAX",
"label" : "税额合计(元)",
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "TOTALAMOUNTTAXFREE",
"label" : "不含税金额合计(元)",
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "TAXRATE",
"label" : "税率(%)",
"required" : true,
"type" : "input-number",
"precision" : 2
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "DETAILS",
"label" : "购货明细",
"required" : true,
"type" : "input-table",
"id" : "eg-DETAILS",
"addable" : true,
"removable" : true,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "GOODSNAME",
"label" : "货物或应税劳务、服务名称",
"quickEdit" : {
"name" : "GOODSNAME",
"required" : true,
"type" : "input-text"
}
}, {
"name" : "SPECIFICATIONS",
"label" : "规格",
"quickEdit" : {
"name" : "SPECIFICATIONS",
"type" : "input-text"
}
}, {
"name" : "NUMBER",
"label" : "数量",
"quickEdit" : {
"name" : "NUMBER",
"type" : "input-number",
"precision" : 2,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "b614076b-159a-4c3d-9ce6-6e6e1fb5fa0b",
"editgridField" : "DETAILS",
"scriptKey" : "6d047b12-0307-4cb9-ad3a-6cfa3b6f4e51",
"changedField" : "NUMBER",
"row" : "${__rendererData}",
"parent" : {
"DETAILS" : "${__rendererData.DETAILS || DETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-DETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "PRICE",
"label" : "单价(元)",
"quickEdit" : {
"name" : "PRICE",
"type" : "input-number",
"precision" : 10,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "b614076b-159a-4c3d-9ce6-6e6e1fb5fa0b",
"editgridField" : "DETAILS",
"scriptKey" : "24ab49fe-0307-4169-a98e-db5eaeef386e",
"changedField" : "PRICE",
"row" : "${__rendererData}",
"parent" : {
"DETAILS" : "${__rendererData.DETAILS || DETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-DETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "AMOUNT",
"label" : "金额(元)",
"quickEdit" : {
"name" : "AMOUNT",
"required" : true,
"disabled" : true,
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "TAXRATE",
"label" : "税率(%)",
"quickEdit" : {
"name" : "TAXRATE",
"disabled" : true,
"type" : "input-number",
"precision" : 2,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "b614076b-159a-4c3d-9ce6-6e6e1fb5fa0b",
"editgridField" : "DETAILS",
"scriptKey" : "6b760bb1-0307-4b58-9fd0-0b107f6626cd",
"changedField" : "TAXRATE",
"row" : "${__rendererData}",
"parent" : {
"DETAILS" : "${__rendererData.DETAILS || DETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-DETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "AMOUNTTAX",
"label" : "税额(元)",
"quickEdit" : {
"name" : "AMOUNTTAX",
"disabled" : true,
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "AMOUNTTAXFREE",
"label" : "价税合计(元)",
"quickEdit" : {
"name" : "AMOUNTTAXFREE",
"type" : "input-number",
"precision" : 2,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "b614076b-159a-4c3d-9ce6-6e6e1fb5fa0b",
"editgridField" : "DETAILS",
"scriptKey" : "6b760bb1-0307-4b58-9fd0-0b107f6626cd",
"changedField" : "AMOUNTTAXFREE",
"row" : "${__rendererData}",
"parent" : {
"DETAILS" : "${__rendererData.DETAILS || DETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-DETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "MATERIALINVOICESTILLOWE",
"label" : "材料发票尚欠(元)",
"type" : "input-number",
"precision" : 2
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "ARTIFICIALWAGESSTILLOWE",
"label" : "劳务发票尚欠(元)",
"type" : "input-number",
"precision" : 2
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "COMMITMENTDATE",
"label" : "承诺送达日期",
"type" : "input-date"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "APPLICANT",
"label" : "申请人",
"type" : "static",
"tpl" : "${APPLICANT_DISPLAY__ ? APPLICANT_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : APPLICANT)}",
"value" : "${currentUser}"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "APPLYDATE",
"label" : "申请日期",
"required" : true,
"disabled" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "REMARK",
"label" : "备注",
"type" : "textarea"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "DOCUMENT",
"label" : "附件",
"required" : true,
"type" : "input-file",
"receiver" : "/api/file/upload?tableName=PM_INVOICEAPPLY&businessKey=${PM_INVOICEAPPLY_ID}",
"downloadUrl" : "/api/file/${id}",
"multiple" : true,
"staticOn" : "${__readonly}",
"joinValues" : false,
"extractValue" : false
} ]
} ]
}, {
"name" : "PM_INVOICEAPPLY_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "ISLASTINVOICE",
"label" : "是否扣税",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO",
"value" : "0",
"hidden" : true
} ],
"actions" : [ ]
}
}