{ "type" : "page", "title" : "抵房申请编辑页面", "body" : { "type" : "form", "id" : "eip4-edit-form", "title" : "", "mode" : "horizontal", "horizontal" : { "leftFixed" : 120 }, "body" : [ { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "PROJECTNAME", "label" : "项目名称", "type" : "input-text" } ] }, { "md" : 2, "body" : [ { "name" : "PROJECTID", "label" : "选择项目ID", "type" : "picker", "clearable" : true, "source" : "/api/picker/8fbf5298-4588-42e9-ab52-698fc9b380d3/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } } ] }, { "md" : 2, "body" : [ { "name" : "FORMNO", "label" : "单号", "required" : true, "type" : "input-text" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 2, "body" : [ { "name" : "PURCHASER", "label" : "购买人", "type" : "input-text" } ] }, { "md" : 2, "body" : [ { "name" : "SELECTUSER1", "label" : "选择购买人", "type" : "picker", "clearable" : true, "source" : "/api/picker/ac35b7e4-a338-4ca6-b5cd-98d5d1c54bab/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } } ] }, { "md" : 2, "body" : [ { "name" : "CONTRACTOR", "label" : "承包人", "type" : "input-text" } ] }, { "md" : 2, "body" : [ { "name" : "SELECTUSER2", "label" : "选择承包人", "type" : "picker", "clearable" : true, "source" : "/api/picker/ac35b7e4-a338-4ca6-b5cd-98d5d1c54bab/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } } ] }, { "md" : 2, "body" : [ { "name" : "CONTRACTMONEY", "label" : "承包金额", "type" : "input-number", "precision" : 2 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 2, "body" : [ { "name" : "SUBCONTRACTOR", "label" : "供应商", "type" : "input-text" } ] }, { "md" : 2, "body" : [ { "name" : "SELECTSUBCONTRACT", "label" : "选择供货商", "type" : "picker", "clearable" : true, "source" : "/api/picker/c95ceb10-5944-435e-9fb4-d582ba5bed05/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" : "SUBCONTRACT", "label" : "合同", "type" : "picker", "clearable" : true, "source" : "/api/picker/ef35975d-f063-47a5-85f8-010b36ea7bce/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } } ] }, { "md" : 2, "body" : [ { "name" : "SUBCONTRACTMONEY", "label" : "合同金额", "type" : "input-number", "precision" : 2 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "TOTALMONEY", "label" : "购买总额(元)", "required" : true, "disabled" : true, "type" : "input-number", "precision" : 2 } ] }, { "md" : 4, "body" : [ { "name" : "AFTERCONTRACTMONEY", "label" : "扣除房款后承包金额(元)", "disabled" : true, "type" : "input-number", "precision" : 2 } ] }, { "md" : 2, "body" : [ { "name" : "AFTERSUBCONTRACTMONEY", "label" : "扣除房款后合同金额(元)", "disabled" : true, "type" : "input-number", "precision" : 2 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "type" : "flex", "justify" : "flex-start", "alignItems" : "center", "style" : { "paddingLeft" : "120px", "marginBottom" : "4px" }, "items" : [ { "name" : "SELECT", "label" : "选择", "type" : "button", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "id" : "egadddlgSELECT", "title" : "房源库-抵房", "size" : "lg", "body" : { "type" : "crud", "api" : "/api/picker/ebf504ce-0b9b-4247-869b-a192ae39a183/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" : "egadddlgSELECT", "args" : { "value" : { "__egpicked" : "${event.data.selectedItems}" } } } ] } } }, "actions" : [ { "type" : "button", "label" : "取消", "actionType" : "close" }, { "type" : "button", "label" : "确定", "level" : "primary", "onEvent" : { "click" : { "actions" : [ { "actionType" : "addItem", "componentId" : "eg-HOUSEDETAILS", "args" : { "item" : "${ARRAYMAP(__egpicked, item => ({HOUSEID: item.VIEW_PM_MORTGAGEHOUSE_ID}))}" } }, { "actionType" : "closeDialog" } ] } } } ] }, "hiddenOn" : "${__readonly}" } ] }, { "name" : "HOUSEDETAILS", "label" : "房源信息明细", "required" : true, "type" : "input-table", "id" : "eg-HOUSEDETAILS", "addable" : false, "removable" : true, "staticOn" : "${__readonly}", "columns" : [ { "name" : "HOUSEID", "label" : "房源库名称", "type" : "tpl", "tpl" : "${HOUSEID_DISPLAY__ ? HOUSEID_DISPLAY__ : HOUSEID}", "quickEdit" : false }, { "name" : "PRICE", "label" : "单价(元/平)", "quickEdit" : { "name" : "PRICE", "disabled" : true, "type" : "input-number", "precision" : 2 } }, { "name" : "SQUARE", "label" : "面积(㎡)", "quickEdit" : { "name" : "SQUARE", "disabled" : true, "type" : "input-number", "precision" : 2 } }, { "name" : "NUMS", "label" : "总套数", "quickEdit" : { "name" : "NUMS", "disabled" : true, "type" : "input-number", "precision" : 2 } }, { "name" : "TOTALMONEY", "label" : "房款总额(元)", "quickEdit" : { "name" : "TOTALMONEY", "disabled" : true, "type" : "input-number", "precision" : 2 } }, { "name" : "AFTERNUMS", "label" : "剩余套数", "quickEdit" : { "name" : "AFTERNUMS", "disabled" : true, "type" : "input-number", "precision" : 2 } }, { "name" : "NUM", "label" : "当前套数", "quickEdit" : { "name" : "NUM", "required" : true, "type" : "input-number", "precision" : 2, "min" : 0.0, "onEvent" : { "change" : { "actions" : [ { "actionType" : "ajax", "outputVar" : "egRow", "args" : { "api" : { "method" : "post", "url" : "/api/script/execute-editgrid-row", "data" : { "templateId" : "7ab406f9-583b-4a58-a757-843d4b253ee3", "editgridField" : "HOUSEDETAILS", "scriptKey" : "7cfbd732-0432-45dc-ab9a-265b4bf7f53e", "changedField" : "NUM", "row" : "${__rendererData}", "parent" : { "HOUSEDETAILS" : "${__rendererData.HOUSEDETAILS || HOUSEDETAILS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-HOUSEDETAILS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } }, { "name" : "SUMSQUARE", "label" : "当前面积(㎡)", "quickEdit" : { "name" : "SUMSQUARE", "type" : "input-number", "precision" : 2 } }, { "name" : "SUMMONEY", "label" : "总价(元)", "quickEdit" : { "name" : "SUMMONEY", "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" : "7ab406f9-583b-4a58-a757-843d4b253ee3", "editgridField" : "HOUSEDETAILS", "scriptKey" : "f71c5901-c074-4351-9bc8-2b0e523795cd", "changedField" : "SUMMONEY", "row" : "${__rendererData}", "parent" : { "HOUSEDETAILS" : "${__rendererData.HOUSEDETAILS || HOUSEDETAILS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-HOUSEDETAILS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } }, { "name" : "REMARK", "label" : "备注", "quickEdit" : { "name" : "REMARK", "type" : "input-text" } } ], "needConfirm" : false } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "REMARK", "label" : "备注", "type" : "textarea" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "DOCUMENT", "label" : "未盖章合同文件", "required" : true, "type" : "input-file", "receiver" : "/api/file/upload?tableName=PM_MORTGAGEHOUSEAPPLY&businessKey=${PM_MORTGAGEHOUSEAPPLY_ID}", "downloadUrl" : "/api/file/${id}", "multiple" : true, "staticOn" : "${__readonly}", "joinValues" : false, "extractValue" : false } ] } ] }, { "name" : "PM_MORTGAGEHOUSEAPPLY_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "SIGNATUREDATE", "label" : "工抵房签章日期", "hidden" : true, "type" : "input-date" }, { "name" : "AFTERDOCUMENT", "label" : "已盖章合同文件", "hidden" : true, "type" : "input-file", "receiver" : "/api/file/upload?tableName=PM_MORTGAGEHOUSEAPPLY&businessKey=${PM_MORTGAGEHOUSEAPPLY_ID}", "downloadUrl" : "/api/file/${id}", "multiple" : true, "staticOn" : "${__readonly}", "joinValues" : false, "extractValue" : false }, { "type" : "group", "body" : [ ] } ], "actions" : [ ] } }