{ "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" ] }, "value" : "${currentProject}" } ] }, { "md" : 3, "body" : [ { "name" : "VIEW_PM_CONTRACT_ID", "label" : "合同名称", "type" : "static", "tpl" : "${VIEW_PM_CONTRACT_ID_DISPLAY__ ? VIEW_PM_CONTRACT_ID_DISPLAY__ : (CONTRACTNAME ? CONTRACTNAME : VIEW_PM_CONTRACT_ID)}" } ] }, { "md" : 3, "body" : [ { "name" : "CONTRACTNUMBER", "label" : "合同编码", "disabled" : true, "type" : "input-text" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "CONTRACTTYPE", "label" : "合同种类", "required" : true, "disabled" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/CONTRACT_CONTRACTTYPE" } ] }, { "md" : 3, "body" : [ { "name" : "PARTYB", "label" : "乙方", "type" : "static", "tpl" : "${PARTYB_DISPLAY__ ? PARTYB_DISPLAY__ : (SHOWNAME ? SHOWNAME : PARTYB)}" } ] }, { "md" : 3, "body" : [ { "name" : "CONTRACTMONEY", "label" : "合同价款(元)", "disabled" : true, "type" : "input-number", "precision" : 2 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "BALANCEDATE", "label" : "对账日期", "required" : true, "type" : "input-date", "value" : "${now}" } ] }, { "md" : 3, "body" : [ { "name" : "SUBTYPE", "label" : "承包方式", "required" : true, "disabled" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/bycontracttype" } ] }, { "md" : 3, "body" : [ { "name" : "CONTRACTSTATUS", "label" : "合同状态", "disabled" : true, "type" : "input-text" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "BALANCEDETAILS", "label" : "对账明细", "type" : "input-table", "id" : "eg-BALANCEDETAILS", "addable" : true, "removable" : true, "staticOn" : "${__readonly}", "columns" : [ { "name" : "RESOURCENAME", "label" : "项目名称", "quickEdit" : { "name" : "RESOURCENAME", "required" : true, "type" : "input-text" } }, { "name" : "CONTENT", "label" : "工作内容", "quickEdit" : { "name" : "CONTENT", "type" : "input-text" } }, { "name" : "UNITNAME", "label" : "计量单位", "quickEdit" : { "name" : "UNITNAME", "required" : true, "type" : "input-text" } }, { "name" : "NUMBER", "label" : "工程量", "quickEdit" : { "name" : "NUMBER", "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" : "b2b1ef62-0ea5-47ec-9485-944a3d146a6b", "editgridField" : "BALANCEDETAILS", "scriptKey" : "c9d4d565-0489-44c4-a9cc-9ee6d4fa9ea8", "changedField" : "NUMBER", "row" : "${__rendererData}", "parent" : { "BALANCEDETAILS" : "${__rendererData.BALANCEDETAILS || BALANCEDETAILS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-BALANCEDETAILS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } }, { "name" : "UNITPRICE", "label" : "单价(元)", "quickEdit" : { "name" : "UNITPRICE", "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" : "b2b1ef62-0ea5-47ec-9485-944a3d146a6b", "editgridField" : "BALANCEDETAILS", "scriptKey" : "c9d4d565-0489-44c4-a9cc-9ee6d4fa9ea8", "changedField" : "UNITPRICE", "row" : "${__rendererData}", "parent" : { "BALANCEDETAILS" : "${__rendererData.BALANCEDETAILS || BALANCEDETAILS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-BALANCEDETAILS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } }, { "name" : "MONEY", "label" : "合价(元)", "quickEdit" : { "name" : "MONEY", "required" : true, "disabled" : true, "type" : "input-number", "precision" : 2 } } ], "needConfirm" : false } ] } ] }, { "name" : "BUTTON", "label" : "根据对账明细计算工程量和合价", "hidden" : true, "type" : "input-text" }, { "name" : "THISAMOUNTUNIT", "label" : "工程量计量单位", "hidden" : true, "type" : "input-text" }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "THISAMOUNT", "label" : "本次对账工程量", "required" : true, "type" : "input-number", "precision" : 2 } ] }, { "md" : 3, "body" : [ { "name" : "CUMULATIVEAMOUNT", "label" : "累计对账工程量", "disabled" : true, "type" : "input-number", "precision" : 2 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "THISBALANCEMONEY", "label" : "本次对账金额(元)", "required" : true, "type" : "input-number", "precision" : 2, "min" : -9.999999999E7, "max" : 9.999999999E7 } ] }, { "md" : 3, "body" : [ { "name" : "CUMULATIVEMONEY", "label" : "累计对账金额(元)", "disabled" : true, "type" : "input-number", "precision" : 2 } ] }, { "md" : 3, "body" : [ { "name" : "CUMULATIVEPAID", "label" : "累计已支付金额(元)", "disabled" : true, "type" : "input-number", "precision" : 2 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "CONTRACTBALANCEMONEY", "label" : "约定本次应付金额(元)", "required" : true, "type" : "input-number", "precision" : 2, "min" : -9.999999999E7, "max" : 9.999999999E7 } ] }, { "md" : 3, "body" : [ { "name" : "CONTRACTCUMULATIVEMONEY", "label" : "约定累计应付金额(元)", "disabled" : true, "type" : "input-number", "precision" : 2 } ] }, { "md" : 3, "body" : [ { "name" : "CUMULATIVESTILLOWE", "label" : "约定累计未支付金额(元)", "disabled" : true, "type" : "input-number", "precision" : 2 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "COMPLIEPERSON", "label" : "编制人", "required" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "placeholder" : "请点击右侧的图标", "value" : "${currentUser}" } ] }, { "md" : 3, "body" : [ { "name" : "COMPILEDATE", "label" : "编制日期", "required" : true, "type" : "input-date", "value" : "${now}" } ] }, { "md" : 3, "body" : [ { "name" : "ISFINISHED", "label" : "是否供完", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" } ] } ] }, { "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_CONTRACTBALANCE&businessKey=${PM_CONTRACTBALANCE_ID}", "downloadUrl" : "/api/file/${id}", "multiple" : true, "staticOn" : "${__readonly}", "joinValues" : false, "extractValue" : false } ] } ] }, { "name" : "RECORDCUMULATIVEMONEY", "label" : "记录累计对账金额", "hidden" : true, "type" : "input-number", "precision" : 2 }, { "name" : "RECORDCUMULATIVEAMOUNT", "label" : "记录累计对账工程量", "hidden" : true, "type" : "input-number", "precision" : 2 }, { "name" : "RECORDCONTRACTCUMULATIVEMONEY", "label" : "记录按合同约定累计应付金额", "hidden" : true, "type" : "input-number", "precision" : 2 }, { "name" : "PM_CONTRACTBALANCE_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "THISAMOUNTUNITL", "label" : "工程量计量单位标签", "hidden" : true, "type" : "input-text", "value" : "工程量计量单位标签" }, { "name" : "THISAMOUNTL", "label" : "本次对账工程量标签", "hidden" : true, "type" : "input-text", "value" : "本次分包工程量已完成(%)标签" }, { "name" : "CUMULATIVEAMOUNTL", "label" : "累计对账工程量标签", "disabled" : true, "hidden" : true, "type" : "input-text", "value" : "累计对账工程量标签" } ], "actions" : [ ] } }