{ "type" : "page", "title" : "进项税抵扣编辑(按工程填写抵扣金额和待抵扣金额)", "body" : { "type" : "form", "id" : "eip4-edit-form", "title" : "", "mode" : "horizontal", "horizontal" : { "leftFixed" : 120 }, "body" : [ { "type" : "grid", "columns" : [ { "md" : 8, "body" : [ { "name" : "PROJECTID", "label" : "工程名称", "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" ] } } ] }, { "md" : 4, "body" : [ { "name" : "ORGID", "label" : "(分)公司", "type" : "static", "tpl" : "${ORGID_DISPLAY__ ? ORGID_DISPLAY__ : (NAME ? NAME : ORGID)}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 8, "body" : [ { "name" : "DIVIPROJECTID", "label" : "子工程名称", "required" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/c92ace4b-b0e4-40d6-a8f5-75071ae481b3/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } } ] }, { "md" : 4, "body" : [ { "name" : "OWEDEPARTID", "label" : "所属部门", "type" : "static", "tpl" : "${OWEDEPARTID_DISPLAY__ ? OWEDEPARTID_DISPLAY__ : (NAME ? NAME : OWEDEPARTID)}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "DEDUCTDATE", "label" : "抵扣日期", "required" : true, "type" : "input-date", "value" : "${now}" } ] }, { "md" : 4, "body" : [ { "name" : "CREATEBY", "label" : "经办人", "type" : "static", "tpl" : "${CREATEBY_DISPLAY__ ? CREATEBY_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : CREATEBY)}", "value" : "${currentUser}" } ] }, { "md" : 4, "body" : [ { "name" : "FORMNO", "label" : "表单号", "required" : true, "type" : "input-text" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "TOTALMONEY", "label" : "总进项税额(元)", "disabled" : true, "type" : "input-number", "precision" : 2 } ] }, { "md" : 4, "body" : [ { "name" : "DEDUCTMONEY", "label" : "抵扣金额(元)", "required" : true, "type" : "input-number", "precision" : 2 } ] }, { "md" : 4, "body" : [ { "name" : "TODEDUCTEDMONEY", "label" : "待抵扣金额(元)", "required" : true, "disabled" : true, "type" : "input-number", "precision" : 2 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "REMARK", "label" : "备注", "type" : "textarea" } ] } ] }, { "name" : "PM_INPUTTAXINVOICE_DEDUCT_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "DIVIS", "label" : "抵扣金额划分", "disabled" : true, "type" : "input-table", "id" : "eg-DIVIS", "addable" : false, "removable" : false, "staticOn" : "${__readonly}", "columns" : [ { "name" : "DIVIPROJECTID", "label" : "子工程", "type" : "tpl", "tpl" : "${DIVIPROJECTID_DISPLAY__ ? DIVIPROJECTID_DISPLAY__ : DIVIPROJECTID}", "quickEdit" : false }, { "name" : "OWEDEPARTID", "label" : "所属部门", "type" : "tpl", "tpl" : "${OWEDEPARTID_DISPLAY__ ? OWEDEPARTID_DISPLAY__ : OWEDEPARTID}", "quickEdit" : false }, { "name" : "DIVIMONEY", "label" : "抵扣金额(元)", "quickEdit" : { "name" : "DIVIMONEY", "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" : "de3aa068-fe9d-4cdb-92e3-1eabf1ab8233", "editgridField" : "DIVIS", "scriptKey" : "36d35c1b-6d5e-436c-8f80-c08ee457e431", "changedField" : "DIVIMONEY", "row" : "${__rendererData}", "parent" : { "DIVIS" : "${__rendererData.DIVIS || DIVIS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-DIVIS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } } ], "needConfirm" : false, "hidden" : true }, { "name" : "TODIVIS", "label" : "待抵扣金额划分", "type" : "input-table", "id" : "eg-TODIVIS", "addable" : false, "removable" : false, "staticOn" : "${__readonly}", "columns" : [ { "name" : "DIVIPROJECTID", "label" : "子工程", "type" : "tpl", "tpl" : "${DIVIPROJECTID_DISPLAY__ ? DIVIPROJECTID_DISPLAY__ : DIVIPROJECTID}", "quickEdit" : false }, { "name" : "OWEDEPARTID", "label" : "所属部门", "type" : "tpl", "tpl" : "${OWEDEPARTID_DISPLAY__ ? OWEDEPARTID_DISPLAY__ : OWEDEPARTID}", "quickEdit" : false }, { "name" : "DIVIMONEY", "label" : "抵扣金额(元)", "quickEdit" : { "name" : "DIVIMONEY", "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" : "de3aa068-fe9d-4cdb-92e3-1eabf1ab8233", "editgridField" : "TODIVIS", "scriptKey" : "82e01bba-9288-4e78-8df6-adc372a66eef", "changedField" : "DIVIMONEY", "row" : "${__rendererData}", "parent" : { "TODIVIS" : "${__rendererData.TODIVIS || TODIVIS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-TODIVIS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } } ], "needConfirm" : false, "hidden" : true } ], "actions" : [ ] } }