{ "type" : "page", "title" : "开票编辑", "body" : { "type" : "form", "id" : "eip4-edit-form", "title" : "", "mode" : "horizontal", "horizontal" : { "leftFixed" : 120 }, "body" : [ { "type" : "grid", "columns" : [ { "md" : 6, "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" ] }, "value" : "${currentProject}" } ] }, { "md" : 6, "body" : [ { "name" : "TAXCODE", "label" : "电子票号", "type" : "input-text" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "MONEY", "label" : "开票金额", "required" : true, "type" : "input-number", "precision" : 2 } ] }, { "md" : 6, "body" : [ { "name" : "OPENDATE", "label" : "开票日期", "required" : true, "type" : "input-date", "value" : "${now}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "PAYTYPE", "label" : "付款方式", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/paymentMode" } ] }, { "md" : 6, "body" : [ { "name" : "TOTAL", "label" : "税金合计(元)", "disabled" : true, "type" : "input-number", "precision" : 2 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "TAXES", "label" : "税金明细", "type" : "input-table", "id" : "eg-TAXES", "addable" : false, "removable" : false, "staticOn" : "${__readonly}", "columns" : [ { "name" : "NAME", "label" : "名称", "quickEdit" : { "name" : "NAME", "required" : true, "disabled" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_PROJECTMAKINVOICE_TAXES_TYPE", "onEvent" : { "change" : { "actions" : [ { "actionType" : "ajax", "outputVar" : "egRow", "args" : { "api" : { "method" : "post", "url" : "/api/script/execute-editgrid-row", "data" : { "templateId" : "6001ba24-7889-4bb6-a962-4cd3aed17481", "editgridField" : "TAXES", "scriptKey" : "c147865e-4a39-423d-8eae-945402c3aa14", "changedField" : "NAME", "row" : "${__rendererData}", "parent" : { "TAXES" : "${__rendererData.TAXES || TAXES}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-TAXES", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } }, { "name" : "TAXESMONEY", "label" : "金额(元)", "quickEdit" : { "name" : "TAXESMONEY", "type" : "input-number", "precision" : 2, "onEvent" : { "change" : { "actions" : [ { "actionType" : "ajax", "outputVar" : "egRow", "args" : { "api" : { "method" : "post", "url" : "/api/script/execute-editgrid-row", "data" : { "templateId" : "6001ba24-7889-4bb6-a962-4cd3aed17481", "editgridField" : "TAXES", "scriptKey" : "c13414ff-abb3-4442-acbd-85359e99b881", "changedField" : "TAXESMONEY", "row" : "${__rendererData}", "parent" : { "TAXES" : "${__rendererData.TAXES || TAXES}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-TAXES", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } }, { "name" : "TAXESPER", "label" : "税率(%)", "quickEdit" : { "name" : "TAXESPER", "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" : "6001ba24-7889-4bb6-a962-4cd3aed17481", "editgridField" : "TAXES", "scriptKey" : "e967121f-920a-45b8-b4a8-6ffe1952a6d6", "changedField" : "TAXESPER", "row" : "${__rendererData}", "parent" : { "TAXES" : "${__rendererData.TAXES || TAXES}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-TAXES", "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" : "REMARK", "label" : "备注", "type" : "textarea" } ] } ] }, { "name" : "PM_PROJECTMAKINVOICE_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "RESET", "label" : "RESET", "hidden" : true, "type" : "input-text" } ], "actions" : [ ] } }