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>
416 lines
14 KiB
JSON
416 lines
14 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "进项税发票编辑-发票识别页面(五建定制)",
|
|
"body" : {
|
|
"type" : "form",
|
|
"id" : "eip4-edit-form",
|
|
"title" : "",
|
|
"mode" : "horizontal",
|
|
"horizontal" : {
|
|
"leftFixed" : 120
|
|
},
|
|
"body" : [ {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "SELECT",
|
|
"label" : "批量上传发票",
|
|
"required" : true,
|
|
"type" : "input-table",
|
|
"id" : "eg-SELECT",
|
|
"addable" : true,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 6,
|
|
"body" : [ {
|
|
"name" : "PROJECTID",
|
|
"label" : "工程名称",
|
|
"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" ]
|
|
}
|
|
} ]
|
|
}, {
|
|
"md" : 6,
|
|
"body" : [ {
|
|
"name" : "RECEIPTTYPE",
|
|
"label" : "发票类型",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/INVOICEMANAGEMENT_INVOICETYPE"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "INVOICELIST",
|
|
"label" : "发票明细",
|
|
"type" : "input-table",
|
|
"id" : "eg-INVOICELIST",
|
|
"addable" : false,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "PROJECTID",
|
|
"label" : "工程名称",
|
|
"quickEdit" : {
|
|
"name" : "PROJECTID",
|
|
"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" ]
|
|
},
|
|
"onEvent" : {
|
|
"change" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"outputVar" : "egRow",
|
|
"args" : {
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-editgrid-row",
|
|
"data" : {
|
|
"templateId" : "4d88720f-ece8-4bd1-9bf6-5035bdcf1144",
|
|
"editgridField" : "INVOICELIST",
|
|
"scriptKey" : "55f19b57-0314-456h-9afa-4d3c3dd4a6b5",
|
|
"changedField" : "PROJECTID",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"INVOICELIST" : "${__rendererData.INVOICELIST || INVOICELIST}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-INVOICELIST",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"name" : "CONTRACTID",
|
|
"label" : "合同名称",
|
|
"quickEdit" : {
|
|
"name" : "CONTRACTID",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/ef35975d-f063-47a5-85f8-010b36ea7bce/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" : "4d88720f-ece8-4bd1-9bf6-5035bdcf1144",
|
|
"editgridField" : "INVOICELIST",
|
|
"scriptKey" : "84d91e88-0314-4a97-9wc2-c5e9ae4042d3",
|
|
"changedField" : "CONTRACTID",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"INVOICELIST" : "${__rendererData.INVOICELIST || INVOICELIST}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-INVOICELIST",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"name" : "CONTRACTMONEY",
|
|
"label" : "合同额(元)",
|
|
"quickEdit" : {
|
|
"name" : "CONTRACTMONEY",
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
}
|
|
}, {
|
|
"name" : "SALESPARTY",
|
|
"label" : "销售方",
|
|
"quickEdit" : {
|
|
"name" : "SALESPARTY",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "RECEIPTTYPE",
|
|
"label" : "发票类型",
|
|
"quickEdit" : {
|
|
"name" : "RECEIPTTYPE",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/INVOICEMANAGEMENT_INVOICETYPE",
|
|
"onEvent" : {
|
|
"change" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"outputVar" : "egRow",
|
|
"args" : {
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-editgrid-row",
|
|
"data" : {
|
|
"templateId" : "4d88720f-ece8-4bd1-9bf6-5035bdcf1144",
|
|
"editgridField" : "INVOICELIST",
|
|
"scriptKey" : "79acceb9-0314-494f-9f02-77163742acc3",
|
|
"changedField" : "RECEIPTTYPE",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"INVOICELIST" : "${__rendererData.INVOICELIST || INVOICELIST}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-INVOICELIST",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"name" : "INVOICEDATE",
|
|
"label" : "开票日期",
|
|
"quickEdit" : {
|
|
"name" : "INVOICEDATE",
|
|
"required" : true,
|
|
"type" : "input-date",
|
|
"value" : "${now}"
|
|
}
|
|
}, {
|
|
"name" : "INVOICENO",
|
|
"label" : "票号",
|
|
"quickEdit" : {
|
|
"name" : "INVOICENO",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "INVOICECODE",
|
|
"label" : "发票代码",
|
|
"quickEdit" : {
|
|
"name" : "INVOICECODE",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "INVOICEMONEY",
|
|
"label" : "不含税额",
|
|
"quickEdit" : {
|
|
"name" : "INVOICEMONEY",
|
|
"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" : "4d88720f-ece8-4bd1-9bf6-5035bdcf1144",
|
|
"editgridField" : "INVOICELIST",
|
|
"scriptKey" : "d61b507b-9d12-0314-87e0-ac0ae664c1ea",
|
|
"changedField" : "INVOICEMONEY",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"INVOICELIST" : "${__rendererData.INVOICELIST || INVOICELIST}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-INVOICELIST",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"name" : "TAXRATE",
|
|
"label" : "税率(%)",
|
|
"quickEdit" : {
|
|
"name" : "TAXRATE",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
}
|
|
}, {
|
|
"name" : "TAX",
|
|
"label" : "税额",
|
|
"quickEdit" : {
|
|
"name" : "TAX",
|
|
"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" : "4d88720f-ece8-4bd1-9bf6-5035bdcf1144",
|
|
"editgridField" : "INVOICELIST",
|
|
"scriptKey" : "d61b507b-9d12-0314-87e0-ac0ae664c1ea",
|
|
"changedField" : "TAX",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"INVOICELIST" : "${__rendererData.INVOICELIST || INVOICELIST}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-INVOICELIST",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"name" : "TOTALMONEY",
|
|
"label" : "价税合计",
|
|
"quickEdit" : {
|
|
"name" : "TOTALMONEY",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
}
|
|
}, {
|
|
"name" : "ACCOUNTEDDATE",
|
|
"label" : "入账日期",
|
|
"quickEdit" : {
|
|
"name" : "ACCOUNTEDDATE",
|
|
"required" : true,
|
|
"type" : "input-date",
|
|
"value" : "${now}"
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"name" : "TYPE",
|
|
"label" : "识别发票类型",
|
|
"hidden" : true,
|
|
"type" : "input-text",
|
|
"value" : "PM_INPUTTAXINVOICE"
|
|
} ],
|
|
"actions" : [ ]
|
|
}
|
|
} |