Files
eip4-platform/转换产物-attach/schema/8938661f-8d45-463d-aa64-0f4ef84fda5d.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

844 lines
25 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" : "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" ]
}
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "PROJECTCODE",
"label" : "项目编号",
"disabled" : true,
"type" : "input-text"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "PROJECTMANAGER",
"label" : "项目经理",
"type" : "static",
"tpl" : "${PROJECTMANAGER_DISPLAY__ ? PROJECTMANAGER_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : PROJECTMANAGER)}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "PAYMENTMETHOD",
"label" : "收款方式",
"type" : "input-text"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "INVOICEFORM",
"label" : "征税方式",
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/INVOICE_INVOICEFORM"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "ADDRESS",
"label" : "工程地址",
"disabled" : true,
"type" : "input-text"
} ]
} ]
}, {
"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" ]
}
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "INVOICERISE",
"label" : "发票抬头",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "UNITPHONE",
"label" : "电话",
"disabled" : true,
"type" : "input-text"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "UNITADDRESS",
"label" : "购货方经营地址",
"disabled" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "INVOICETYPE",
"label" : "开票类型",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/INVOICE_INVOICETYPE"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "RECEIPTTYPE",
"label" : "发票类型",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/INVOICEMANAGEMENT_INVOICETYPE"
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "TAXNUMBER",
"label" : "购货方税务登记证号",
"disabled" : true,
"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" : "CONTRACTMONEY",
"label" : "合同总价(元)",
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "OUTPUTTAX_INVOICES",
"label" : "已开票金额(元)",
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "CONTRACTINVOICEBALANCE",
"label" : "合同开票余额(元)",
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "EXTERNAL_TOTAL",
"label" : "累计跨区域涉税事项开具金额(元)",
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "EXTERNALINVOICEBALANCE",
"label" : "外经证开票余额(元)",
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "TAXRATE",
"label" : "税率(%)",
"required" : true,
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
} ]
}, {
"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" : "ISLASTINVOICE",
"label" : "是否扣税",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO",
"value" : "0"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 5,
"body" : [ {
"name" : "TAXFEERATE",
"label" : "费率(%)",
"type" : "input-number",
"precision" : 3,
"min" : 0.0,
"max" : 99.999
} ]
}, {
"md" : 3,
"body" : [ {
"name" : "TAXINCLUDED",
"label" : "是否含税",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"type" : "flex",
"justify" : "flex-start",
"alignItems" : "center",
"style" : {
"paddingLeft" : "120px",
"marginBottom" : "4px"
},
"items" : [ {
"name" : "EXTERNALSELECT",
"label" : "添加",
"type" : "button",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"id" : "egadddlgEXTERNALSELECT",
"title" : "",
"size" : "lg",
"body" : {
"type" : "crud",
"api" : "/api/picker/209698e6-38fb-4c4e-8106-bf28fc9ca87e/list",
"mode" : "table",
"syncLocation" : false,
"selectable" : true,
"multiple" : true,
"keepItemSelectionOnPageChange" : true,
"primaryField" : "_id",
"labelField" : "_label",
"headerToolbar" : [ {
"type" : "search-box",
"placeholder" : "输入关键字搜索",
"name" : "q"
} ],
"footerToolbar" : [ "pagination" ],
"onEvent" : {
"selectedChange" : {
"actions" : [ {
"actionType" : "setValue",
"componentId" : "egadddlgEXTERNALSELECT",
"args" : {
"value" : {
"__egpicked" : "${event.data.selectedItems}"
}
}
} ]
}
}
},
"actions" : [ {
"type" : "button",
"label" : "取消",
"actionType" : "close"
}, {
"type" : "button",
"label" : "确定",
"level" : "primary",
"onEvent" : {
"click" : {
"actions" : [ {
"actionType" : "addItem",
"componentId" : "eg-EXTERNALS",
"args" : {
"item" : "${ARRAYMAP(__egpicked, item => ({...item}))}"
}
}, {
"actionType" : "closeDialog"
} ]
}
}
} ]
},
"hiddenOn" : "${__readonly}"
} ]
}, {
"name" : "EXTERNALS",
"label" : "外经证开具申请明细",
"required" : true,
"type" : "input-table",
"id" : "eg-EXTERNALS",
"addable" : false,
"removable" : true,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "EXTERNALAPPLYID",
"label" : "外经证开具申请",
"type" : "tpl",
"tpl" : "${EXTERNALAPPLYID_DISPLAY__ ? EXTERNALAPPLYID_DISPLAY__ : EXTERNALAPPLYID}",
"quickEdit" : false
}, {
"name" : "LEFTMONEY",
"label" : "开具余额(元)",
"quickEdit" : {
"name" : "LEFTMONEY",
"disabled" : true,
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "EXTERNALMONEY",
"label" : "本次开具金额(元)",
"quickEdit" : {
"name" : "EXTERNALMONEY",
"required" : 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" : "8938661f-8d45-463d-aa64-0f4ef84fda5d",
"editgridField" : "EXTERNALS",
"scriptKey" : "6d8c127b-aa8b-4fa4-b4f4-ab05f8bf0c20",
"changedField" : "EXTERNALMONEY",
"row" : "${__rendererData}",
"parent" : {
"EXTERNALS" : "${__rendererData.EXTERNALS || EXTERNALS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-EXTERNALS",
"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" : "DIVISIONOFINVOICES",
"label" : "开票金额划分明细",
"type" : "input-table",
"id" : "eg-DIVISIONOFINVOICES",
"addable" : false,
"removable" : false,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "PM_PROJECTID",
"label" : "工程名称",
"type" : "tpl",
"tpl" : "${PM_PROJECTID_DISPLAY__ ? PM_PROJECTID_DISPLAY__ : PM_PROJECTID}",
"quickEdit" : false
}, {
"name" : "OWEDEPARTID",
"label" : "所属项目部",
"type" : "tpl",
"tpl" : "${OWEDEPARTID_DISPLAY__ ? OWEDEPARTID_DISPLAY__ : OWEDEPARTID}",
"quickEdit" : false
}, {
"name" : "DIVIDEAMOUNT",
"label" : "金额(元)",
"quickEdit" : {
"name" : "DIVIDEAMOUNT",
"required" : true,
"type" : "input-number",
"precision" : 2
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"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" : "8938661f-8d45-463d-aa64-0f4ef84fda5d",
"editgridField" : "DETAILS",
"scriptKey" : "6d047b12-2240-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" : "8938661f-8d45-463d-aa64-0f4ef84fda5d",
"editgridField" : "DETAILS",
"scriptKey" : "24ab49fe-6129-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,
"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" : "8938661f-8d45-463d-aa64-0f4ef84fda5d",
"editgridField" : "DETAILS",
"scriptKey" : "6b760bb1-2d69-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",
"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" : "8938661f-8d45-463d-aa64-0f4ef84fda5d",
"editgridField" : "DETAILS",
"scriptKey" : "6b760bb1-2d69-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}"
} ]
}, {
"md" : 3,
"body" : [ ]
} ]
}, {
"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_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"
} ],
"actions" : [ ]
}
}