{ "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 } ] } ] }, { "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" : "246ed34d-4d58-4bb8-aa45-3957d5f64e04", "editgridField" : "EXTERNALS", "scriptKey" : "6d8c127b-4444-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" : "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" : "246ed34d-4d58-4bb8-aa45-3957d5f64e04", "editgridField" : "DETAILS", "scriptKey" : "6d047b12-2222-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" : "246ed34d-4d58-4bb8-aa45-3957d5f64e04", "editgridField" : "DETAILS", "scriptKey" : "24ab49fe-3333-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" : "246ed34d-4d58-4bb8-aa45-3957d5f64e04", "editgridField" : "DETAILS", "scriptKey" : "6b760bb1-1111-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" : "246ed34d-4d58-4bb8-aa45-3957d5f64e04", "editgridField" : "DETAILS", "scriptKey" : "6b760bb1-1111-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" : "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" }, { "name" : "MATERIALINVOICESTILLOWE", "label" : "材料发票尚欠(元)", "type" : "input-number", "precision" : 2, "hidden" : true }, { "name" : "ARTIFICIALWAGESSTILLOWE", "label" : "人工工资表尚欠(元)", "type" : "input-number", "precision" : 2, "hidden" : true }, { "name" : "COMMITMENTDATE", "label" : "承诺送达日期", "type" : "input-date", "hidden" : true }, { "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, "hidden" : true } ], "actions" : [ ] } }