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>
356 lines
12 KiB
JSON
356 lines
12 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",
|
|
"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" : "d90344f7-589d-4e6e-b79a-a00ab0f2a01b",
|
|
"editgridField" : "INVOICELIST",
|
|
"scriptKey" : "6c546ef2-0313-46ee-85ca-9ab2bca99d08",
|
|
"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" : "RECEIPTTYPE",
|
|
"label" : "发票类型",
|
|
"quickEdit" : {
|
|
"name" : "RECEIPTTYPE",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/INVOICEMANAGEMENT_INVOICETYPE"
|
|
}
|
|
}, {
|
|
"name" : "INVOICETYPE",
|
|
"label" : "开票类型",
|
|
"quickEdit" : {
|
|
"name" : "INVOICETYPE",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/INVOICE_INVOICETYPE"
|
|
}
|
|
}, {
|
|
"name" : "SALESPARTY",
|
|
"label" : "销售方",
|
|
"quickEdit" : {
|
|
"name" : "SALESPARTY",
|
|
"disabled" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"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",
|
|
"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" : "d90344f7-589d-4e6e-b79a-a00ab0f2a01b",
|
|
"editgridField" : "INVOICELIST",
|
|
"scriptKey" : "438fb6cd-f81f-0313-a7bc-6fbdde59268e",
|
|
"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,
|
|
"onEvent" : {
|
|
"change" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"outputVar" : "egRow",
|
|
"args" : {
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-editgrid-row",
|
|
"data" : {
|
|
"templateId" : "d90344f7-589d-4e6e-b79a-a00ab0f2a01b",
|
|
"editgridField" : "INVOICELIST",
|
|
"scriptKey" : "fa514104-0313-4fb5-b3cb-613ac86da3bf",
|
|
"changedField" : "TAXRATE",
|
|
"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" : "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" : "d90344f7-589d-4e6e-b79a-a00ab0f2a01b",
|
|
"editgridField" : "INVOICELIST",
|
|
"scriptKey" : "438fb6cd-f81f-0313-a7bc-6fbdde59268e",
|
|
"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
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"name" : "FP",
|
|
"label" : "识别发票",
|
|
"type" : "input-file",
|
|
"receiver" : "/api/file/upload?tableName=PM_OUTPUTTAXINVOICE&businessKey=${PM_OUTPUTTAXINVOICE_ID}",
|
|
"downloadUrl" : "/api/file/${id}",
|
|
"staticOn" : "${__readonly}",
|
|
"joinValues" : false,
|
|
"extractValue" : false,
|
|
"hidden" : true
|
|
}, {
|
|
"name" : "TYPE",
|
|
"label" : "识别发票类型",
|
|
"hidden" : true,
|
|
"type" : "input-text",
|
|
"value" : "PM_OUTPUTTAXINVOICE"
|
|
} ],
|
|
"actions" : [ ]
|
|
}
|
|
} |